public abstract class ActionCommand extends VCSCommand
CANCEL, ERROR, NOOP, OK| Modifier | Constructor and Description |
|---|---|
protected |
ActionCommand(int cmdId) |
protected |
ActionCommand(int cmdId,
int type) |
protected |
ActionCommand(int cmdId,
int type,
java.lang.String name) |
protected |
ActionCommand(java.lang.String commandId) |
protected |
ActionCommand(java.lang.String commandId,
int type) |
protected |
ActionCommand(java.lang.String commandId,
int type,
java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
configureCommandState(CommandState commandState,
VCSDirectoryInvokableState invokableState,
java.util.Map timestamps,
Locatable[] locatables) |
protected CommandState |
createCommandState() |
protected oracle.bali.ewt.dialog.JEWTDialog |
createOperationDialog(java.util.Collection nodes,
VCSOptionsCustomizer customizer) |
protected VCSOptionsCustomizer |
createOptionsCustomizer() |
protected VCSOptionsCustomizer |
createOptionsCustomizer(java.util.Collection nodes) |
protected int |
doitImpl()
Executes the actions associated with a specific version control command (implementation).
|
protected int |
doitImpl(VCSProfile profile) |
protected int |
doitImplInvoke(VCSProfile profile,
Locatable[] locatables) |
protected java.lang.String |
getActionId() |
protected VCSActionInfo |
getActionInfo() |
protected CommandState |
getCommandState(VCSProfile profile,
Locatable[] locatables)
Prepares a
VCSCommandState for the
ActionCommand based on the supplied context Locatables and VCSProfile. |
protected java.lang.String |
getDialogHint() |
protected java.lang.String |
getDialogTitle() |
protected java.lang.String |
getHelpTopicId() |
protected Locatable[] |
getOperands(VCSProfile profile)
Retrieves the operable locatables for this
ActionCommand. |
protected oracle.jdeveloper.vcs.cache.StatusCache<VCSStatus> |
getPolicyStatusCache() |
protected VCSProfile |
getProfile() |
protected VCSStatusCache |
getStatusCache()
Deprecated.
|
protected oracle.jdeveloper.vcs.cache.StatusCacheBridge<VCSStatus> |
getStatusCacheBridge() |
protected URLFilter |
getURLFilter()
Gets the URL filter controlling locatables in the command context.
|
protected boolean |
invokeCommand(VCSProfile profile,
CommandState commandState) |
protected boolean |
invokeCommandImpl(VCSProfile profile,
CommandState commandState,
java.awt.Component parentUi,
java.util.Map options) |
protected boolean |
invokeCommandSilently(VCSProfile profile,
CommandState commandState) |
protected boolean |
invokeCommandSilentlyImpl(VCSProfile profile,
CommandState commandState,
java.util.Map options) |
protected boolean |
isAvailableImpl()
Asks whether the command is available for the current context.
|
protected boolean |
isAvailableImpl(VCSProfile profile) |
protected boolean |
isChangeListAction(View view,
VCSProfile profile)
Determines whether or not this action has originated from a
ChangeList containing view. |
protected boolean |
isDialogRequired(ChangeListWindow changeListWindow,
VCSProfile profile) |
protected boolean |
isSilent(Context context,
VCSProfile profile)
Determines whether or not the action should be invoked silently, i.e.
|
protected boolean |
locatablesValid(VCSProfile profile) |
protected void |
postInvoke(VCSProfile profile,
CommandState commandState)
Handles housekeeping duties necessary after invocation of the command on
the underlying vcs.
|
protected boolean |
requirementsSatisfied(VCSProfile profile) |
protected boolean |
saveDirtyNodes(Locatable[] contextLocatables)
Saves dirty nodes present among the
Locatables
from the current context. |
protected void |
setCommandSpecificCustomizerOptions(VCSProfile profile,
VCSOptionsCustomizer customizer)
Give implemening subclasses a chance to poke values into the customizer
|
void |
setProfile(VCSProfile profile) |
buildContextForEditor, createStatusFilter, doit, fireFileStructureChanged, fireSomeFilesCreated, fireSomeFilesDeleted, getContextLocatables, getExceptionHandler, getExtension, getFilteredSelection, getFilteredSelection, getLocatableURLFilter, getStatusFilter, initializeCommandStyle, initializeCommandType, isAvailable, isAvailableImpl, isAvailableImpl, isAvailableImpl, isThreaded, noOp, noOpImpl, reloadBuffers, storeTimestamps, updateReadOnlyStatesenableConfirmation, getAffectedNodes, getContext, getData, getId, getName, getProgressHandle, getType, isGlobal, setContext, setData, setTaskInfo, undoprotected ActionCommand(int cmdId)
protected ActionCommand(int cmdId,
int type)
protected ActionCommand(int cmdId,
int type,
java.lang.String name)
protected ActionCommand(java.lang.String commandId)
protected ActionCommand(java.lang.String commandId,
int type)
protected ActionCommand(java.lang.String commandId,
int type,
java.lang.String name)
public void setProfile(VCSProfile profile)
protected java.lang.String getActionId()
protected VCSProfile getProfile()
protected VCSActionInfo getActionInfo()
@Deprecated protected VCSStatusCache getStatusCache()
VCSCommandgetStatusCache in class VCSCommandprotected oracle.jdeveloper.vcs.cache.StatusCacheBridge<VCSStatus> getStatusCacheBridge()
getStatusCacheBridge in class VCSCommandprotected oracle.jdeveloper.vcs.cache.StatusCache<VCSStatus> getPolicyStatusCache()
getPolicyStatusCache in class VCSCommandprotected URLFilter getURLFilter()
VCSCommandgetURLFilter in class VCSCommandprotected boolean isAvailableImpl()
throws java.lang.Exception
VCSCommandisAvailableImpl in class VCSCommandtrue if the command style is VCSCommandStyle.NORMAL, otherwise calls VCSCommand.isAvailableImpl(Locatable[]) with contextual locatables.java.lang.Exceptionprotected boolean isAvailableImpl(VCSProfile profile) throws java.lang.Exception
java.lang.Exceptionprotected boolean requirementsSatisfied(VCSProfile profile) throws java.lang.Exception
java.lang.Exceptionprotected boolean locatablesValid(VCSProfile profile)
protected int doitImpl()
throws java.lang.Exception
VCSCommanddoitImpl in class VCSCommandjava.lang.Exceptionprotected int doitImpl(VCSProfile profile) throws java.lang.Exception
java.lang.Exceptionprotected int doitImplInvoke(VCSProfile profile, Locatable[] locatables) throws java.lang.Exception
java.lang.Exceptionprotected Locatable[] getOperands(VCSProfile profile) throws java.lang.Exception
ActionCommand.profile - the active VCSProfile.Locatables.java.lang.Exceptionprotected boolean saveDirtyNodes(Locatable[] contextLocatables) throws java.lang.Exception
Locatables
from the current context.contextLocatables - the selected Locatables
in the current context.true if dirty nodes were successfully saved,
false if the save operation was cancelled by some event.java.lang.Exceptionprotected boolean isSilent(Context context, VCSProfile profile)
ChangeList
containing view and also the change list's current dialog usage policy.context - the originating Context.profile - the active VCSProfiletrue if the action should proceed without extraneous
ui, false otherwise.protected boolean isChangeListAction(View view, VCSProfile profile)
ChangeList containing view.true if this action has been invoked from a change
list, false otherwise.protected boolean isDialogRequired(ChangeListWindow changeListWindow, VCSProfile profile)
protected CommandState getCommandState(VCSProfile profile, Locatable[] locatables) throws java.lang.Exception
VCSCommandState for the
ActionCommand based on the supplied context Locatables and VCSProfile.profile - the active VCSProfile.locatables - the Locatables in context.CommandState for the ActionCommand, or
null if there is no such state.java.lang.Exceptionprotected CommandState createCommandState()
protected void configureCommandState(CommandState commandState, VCSDirectoryInvokableState invokableState, java.util.Map timestamps, Locatable[] locatables)
protected boolean invokeCommand(VCSProfile profile, CommandState commandState) throws java.lang.Exception
java.lang.Exceptionprotected void setCommandSpecificCustomizerOptions(VCSProfile profile, VCSOptionsCustomizer customizer)
protected VCSOptionsCustomizer createOptionsCustomizer(java.util.Collection nodes)
protected VCSOptionsCustomizer createOptionsCustomizer()
protected oracle.bali.ewt.dialog.JEWTDialog createOperationDialog(java.util.Collection nodes,
VCSOptionsCustomizer customizer)
protected java.lang.String getDialogTitle()
protected java.lang.String getDialogHint()
protected java.lang.String getHelpTopicId()
protected boolean invokeCommandSilently(VCSProfile profile, CommandState commandState) throws java.lang.Exception
java.lang.Exceptionprotected boolean invokeCommandImpl(VCSProfile profile, CommandState commandState, java.awt.Component parentUi, java.util.Map options) throws java.lang.Exception
java.lang.Exceptionprotected boolean invokeCommandSilentlyImpl(VCSProfile profile, CommandState commandState, java.util.Map options) throws java.lang.Exception
java.lang.Exceptionprotected void postInvoke(VCSProfile profile, CommandState commandState) throws java.lang.Exception
profile - the active VCSProfile.commandState - the relevant CommandState.java.lang.Exception