Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1)

E13403-03

oracle.jdeveloper.vcs.versiontree
Class VersionTreeCommand

java.lang.Object
  extended by oracle.ide.controller.Command
      extended by oracle.jdeveloper.vcs.spi.VCSCommand
          extended by oracle.jdeveloper.vcs.versiontree.VersionTreeCommand

public abstract class VersionTreeCommand
extends VCSCommand

Since:
11.1.1.0.0

Field Summary
static java.lang.String VERSION_TREE_CMD
           
static int VERSION_TREE_CMD_ID
           
 
Fields inherited from class oracle.jdeveloper.vcs.spi.VCSCommand
CANCEL, ERROR, NOOP, OK
 
Fields inherited from class oracle.ide.controller.Command
context, EXECUTING, MULTI_NODE, NO_CHANGE, NO_UNDO, NORMAL, type
 
Constructor Summary
  VersionTreeCommand()
           
protected VersionTreeCommand(int cmdId)
           
 
Method Summary
static void closeVersionTreeEditors()
           
protected  oracle.ide.vhv.VHVCustomizer createCustomizer()
           
protected abstract  oracle.ide.vhv.VHVQuery createQuery()
           
 int doitImpl()
          Executes the actions associated with a specific version control command (implementation).
protected  URLFilter getURLFilter()
          Gets the URL filter controlling locatables in the command context.
protected abstract  java.lang.String getVersionPath(java.net.URL url)
           
static IdeAction getVersionTreeAction(java.lang.String command, java.lang.String vcsId)
           
 boolean isAvailable()
           
protected  boolean isAvailableImpl()
          Asks whether the command is available for the current context.
protected  boolean isAvailableImpl(java.net.URL url)
          Asks whether the command is available for the current context.
 
Methods inherited from class oracle.jdeveloper.vcs.spi.VCSCommand
buildContextForEditor, createStatusFilter, doit, fireFileStructureChanged, fireSomeFilesCreated, fireSomeFilesDeleted, getContextLocatables, getExceptionHandler, getExtension, getFilteredSelection, getFilteredSelection, getLocatableURLFilter, getStatusCache, getStatusFilter, initializeCommandStyle, initializeCommandType, isAvailableImpl, isAvailableImpl, isThreaded, noOp, noOpImpl, reloadBuffers, storeTimestamps, updateReadOnlyStates
 
Methods inherited from class oracle.ide.controller.Command
getAffectedNodes, getContext, getData, getId, getName, getType, isGlobal, setContext, setData, undo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VERSION_TREE_CMD

public static final java.lang.String VERSION_TREE_CMD

VERSION_TREE_CMD_ID

public static final int VERSION_TREE_CMD_ID
Constructor Detail

VersionTreeCommand

public VersionTreeCommand()

VersionTreeCommand

protected VersionTreeCommand(int cmdId)
Method Detail

getVersionTreeAction

public static final IdeAction getVersionTreeAction(java.lang.String command,
                                                   java.lang.String vcsId)

getURLFilter

protected URLFilter getURLFilter()
Description copied from class: VCSCommand
Gets the URL filter controlling locatables in the command context.

Overrides:
getURLFilter in class VCSCommand
Returns:
the command's URL filter.

isAvailable

public boolean isAvailable()
Overrides:
isAvailable in class VCSCommand

isAvailableImpl

protected boolean isAvailableImpl()
                           throws java.lang.Exception
Description copied from class: VCSCommand
Asks whether the command is available for the current context.

Overrides:
isAvailableImpl in class VCSCommand
Returns:
true if the command style is VCSCommandStyle.NORMAL, otherwise calls VCSCommand.isAvailableImpl(Locatable[]) with contextual locatables.
Throws:
java.lang.Exception

isAvailableImpl

protected boolean isAvailableImpl(java.net.URL url)
                           throws java.lang.Exception
Description copied from class: VCSCommand
Asks whether the command is available for the current context.

Overrides:
isAvailableImpl in class VCSCommand
Returns:
true if either VCSCommand.getStatusCache() or VCSCommand.getStatusFilter() return null, otherwise uses the acceptance value of the status filter.
Throws:
java.lang.Exception

doitImpl

public int doitImpl()
             throws java.lang.Exception
Description copied from class: VCSCommand
Executes the actions associated with a specific version control command (implementation).

Specified by:
doitImpl in class VCSCommand
Returns:
Command.OK, Command.CANCEL, VCSCommand.NOOP, VCSCommand.ERROR - or any negative value to indicate command failure.
Throws:
java.lang.Exception

createQuery

protected abstract oracle.ide.vhv.VHVQuery createQuery()

getVersionPath

protected abstract java.lang.String getVersionPath(java.net.URL url)

createCustomizer

protected oracle.ide.vhv.VHVCustomizer createCustomizer()

closeVersionTreeEditors

public static final void closeVersionTreeEditors()

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1)

E13403-03

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