| java.lang.Object org.acm.seguin.completer.JavaUtils
JavaUtils | public class JavaUtils (Code) | | Description of the Class
author: btateyama@yahoo.com |
Inner Class :public static class JavaFileFilter implements FilenameFilter | |
Method Summary | |
static void | addPackageImports(Set argClasses) | public static void | doImport(View argView, String argClassToImport) | static String | extractClassNameFromTextArea(JEditTextArea argTextArea) | static String | filterTag(String arg) | String | getSimpleName(String className) | public static void | importClass(View argView) Import a class. | public static void | importClass(View argView, String argClassName) Bring up import class dialogs to import a class.
the provided class name, argClassName, will be used
as an initial guess for the class name. | static boolean | isClassName(String arg) | public static void | listAllFiles(File argDir, FilenameFilter argFilter, List argFileList) Add all files in the given directory (and sub-directories) to argFileList
The filter can be used to narrow the results. | public static void | listAllJavaFiles(File argDir, List argList) | public static String | selectClass(View argView, String argClassName, boolean argIncludePackages) Select the full class name (or package) from the partial class name.
(i.e. | public static String | selectClass(Frame argParent, String argClassName, boolean argIncludePackages) Select the full class name (or package) from the partial class name.
(i.e. | public static String | selectClass(Frame argParent, String argClassName, String argClassPath, boolean argIncludePackages) Select the full class name (or package) from the partial class name.
(i.e. | public static String | selectClass(Frame argParent, String argClassName, ClassNameCache argCnc, boolean argIncludePackages) Select the full class name (or package) from the partial class name.
(i.e. | static String | sort(String selectedText) | public static void | sortImports(View argView) Sort import statements. | static void | test() |
addPackageImports | static void addPackageImports(Set argClasses)(Code) | | Adds a feature to the PackageImports attribute of the JavaUtils class
Parameters: argClasses - The feature to be added to the PackageImportsattribute |
doImport | public static void doImport(View argView, String argClassToImport)(Code) | | Description of the Method
Parameters: argView - Description of the Parameter Parameters: argClassToImport - Description of the Parameter |
extractClassNameFromTextArea | static String extractClassNameFromTextArea(JEditTextArea argTextArea)(Code) | | Description of the Method
Parameters: argTextArea - Description of the Parameter Description of the Return Value |
filterTag | static String filterTag(String arg)(Code) | | Description of the Method
Parameters: arg - Description of the Parameter Description of the Return Value |
getSimpleName | String getSimpleName(String className)(Code) | | Gets the simpleName attribute of the JavaUtils object
Parameters: className - Description of the Parameter The simpleName value |
importClass | public static void importClass(View argView)(Code) | | Import a class.
Parameters: argView - Description of the Parameter |
importClass | public static void importClass(View argView, String argClassName)(Code) | | Bring up import class dialogs to import a class.
the provided class name, argClassName, will be used
as an initial guess for the class name. null may be used
when no guess is available.
Parameters: argView - Description of the Parameter Parameters: argClassName - Description of the Parameter |
isClassName | static boolean isClassName(String arg)(Code) | | Gets the className attribute of the JavaUtils class
Parameters: arg - Description of the Parameter The className value |
listAllFiles | public static void listAllFiles(File argDir, FilenameFilter argFilter, List argFileList)(Code) | | Add all files in the given directory (and sub-directories) to argFileList
The filter can be used to narrow the results.
Parameters: argDir - Description of the Parameter Parameters: argFilter - Description of the Parameter Parameters: argFileList - Description of the Parameter |
listAllJavaFiles | public static void listAllJavaFiles(File argDir, List argList)(Code) | | |
selectClass | public static String selectClass(View argView, String argClassName, boolean argIncludePackages)(Code) | | Select the full class name (or package) from the partial class name.
(i.e. java.util.Vector from Vector) Uses the java.class.path
Parameters: argView - Description of the Parameter Parameters: argIncludePackages - Description of the Parameter Parameters: argClassName - Description of the Parameter Description of the Return Value |
selectClass | public static String selectClass(Frame argParent, String argClassName, boolean argIncludePackages)(Code) | | Select the full class name (or package) from the partial class name.
(i.e. java.util.Vector from Vector) Uses the java.class.path
Parameters: argParent - Description of the Parameter Parameters: argClassName - Description of the Parameter Parameters: argIncludePackages - Description of the Parameter Description of the Return Value |
selectClass | public static String selectClass(Frame argParent, String argClassName, String argClassPath, boolean argIncludePackages)(Code) | | Select the full class name (or package) from the partial class name.
(i.e. java.util.Vector from Vector) Uses the given ClassNameCache
Parameters: argParent - Description of the Parameter Parameters: argClassName - Description of the Parameter Parameters: argClassPath - Description of the Parameter Parameters: argIncludePackages - Description of the Parameter Description of the Return Value |
selectClass | public static String selectClass(Frame argParent, String argClassName, ClassNameCache argCnc, boolean argIncludePackages)(Code) | | Select the full class name (or package) from the partial class name.
(i.e. java.util.Vector from Vector)
Parameters: argParent - Description of the Parameter Parameters: argClassName - Description of the Parameter Parameters: argCnc - Description of the Parameter Parameters: argIncludePackages - Description of the Parameter Description of the Return Value |
sort | static String sort(String selectedText)(Code) | | Description of the Method
Parameters: selectedText - Description of the Parameter Description of the Return Value |
sortImports | public static void sortImports(View argView)(Code) | | Sort import statements. Based on macro by Richard Wan,
rwan@palmtreebusiness.com
Parameters: argView - Description of the Parameter |
test | static void test()(Code) | | A unit test for JUnit
|
|
|