|
|||||||||
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.gmt.umlx.editor.AbstractEditor
public abstract class AbstractEditor
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 | |
---|---|
AbstractEditor()
|
Method Summary | |
---|---|
void |
commandStackChanged(java.util.EventObject event)
When the command stack changes, the actions interested in the command stack are updated. |
void |
createPartControl(org.eclipse.swt.widgets.Composite parent)
Realizes the Editor by creating it's Control. |
void |
dispose()
|
void |
doSave(org.eclipse.core.runtime.IProgressMonitor monitor)
|
void |
doSaveAs()
|
java.lang.Object |
getAdapter(java.lang.Class adapter)
Returns the adapter for the specified key. |
SharedCommandStack |
getCommandStack()
Returns the command stack. |
abstract ActiveEditDomain |
getEditDomain()
Returns the edit domain. |
org.eclipse.gef.ui.views.palette.PalettePage |
getPalettePage()
|
org.eclipse.gef.palette.PaletteRoot |
getPaletteRoot()
Returns the PaletteRoot for the editor. |
org.eclipse.gef.ui.palette.PaletteViewer |
getPaletteViewer()
|
java.lang.Class<? extends IRegimeContext> |
getRegimeContextClass()
|
org.eclipse.emf.ecore.resource.ResourceSet |
getResourceSet()
Returns the resource set. |
ISelectionSupervisor |
getSelectionSupervisor()
Returns the selection syncronizer object. |
GSheet |
getSheet()
|
SheetViewer |
getSheetViewer()
Returns the sheet viewer. |
abstract org.eclipse.jface.action.IStatusLineManager |
getStatusLineManager()
|
void |
gotoMarker(org.eclipse.core.resources.IMarker marker)
|
void |
init(org.eclipse.ui.IEditorSite site,
org.eclipse.ui.IEditorInput input)
Sets the site and input for this editor then creates and initializes the actions. |
boolean |
isDirty()
Returns true if the command stack is dirty |
boolean |
isSaveAsAllowed()
|
void |
setFocus()
|
static void |
showStandardViews()
|
Methods inherited from class org.eclipse.ui.part.EditorPart |
---|
getEditorInput, getEditorSite, getTitleToolTip, isSaveOnCloseNeeded, setInitializationData |
Methods inherited from class org.eclipse.ui.part.WorkbenchPart |
---|
addPropertyListener, getContentDescription, getOrientation, getPartName, getSite, getTitle, getTitleImage, removePropertyListener, showBusy |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.eclipse.ui.IWorkbenchPart |
---|
addPropertyListener, getSite, getTitle, getTitleImage, removePropertyListener |
Constructor Detail |
---|
public AbstractEditor()
Method Detail |
---|
public static void showStandardViews()
public void commandStackChanged(java.util.EventObject event)
commandStackChanged
in interface org.eclipse.gef.commands.CommandStackListener
event
- the change eventpublic void createPartControl(org.eclipse.swt.widgets.Composite parent)
WARNING: This method may or may not be called by the workbench prior to dispose()
.
createPartControl
in interface org.eclipse.ui.IWorkbenchPart
createPartControl
in class org.eclipse.ui.part.WorkbenchPart
parent
- the parent compositepublic void dispose()
dispose
in interface org.eclipse.ui.IWorkbenchPart
dispose
in class org.eclipse.ui.part.WorkbenchPart
IWorkbenchPart.dispose()
public void doSave(org.eclipse.core.runtime.IProgressMonitor monitor)
doSave
in interface org.eclipse.ui.ISaveablePart
doSave
in class org.eclipse.ui.part.EditorPart
public void doSaveAs()
doSaveAs
in interface org.eclipse.ui.ISaveablePart
doSaveAs
in class org.eclipse.ui.part.EditorPart
public java.lang.Object getAdapter(java.lang.Class adapter)
IMPORTANT certain requests, such as the property sheet, may be made before
or after createPartControl(Composite)
is called. The order is unspecified by
the Workbench.
getAdapter
in interface org.eclipse.core.runtime.IAdaptable
getAdapter
in class org.eclipse.ui.part.WorkbenchPart
IAdaptable.getAdapter(java.lang.Class)
public SharedCommandStack getCommandStack()
public abstract ActiveEditDomain getEditDomain()
ISheetEditor
getEditDomain
in interface ISheetEditor
public org.eclipse.gef.ui.views.palette.PalettePage getPalettePage()
public org.eclipse.gef.ui.palette.PaletteViewer getPaletteViewer()
public org.eclipse.gef.palette.PaletteRoot getPaletteRoot()
public org.eclipse.emf.ecore.resource.ResourceSet getResourceSet()
public ISelectionSupervisor getSelectionSupervisor()
public GSheet getSheet()
getSheet
in interface ISheetEditor
public SheetViewer getSheetViewer()
getSheetViewer
in interface ISheetEditor
public abstract org.eclipse.jface.action.IStatusLineManager getStatusLineManager()
public void gotoMarker(org.eclipse.core.resources.IMarker marker)
gotoMarker
in interface org.eclipse.ui.ide.IGotoMarker
public void init(org.eclipse.ui.IEditorSite site, org.eclipse.ui.IEditorInput input)
super.init(site, input)
.
init
in interface org.eclipse.ui.IEditorPart
init
in class org.eclipse.ui.part.EditorPart
IEditorPart.init(IEditorSite, IEditorInput)
public boolean isDirty()
true
if the command stack is dirty
isDirty
in interface org.eclipse.ui.ISaveablePart
isDirty
in class org.eclipse.ui.part.EditorPart
ISaveablePart.isDirty()
public boolean isSaveAsAllowed()
isSaveAsAllowed
in interface org.eclipse.ui.ISaveablePart
isSaveAsAllowed
in class org.eclipse.ui.part.EditorPart
public void setFocus()
setFocus
in interface org.eclipse.ui.IWorkbenchPart
setFocus
in class org.eclipse.ui.part.WorkbenchPart
IWorkbenchPart.setFocus()
public java.lang.Class<? extends IRegimeContext> getRegimeContextClass()
getRegimeContextClass
in interface ISheetEditor
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |