Abstract implementation for all aXBench views. This implementation provides the standard hooks for the synchronization between editors and views. More...
Public Member Functions | |
AbstractAXLView (AXLMultiPageEditor editor) | |
TreeViewerColumn | buildUpToolTipAndIncludeForColumn (TreeColumn column) |
void | collectEditorInfos (Object objCaller) |
collects the info about the actual opened editor. needed to save the expanded tree into the linked hash map of the superclass | |
void | collectExpandedElements (boolean actual) throws Exception |
collects the visibleexpandedelements and expandedtreepaths from the old model. | |
void | collectSelectedElement () |
collects the selected element. only one node can be selected, a StructureNode or an IAXLangElementNode | |
void | createPartControl (Composite theParent) |
Creates the part control of the view. | |
void | dispose () |
Cleans up the memory. | |
void | doEditorSelection (IAXLangElement element) |
this method realizes the selection of an iaxlangelement if its inside the file. | |
void | elementChanged (Object objCaller) |
Reacts on a change of the session element. | |
IFile | getActualeditedfile () |
AXLContentProvider | getContentProvider () |
AXLLabelProvider | getLabelProvider () |
AXLMultiPageEditor | getMymultipageeditor () |
IFile | getOldeditedfile () |
TreeViewer | getTreeViewer () |
Returns the tree viewer of the view. | |
void | handleCall (Object objCaller, String content) |
void | handleUpdate (boolean collect) |
handles the update. | |
void | hookContextMenu () |
Prepares the view for a context menu. | |
void | hookPageSelection () |
Hooks this view to the page selections. | |
boolean | isFirstbuild () |
boolean | isReactonchange () |
IAXLangElement | provideIAXLangElementFromSelection (IStructuredSelection selection, boolean editorSelection) |
this method realizes the mapping from a selection to the iaxlangelement. | |
void | refreshSelection () |
refresh the selections. needed because of the stackoverflow if the TreeViewer handles this action | |
void | refreshTreeView () |
refresh the View for the new model (expands the tree). to use this methods below, it was necessary to separate the IAXLangElement from the view/tree/outline | |
void | selectionChanged (SelectionChangedEvent theChangeEvent) |
void | setActualeditedfile (IFile actualeditedfile) |
void | setFocus () |
Sets focus to view's control. | |
void | setInput (Object theInput) |
this method should be implemented by the subclass again tin influence the input! See e.g. InstanceView or SimulationTraceView. | |
void | setMymultipageeditor (AXLMultiPageEditor mymultipageeditor) |
void | setOldeditedfile (IFile oldeditedfile) |
void | setReactonchange (boolean reactonchange) |
void | setSpecialUpdateAction (Object specialUpdateAction) |
void | setTreeViewer (TreeViewer treeviewer) |
Protected Member Functions | |
void | hookSessionListener () |
to notice a possible save inside the axl lang editor | |
void | pageSelectionChanged (IWorkbenchPart thePart, ISelection theSelection) |
Reacts on changes of page selections. | |
Package Attributes | |
AXLMultiPageEditor | mymultipageeditor = null |
the multipageeditor which belongs to this view | |
Private Member Functions | |
boolean | checkIncludedPath () |
void | collectViewElementInfos (boolean collect) |
Private Attributes | |
IFile | actualeditedfile = null |
the actual opened editor file | |
boolean | currentElementUpdateFlag = false |
this flag handles the update, after the currentElement was set to null | |
LinkedHashMap< IFile, TreePath[]> | expandedtreepaths = null |
saves the treepaths towards the editorinstancename | |
boolean | firstbuild = false |
TreeViewer | jfTreeViewer = null |
the tree viewer | |
Object | lastaction = "" |
IFile | oldeditedfile = null |
the last opened editor file | |
boolean | reactonchange = false |
to save the state that the tab was changed | |
LinkedHashMap< IFile, Object > | selectedNode = null |
map to save the selected tree item path | |
Object | specialUpdateAction = "" |
ISelectionListener | thePageSelectionListener = null |
listener for page changes |
Abstract implementation for all aXBench views. This implementation provides the standard hooks for the synchronization between editors and views.
de.fraunhofer.isst.axbench.views.AbstractAXLView.AbstractAXLView | ( | AXLMultiPageEditor | editor | ) |
the constructor
TreeViewerColumn de.fraunhofer.isst.axbench.views.AbstractAXLView.buildUpToolTipAndIncludeForColumn | ( | TreeColumn | column | ) |
boolean de.fraunhofer.isst.axbench.views.AbstractAXLView.checkIncludedPath | ( | ) | [private] |
void de.fraunhofer.isst.axbench.views.AbstractAXLView.collectEditorInfos | ( | Object | objCaller | ) |
collects the info about the actual opened editor. needed to save the expanded tree into the linked hash map of the superclass
objCaller |
void de.fraunhofer.isst.axbench.views.AbstractAXLView.collectExpandedElements | ( | boolean | actual | ) | throws Exception |
collects the visibleexpandedelements and expandedtreepaths from the old model.
actual | - needed to know if a save occurs->the editor doesn't changed |
Exception | (NullPointerExpection occurs if eclipse was closed immediately) |
void de.fraunhofer.isst.axbench.views.AbstractAXLView.collectSelectedElement | ( | ) |
collects the selected element. only one node can be selected, a StructureNode or an IAXLangElementNode
void de.fraunhofer.isst.axbench.views.AbstractAXLView.collectViewElementInfos | ( | boolean | collect | ) | [private] |
void de.fraunhofer.isst.axbench.views.AbstractAXLView.createPartControl | ( | Composite | theParent | ) |
Creates the part control of the view.
theParent | parent composite |
Reimplemented in de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.EditableView, de.fraunhofer.isst.axbench.views.instanceview.InstanceView, de.fraunhofer.isst.axbench.views.maturity.MaturityLevelView, de.fraunhofer.isst.axbench.views.metrics.AxlMetricsStructureCounts_View, de.fraunhofer.isst.axbench.views.metrics.AxlMetricsVariabilityInfluence_View, de.fraunhofer.isst.axbench.views.metrics.AxlVarSolverAbstract_View, and de.fraunhofer.isst.axbench.views.simulationtraceview.SimulationTraceView.
void de.fraunhofer.isst.axbench.views.AbstractAXLView.dispose | ( | ) |
Cleans up the memory.
void de.fraunhofer.isst.axbench.views.AbstractAXLView.doEditorSelection | ( | IAXLangElement | element | ) |
this method realizes the selection of an iaxlangelement if its inside the file.
element |
void de.fraunhofer.isst.axbench.views.AbstractAXLView.elementChanged | ( | Object | objCaller | ) |
Reacts on a change of the session element.
objCaller | calling object |
Implements de.fraunhofer.isst.axbench.api.ISessionListener.
Reimplemented in de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.EditableView.
IFile de.fraunhofer.isst.axbench.views.AbstractAXLView.getActualeditedfile | ( | ) |
AXLContentProvider de.fraunhofer.isst.axbench.views.AbstractAXLView.getContentProvider | ( | ) |
AXLLabelProvider de.fraunhofer.isst.axbench.views.AbstractAXLView.getLabelProvider | ( | ) |
AXLMultiPageEditor de.fraunhofer.isst.axbench.views.AbstractAXLView.getMymultipageeditor | ( | ) |
IFile de.fraunhofer.isst.axbench.views.AbstractAXLView.getOldeditedfile | ( | ) |
TreeViewer de.fraunhofer.isst.axbench.views.AbstractAXLView.getTreeViewer | ( | ) |
Returns the tree viewer of the view.
null | if none is used |
void de.fraunhofer.isst.axbench.views.AbstractAXLView.handleCall | ( | Object | objCaller, | |
String | content | |||
) |
Implements de.fraunhofer.isst.axbench.api.ISessionListener.
void de.fraunhofer.isst.axbench.views.AbstractAXLView.handleUpdate | ( | boolean | collect | ) |
handles the update.
void de.fraunhofer.isst.axbench.views.AbstractAXLView.hookContextMenu | ( | ) |
Prepares the view for a context menu.
Reimplemented in de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.EditableView.
void de.fraunhofer.isst.axbench.views.AbstractAXLView.hookPageSelection | ( | ) |
Hooks this view to the page selections.
Reimplemented in de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.EditableView.
void de.fraunhofer.isst.axbench.views.AbstractAXLView.hookSessionListener | ( | ) | [protected] |
to notice a possible save inside the axl lang editor
boolean de.fraunhofer.isst.axbench.views.AbstractAXLView.isFirstbuild | ( | ) |
boolean de.fraunhofer.isst.axbench.views.AbstractAXLView.isReactonchange | ( | ) |
void de.fraunhofer.isst.axbench.views.AbstractAXLView.pageSelectionChanged | ( | IWorkbenchPart | thePart, | |
ISelection | theSelection | |||
) | [protected] |
Reacts on changes of page selections.
thePart | workbench part | |
theSelection | selection |
IAXLangElement de.fraunhofer.isst.axbench.views.AbstractAXLView.provideIAXLangElementFromSelection | ( | IStructuredSelection | selection, | |
boolean | editorSelection | |||
) |
this method realizes the mapping from a selection to the iaxlangelement.
selection |
Reimplemented in de.fraunhofer.isst.axbench.views.maturity.MaturityLevelView, de.fraunhofer.isst.axbench.views.metrics.AxlMetricsStructureCounts_View, de.fraunhofer.isst.axbench.views.metrics.AxlMetricsVariabilityInfluence_View, and de.fraunhofer.isst.axbench.views.metrics.AxlVarSolverAbstract_View.
void de.fraunhofer.isst.axbench.views.AbstractAXLView.refreshSelection | ( | ) |
refresh the selections. needed because of the stackoverflow if the TreeViewer handles this action
void de.fraunhofer.isst.axbench.views.AbstractAXLView.refreshTreeView | ( | ) |
refresh the View for the new model (expands the tree). to use this methods below, it was necessary to separate the IAXLangElement from the view/tree/outline
void de.fraunhofer.isst.axbench.views.AbstractAXLView.selectionChanged | ( | SelectionChangedEvent | theChangeEvent | ) |
Reimplemented in de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.EditableView.
void de.fraunhofer.isst.axbench.views.AbstractAXLView.setActualeditedfile | ( | IFile | actualeditedfile | ) |
actualeditedfile | the actualeditedfile to set |
void de.fraunhofer.isst.axbench.views.AbstractAXLView.setFocus | ( | ) |
Sets focus to view's control.
void de.fraunhofer.isst.axbench.views.AbstractAXLView.setInput | ( | Object | theInput | ) |
this method should be implemented by the subclass again tin influence the input! See e.g. InstanceView or SimulationTraceView.
theInput |
Reimplemented in de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.EditableView, de.fraunhofer.isst.axbench.views.instanceview.InstanceView, de.fraunhofer.isst.axbench.views.maturity.MaturityLevelView, de.fraunhofer.isst.axbench.views.metrics.AxlMetricsStructureCounts_View, de.fraunhofer.isst.axbench.views.metrics.AxlMetricsVariabilityInfluence_View, de.fraunhofer.isst.axbench.views.metrics.AxlVarSolverAbstract_View, and de.fraunhofer.isst.axbench.views.simulationtraceview.SimulationTraceView.
void de.fraunhofer.isst.axbench.views.AbstractAXLView.setMymultipageeditor | ( | AXLMultiPageEditor | mymultipageeditor | ) |
themymultipageeditor | the mymultipageeditor to set |
void de.fraunhofer.isst.axbench.views.AbstractAXLView.setOldeditedfile | ( | IFile | oldeditedfile | ) |
oldeditedfile | the oldeditedfile to set |
void de.fraunhofer.isst.axbench.views.AbstractAXLView.setReactonchange | ( | boolean | reactonchange | ) |
reactonchange | the reactonchange to set |
void de.fraunhofer.isst.axbench.views.AbstractAXLView.setSpecialUpdateAction | ( | Object | specialUpdateAction | ) |
void de.fraunhofer.isst.axbench.views.AbstractAXLView.setTreeViewer | ( | TreeViewer | treeviewer | ) |
IFile de.fraunhofer.isst.axbench.views.AbstractAXLView.actualeditedfile = null [private] |
the actual opened editor file
boolean de.fraunhofer.isst.axbench.views.AbstractAXLView.currentElementUpdateFlag = false [private] |
this flag handles the update, after the currentElement was set to null
LinkedHashMap<IFile, TreePath[]> de.fraunhofer.isst.axbench.views.AbstractAXLView.expandedtreepaths = null [private] |
saves the treepaths towards the editorinstancename
boolean de.fraunhofer.isst.axbench.views.AbstractAXLView.firstbuild = false [private] |
TreeViewer de.fraunhofer.isst.axbench.views.AbstractAXLView.jfTreeViewer = null [private] |
the tree viewer
Object de.fraunhofer.isst.axbench.views.AbstractAXLView.lastaction = "" [private] |
AXLMultiPageEditor de.fraunhofer.isst.axbench.views.AbstractAXLView.mymultipageeditor = null [package] |
the multipageeditor which belongs to this view
IFile de.fraunhofer.isst.axbench.views.AbstractAXLView.oldeditedfile = null [private] |
the last opened editor file
boolean de.fraunhofer.isst.axbench.views.AbstractAXLView.reactonchange = false [private] |
to save the state that the tab was changed
LinkedHashMap<IFile, Object> de.fraunhofer.isst.axbench.views.AbstractAXLView.selectedNode = null [private] |
map to save the selected tree item path
Object de.fraunhofer.isst.axbench.views.AbstractAXLView.specialUpdateAction = "" [private] |
ISelectionListener de.fraunhofer.isst.axbench.views.AbstractAXLView.thePageSelectionListener = null [private] |
listener for page changes