Package org.csstudio.ui.util
Class ResourceUtil
java.lang.Object
org.csstudio.ui.util.ResourceUtil
This class is for creating new IResource-objects.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Result identifier: An error occured.static final int
Result identifier: Folder exists.static final int
Result identifier: Name was NULL.static final int
Result identifier: Okay.static final int
Result identifier: Project exists. -
Method Summary
Modifier and TypeMethodDescriptionint
createFolder
(IContainer parentContainer, String folderName) Creates a new Folder in the parentContainer.int
createProject
(String projectName) Creates a new Project.static ResourceUtil
Delivers the instance of this class.
-
Field Details
-
OK
public static final int OKResult identifier: Okay.- See Also:
-
ERROROCCURED
public static final int ERROROCCUREDResult identifier: An error occured.- See Also:
-
NAMEWASNULL
public static final int NAMEWASNULLResult identifier: Name was NULL.- See Also:
-
FOLDEREXISTS
public static final int FOLDEREXISTSResult identifier: Folder exists.- See Also:
-
PROJECTEXISTS
public static final int PROJECTEXISTSResult identifier: Project exists.- See Also:
-
-
Method Details
-
getInstance
Delivers the instance of this class.- Returns:
- IResourceUtil
-
createFolder
Creates a new Folder in the parentContainer.- Parameters:
parentContainer
- The IContainer, where the new folder is built infolderName
- The name of the folder- Returns:
- int The result-status
-
createProject
Creates a new Project.- Parameters:
projectName
- The name of the project- Returns:
- int The result-status
-