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, undoaddContext, getContexts, getLabel, hasContext, removeContext, setLabel, toStringpublic 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.AbstractCommandprogressMonitor - ignoredinfo - ignoredorg.eclipse.core.commands.ExecutionExceptionprotected 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.AbstractCommandorg.eclipse.core.commands.ExecutionExceptionprotected 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.AbstractCommandorg.eclipse.core.commands.ExecutionExceptionpublic final boolean canExecute()
canExecute in interface org.eclipse.core.commands.operations.IUndoableOperationcanExecute in class org.eclipse.core.commands.operations.AbstractOperationprotected java.lang.String getPluginId()
public boolean canRedo()
canRedo in interface org.eclipse.core.commands.operations.IUndoableOperationcanRedo in class org.eclipse.core.commands.operations.AbstractOperationpublic boolean canUndo()
canUndo in interface org.eclipse.core.commands.operations.IUndoableOperationcanUndo in class org.eclipse.core.commands.operations.AbstractOperation