|
Runtime | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.core.commands.operations.AbstractOperation
org.eclipse.emf.workspace.AbstractEMFOperation
org.eclipse.gmf.runtime.emf.commands.core.command.AbstractTransactionalCommand
org.eclipse.gmf.runtime.diagram.ui.commands.CreateCommand
A view creation command that creates a View.
After execution, the command result is a singleton list containing
an IAdatable object that adapts to View.
Before execution, after undo or after redo, the returned IAdaptable
adapts to nothing (will return null when adapted to View)
| Field Summary | |
protected View |
containerView
The container view |
protected CreateViewRequest.ViewDescriptor |
viewDescriptor
the view descriptor |
| Constructor Summary | |
CreateCommand(org.eclipse.emf.transaction.TransactionalEditingDomain editingDomain,
CreateViewRequest.ViewDescriptor viewDescriptor,
View containerView)
Creates a new CreateCommand |
|
| Method Summary | |
boolean |
canExecute()
|
protected CommandResult |
doExecuteWithResult(IProgressMonitor monitor,
IAdaptable info)
Implemented by subclasses to perform the model changes. |
java.util.List |
getAffectedFiles()
Returns the IFiles for resources that may be modified when the
operation is executed, undone or redone. |
protected View |
getContainerView()
give access to the view, where that will contain the created view |
protected CreateViewRequest.ViewDescriptor |
getViewDescriptor()
Return the cached view descriprot. |
boolean |
isPersisted()
returns true if the view that will be created will be a transient view, transient views will not dirty the model and will never get serialized in the saved file |
| Methods inherited from class org.eclipse.gmf.runtime.emf.commands.core.command.AbstractTransactionalCommand |
aggregateStatuses, cleanup, compose, didRedo, didUndo, doExecute, doRedo, doUndo, getCommandResult, getWorkspaceFiles, getWorkspaceFiles, internalSetResult, reduce, setResult |
| Methods inherited from class org.eclipse.emf.workspace.AbstractEMFOperation |
canRedo, canUndo, didCommit, dispose, execute, getChange, getEditingDomain, getOptions, redo, undo |
| Methods inherited from class org.eclipse.core.commands.operations.AbstractOperation |
addContext, getContexts, getLabel, hasContext, removeContext, setLabel, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.eclipse.core.commands.operations.IUndoableOperation |
addContext, canRedo, canUndo, dispose, execute, getContexts, getLabel, hasContext, redo, removeContext, undo |
| Field Detail |
protected final CreateViewRequest.ViewDescriptor viewDescriptor
protected final View containerView
| Constructor Detail |
public CreateCommand(org.eclipse.emf.transaction.TransactionalEditingDomain editingDomain,
CreateViewRequest.ViewDescriptor viewDescriptor,
View containerView)
editingDomain - the editing domain through which model changes are madeviewDescriptor - the view descriptor associated with this commandcontainerView - the view that will containe the new view| Method Detail |
protected CreateViewRequest.ViewDescriptor getViewDescriptor()
protected View getContainerView()
protected CommandResult doExecuteWithResult(IProgressMonitor monitor,
IAdaptable info)
throws ExecutionException
AbstractTransactionalCommand
doExecuteWithResult in class AbstractTransactionalCommandmonitor - the progress monitor provided by the operation historyinfo - the adaptable provided by the operation history
ExecutionException - if, for some reason, I fail to complete
the operationpublic boolean canExecute()
public boolean isPersisted()
public java.util.List getAffectedFiles()
AbstractTransactionalCommandIFiles for resources that may be modified when the
operation is executed, undone or redone.
getAffectedFiles in interface ICommandgetAffectedFiles in class AbstractTransactionalCommand
|
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.