public class UnexecutableCommand
extends org.eclipse.gmf.runtime.common.core.command.AbstractCommand
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
UNSUPPORTED_OPERATION |
Constructor and Description |
---|
UnexecutableCommand(org.eclipse.core.runtime.IStatus status) |
Modifier and Type | Method and Description |
---|---|
boolean |
canExecute() |
boolean |
canRedo() |
boolean |
canUndo() |
protected org.eclipse.gmf.runtime.common.core.command.CommandResult |
doExecuteWithResult(org.eclipse.core.runtime.IProgressMonitor progressMonitor,
org.eclipse.core.runtime.IAdaptable info)
Returns a CommandResult with a status of IStatus.ERROR.
|
protected org.eclipse.gmf.runtime.common.core.command.CommandResult |
doRedoWithResult(org.eclipse.core.runtime.IProgressMonitor progressMonitor,
org.eclipse.core.runtime.IAdaptable info) |
protected org.eclipse.gmf.runtime.common.core.command.CommandResult |
doUndoWithResult(org.eclipse.core.runtime.IProgressMonitor progressMonitor,
org.eclipse.core.runtime.IAdaptable info) |
static UnexecutableCommand |
getInstance() |
protected java.lang.String |
getPluginId()
Returns the plugin ID of the MMI Core Plugin.
|
compose, dispose, execute, getAffectedFiles, getCommandResult, internalSetResult, redo, reduce, setResult, undo
addContext, getContexts, getLabel, hasContext, removeContext, setLabel, toString
public UnexecutableCommand(org.eclipse.core.runtime.IStatus status)
public static final UnexecutableCommand getInstance()
protected org.eclipse.gmf.runtime.common.core.command.CommandResult doExecuteWithResult(org.eclipse.core.runtime.IProgressMonitor progressMonitor, org.eclipse.core.runtime.IAdaptable info) throws org.eclipse.core.commands.ExecutionException
doExecuteWithResult
in class org.eclipse.gmf.runtime.common.core.command.AbstractCommand
progressMonitor
- ignoredinfo
- ignoredorg.eclipse.core.commands.ExecutionException
protected org.eclipse.gmf.runtime.common.core.command.CommandResult doRedoWithResult(org.eclipse.core.runtime.IProgressMonitor progressMonitor, org.eclipse.core.runtime.IAdaptable info) throws org.eclipse.core.commands.ExecutionException
doRedoWithResult
in class org.eclipse.gmf.runtime.common.core.command.AbstractCommand
org.eclipse.core.commands.ExecutionException
protected org.eclipse.gmf.runtime.common.core.command.CommandResult doUndoWithResult(org.eclipse.core.runtime.IProgressMonitor progressMonitor, org.eclipse.core.runtime.IAdaptable info) throws org.eclipse.core.commands.ExecutionException
doUndoWithResult
in class org.eclipse.gmf.runtime.common.core.command.AbstractCommand
org.eclipse.core.commands.ExecutionException
public final boolean canExecute()
canExecute
in interface org.eclipse.core.commands.operations.IUndoableOperation
canExecute
in class org.eclipse.core.commands.operations.AbstractOperation
protected java.lang.String getPluginId()
public boolean canRedo()
canRedo
in interface org.eclipse.core.commands.operations.IUndoableOperation
canRedo
in class org.eclipse.core.commands.operations.AbstractOperation
public boolean canUndo()
canUndo
in interface org.eclipse.core.commands.operations.IUndoableOperation
canUndo
in class org.eclipse.core.commands.operations.AbstractOperation