|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.core.commands.common.EventManager
org.eclipse.ui.part.WorkbenchPart
org.eclipse.ui.part.EditorPart
org.eclipse.gmf.runtime.lite.parts.DiagramEditor
public abstract class DiagramEditor
This class serves as the base class for the generated diagram editors.
| Field Summary |
|---|
| Fields inherited from interface org.eclipse.ui.IEditorPart |
|---|
PROP_DIRTY, PROP_INPUT |
| Fields inherited from interface org.eclipse.ui.IWorkbenchPart |
|---|
PROP_TITLE |
| Constructor Summary | |
|---|---|
DiagramEditor()
|
|
| Method Summary | |
|---|---|
protected void |
addAction(org.eclipse.jface.action.IAction action)
Adds an action to this editor's ActionRegistry. |
protected void |
addEditorAction(org.eclipse.gef.ui.actions.WorkbenchPartAction action)
Adds an editor action to this editor. |
protected void |
addEditPartAction(org.eclipse.gef.ui.actions.SelectionAction action)
Adds an EditPart action to this editor. |
protected void |
addStackAction(org.eclipse.gef.ui.actions.StackAction action)
Adds an CommandStack action to this editor. |
void |
configureGraphicalViewer()
|
abstract void |
configurePalette(org.eclipse.gef.palette.PaletteRoot paletteRoot)
|
protected abstract void |
createActions()
|
protected org.eclipse.gef.EditDomain |
createEditDomain()
Creates edit domain that will be used for the editor. |
protected org.eclipse.emf.transaction.TransactionalEditingDomain |
createEditingDomain()
Returns the editing domain instance to be used for the diagram if none may be inferred from the input. |
void |
createPartControl(org.eclipse.swt.widgets.Composite parent)
|
void |
dispose()
|
void |
doSaveAs()
|
protected org.eclipse.gef.ui.actions.ActionRegistry |
getActionRegistry()
|
Object |
getAdapter(Class type)
|
protected org.eclipse.gef.commands.CommandStack |
getCommandStack()
|
protected int |
getDefaultOutlineViewMode()
Returns the initial display mode for the outline page to be shown. |
protected IDiagramLayouter |
getDiagramLayouter()
|
abstract org.eclipse.emf.common.notify.AdapterFactory |
getDomainAdapterFactory()
|
protected org.eclipse.gef.EditDomain |
getEditDomain()
|
org.eclipse.emf.transaction.TransactionalEditingDomain |
getEditingDomain()
|
protected org.eclipse.emf.transaction.TransactionalEditingDomain |
getEditingDomain(org.eclipse.ui.IEditorInput input)
Returns the editing domain instance to be used for the specified input. |
protected org.eclipse.gef.GraphicalViewer |
getGraphicalViewer()
|
protected org.eclipse.ui.views.contentoutline.IContentOutlinePage |
getOutlinePage()
|
protected org.eclipse.ui.views.properties.IPropertySheetPage |
getPropertySheetPage()
|
protected Map<?,?> |
getSaveOptions()
Returns the options with which the resources will be saved. |
org.eclipse.ui.IWorkbenchPartSite |
getSite()
|
protected double[] |
getZoomLevels()
|
protected org.eclipse.gef.editparts.ZoomManager |
getZoomManager()
|
void |
init(org.eclipse.ui.IEditorSite site,
org.eclipse.ui.IEditorInput input)
|
abstract void |
initializeGraphicalViewer()
|
boolean |
isDirty()
|
abstract boolean |
isFlyoutPalette()
|
boolean |
isSaveAsAllowed()
|
protected org.eclipse.emf.transaction.TransactionalEditingDomain |
reuseEditingDomain(org.eclipse.ui.IEditorInput input)
Returns the editing domain that is used by other editors with the same input. |
protected void |
save(org.eclipse.core.runtime.IProgressMonitor monitor)
|
void |
setFocus()
|
| Methods inherited from class org.eclipse.ui.part.EditorPart |
|---|
checkSite, doSave, getEditorInput, getEditorSite, getTitleToolTip, isSaveOnCloseNeeded, setContentDescription, setInitializationData, setInput, setInputWithNotify, setPartName |
| Methods inherited from class org.eclipse.ui.part.WorkbenchPart |
|---|
addPartPropertyListener, addPropertyListener, firePartPropertyChanged, firePropertyChange, getConfigurationElement, getContentDescription, getDefaultImage, getOrientation, getPartName, getPartProperties, getPartProperty, getSite, getTitle, getTitleImage, removePartPropertyListener, removePropertyListener, setPartProperty, setSite, setTitle, setTitleImage, setTitleToolTip, showBusy |
| Methods inherited from class org.eclipse.core.commands.common.EventManager |
|---|
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.eclipse.ui.IWorkbenchPart |
|---|
addPropertyListener, getSite, getTitle, getTitleImage, removePropertyListener |
| Constructor Detail |
|---|
public DiagramEditor()
| Method Detail |
|---|
protected void save(org.eclipse.core.runtime.IProgressMonitor monitor)
throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreExceptionprotected Map<?,?> getSaveOptions()
public final org.eclipse.emf.transaction.TransactionalEditingDomain getEditingDomain()
protected final org.eclipse.gef.EditDomain getEditDomain()
protected final org.eclipse.gef.commands.CommandStack getCommandStack()
protected final org.eclipse.gef.editparts.ZoomManager getZoomManager()
protected final org.eclipse.gef.ui.actions.ActionRegistry getActionRegistry()
protected final org.eclipse.gef.GraphicalViewer getGraphicalViewer()
protected org.eclipse.ui.views.properties.IPropertySheetPage getPropertySheetPage()
protected org.eclipse.ui.views.contentoutline.IContentOutlinePage getOutlinePage()
protected IDiagramLayouter getDiagramLayouter()
protected int getDefaultOutlineViewMode()
DiagramContentOutlinePage.ID_OUTLINE and
DiagramContentOutlinePage.ID_OVERVIEW.
By default, the outline page starts in the overview mode. Subclasses may reimplement.
public boolean isSaveAsAllowed()
isSaveAsAllowed in interface org.eclipse.ui.ISaveablePartisSaveAsAllowed in class org.eclipse.ui.part.EditorPartpublic void doSaveAs()
doSaveAs in interface org.eclipse.ui.ISaveablePartdoSaveAs in class org.eclipse.ui.part.EditorPart
public void init(org.eclipse.ui.IEditorSite site,
org.eclipse.ui.IEditorInput input)
throws org.eclipse.ui.PartInitException
init in interface org.eclipse.ui.IEditorPartinit in class org.eclipse.ui.part.EditorPartorg.eclipse.ui.PartInitExceptionpublic void dispose()
dispose in interface org.eclipse.ui.IWorkbenchPartdispose in class org.eclipse.ui.part.WorkbenchPartpublic Object getAdapter(Class type)
getAdapter in interface org.eclipse.core.runtime.IAdaptablegetAdapter in class org.eclipse.ui.part.WorkbenchPartpublic boolean isDirty()
isDirty in interface org.eclipse.ui.ISaveablePartisDirty in class org.eclipse.ui.part.EditorPartprotected void addAction(org.eclipse.jface.action.IAction action)
ActionRegistry. (This is
a helper method.)
action - the action to add.protected void addEditorAction(org.eclipse.gef.ui.actions.WorkbenchPartAction action)
Editor actions are actions that depend and work on the editor.
action - the editor actionprotected void addEditPartAction(org.eclipse.gef.ui.actions.SelectionAction action)
EditPart action to this editor.
EditPart actions are actions that depend and work on the
selected EditParts.
action - the EditPart actionprotected void addStackAction(org.eclipse.gef.ui.actions.StackAction action)
CommandStack action to this editor.
CommandStack actions are actions that depend and work on
the CommandStack.
action - the CommandStack actionpublic void createPartControl(org.eclipse.swt.widgets.Composite parent)
createPartControl in interface org.eclipse.ui.IWorkbenchPartcreatePartControl in class org.eclipse.ui.part.WorkbenchPartpublic void setFocus()
setFocus in interface org.eclipse.ui.IWorkbenchPartsetFocus in class org.eclipse.ui.part.WorkbenchPartprotected org.eclipse.emf.transaction.TransactionalEditingDomain getEditingDomain(org.eclipse.ui.IEditorInput input)
null,
a default instance will be created and used.
By default, return null. Subclasses may reimplement.
protected org.eclipse.emf.transaction.TransactionalEditingDomain reuseEditingDomain(org.eclipse.ui.IEditorInput input)
protected org.eclipse.emf.transaction.TransactionalEditingDomain createEditingDomain()
inferred from the input.
Subclasses may extend or reimplement.
public void configureGraphicalViewer()
protected double[] getZoomLevels()
public abstract void configurePalette(org.eclipse.gef.palette.PaletteRoot paletteRoot)
protected org.eclipse.gef.EditDomain createEditDomain()
public abstract void initializeGraphicalViewer()
public abstract org.eclipse.emf.common.notify.AdapterFactory getDomainAdapterFactory()
public abstract boolean isFlyoutPalette()
protected abstract void createActions()
public org.eclipse.ui.IWorkbenchPartSite getSite()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||