|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.5.0) E13403-06 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.ide.controller.Command
oracle.jdeveloper.vcs.spi.VCSCommand
oracle.jdeveloper.vcs.generic.ActionCommand
public abstract class ActionCommand
Field Summary |
---|
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 | |
---|---|
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) |
Method Summary | |
---|---|
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 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 VCSProfile |
getProfile() |
protected VCSStatusCache |
getStatusCache() Gets the status cache for the VCS command. |
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. |
void |
setProfile(VCSProfile profile) |
Methods inherited from class oracle.jdeveloper.vcs.spi.VCSCommand |
---|
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 |
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 |
Constructor Detail |
---|
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)
Method Detail |
---|
public void setProfile(VCSProfile profile)
protected java.lang.String getActionId()
protected VCSProfile getProfile()
protected VCSActionInfo getActionInfo()
protected VCSStatusCache getStatusCache()
VCSCommand
getStatusCache
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 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 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
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.5.0) E13403-06 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |