|
Runtime | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectAbstractActionHandler
org.eclipse.gmf.runtime.emf.ui.action.AbstractModelActionHandler
public abstract class AbstractModelActionHandler
The abstract parent of all concrete action handlers that execute model
commands. Concrete subclasses must provide a definition of the
doRun()
method to gather any required input and execute a model
command.
Constructor Summary | |
---|---|
protected |
AbstractModelActionHandler(IWorkbenchPage workbenchPage)
Constructs a new model action handler for the specified workbench page. |
protected |
AbstractModelActionHandler(IWorkbenchPart workbenchPart)
Constructs a new model action handler for the specified workbench part. |
Method Summary | |
---|---|
protected IStatus |
execute(IUndoableOperation operation,
IProgressMonitor progressMonitor,
IAdaptable info)
Convenience method for subclasses to execute an undoable operation on the action manager's operation history. |
protected abstract org.eclipse.emf.transaction.TransactionalEditingDomain |
getEditingDomain()
Gets my editing domain. |
protected IStatus |
getStatus()
Gets the status of running this action delegate. |
protected boolean |
isReadOnly()
Answers whether or not I am a read-only action. |
protected boolean |
isSelectionListener()
|
void |
run(IProgressMonitor progressMonitor)
Runs this model action handler as a read action. |
protected void |
setStatus(IStatus status)
Sets the action delegate status. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected AbstractModelActionHandler(IWorkbenchPart workbenchPart)
workbenchPart
- The workbench part to which this model action
handler applies.protected AbstractModelActionHandler(IWorkbenchPage workbenchPage)
workbenchPage
- The workbench page to which this model action
handler applies.Method Detail |
---|
protected boolean isSelectionListener()
org.eclipse.gmf.runtime.common.ui.action.AbstractActionHandler#isSelectionListener()
public final void run(IProgressMonitor progressMonitor)
IActionWithProgress#run(IProgressMonitor)
protected abstract org.eclipse.emf.transaction.TransactionalEditingDomain getEditingDomain()
null
if I don't modify
model resources.
protected boolean isReadOnly()
false
by default. Subclasses may override.
false
protected IStatus getStatus()
protected void setStatus(IStatus status)
status
- the new statusprotected IStatus execute(IUndoableOperation operation, IProgressMonitor progressMonitor, IAdaptable info)
operation
- the operation to be executedprogressMonitor
- the progress monitorinfo
- the adaptable info, may be null
|
Runtime | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp., Borland Software Corp., and others 2005,2006. All rights reserved.