|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.ui.part.WorkbenchPart
org.eclipse.ui.part.EditorPart
org.eclipse.gef.ui.parts.GraphicalEditor
org.eclipse.gef.ui.parts.GraphicalEditorWithPalette
be.ac.vub.cocompose.eclipse.CoComposeEditor
Eclipse editor for CoCompose models.
Field Summary | |
protected static int |
DEFAULT_PALETTE_SIZE
|
protected static String |
PALETTE_SIZE
|
Fields inherited from interface org.eclipse.ui.IEditorPart |
PROP_DIRTY, PROP_INPUT |
Fields inherited from interface org.eclipse.ui.IWorkbenchPart |
PROP_TITLE |
Constructor Summary | |
CoComposeEditor()
Creates a CoComposeEditor. |
Method Summary | |
protected void |
closeEditor(boolean save)
Closes this editor. |
void |
commandStackChanged(EventObject event)
|
protected void |
configureGraphicalViewer()
|
protected void |
configurePaletteViewer()
|
protected void |
createActions()
|
void |
dispose()
Frees shared model. |
void |
doSave(IProgressMonitor monitor)
|
void |
doSaveAs()
|
ActionRegistry |
getActionRegistry()
|
Object |
getAdapter(Class type)
Extended to return ZoomManager on request. |
KeyHandler |
getCommonKeyHandler()
Returns the KeyHandler with common bindings for both the Outline and Graphical Views. |
DefaultEditDomain |
getEditDomain()
|
GraphicalViewer |
getGraphicalViewer()
|
protected int |
getInitialPaletteSize()
|
Model |
getModel()
Gets the CoCompose model that is edited. |
protected PaletteRoot |
getPaletteRoot()
|
SelectionSynchronizer |
getSelectionSynchronizer()
|
String |
getUri()
Returns the URI of the file being edited. |
void |
gotoMarker(IMarker marker)
|
protected void |
handlePaletteResized(int newSize)
|
protected void |
initializeGraphicalViewer()
|
protected void |
initializePaletteViewer()
|
boolean |
isDirty()
|
boolean |
isSaveAsAllowed()
|
boolean |
isSaveOnCloseNeeded()
|
boolean |
isSavePreviouslyNeeded()
Returns whether a save was needed before - isDirty(). |
protected void |
performSave(IProgressMonitor monitor)
Executes a Save of the model. |
protected boolean |
performSaveAs()
Executes a Save As. |
void |
setInput(IEditorInput input)
|
void |
setModel(Model model)
Sets the CoCompose model that is edited. |
void |
setSavePreviouslyNeeded(boolean savePrevouslyNeeded)
Sets whether a save was needed before - isDirty(). |
protected void |
setSite(IWorkbenchPartSite site)
|
protected void |
superSetInput(IEditorInput input)
Invokes super.setInput() and handles adding and removing the ResourceListener. |
Methods inherited from class org.eclipse.gef.ui.parts.GraphicalEditorWithPalette |
createPaletteViewer, createPartControl, getPaletteViewer, hookPaletteViewer, setPaletteViewer |
Methods inherited from class org.eclipse.gef.ui.parts.GraphicalEditor |
createGraphicalViewer, firePropertyChange, getCommandStack, getPropertyActions, getSelectionActions, getStackActions, hookGraphicalViewer, init, initializeActionRegistry, selectionChanged, setActionRegistry, setEditDomain, setFocus, setGraphicalViewer, updateActions |
Methods inherited from class org.eclipse.ui.part.EditorPart |
getEditorInput, getEditorSite, getTitleToolTip |
Methods inherited from class org.eclipse.ui.part.WorkbenchPart |
addPropertyListener, getConfigurationElement, getDefaultImage, getSite, getTitle, getTitleImage, removePropertyListener, setInitializationData, setTitle, setTitleImage, setTitleToolTip |
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 |
Field Detail |
protected static final String PALETTE_SIZE
protected static final int DEFAULT_PALETTE_SIZE
Constructor Detail |
public CoComposeEditor()
Method Detail |
public Model getModel()
public void setModel(Model model)
model
- - the model.protected PaletteRoot getPaletteRoot()
GraphicalEditorWithPalette.getPaletteRoot()
public void setInput(IEditorInput input)
EditorPart.setInput(org.eclipse.ui.IEditorInput)
public void doSave(IProgressMonitor monitor)
ISaveablePart.doSave(org.eclipse.core.runtime.IProgressMonitor)
public void doSaveAs()
ISaveablePart.doSaveAs()
public void gotoMarker(IMarker marker)
IEditorPart.gotoMarker(org.eclipse.core.resources.IMarker)
public boolean isDirty()
ISaveablePart.isDirty()
public boolean isSaveOnCloseNeeded()
ISaveablePart.isSaveOnCloseNeeded()
public boolean isSaveAsAllowed()
ISaveablePart.isSaveAsAllowed()
public void commandStackChanged(EventObject event)
CommandStackListener.commandStackChanged(java.util.EventObject)
protected void configurePaletteViewer()
GraphicalEditorWithPalette.configurePaletteViewer()
protected void configureGraphicalViewer()
GraphicalEditor.configureGraphicalViewer()
protected void initializeGraphicalViewer()
GraphicalEditor.initializeGraphicalViewer()
protected void initializePaletteViewer()
GraphicalEditorWithPalette.initializePaletteViewer()
protected void createActions()
GraphicalEditor.createActions()
protected int getInitialPaletteSize()
GraphicalEditorWithPalette.getInitialPaletteSize()
protected void handlePaletteResized(int newSize)
GraphicalEditorWithPalette.handlePaletteResized(int)
public Object getAdapter(Class type)
IAdaptable.getAdapter(java.lang.Class)
public ActionRegistry getActionRegistry()
GraphicalEditor.getActionRegistry()
public DefaultEditDomain getEditDomain()
GraphicalEditor.getEditDomain()
public GraphicalViewer getGraphicalViewer()
GraphicalEditor.getGraphicalViewer()
public SelectionSynchronizer getSelectionSynchronizer()
GraphicalEditor.getSelectionSynchronizer()
public KeyHandler getCommonKeyHandler()
examples.logicdesigner.LogicEditor
protected boolean performSaveAs()
examples.logicdesigner.LogicEditor
protected void performSave(IProgressMonitor monitor) throws ClassNotFoundException, IllegalAccessException, InstantiationException, IOException, CoreException, ModelElementException
monitor
- the progress monitor.
ClassNotFoundException
- if the ModelWriter could not be retrieved from the settings.
IllegalAccessException
- if the ModelWriter class could not be accessed.
InstantiationException
- if the ModelWriter class could not be instantiated.
IOException
- if there was a file I/O error.
CoreException
- if there was a file I/O error.
ModelElementException
- if there was an error building the file content.protected void closeEditor(boolean save)
save
- saves model if true.examples.logicdesigner.LogicEditor
protected void superSetInput(IEditorInput input)
input
- the editor input.examples.logicdesigner.LogicEditor
protected void setSite(IWorkbenchPartSite site)
WorkbenchPart.setSite(org.eclipse.ui.IWorkbenchPartSite)
public boolean isSavePreviouslyNeeded()
public void setSavePreviouslyNeeded(boolean savePrevouslyNeeded)
savePrevouslyNeeded
- public String getUri()
public void dispose()
IWorkbenchPart.dispose()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |