Basic class for scope views: calling context and caller view. More...
Public Member Functions | |
int | getSelectedColumn () |
void | dispose () |
void | updateDisplay () |
Tell children to update the content with the new database Update the content of the tree view when a new experiment is loaded. | |
void | createPartControl (Composite aParent) |
Create the content of the view. | |
void | setInput (Database db, RootScope scope, boolean keepColumnStatus) |
Update the data input for Scope View, depending also on the scope. | |
void | initDatabase (Database db, RootScope scope, boolean keepColumnStatus) |
void | setViewTitle (String sName) |
Modify the title of the view. | |
void | setFocus () |
ScopeViewActions | getViewActions () |
ScopeTreeViewer | getTreeViewer () |
return the tree of this viewer (even though there's no experiment active) | |
Experiment | getExperiment () |
RootScope | getRootScope () |
Database | getDatabase () |
Static Public Attributes | |
static final String | ID = "edu.rice.cs.hpc.viewer.scope.ScopeView" |
Protected Member Functions | |
ScopeViewActions | createActions (Composite parent, CoolBar coolbar) |
The derived class has to implement this method to create its own actions For instance, caller view and cct view has the same actions but flat view may have additional actions (flattening . | |
CellLabelProvider | getLabelProvider () |
void | mouseDownEvent (Event event) |
void | createAdditionalContextMenu (IMenuManager mgr, Scope scope) |
AbstractContentProvider | getScopeContentProvider () |
void | updateDatabase (Experiment newDatabase) |
Tell children to update the content with the new database. | |
void | enableFilter (boolean isEnabled) |
--------------------------------------------- filter feature --------------------------------------------- | |
void | initTableColumns (boolean keepColumnStatus) |
Composite | createToolBarArea (Composite parent) |
Create the toolbar layout. | |
CoolBar | initToolbar (Composite toolbarArea) |
Create and Initialize coolbar, set the layout and return the coolbar. | |
Protected Attributes | |
ScopeTreeViewer | treeViewer |
Database | database |
RootScope | myRootScope |
ColumnViewerSorter | sorterTreeColumn |
ScopeViewActions | objViewActions |
CoolBar | objCoolbar |
bar composite for placing toolbar and tool items | |
Private Member Functions | |
int | getColumnMouseDown (Event event) |
Find which column the user has clicked. | |
Private Attributes | |
GraphMenu | graphMenu |
int | lastClickColumn = -1 |
Basic class for scope views: calling context and caller view.
Definition at line 25 of file ScopeView.java.
ScopeViewActions edu.rice.cs.hpc.viewer.scope.topdown.ScopeView.createActions | ( | Composite | parent, | |
CoolBar | coolbar | |||
) | [protected, virtual] |
The derived class has to implement this method to create its own actions For instance, caller view and cct view has the same actions but flat view may have additional actions (flattening .
..)
parent | ||
coolbar |
Implements edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.
Definition at line 43 of file ScopeView.java.
References edu.rice.cs.hpc.viewer.scope.topdown.ScopeView.graphMenu.
void edu.rice.cs.hpc.viewer.scope.topdown.ScopeView.createAdditionalContextMenu | ( | IMenuManager | mgr, | |
Scope | scope | |||
) | [protected, virtual] |
Implements edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.
Definition at line 81 of file ScopeView.java.
References edu.rice.cs.hpc.viewer.graph.GraphMenu.createAdditionalContextMenu(), edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.database, and edu.rice.cs.hpc.viewer.scope.topdown.ScopeView.graphMenu.
void edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.createPartControl | ( | Composite | aParent | ) | [inherited] |
Create the content of the view.
add listener when left button mouse is clicked On MAC it doesn't matter which button, but on Windows, we need to make sure !
Add Listener for change of selection so that every change will update the status of the toolbar buttons (able or disabled)
Definition at line 324 of file AbstractBaseScopeView.java.
References edu.rice.cs.hpc.viewer.scope.ScopeViewActions.checkNodeButtons(), edu.rice.cs.hpc.viewer.scope.ScopeViewActions.checkStates(), edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.createActions(), edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.createContextMenu(), edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.createToolBarArea(), edu.rice.cs.hpc.viewer.scope.ScopeViewActions.disableButtons(), edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.gc, edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.getLabelProvider(), edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.getScopeContentProvider(), edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.initToolbar(), edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.objCoolbar, edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.objViewActions, edu.rice.cs.hpc.viewer.scope.ScopeTreeViewer.refreshColumnTitle(), edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.sorterTreeColumn, and edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.treeViewer.
Composite edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.createToolBarArea | ( | Composite | parent | ) | [protected, inherited] |
Create the toolbar layout.
parent |
Definition at line 447 of file AbstractBaseScopeView.java.
Referenced by edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.createPartControl().
void edu.rice.cs.hpc.viewer.scope.BaseScopeView.dispose | ( | ) | [inherited] |
Reimplemented from edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.
Definition at line 32 of file BaseScopeView.java.
void edu.rice.cs.hpc.viewer.scope.BaseScopeView.enableFilter | ( | boolean | isEnabled | ) | [protected, virtual, inherited] |
--------------------------------------------- filter feature ---------------------------------------------
Implements edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.
Definition at line 46 of file BaseScopeView.java.
References edu.rice.cs.hpc.data.experiment.scope.RootScopeType.CallerTree, edu.rice.cs.hpc.data.experiment.scope.RootScopeType.CallingContextTree, edu.rice.cs.hpc.data.experiment.scope.RootScopeType.Flat, edu.rice.cs.hpc.data.experiment.scope.TreeNode.getChildAt(), edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.getExperiment(), edu.rice.cs.hpc.data.experiment.BaseExperiment.getRootScope(), edu.rice.cs.hpc.data.experiment.scope.RootScope.getType(), edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.myRootScope, edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.treeViewer, and edu.rice.cs.hpc.viewer.scope.BaseScopeView.updateDisplay().
int edu.rice.cs.hpc.viewer.scope.topdown.ScopeView.getColumnMouseDown | ( | Event | event | ) | [private] |
Find which column the user has clicked.
Return the index of the column if exist, -1 otherwise
event |
Definition at line 70 of file ScopeView.java.
References edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.getTreeViewer().
Referenced by edu.rice.cs.hpc.viewer.scope.topdown.ScopeView.mouseDownEvent().
Database edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.getDatabase | ( | ) | [inherited] |
Definition at line 550 of file AbstractBaseScopeView.java.
References edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.database.
Referenced by edu.rice.cs.hpc.viewer.actions.ShowView.execute().
Experiment edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.getExperiment | ( | ) | [inherited] |
Definition at line 536 of file AbstractBaseScopeView.java.
References edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.database, and edu.rice.cs.hpc.viewer.window.Database.getExperiment().
Referenced by edu.rice.cs.hpc.viewer.scope.BaseScopeView.enableFilter(), edu.rice.cs.hpc.viewer.actions.ResetPerspective.execute(), edu.rice.cs.hpc.viewer.actions.CloseDatabase.execute(), edu.rice.cs.hpc.viewer.util.BaseWindowTitle.setTitle(), and edu.rice.cs.hpc.viewer.scope.BaseScopeView.updateDisplay().
CellLabelProvider edu.rice.cs.hpc.viewer.scope.topdown.ScopeView.getLabelProvider | ( | ) | [protected, virtual] |
Implements edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.
Definition at line 53 of file ScopeView.java.
RootScope edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.getRootScope | ( | ) | [inherited] |
Definition at line 546 of file AbstractBaseScopeView.java.
References edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.myRootScope.
Referenced by edu.rice.cs.hpc.viewer.actions.ShowView.execute().
AbstractContentProvider edu.rice.cs.hpc.viewer.scope.topdown.ScopeView.getScopeContentProvider | ( | ) | [protected, virtual] |
Implements edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.
Definition at line 87 of file ScopeView.java.
int edu.rice.cs.hpc.viewer.scope.topdown.ScopeView.getSelectedColumn | ( | ) |
Definition at line 38 of file ScopeView.java.
References edu.rice.cs.hpc.viewer.scope.topdown.ScopeView.lastClickColumn.
ScopeTreeViewer edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.getTreeViewer | ( | ) | [inherited] |
return the tree of this viewer (even though there's no experiment active)
Definition at line 528 of file AbstractBaseScopeView.java.
References edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.treeViewer.
Referenced by edu.rice.cs.hpc.viewer.scope.topdown.ScopeView.getColumnMouseDown(), and edu.rice.cs.hpc.viewer.actions.ShowView.DatabaseLabelProvider.getText().
ScopeViewActions edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.getViewActions | ( | ) | [inherited] |
Definition at line 521 of file AbstractBaseScopeView.java.
References edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.objViewActions.
Referenced by edu.rice.cs.hpc.viewer.scope.ScopeViewActionsGUI.showHideColumnsAllViews().
void edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.initDatabase | ( | Database | db, | |
RootScope | scope, | |||
boolean | keepColumnStatus | |||
) | [inherited] |
Definition at line 496 of file AbstractBaseScopeView.java.
References edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.database, edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.initTableColumns(), edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.myRootScope, edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.objViewActions, edu.rice.cs.hpc.viewer.scope.ScopeViewActions.setTreeViewer(), and edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.treeViewer.
Referenced by edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.setInput().
void edu.rice.cs.hpc.viewer.scope.BaseScopeView.initTableColumns | ( | boolean | keepColumnStatus | ) | [protected, virtual, inherited] |
Implements edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.
Definition at line 122 of file BaseScopeView.java.
References edu.rice.cs.hpc.filter.service.FilterMap.isFilterEnabled(), edu.rice.cs.hpc.viewer.scope.AbstractContentProvider.setEnableFilter(), and edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.treeViewer.
CoolBar edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.initToolbar | ( | Composite | toolbarArea | ) | [protected, inherited] |
Create and Initialize coolbar, set the layout and return the coolbar.
toolbarArea |
Definition at line 460 of file AbstractBaseScopeView.java.
Referenced by edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.createPartControl().
void edu.rice.cs.hpc.viewer.scope.topdown.ScopeView.mouseDownEvent | ( | Event | event | ) | [protected, virtual] |
Implements edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.
Definition at line 59 of file ScopeView.java.
References edu.rice.cs.hpc.viewer.scope.topdown.ScopeView.getColumnMouseDown(), and edu.rice.cs.hpc.viewer.scope.topdown.ScopeView.lastClickColumn.
void edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.setFocus | ( | ) | [inherited] |
Definition at line 517 of file AbstractBaseScopeView.java.
References edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.treeViewer.
void edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.setInput | ( | Database | db, | |
RootScope | scope, | |||
boolean | keepColumnStatus | |||
) | [inherited] |
Update the data input for Scope View, depending also on the scope.
Definition at line 485 of file AbstractBaseScopeView.java.
References edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.initDatabase(), and edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.updateDisplay().
Referenced by edu.rice.cs.hpc.viewer.actions.ShowView.execute(), and edu.rice.cs.hpc.viewer.experiment.ExperimentView.openView().
void edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.setViewTitle | ( | String | sName | ) | [inherited] |
Modify the title of the view.
sName |
Definition at line 514 of file AbstractBaseScopeView.java.
void edu.rice.cs.hpc.viewer.scope.topdown.ScopeView.updateDatabase | ( | Experiment | new_database | ) | [protected, virtual] |
Tell children to update the content with the new database.
new_database |
Implements edu.rice.cs.hpc.viewer.scope.BaseScopeView.
Definition at line 95 of file ScopeView.java.
void edu.rice.cs.hpc.viewer.scope.BaseScopeView.updateDisplay | ( | ) | [virtual, inherited] |
Tell children to update the content with the new database Update the content of the tree view when a new experiment is loaded.
Implements edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.
Definition at line 85 of file BaseScopeView.java.
References edu.rice.cs.hpc.viewer.scope.ScopeViewActions.checkNodeButtons(), edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.database, edu.rice.cs.hpc.data.experiment.scope.TreeNode.getChildCount(), edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.getExperiment(), edu.rice.cs.hpc.viewer.window.Database.getExperiment(), edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.myRootScope, edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.objViewActions, edu.rice.cs.hpc.viewer.scope.ScopeViewActions.resizeColumns(), edu.rice.cs.hpc.viewer.scope.ScopeViewActions.showErrorMessage(), edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.treeViewer, edu.rice.cs.hpc.viewer.scope.ScopeViewActions.updateContent(), and edu.rice.cs.hpc.viewer.scope.BaseScopeView.updateDatabase().
Referenced by edu.rice.cs.hpc.viewer.scope.BaseScopeView.enableFilter().
Database edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.database [protected, inherited] |
Definition at line 70 of file AbstractBaseScopeView.java.
Referenced by edu.rice.cs.hpc.viewer.scope.topdown.ScopeView.createAdditionalContextMenu(), edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.getDatabase(), edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.getExperiment(), edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.initDatabase(), edu.rice.cs.hpc.viewer.scope.BaseScopeView.initTableColumns(), and edu.rice.cs.hpc.viewer.scope.BaseScopeView.updateDisplay().
Definition at line 29 of file ScopeView.java.
Referenced by edu.rice.cs.hpc.viewer.scope.topdown.ScopeView.createActions(), and edu.rice.cs.hpc.viewer.scope.topdown.ScopeView.createAdditionalContextMenu().
final String edu.rice.cs.hpc.viewer.scope.topdown.ScopeView.ID = "edu.rice.cs.hpc.viewer.scope.ScopeView" [static] |
Definition at line 27 of file ScopeView.java.
int edu.rice.cs.hpc.viewer.scope.topdown.ScopeView.lastClickColumn = -1 [private] |
Definition at line 30 of file ScopeView.java.
Referenced by edu.rice.cs.hpc.viewer.scope.topdown.ScopeView.getSelectedColumn(), and edu.rice.cs.hpc.viewer.scope.topdown.ScopeView.mouseDownEvent().
RootScope edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.myRootScope [protected, inherited] |
Definition at line 71 of file AbstractBaseScopeView.java.
Referenced by edu.rice.cs.hpc.viewer.scope.BaseScopeView.enableFilter(), edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.getRootScope(), edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.initDatabase(), edu.rice.cs.hpc.viewer.scope.BaseScopeView.initTableColumns(), and edu.rice.cs.hpc.viewer.scope.BaseScopeView.updateDisplay().
CoolBar edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.objCoolbar [protected, inherited] |
bar composite for placing toolbar and tool items
Definition at line 84 of file AbstractBaseScopeView.java.
Referenced by edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.createPartControl().
ScopeViewActions edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.objViewActions [protected, inherited] |
Definition at line 73 of file AbstractBaseScopeView.java.
Referenced by edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.copyToClipboard(), edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.createPartControl(), edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.displayFileEditor(), edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.fillContextMenu(), edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.getViewActions(), edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.initDatabase(), edu.rice.cs.hpc.viewer.scope.BaseScopeView.initTableColumns(), and edu.rice.cs.hpc.viewer.scope.BaseScopeView.updateDisplay().
ColumnViewerSorter edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.sorterTreeColumn [protected, inherited] |
Definition at line 72 of file AbstractBaseScopeView.java.
Referenced by edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.createPartControl(), and edu.rice.cs.hpc.viewer.scope.BaseScopeView.initTableColumns().
ScopeTreeViewer edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.treeViewer [protected, inherited] |
Definition at line 68 of file AbstractBaseScopeView.java.
Referenced by edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.copyToClipboard(), edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.createContextMenu(), edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.createPartControl(), edu.rice.cs.hpc.viewer.scope.BaseScopeView.enableFilter(), edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.getSelectedItem(), edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.getTreeViewer(), edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.ScopeMouseListener.handleEvent(), edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.initDatabase(), edu.rice.cs.hpc.viewer.scope.BaseScopeView.initTableColumns(), edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.isItemSelected(), edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.setFocus(), edu.rice.cs.hpc.viewer.scope.bottomup.CallerScopeView.updateDatabase(), and edu.rice.cs.hpc.viewer.scope.BaseScopeView.updateDisplay().