Method Summary |
|
public static String | capitalizeFirstLetter(String name) Forces upper case for the first char of the given string. |
public static boolean | checkFile(String name, String locationPath) |
public static boolean | containsString(Set set, String st) Returns if this string is already contained in the set. |
public static FileObject | createDir(String dirPath) Creates a directory if it doesn't already exist. |
public static FileObject | createFile(String filename, String path, String extension, String content) Creates a file. |
public static FileObject | createFile(String filename, FileObject folder, String extension, String content) Creates a file. |
public static void | displayMessage(String content, String messageTitle, int option, int typeMessage) Display a dialog with expected content. |
public static void | displayMessage(String content) Display a dialog with expected content. |
public static boolean | fileExists(String name, String locationPath) Checks whether the given agent already exists or not
at the given location ONLY. |
public static boolean | fileExists(String fileName) Checks whether the given agent already exists or not
at the given location ONLY. |
static String | fileToClassName(String fileName) Converts filename to the fully qualified name of the main class
residing in the file.
For example: test/myapp/App.java --> test.myapp.App
corresponding package name. |
public static String | forceFirstLetterLowerCase(String name) Forces lower case for the first char of the given string. |
public static String | getClassName(String competeClassName) |
public static String | getDefaultValue(String type) |
public static String | getFileName(String completeFileName) |
public static String | getFolderPath(String classFilePath) Returns the absolute path of the folder of the class file path. |
public static String | getFullTypeName(String type) Returns the full type name of the type. |
public static String | getFullTypeNameCode(String type) Returns the full type name code needed of the type. |
public static String | getFullWrappedName(String type) Returns the full type name of the type. |
public static String | getPackageName(Project project, FileObject packageFolder) Returns the corresponding package name of this folder. |
public static String | getPackageName(Project project, String packagePath) Returns the corresponding package name of this folder path. |
public static String | getPackageName(String className) |
public static Project | getProject(FileObject file) |
public static String | getProjectLocation(WizardDescriptor wiz) Returns the project location of the given wiz. |
public static String | getProjectName(WizardDescriptor wiz) Extracts the project name from the given wiz. |
public static SourceGroup[] | getPropSourceGroups(Project project) Returns all source groups which contains properties files related to this project. |
public static String[] | getSignature(String completeSignature) Returns an array of this method param types. |
public static String | getSimpleName(String type) |
public static String | getSimpleTypeName(String type) |
public static SourceGroup[] | getSourceGroups(Project project) Returns all source groups which contains java files related to this project. |
public static Map | getSourcesToTestsMap(Project project, boolean sourceGroupsOnly) Builds a map that containing relation between SourceGroup s
and their respective test SourceGroup s.
Each entry of the map contains a SourceGroup as a key
and an array of test SourceGroup s returned by
UnitTestForSourceQuery for that SourceGroup
as a value. |
public static FileObject[] | getTestsFileObject(SourceGroup sourceGroup, Project project) |
public static String | getTypeObject(String type) Returns the equivalent object type of the type if it is primitive type
else the same type. |
public static String | getWrappedDefaultValue(String type) |
public static JComboBox | instanciateAccessJComboBox() |
public static JTextField | instanciateJTextField() |
public static JComboBox | instanciateRetTypeJComboBox() |
public static JComboBox | instanciateTypeJComboBox() |
public static boolean | isPrimitiveType(String type) |
public static boolean | isStandardWrapperType(String type) |
public static boolean | isValidClassName(String className) Checks if a name is a valid class name.
Parameters: className - String the class name to check. |
public static void | logErrorMessage(String message, Exception ex) Logs an error message (used for debuging).Display a message in Netbeans
log file with severity = EXCEPTION. |
public static void | logInfoMessage(String message) Logs an info message (used for debuging).Display a message in Netbeans
log file with severity = WARNING. |
public static boolean | mbeanExists(String name, String locationPath) Checks whether the given mbean already exists or not
at the given location ONLY. |
public static void | printOperationExceptionModel(AbstractJMXTableModel model, int toParse) Prints out the content of parts of the operation exception table model(used to debug). |
public static boolean | readBoolOption(WizardDescriptor wiz, String prop) |
public static void | refreshProjectTree(WizardDescriptor wiz) |
public static void | removeFile(String name, String locationPath) Delete the file if already exists, else do nothing. |
public static String | reversePackageName(String packageName) Returns the reversed package name as DNS model. |
public static void | save(DataObject dO) |
public static void | setProjectValues(WizardDescriptor wiz) Extracts info from the netbeans project to put it into the wizard map. |
public static Object[] | skipNulls(Object[] objs) Creates a copy of the given array, except that null objects
are omitted.
The length of the returned array is (l - n), where
l is length of the passed array and n is number
of null elements of the array. |