Class WorkspaceTools

java.lang.Object
org.eclipse.ease.modules.platform.resources.WorkspaceTools

public final class WorkspaceTools extends Object
  • 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

      public static void deleteFile(org.eclipse.core.resources.IResource file) throws IOException
      Throws:
      IOException
    • deleteFolder

      public static void deleteFolder(org.eclipse.core.resources.IResource folder) throws IOException
      Throws:
      IOException
    • getWorkspace

      public static org.eclipse.core.resources.IWorkspaceRoot getWorkspace()
    • openFileSelectionDialog

      public static String openFileSelectionDialog(org.eclipse.core.resources.IContainer dialogRoot, int mode, String title, String message)
    • openFolderSelectionDialog

      public static String openFolderSelectionDialog(org.eclipse.core.resources.IContainer dialogRoot, String title, String message)
    • findFiles

      public static String[] findFiles(Pattern regExp, org.eclipse.core.resources.IContainer root, boolean recursive) throws IOException
      Throws:
      IOException
    • linkProject

      public static org.eclipse.core.resources.IProject linkProject(File folder) throws IOException
      Throws:
      IOException
    • importProject

      public static org.eclipse.core.resources.IProject importProject(File resolvedFile) throws IOException
      Throws:
      IOException
    • createProject

      public static org.eclipse.core.resources.IProject createProject(String name) throws IOException
      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