public class AddToCurrentDiagramAction extends AbstractAddToNewDiagramAction
| Constructor and Description |
|---|
AddToCurrentDiagramAction() |
| Modifier and Type | Method and Description |
|---|---|
protected org.eclipse.gmf.runtime.diagram.ui.editparts.DiagramEditPart |
createDiagramEditPart(java.util.List targetEl,
org.eclipse.core.runtime.IProgressMonitor progressMonitor)
Overridden from the super implementation to merely check for the current
editor and return it if it's of type DiagramEditorPart().
|
protected IUIContext |
getUIContext()
Subclassers must override to return a UI context corresponding
to the diagram type that this selection will be added to, i.e.
|
org.eclipse.gmf.runtime.common.ui.action.IActionWithProgress.WorkIndicatorType |
getWorkIndicatorType() |
protected boolean |
isToSaveDiagram()
Returns true if the changes to the diagram edit part should be saved to
file.
|
void |
selectionChanged(org.eclipse.jface.action.IAction action,
org.eclipse.jface.viewers.ISelection selection) |
doRun, getDropRequest, getOpenedDiagramEditPart, getSelection, getWindow, setSelectiondispose, getAction, getActionManager, getLabel, getOperationHistory, getStructuredSelection, getWorkbenchPart, getWorkbenchWindow, handle, init, init, init, isRunnable, isSetup, needsSetup, openErrorDialog, partActivated, partBroughtToTop, partClosed, partDeactivated, partOpened, refresh, run, run, runWithEvent, setAction, setActiveEditor, setActivePart, setSetup, setup, setWorkbenchPart, setWorkbenchWindowpublic void selectionChanged(org.eclipse.jface.action.IAction action,
org.eclipse.jface.viewers.ISelection selection)
selectionChanged in interface org.eclipse.ui.IActionDelegateselectionChanged in class AbstractAddToNewDiagramActionprotected org.eclipse.gmf.runtime.diagram.ui.editparts.DiagramEditPart createDiagramEditPart(java.util.List targetEl,
org.eclipse.core.runtime.IProgressMonitor progressMonitor)
createDiagramEditPart in class AbstractAddToNewDiagramActiontargetEl - List with element that is the target used to derive the filename and diagram path.progressMonitor - ProgressMonitor to track the creation of diagram edit part.protected boolean isToSaveDiagram()
isToSaveDiagram in class AbstractAddToNewDiagramActionprotected IUIContext getUIContext()
AbstractAddToNewDiagramActiongetUIContext in class AbstractAddToNewDiagramActionpublic org.eclipse.gmf.runtime.common.ui.action.IActionWithProgress.WorkIndicatorType getWorkIndicatorType()
getWorkIndicatorType in interface org.eclipse.gmf.runtime.common.ui.action.IActionWithProgressgetWorkIndicatorType in class AbstractAddToNewDiagramAction