|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectGraphicalEditor
com.pnp.xfeature.editor.FeatureDiagramEditor
public class FeatureDiagramEditor
The main class. Referenced from plugin.xml. Called by internal Eclipse mechanism when a .xmf file opening is requested.
| Constructor Summary | |
|---|---|
FeatureDiagramEditor()
constructs the editor and initialize it with a new edit domain |
|
| Method Summary | |
|---|---|
void |
commandStackChanged(java.util.EventObject event)
fires the property change event if the feature model was edited since the last save operation or save was already requested by the user |
void |
createPartControl(Composite parent)
calls superclass and creates the context menu |
void |
doSave(IProgressMonitor monitor)
saves the feature model |
void |
doSaveAs()
saves a copy of feature model to the specified location |
void |
exportContextMenu(IMenuManager manager)
|
java.lang.Object |
getAdapter(java.lang.Class type)
returns a reference to an outline view |
FeatureDiagramModel |
getContents()
Returns the contents of the editor, i.e. the currently edited feature model diagram model (as a wrapper class to the DOM tree containing the whole model) |
DefaultEditDomain |
getEditDomain()
getter method for the editDomain property |
MetaModelEditorOutlinePage |
getOutlinePage()
Returns the overview for the outline view. |
GraphicalViewer |
getViewer()
|
void |
init(IEditorSite site,
IEditorInput input)
just calls superclass implementation |
boolean |
isDirty()
returns true if the feature model was edited since the last save operation |
boolean |
isSaveAsAllowed()
returns true as it is allways allowed to save a model |
void |
selectionChanged(IWorkbenchPart part,
ISelection selection)
calls superclass implementation |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FeatureDiagramEditor()
| Method Detail |
|---|
public DefaultEditDomain getEditDomain()
public void init(IEditorSite site,
IEditorInput input)
throws PartInitException
PartInitExceptionorg.eclipse.ui.IEditorPart#init(org.eclipse.ui.IEditorSite, org.eclipse.ui.IEditorInput)public void doSave(IProgressMonitor monitor)
org.eclipse.ui.part.EditorPart#doSave(org.eclipse.core.runtime.IProgressMonitor)public void doSaveAs()
org.eclipse.ui.part.EditorPart#doSaveAs()public boolean isDirty()
org.eclipse.ui.part.EditorPart#isDirty()public boolean isSaveAsAllowed()
org.eclipse.ui.part.EditorPart#isSaveAsAllowed()public void commandStackChanged(java.util.EventObject event)
org.eclipse.gef.ui.parts.GraphicalEditor#commandStackChanged(java.util.EventObject)
public void selectionChanged(IWorkbenchPart part,
ISelection selection)
org.eclipse.ui.ISelectionListener#selectionChanged(org.eclipse.ui.IWorkbenchPart, org.eclipse.jface.viewers.ISelection)public void createPartControl(Composite parent)
org.eclipse.ui.IWorkbenchPart#createPartControl(org.eclipse.swt.widgets.Composite)public void exportContextMenu(IMenuManager manager)
public FeatureDiagramModel getContents()
public MetaModelEditorOutlinePage getOutlinePage()
public java.lang.Object getAdapter(java.lang.Class type)
org.eclipse.core.runtime.IAdaptable#getAdapter(java.lang.Class)public GraphicalViewer getViewer()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||