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 Locatable s 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
Locatable s
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, updateReadOnlyStates
enableConfirmation, getAffectedNodes, getContext, getData, getId, getName, getProgressHandle, getType, isGlobal, setContext, setData, setTaskInfo, undo
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)
public void setProfile(VCSProfile profile)
protected java.lang.String getActionId()
protected VCSProfile getProfile()
protected VCSActionInfo getActionInfo()
@Deprecated protected VCSStatusCache getStatusCache()
VCSCommand
getStatusCache
in class VCSCommand
protected oracle.jdeveloper.vcs.cache.StatusCacheBridge<VCSStatus> getStatusCacheBridge()
getStatusCacheBridge
in class VCSCommand
protected oracle.jdeveloper.vcs.cache.StatusCache<VCSStatus> getPolicyStatusCache()
getPolicyStatusCache
in class VCSCommand
protected URLFilter getURLFilter()
VCSCommand
getURLFilter
in class VCSCommand
protected boolean isAvailableImpl() throws java.lang.Exception
VCSCommand
isAvailableImpl
in class VCSCommand
true
if the command style is VCSCommandStyle.NORMAL
, otherwise calls VCSCommand.isAvailableImpl(Locatable[])
with contextual locatables.java.lang.Exception
protected boolean isAvailableImpl(VCSProfile profile) throws java.lang.Exception
java.lang.Exception
protected boolean requirementsSatisfied(VCSProfile profile) throws java.lang.Exception
java.lang.Exception
protected boolean locatablesValid(VCSProfile profile)
protected int doitImpl() throws java.lang.Exception
VCSCommand
doitImpl
in class VCSCommand
java.lang.Exception
protected int doitImpl(VCSProfile profile) throws java.lang.Exception
java.lang.Exception
protected int doitImplInvoke(VCSProfile profile, Locatable[] locatables) throws java.lang.Exception
java.lang.Exception
protected Locatable[] getOperands(VCSProfile profile) throws java.lang.Exception
ActionCommand
.profile
- the active VCSProfile
.Locatable
s.java.lang.Exception
protected boolean saveDirtyNodes(Locatable[] contextLocatables) throws java.lang.Exception
Locatable
s
from the current context.contextLocatables
- the selected Locatable
s
in the current context.true
if dirty nodes were successfully saved,
false
if the save operation was cancelled by some event.java.lang.Exception
protected 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 VCSProfile
true
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 Locatable
s and VCSProfile
.profile
- the active VCSProfile
.locatables
- the Locatable
s in context.CommandState
for the ActionCommand
, or
null
if there is no such state.java.lang.Exception
protected 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.Exception
protected 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.Exception
protected boolean invokeCommandImpl(VCSProfile profile, CommandState commandState, java.awt.Component parentUi, java.util.Map options) throws java.lang.Exception
java.lang.Exception
protected boolean invokeCommandSilentlyImpl(VCSProfile profile, CommandState commandState, java.util.Map options) throws java.lang.Exception
java.lang.Exception
protected void postInvoke(VCSProfile profile, CommandState commandState) throws java.lang.Exception
profile
- the active VCSProfile
.commandState
- the relevant CommandState
.java.lang.Exception