Class WorkspaceTools
java.lang.Object
org.eclipse.ease.modules.platform.resources.WorkspaceTools
-
Method Summary
Modifier and TypeMethodDescriptionstatic IFilecreateFile(IFile file) static IContainercreateFolder(IResource resource) static voidcreateProblemMarker(IFile file, String type, int lineNumber, int intSeverity, String message, boolean permanent) static IProjectcreateProject(String name) static voiddeleteFile(IResource file) static voiddeleteFolder(IResource folder) static String[]findFiles(Pattern regExp, IContainer root, boolean recursive) static IWorkspaceRootstatic IProjectimportProject(File resolvedFile) static IProjectlinkProject(File folder) static StringopenFileSelectionDialog(IContainer dialogRoot, int mode, String title, String message) static StringopenFolderSelectionDialog(IContainer dialogRoot, String title, String message)
-
Method Details
-
createFolder
- Throws:
IOException
-
createFile
- Throws:
IOException
-
deleteFile
- Throws:
IOException
-
deleteFolder
- Throws:
IOException
-
getWorkspace
-
openFileSelectionDialog
public static String openFileSelectionDialog(IContainer dialogRoot, int mode, String title, String message) -
openFolderSelectionDialog
-
findFiles
public static String[] findFiles(Pattern regExp, IContainer root, boolean recursive) throws IOException - Throws:
IOException
-
linkProject
- Throws:
IOException
-
importProject
- Throws:
IOException
-
createProject
- Throws:
IOException
-
createProblemMarker
public static void createProblemMarker(IFile file, String type, int lineNumber, int intSeverity, String message, boolean permanent) throws IOException - Throws:
IOException
-