org.csstudio.ui.util
Class ResourceUtil

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

public final class ResourceUtil
extends java.lang.Object

This class is for creating new IResource-objects.

Author:
Kai Meyer

Field Summary
static int ERROROCCURED
          Result identifier: An error occured.
static int FOLDEREXISTS
          Result identifier: Folder exists.
static int NAMEWASNULL
          Result identifier: Name was NULL.
static int OK
          Result identifier: Okay.
static int PROJECTEXISTS
          Result identifier: Project exists.
 
Method Summary
 int createFolder(IContainer parentContainer, java.lang.String folderName)
          Creates a new Folder in the parentContainer.
 int createProject(java.lang.String projectName)
          Creates a new Project.
static ResourceUtil getInstance()
          Delivers the instance of this class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OK

public static final int OK
Result identifier: Okay.

See Also:
Constant Field Values

ERROROCCURED

public static final int ERROROCCURED
Result identifier: An error occured.

See Also:
Constant Field Values

NAMEWASNULL

public static final int NAMEWASNULL
Result identifier: Name was NULL.

See Also:
Constant Field Values

FOLDEREXISTS

public static final int FOLDEREXISTS
Result identifier: Folder exists.

See Also:
Constant Field Values

PROJECTEXISTS

public static final int PROJECTEXISTS
Result identifier: Project exists.

See Also:
Constant Field Values
Method Detail

getInstance

public static ResourceUtil getInstance()
Delivers the instance of this class.

Returns:
IResourceUtil

createFolder

public int createFolder(IContainer parentContainer,
                        java.lang.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(java.lang.String projectName)
Creates a new Project.

Parameters:
projectName - The name of the project
Returns:
int The result-status