Classes | Public Member Functions | Static Public Attributes | Protected Member Functions | Package Attributes | Private Attributes

de.fraunhofer.isst.axbench.editors.axlmultipage.diagrams.editors.DiagramEditor Class Reference

this abstract class realize the basics for the axbench diagram editors. The zest plugin is integrated inside an editor part with a palette. The usage of Zest or direct GEF is the response of the subclasses. More...

List of all members.

Classes

class  CustomPalettePage
class  ResourceTracker

Public Member Functions

boolean adaptActualToolBarZoom ()
void adaptNewZoom (String z, AXBenchZoomContributionItem who)
 this method realizes the adaption of the combo zoom inside the toolbar.
void commandStackChanged (EventObject event)
void createLayout ()
void createPartControl (Composite parent)
 DiagramEditor (AXLDiagramMultiPage diagrammultipage)
void dispose ()
void doSave (IProgressMonitor monitor)
void doSaveAs ()
IAXLangElement getActualAXBenchModel ()
Object getAdapter (Class type)
AXLDiagramMultiPage getMyMultiPage ()
AXBenchGraphViewer getViewer ()
AbstractZoomableViewer getZoomableViewer ()
void init (IEditorSite site, IEditorInput input) throws PartInitException
boolean isDirty ()
boolean isSaveAsAllowed ()
void selectionChanged (IWorkbenchPart part, ISelection selection)
void setFocus ()

Static Public Attributes

static AXBenchZoomContributionItem toolbarZoomContributionViewItem = null

Protected Member Functions

abstract void addAdditionalMenus (MenuManager manager)
void buildUpToolBar ()
void closeEditor (boolean save)
void createActions ()
CustomPalettePage createPalettePage ()
PaletteViewerProvider createPaletteViewerProvider ()
void firePropertyChange (int property)
ActionRegistry getActionRegistry ()
CommandStack getCommandStack ()
DefaultEditDomain getEditDomain ()
FlyoutPreferences getPalettePreferences ()
PaletteRoot getPaletteRoot ()
final PaletteViewerProvider getPaletteViewerProvider ()
List< String > getPropertyActions ()
List< String > getSelectionActions ()
List< String > getStackActions ()
void hookMouseScrollListener ()
void hookSelectionListener ()
void hookZoom ()
void initializeActionRegistry ()
void superSetInput (IEditorInput input)
void updateActions (List actionIds)

Package Attributes

boolean ctrlisactiv = false

Private Attributes

ActionRegistry actionRegistry = null
IAXLangElement actualAXBenchModel = null
DefaultEditDomain editDomain = null
boolean editorSaving = false
AXLDiagramMultiPage myMultiPage = null
PaletteRoot palette = null
List< String > propertyActions = null
PaletteViewerProvider provider = null
ResourceTracker resourceListener = null
List< String > selectionActions = null
FlyoutPaletteComposite splitter = null
List< String > stackActions = null
AXBenchGraphViewer viewer = null

Detailed Description

this abstract class realize the basics for the axbench diagram editors. The zest plugin is integrated inside an editor part with a palette. The usage of Zest or direct GEF is the response of the subclasses.

Author:
skaegebein
Version:
0.9.0
Since:
0.9.0

Constructor & Destructor Documentation

de.fraunhofer.isst.axbench.editors.axlmultipage.diagrams.editors.DiagramEditor.DiagramEditor ( AXLDiagramMultiPage  diagrammultipage  ) 

the constructor

Parameters:
diagrammultipage 

Member Function Documentation

boolean de.fraunhofer.isst.axbench.editors.axlmultipage.diagrams.editors.DiagramEditor.adaptActualToolBarZoom (  ) 
void de.fraunhofer.isst.axbench.editors.axlmultipage.diagrams.editors.DiagramEditor.adaptNewZoom ( String  z,
AXBenchZoomContributionItem  who 
)

this method realizes the adaption of the combo zoom inside the toolbar.

Parameters:
z 
who 
abstract void de.fraunhofer.isst.axbench.editors.axlmultipage.diagrams.editors.DiagramEditor.addAdditionalMenus ( MenuManager  manager  )  [protected, pure virtual]
void de.fraunhofer.isst.axbench.editors.axlmultipage.diagrams.editors.DiagramEditor.buildUpToolBar (  )  [protected]
void de.fraunhofer.isst.axbench.editors.axlmultipage.diagrams.editors.DiagramEditor.closeEditor ( boolean  save  )  [protected]
void de.fraunhofer.isst.axbench.editors.axlmultipage.diagrams.editors.DiagramEditor.commandStackChanged ( EventObject  event  ) 
void de.fraunhofer.isst.axbench.editors.axlmultipage.diagrams.editors.DiagramEditor.createActions (  )  [protected]

Creates actions for this editor. Subclasses should override this method to create and register actions with the ActionRegistry.

void de.fraunhofer.isst.axbench.editors.axlmultipage.diagrams.editors.DiagramEditor.createLayout (  ) 
CustomPalettePage de.fraunhofer.isst.axbench.editors.axlmultipage.diagrams.editors.DiagramEditor.createPalettePage (  )  [protected]
Returns:
a newly-created CustomPalettePage
PaletteViewerProvider de.fraunhofer.isst.axbench.editors.axlmultipage.diagrams.editors.DiagramEditor.createPaletteViewerProvider (  )  [protected]

Creates a PaletteViewerProvider that will be used to create palettes for the view and the flyout.

Returns:
the palette provider
void de.fraunhofer.isst.axbench.editors.axlmultipage.diagrams.editors.DiagramEditor.createPartControl ( Composite  parent  ) 
void de.fraunhofer.isst.axbench.editors.axlmultipage.diagrams.editors.DiagramEditor.dispose (  ) 
void de.fraunhofer.isst.axbench.editors.axlmultipage.diagrams.editors.DiagramEditor.doSave ( IProgressMonitor  monitor  ) 
void de.fraunhofer.isst.axbench.editors.axlmultipage.diagrams.editors.DiagramEditor.doSaveAs (  ) 
void de.fraunhofer.isst.axbench.editors.axlmultipage.diagrams.editors.DiagramEditor.firePropertyChange ( int  property  )  [protected]
See also:
org.eclipse.ui.part.WorkbenchPart.firePropertyChange(int)
ActionRegistry de.fraunhofer.isst.axbench.editors.axlmultipage.diagrams.editors.DiagramEditor.getActionRegistry (  )  [protected]

Lazily creates and returns the action registry.

Returns:
the action registry
IAXLangElement de.fraunhofer.isst.axbench.editors.axlmultipage.diagrams.editors.DiagramEditor.getActualAXBenchModel (  ) 
Object de.fraunhofer.isst.axbench.editors.axlmultipage.diagrams.editors.DiagramEditor.getAdapter ( Class  type  ) 
CommandStack de.fraunhofer.isst.axbench.editors.axlmultipage.diagrams.editors.DiagramEditor.getCommandStack (  )  [protected]

Returns the command stack.

Returns:
the command stack
DefaultEditDomain de.fraunhofer.isst.axbench.editors.axlmultipage.diagrams.editors.DiagramEditor.getEditDomain (  )  [protected]

Returns the edit domain.

Returns:
the edit domain
AXLDiagramMultiPage de.fraunhofer.isst.axbench.editors.axlmultipage.diagrams.editors.DiagramEditor.getMyMultiPage (  ) 
FlyoutPreferences de.fraunhofer.isst.axbench.editors.axlmultipage.diagrams.editors.DiagramEditor.getPalettePreferences (  )  [protected]

By default, this method returns a FlyoutPreferences object that stores the flyout settings in the GEF plugin. Sub-classes may override.

Returns:
the FlyoutPreferences object used to save the flyout palette's preferences
PaletteRoot de.fraunhofer.isst.axbench.editors.axlmultipage.diagrams.editors.DiagramEditor.getPaletteRoot (  )  [protected]
final PaletteViewerProvider de.fraunhofer.isst.axbench.editors.axlmultipage.diagrams.editors.DiagramEditor.getPaletteViewerProvider (  )  [protected]
List<String> de.fraunhofer.isst.axbench.editors.axlmultipage.diagrams.editors.DiagramEditor.getPropertyActions (  )  [protected]

Returns the list of IActions dependant on property changes in the Editor. These actions should implement the UpdateAction interface so that they can be updated in response to property changes. An example is the "Save" action.

Returns:
the list of property-dependant actions
List<String> de.fraunhofer.isst.axbench.editors.axlmultipage.diagrams.editors.DiagramEditor.getSelectionActions (  )  [protected]

Returns the list of IDs of Actions that are dependant on changes in the workbench's ISelectionService. The associated Actions can be found in the action registry. Such actions should implement the UpdateAction interface so that they can be updated in response to selection changes.

See also:
updateActions(List)
Returns:
the list of selection-dependant action IDs
List<String> de.fraunhofer.isst.axbench.editors.axlmultipage.diagrams.editors.DiagramEditor.getStackActions (  )  [protected]

Returns the list of IDs of Actions that are dependant on the CommmandStack's state. The associated Actions can be found in the action registry. These actions should implement the UpdateAction interface so that they can be updated in response to command stack changes. An example is the "undo" action.

Returns:
the list of stack-dependant action IDs
AXBenchGraphViewer de.fraunhofer.isst.axbench.editors.axlmultipage.diagrams.editors.DiagramEditor.getViewer (  ) 
AbstractZoomableViewer de.fraunhofer.isst.axbench.editors.axlmultipage.diagrams.editors.DiagramEditor.getZoomableViewer (  ) 
void de.fraunhofer.isst.axbench.editors.axlmultipage.diagrams.editors.DiagramEditor.hookMouseScrollListener (  )  [protected]
void de.fraunhofer.isst.axbench.editors.axlmultipage.diagrams.editors.DiagramEditor.hookSelectionListener (  )  [protected]
void de.fraunhofer.isst.axbench.editors.axlmultipage.diagrams.editors.DiagramEditor.hookZoom (  )  [protected]
void de.fraunhofer.isst.axbench.editors.axlmultipage.diagrams.editors.DiagramEditor.init ( IEditorSite  site,
IEditorInput  input 
) throws PartInitException
void de.fraunhofer.isst.axbench.editors.axlmultipage.diagrams.editors.DiagramEditor.initializeActionRegistry (  )  [protected]

Initializes the ActionRegistry. This registry may be used by ActionBarContributors and/or ContextMenuProviders.

This method may be called on Editor creation, or lazily the first time getActionRegistry() is called.

boolean de.fraunhofer.isst.axbench.editors.axlmultipage.diagrams.editors.DiagramEditor.isDirty (  ) 
boolean de.fraunhofer.isst.axbench.editors.axlmultipage.diagrams.editors.DiagramEditor.isSaveAsAllowed (  ) 
void de.fraunhofer.isst.axbench.editors.axlmultipage.diagrams.editors.DiagramEditor.selectionChanged ( IWorkbenchPart  part,
ISelection  selection 
)
void de.fraunhofer.isst.axbench.editors.axlmultipage.diagrams.editors.DiagramEditor.setFocus (  ) 
void de.fraunhofer.isst.axbench.editors.axlmultipage.diagrams.editors.DiagramEditor.superSetInput ( IEditorInput  input  )  [protected]
void de.fraunhofer.isst.axbench.editors.axlmultipage.diagrams.editors.DiagramEditor.updateActions ( List  actionIds  )  [protected]

A convenience method for updating a set of actions defined by the given List of action IDs. The actions are found by looking up the ID in the action registry. If the corresponding action is an UpdateAction, it will have its update() method called.

Parameters:
actionIds the list of IDs to update

Member Data Documentation