edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView Class Reference

Abstract class of view-part for different types of views:

More...

Inheritance diagram for edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView:
Inheritance graph
[legend]
Collaboration diagram for edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView:
Collaboration graph
[legend]

List of all members.

Classes

class  ScopeMouseListener
class  ScopeViewTreeAction
 Actions/menus for Scope view tree. More...

Public Member Functions

 AbstractBaseScopeView ()
void createPartControl (Composite aParent)
 Create the content of the view.
void dispose ()
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 ()
abstract 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.

Protected Member Functions

Composite createToolBarArea (Composite parent)
 Create the toolbar layout.
CoolBar initToolbar (Composite toolbarArea)
 Create and Initialize coolbar, set the layout and return the coolbar.
abstract void initTableColumns (boolean keepColumnStatus)
abstract 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 .
abstract void mouseDownEvent (Event event)
abstract void createAdditionalContextMenu (IMenuManager mgr, Scope scope)
abstract AbstractContentProvider getScopeContentProvider ()
abstract void enableFilter (boolean isEnabled)
abstract CellLabelProvider getLabelProvider ()

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

void displayFileEditor (Scope scope)
 Display the source code of the node in the editor area.
boolean isItemSelected ()
 Helper method to know if an item has been selected.
Scope getSelectedItem ()
 Helper method to retrieve the selected item.
void fillContextMenu (IMenuManager mgr)
 Creating the context submenu for the view TODO Created only the line selected.
void copyToClipboard ()
 Procedure to copy the selected items into string clipboard.
void createContextMenu ()
 Creating context menu manager.

Private Attributes

EditorManager editorSourceCode
Clipboard cb = null
GC gc = null
ISourceProviderListener listener
Action acZoomin
 Menu action to zoom-in a node.
Action acZoomout
 Menu action to zoom a node.

Detailed Description

Abstract class of view-part for different types of views:

Definition at line 66 of file AbstractBaseScopeView.java.


Constructor & Destructor Documentation

edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.AbstractBaseScopeView (  ) 

Member Function Documentation

void edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.copyToClipboard (  )  [private]
abstract ScopeViewActions edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.createActions ( Composite  parent,
CoolBar  coolbar 
) [protected, pure 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 .

..)

Parameters:
parent 
coolbar 
Returns:

Implemented in edu.rice.cs.hpc.viewer.scope.bottomup.CallerScopeView, edu.rice.cs.hpc.viewer.scope.flat.FlatScopeView, and edu.rice.cs.hpc.viewer.scope.topdown.ScopeView.

Referenced by edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.createPartControl().

abstract void edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.createAdditionalContextMenu ( IMenuManager  mgr,
Scope  scope 
) [protected, pure virtual]
void edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.createContextMenu (  )  [private]
void edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.createPartControl ( Composite  aParent  ) 
Composite edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.createToolBarArea ( Composite  parent  )  [protected]

Create the toolbar layout.

Parameters:
parent 
Returns:

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.AbstractBaseScopeView.displayFileEditor ( Scope  scope  )  [private]
void edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.dispose (  ) 
abstract void edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.enableFilter ( boolean  isEnabled  )  [protected, pure virtual]
void edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.fillContextMenu ( IMenuManager  mgr  )  [private]
Database edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.getDatabase (  ) 
Experiment edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.getExperiment (  ) 
abstract CellLabelProvider edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.getLabelProvider (  )  [protected, pure virtual]
RootScope edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.getRootScope (  ) 
abstract AbstractContentProvider edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.getScopeContentProvider (  )  [protected, pure virtual]
Scope edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.getSelectedItem (  )  [private]

Helper method to retrieve the selected item.

Returns:

Fix bug which appears when the user wants to see the context menu of the top row of the table (the aggregate metrics)

Definition at line 169 of file AbstractBaseScopeView.java.

References edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.treeViewer.

Referenced by edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.fillContextMenu().

ScopeTreeViewer edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.getTreeViewer (  ) 
ScopeViewActions edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.getViewActions (  ) 
void edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.initDatabase ( Database  db,
RootScope  scope,
boolean  keepColumnStatus 
)
abstract void edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.initTableColumns ( boolean  keepColumnStatus  )  [protected, pure virtual]
CoolBar edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.initToolbar ( Composite  toolbarArea  )  [protected]

Create and Initialize coolbar, set the layout and return the coolbar.

Parameters:
toolbarArea 
Returns:

Definition at line 460 of file AbstractBaseScopeView.java.

Referenced by edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.createPartControl().

boolean edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.isItemSelected (  )  [private]

Helper method to know if an item has been selected.

Returns:
true if an item is selected, false otherwise

Definition at line 161 of file AbstractBaseScopeView.java.

References edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.treeViewer.

Referenced by edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.createContextMenu().

abstract void edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.mouseDownEvent ( Event  event  )  [protected, pure virtual]
void edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.setFocus (  ) 
void edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.setInput ( Database  db,
RootScope  scope,
boolean  keepColumnStatus 
)
void edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.setViewTitle ( String  sName  ) 

Modify the title of the view.

Parameters:
sName 

Definition at line 514 of file AbstractBaseScopeView.java.

abstract void edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.updateDisplay (  )  [pure virtual]

Tell children to update the content with the new database Update the content of the tree view when a new experiment is loaded.

Implemented in edu.rice.cs.hpc.viewer.scope.BaseScopeView.

Referenced by edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.setInput().


Member Data Documentation

Initial value:
 new Action("Zoom-in"){
        public void run() {
            objViewActions.zoomIn();
        }
    }

Menu action to zoom-in a node.

Definition at line 142 of file AbstractBaseScopeView.java.

Referenced by edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.fillContextMenu().

Initial value:
 new Action("Zoom-out"){
        public void run() {
            objViewActions.zoomOut();
        }
    }

Menu action to zoom a node.

Definition at line 151 of file AbstractBaseScopeView.java.

Referenced by edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.fillContextMenu().

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().


The documentation for this class was generated from the following file:

Generated on 5 May 2015 for HPCVIEWER by  doxygen 1.6.1