|
Extension SDK 9.0.5 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoracle.ide.addin.AbstractCommand
oracle.jdeveloper.vcs.spi.VCSAbstractCommand
Abstract superclass for version control commands.
Field Summary |
Fields inherited from class oracle.ide.addin.AbstractCommand |
cmdId, context, name, type |
Fields inherited from interface oracle.ide.vcs.VCSCommand |
ERROR, NOOP |
Fields inherited from interface oracle.ide.addin.Command |
CANCEL, EXECUTING, NO_CHANGE, NO_UNDO, NORMAL, OK |
Constructor Summary | |
protected |
VCSAbstractCommand(int cmdId)
Constructor. |
protected |
VCSAbstractCommand(int cmdId,
int type)
Constructor. |
protected |
VCSAbstractCommand(int cmdId,
int type,
java.lang.String name)
Constructor. |
Method Summary | |
protected Context |
buildContextForEditor()
Build a context for invoking an editor. |
int |
doit()
Executes the actions associated with a specific command. |
protected abstract int |
doitImpl()
|
VCSArguments |
getArguments()
Gets the arguments object associated with this command. |
protected Locatable[] |
getContextLocatables()
Gets the valid locatables from the context node selection, applying the filter returned by getLocatableURLFilter() . |
protected VCSExceptionHandler |
getExceptionHandler()
Get the exception handler used to report errors from this command. |
protected URLFilter |
getLocatableURLFilter()
Gets the URL filter controlling locatables in the command context. |
boolean |
isAvailable()
|
protected boolean |
isAvailableImpl()
|
protected boolean |
isThreaded()
|
void |
noOp()
|
protected void |
noOpImpl()
|
void |
setThreadAuthorized(boolean authorized)
|
protected void |
updateReadOnlyStates(Document[] documents)
Updates the editor read-only states of documents for the given URLs. |
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 |
Methods inherited from interface oracle.ide.addin.Command |
getAffectedDocuments, getContext, getData, getId, getName, getType, setContext, setData, undo |
Constructor Detail |
protected VCSAbstractCommand(int cmdId)
cmdId
- the command id.protected VCSAbstractCommand(int cmdId, int type)
cmdId
- the command id.type
- the command type.protected VCSAbstractCommand(int cmdId, int type, java.lang.String name)
cmdId
- the command id.type
- the command type.name
- the command name, for undo and redo.Method Detail |
public int doit() throws java.lang.Exception
Command
doit
in interface Command
java.lang.Exception
public VCSArguments getArguments()
VCSCommand
getArguments
in interface VCSCommand
public boolean isAvailable()
public void noOp()
public void setThreadAuthorized(boolean authorized)
protected boolean isAvailableImpl() throws java.lang.Exception
java.lang.Exception
protected boolean isThreaded()
protected void noOpImpl() throws VCSException
VCSException
protected abstract int doitImpl() throws java.lang.Exception
java.lang.Exception
protected VCSExceptionHandler getExceptionHandler()
protected URLFilter getLocatableURLFilter()
protected final Locatable[] getContextLocatables()
getLocatableURLFilter()
.
protected final Context buildContextForEditor()
protected final void updateReadOnlyStates(Document[] documents)
|
Extension SDK | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1997, 2004, Oracle. All rights reserved.