Class ResourceUtil

java.lang.Object
org.csstudio.ui.util.ResourceUtil

public final class ResourceUtil extends Object
This class is for creating new IResource-objects.
  • Field Details

    • OK

      public static final int OK
      Result identifier: Okay.
      See Also:
    • ERROROCCURED

      public static final int ERROROCCURED
      Result identifier: An error occured.
      See Also:
    • NAMEWASNULL

      public static final int NAMEWASNULL
      Result identifier: Name was NULL.
      See Also:
    • FOLDEREXISTS

      public static final int FOLDEREXISTS
      Result identifier: Folder exists.
      See Also:
    • PROJECTEXISTS

      public static final int PROJECTEXISTS
      Result identifier: Project exists.
      See Also:
  • Method Details

    • getInstance

      public static ResourceUtil getInstance()
      Delivers the instance of this class.
      Returns:
      IResourceUtil
    • createFolder

      public int createFolder(IContainer parentContainer, String folderName)
      Creates a new Folder in the parentContainer.
      Parameters:
      parentContainer - The IContainer, where the new folder is built in
      folderName - The name of the folder
      Returns:
      int The result-status
    • createProject

      public int createProject(String projectName)
      Creates a new Project.
      Parameters:
      projectName - The name of the project
      Returns:
      int The result-status