Extension SDK

oracle.ide.cmd
Class NewWorkspaceCommand

java.lang.Object
  extended byoracle.ide.addin.AbstractCommand
      extended byoracle.ide.cmd.NewWorkspaceCommand
All Implemented Interfaces:
Command

public class NewWorkspaceCommand
extends AbstractCommand

The WorkspaceCommand class implements the create new workspace command.

See Also:
oracle.ide.Command, oracle.ide.AbstractCommand

Field Summary
 
Fields inherited from class oracle.ide.addin.AbstractCommand
cmdId, context, name, type
 
Fields inherited from interface oracle.ide.addin.Command
CANCEL, EXECUTING, NO_CHANGE, NO_UNDO, NORMAL, OK
 
Constructor Summary
NewWorkspaceCommand()
          Constructor.
 
Method Summary
 int doit()
          Executes the create new workspacecommand.
 
Methods inherited from class oracle.ide.addin.AbstractCommand
getAffectedDocuments, getContext, getData, getId, getName, getType, setContext, setData, undo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NewWorkspaceCommand

public NewWorkspaceCommand()
Constructor.

Method Detail

doit

public int doit()
         throws java.lang.Exception
Executes the create new workspacecommand. The method generates a new unique name for the workspace, creates a project group instance, and adds the instance to the workspaces folder. instance by cloning the 'Default Project Group', and adds the instance to the project groups folder.

Throws:
java.lang.Exception

Extension SDK

 

Copyright ©1997, 2003, Oracle. All rights reserved.