JDeveloper SCM API

oracle.ide.scm.util
Class SCMIdeCommand

java.lang.Object
  |
  +--oracle.ide.scm.util.SCMIdeCommand

public final class SCMIdeCommand
extends java.lang.Object

Utility convenience access to IDE commands which may be useful to source control client extensions.


Constructor Summary
SCMIdeCommand()
           
 
Method Summary
static void closeNode(java.net.URL url)
          Performs a close node command on the given URL selection.
static void moveNode(java.net.URL src, java.net.URL dst)
          Performs an rename node command with the given source and destination URLs.
static void openNode(java.net.URL url)
          Performs an open node command on the given file URL.
static void openProjectNode(java.net.URL url)
          Performs an open node command on the given project URL.
static void openWorkspaceNode(java.net.URL url)
          Performs an open node command on the given workspace URL.
static void removeFromDisk()
          Performs a remove from disk command, displaying a dialog for the current navigator context.
static void revertNode(java.net.URL url)
          Performs a revert node command on the given URL selection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SCMIdeCommand

public SCMIdeCommand()
Method Detail

removeFromDisk

public static final void removeFromDisk()
Performs a remove from disk command, displaying a dialog for the current navigator context.
Throws:
SCMException - if the remove operation could not be performed.

closeNode

public static final void closeNode(java.net.URL url)
Performs a close node command on the given URL selection.
Throws:
SCMException - if the close operation could not be performed.

revertNode

public static final void revertNode(java.net.URL url)
Performs a revert node command on the given URL selection. Note that, if the selection is a container, it will be collapsed as a result of this command.
Throws:
SCMException - if the revert operation could not be performed.

openWorkspaceNode

public static final void openWorkspaceNode(java.net.URL url)
Performs an open node command on the given workspace URL.
Throws:
SCMException - if the open operation could not be performed.

openProjectNode

public static final void openProjectNode(java.net.URL url)
Performs an open node command on the given project URL. The project is opened within the active workspace.
Throws:
SCMException - if the open operation could not be performed.

openNode

public static final void openNode(java.net.URL url)
Performs an open node command on the given file URL. The file is opened within the active project.
Throws:
SCMException - if the open operation could not be performed.

moveNode

public static final void moveNode(java.net.URL src,
                                  java.net.URL dst)
Performs an rename node command with the given source and destination URLs. This allows the state of the model to be correctly maintained when moving files.
Throws:
SCMException - if the move operation could not be performed.

Copyright © 2002 Oracle Corporation