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, setSelection
dispose, 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, setWorkbenchWindow
public void selectionChanged(org.eclipse.jface.action.IAction action, org.eclipse.jface.viewers.ISelection selection)
selectionChanged
in interface org.eclipse.ui.IActionDelegate
selectionChanged
in class AbstractAddToNewDiagramAction
protected org.eclipse.gmf.runtime.diagram.ui.editparts.DiagramEditPart createDiagramEditPart(java.util.List targetEl, org.eclipse.core.runtime.IProgressMonitor progressMonitor)
createDiagramEditPart
in class AbstractAddToNewDiagramAction
targetEl
- 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 AbstractAddToNewDiagramAction
protected IUIContext getUIContext()
AbstractAddToNewDiagramAction
getUIContext
in class AbstractAddToNewDiagramAction
public org.eclipse.gmf.runtime.common.ui.action.IActionWithProgress.WorkIndicatorType getWorkIndicatorType()
getWorkIndicatorType
in interface org.eclipse.gmf.runtime.common.ui.action.IActionWithProgress
getWorkIndicatorType
in class AbstractAddToNewDiagramAction