| Constructor and Description |
|---|
NewWorkspaceCommand()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static Workspace |
createEmptyWorkspace(Context context,
java.net.URL wspURL)
Creates a new empty workspace.
|
static Workspace |
createEmptyWorkspace(Workspaces workspaces,
Workspace defaultWorkspace,
Context context,
java.net.URL wspURL) |
static Project |
createProject(Context context,
Workspace workspace)
Provides the UI for creating a project in the given workspace
|
int |
doit()
Executes the create new workspacecommand.
|
enableConfirmation, getAffectedNodes, getContext, getData, getId, getName, getProgressHandle, getType, isGlobal, setContext, setData, setTaskInfo, undopublic int doit()
throws java.lang.Exception
public static Project createProject(Context context, Workspace workspace) throws java.lang.Exception
context - the contextworkspace - the workspace in which to create the projectjava.lang.Exceptionpublic static Workspace createEmptyWorkspace(Context context, java.net.URL wspURL) throws java.lang.IllegalAccessException, java.lang.InstantiationException
context - The current command Context.wspURL - The URL for the new workspace; the
URL is assumed to have the proper file extension for a
workspace file.Workspace, or null if
the workspace could not be created.java.lang.IllegalAccessException - If the Workspace class or
its constructor is not accessible.java.lang.InstantiationException - If the Workspace object
could not be instantiated.public static Workspace createEmptyWorkspace(Workspaces workspaces, Workspace defaultWorkspace, Context context, java.net.URL wspURL) throws java.lang.IllegalAccessException, java.lang.InstantiationException
java.lang.IllegalAccessExceptionjava.lang.InstantiationException