Class WorkspaceTools
java.lang.Object
org.eclipse.ease.modules.platform.resources.WorkspaceTools
public final class WorkspaceTools extends Object
-
Method Summary
Modifier and Type Method Description static org.eclipse.core.resources.IFile
createFile(org.eclipse.core.resources.IFile file)
static org.eclipse.core.resources.IContainer
createFolder(org.eclipse.core.resources.IResource resource)
static void
createProblemMarker(org.eclipse.core.resources.IFile file, String type, int lineNumber, int intSeverity, String message, boolean permanent)
static org.eclipse.core.resources.IProject
createProject(String name)
static void
deleteFile(org.eclipse.core.resources.IResource file)
static void
deleteFolder(org.eclipse.core.resources.IResource folder)
static String[]
findFiles(Pattern regExp, org.eclipse.core.resources.IContainer root, boolean recursive)
static org.eclipse.core.resources.IWorkspaceRoot
getWorkspace()
static org.eclipse.core.resources.IProject
importProject(File resolvedFile)
static org.eclipse.core.resources.IProject
linkProject(File folder)
static String
openFileSelectionDialog(org.eclipse.core.resources.IContainer dialogRoot, int mode, String title, String message)
static String
openFolderSelectionDialog(org.eclipse.core.resources.IContainer dialogRoot, String title, String message)
-
Method Details
-
createFolder
public static org.eclipse.core.resources.IContainer createFolder(org.eclipse.core.resources.IResource resource) throws IOException- Throws:
IOException
-
createFile
public static org.eclipse.core.resources.IFile createFile(org.eclipse.core.resources.IFile file) throws IOException- Throws:
IOException
-
deleteFile
- Throws:
IOException
-
deleteFolder
- Throws:
IOException
-
getWorkspace
public static org.eclipse.core.resources.IWorkspaceRoot getWorkspace() -
openFileSelectionDialog
-
openFolderSelectionDialog
-
findFiles
public static String[] findFiles(Pattern regExp, org.eclipse.core.resources.IContainer root, boolean recursive) throws IOException- Throws:
IOException
-
linkProject
- Throws:
IOException
-
importProject
public static org.eclipse.core.resources.IProject importProject(File resolvedFile) throws IOException- Throws:
IOException
-
createProject
- Throws:
IOException
-
createProblemMarker
public static void createProblemMarker(org.eclipse.core.resources.IFile file, String type, int lineNumber, int intSeverity, String message, boolean permanent) throws IOException- Throws:
IOException
-