| java.lang.Object org.netbeans.modules.project.ui.ProjectUtilities
ProjectUtilities | public class ProjectUtilities (Code) | | The util methods for projectui module.
author: Jiri Rechtacek |
Inner Class :public static class WaitCursor implements Runnable | |
Inner Class :interface OpenCloseProjectDocument | |
OPEN_CLOSE_PROJECT_DOCUMENT_IMPL | static OpenCloseProjectDocument OPEN_CLOSE_PROJECT_DOCUMENT_IMPL(Code) | | |
OPEN_FILES_ELEMENT | final static String OPEN_FILES_ELEMENT(Code) | | |
canUseFileName | public static String canUseFileName(FileObject targetFolder, String folderName, String newObjectName, String extension, boolean allowFileSeparator)(Code) | | Checks if the given file name can be created in the target folder.
Parameters: targetFolder - target folder (e.g. source group) Parameters: folderName - name of the folder relative to target folder (null or /-separated) Parameters: newObjectName - name of created file Parameters: extension - extension of created file Parameters: allowFileSeparator - if '/' (and possibly other file separator, see FileUtil.createFolder FileUtil#createFolder)is allowed in the newObjectName localized error message or null if all right |
closeAllDocuments | public static boolean closeAllDocuments(Project[] projects, boolean notifyUI)(Code) | | Closes all documents in editor area which are owned by one of given projects.
If some documents are modified then an user is notified by Save/Discard/Cancel dialog.
Dialog is showed only once for all project's documents together.
URLs of closed documents are stored to private.xml .
Parameters: p - project to close false if the user cancelled the Save/Discard/Cancel dialog, true otherwise |
makeProjectTabVisible | public static void makeProjectTabVisible(boolean requestFocus)(Code) | | Makes the project tab visible
Parameters: requestFocus - if set to true the project tab will not only become visible but alsowill gain focus |
openAndSelectNewObject | public static void openAndSelectNewObject(DataObject newDo)(Code) | | Invokes the preferred action on given object and tries to select it in
corresponding view, e.g. in logical view if possible otherwise
in physical project's view.
Note: execution this methods can invokes new threads to assure the action
is called in EQ.
Parameters: newDo - new data object |
openProjectFiles | public static void openProjectFiles(Project p)(Code) | | Opens the project's files read from the private project.xml file
Parameters: p - project |
selectAndExpandProject | public static void selectAndExpandProject(Project p)(Code) | | |
|
|