aXLang source code editor outline view. one instance for every multipageeditor More...
Public Member Functions | |
AXLEditorOutlinePage (ITextEditor theEditor, AXLMultiPageEditor editor) | |
Constructor, sets the assoziated text editor. | |
void | collectExpandedElements () throws SWTException |
collects the visible expanded tree paths from the old model. | |
void | createControl (Composite theParent) |
Creates the control that displays the outline. | |
void | dispose () |
void | enableOverviewPage (boolean enable) |
int | getActualPage () |
AXLEditor | getAxlEditor () |
AXLOutlineContentProvider | getMyContentProvider () |
AXLOutlineLabelProvider | getMyLabelProvider () |
AXLMultiPageEditor | getMymultipageeditor () |
TreeViewer | getTreeViewer () |
void | handleError (boolean iserror) |
handles to show the error at the topnode. needed to prevent expensive new draws. | |
void | refreshOutlineViewer () |
void | refreshTreeView () |
refresh the View for the new model (expands the tree). to use this methods, it was necessary to separate the IAXLangElement from the view/tree/outline. | |
void | selectionChanged (SelectionChangedEvent theChangeEvent) |
Reacts on a change of the selection. | |
void | switchPage (int id) |
void | update () |
Update the outline. | |
Static Public Attributes | |
static final int | ID_OUTLINE = 0 |
static final int | ID_OVERVIEW = 1 |
Protected Member Functions | |
void | configureOutlineViewer () |
void | initializeOverview () |
void | showPage (int id) |
Protected Attributes | |
AXLMultiPageEditor | mymultipageeditor = null |
Private Member Functions | |
void | checkTheErrorPath () |
should mark the whole tree to the node where the error occurs TODO. | |
void | handleCorrectSelection (IAXLangElement axlElement, IDocument theDocument) throws BadLocationException |
corrects the selection, because of the wrong tab calculating. | |
void | handleSelection (IAXLangElement axlElement) |
checks if the element is in this file (include files...). | |
void | hookContextMenu () |
Prepares the view for a context menu. | |
Private Attributes | |
Canvas | actualdiagramoverview = null |
LightweightSystem | lws = null |
AXLOutlineContentProvider | myContentProvider |
AXLEditor | myeditor = null |
AXLOutlineLabelProvider | myLabelProvider |
TreePath[] | oldtreepath = null |
saves the expanded tree before the update occurs | |
PageBook | pageBook = null |
IAction | showOutlineAction |
IAction | showOverviewAction = null |
ScrollableThumbnail | thumbnail = null |
aXLang source code editor outline view. one instance for every multipageeditor
de.fraunhofer.isst.axbench.views.outline.AXLEditorOutlinePage.AXLEditorOutlinePage | ( | ITextEditor | theEditor, | |
AXLMultiPageEditor | editor | |||
) |
Constructor, sets the assoziated text editor.
theEditor | assoziated text editor |
void de.fraunhofer.isst.axbench.views.outline.AXLEditorOutlinePage.checkTheErrorPath | ( | ) | [private] |
should mark the whole tree to the node where the error occurs TODO.
void de.fraunhofer.isst.axbench.views.outline.AXLEditorOutlinePage.collectExpandedElements | ( | ) | throws SWTException |
collects the visible expanded tree paths from the old model.
SWTException |
void de.fraunhofer.isst.axbench.views.outline.AXLEditorOutlinePage.configureOutlineViewer | ( | ) | [protected] |
void de.fraunhofer.isst.axbench.views.outline.AXLEditorOutlinePage.createControl | ( | Composite | theParent | ) |
Creates the control that displays the outline.
theParent | parent gui component |
void de.fraunhofer.isst.axbench.views.outline.AXLEditorOutlinePage.dispose | ( | ) |
void de.fraunhofer.isst.axbench.views.outline.AXLEditorOutlinePage.enableOverviewPage | ( | boolean | enable | ) |
int de.fraunhofer.isst.axbench.views.outline.AXLEditorOutlinePage.getActualPage | ( | ) |
AXLEditor de.fraunhofer.isst.axbench.views.outline.AXLEditorOutlinePage.getAxlEditor | ( | ) |
AXLOutlineContentProvider de.fraunhofer.isst.axbench.views.outline.AXLEditorOutlinePage.getMyContentProvider | ( | ) |
AXLOutlineLabelProvider de.fraunhofer.isst.axbench.views.outline.AXLEditorOutlinePage.getMyLabelProvider | ( | ) |
AXLMultiPageEditor de.fraunhofer.isst.axbench.views.outline.AXLEditorOutlinePage.getMymultipageeditor | ( | ) |
TreeViewer de.fraunhofer.isst.axbench.views.outline.AXLEditorOutlinePage.getTreeViewer | ( | ) |
Returns this page's tree viewer.
null
if createControl
has not been called yet Implements de.fraunhofer.isst.axbench.views.IAXLView.
void de.fraunhofer.isst.axbench.views.outline.AXLEditorOutlinePage.handleCorrectSelection | ( | IAXLangElement | axlElement, | |
IDocument | theDocument | |||
) | throws BadLocationException [private] |
corrects the selection, because of the wrong tab calculating.
axlElement | ||
theDocument |
BadLocationException |
void de.fraunhofer.isst.axbench.views.outline.AXLEditorOutlinePage.handleError | ( | boolean | iserror | ) |
handles to show the error at the topnode. needed to prevent expensive new draws.
iserror |
void de.fraunhofer.isst.axbench.views.outline.AXLEditorOutlinePage.handleSelection | ( | IAXLangElement | axlElement | ) | [private] |
checks if the element is in this file (include files...).
axlElement |
void de.fraunhofer.isst.axbench.views.outline.AXLEditorOutlinePage.hookContextMenu | ( | ) | [private] |
Prepares the view for a context menu.
void de.fraunhofer.isst.axbench.views.outline.AXLEditorOutlinePage.initializeOverview | ( | ) | [protected] |
void de.fraunhofer.isst.axbench.views.outline.AXLEditorOutlinePage.refreshOutlineViewer | ( | ) |
void de.fraunhofer.isst.axbench.views.outline.AXLEditorOutlinePage.refreshTreeView | ( | ) |
refresh the View for the new model (expands the tree). to use this methods, it was necessary to separate the IAXLangElement from the view/tree/outline.
void de.fraunhofer.isst.axbench.views.outline.AXLEditorOutlinePage.selectionChanged | ( | SelectionChangedEvent | theChangeEvent | ) |
Reacts on a change of the selection.
theChangeEvent | change event |
void de.fraunhofer.isst.axbench.views.outline.AXLEditorOutlinePage.showPage | ( | int | id | ) | [protected] |
void de.fraunhofer.isst.axbench.views.outline.AXLEditorOutlinePage.switchPage | ( | int | id | ) |
void de.fraunhofer.isst.axbench.views.outline.AXLEditorOutlinePage.update | ( | ) |
Update the outline.
Canvas de.fraunhofer.isst.axbench.views.outline.AXLEditorOutlinePage.actualdiagramoverview = null [private] |
final int de.fraunhofer.isst.axbench.views.outline.AXLEditorOutlinePage.ID_OUTLINE = 0 [static] |
final int de.fraunhofer.isst.axbench.views.outline.AXLEditorOutlinePage.ID_OVERVIEW = 1 [static] |
LightweightSystem de.fraunhofer.isst.axbench.views.outline.AXLEditorOutlinePage.lws = null [private] |
AXLOutlineContentProvider de.fraunhofer.isst.axbench.views.outline.AXLEditorOutlinePage.myContentProvider [private] |
AXLOutlineLabelProvider de.fraunhofer.isst.axbench.views.outline.AXLEditorOutlinePage.myLabelProvider [private] |
AXLMultiPageEditor de.fraunhofer.isst.axbench.views.outline.AXLEditorOutlinePage.mymultipageeditor = null [protected] |
TreePath [] de.fraunhofer.isst.axbench.views.outline.AXLEditorOutlinePage.oldtreepath = null [private] |
saves the expanded tree before the update occurs
PageBook de.fraunhofer.isst.axbench.views.outline.AXLEditorOutlinePage.pageBook = null [private] |
IAction de.fraunhofer.isst.axbench.views.outline.AXLEditorOutlinePage.showOverviewAction = null [private] |
ScrollableThumbnail de.fraunhofer.isst.axbench.views.outline.AXLEditorOutlinePage.thumbnail = null [private] |