edu.rice.cs.hpc.viewer.window.ViewerWindowManager Class Reference

The viewer window manager keeps track of which performance databases have been opened for each window created by the hpcviewer. More...

Collaboration diagram for edu.rice.cs.hpc.viewer.window.ViewerWindowManager:
Collaboration graph
[legend]

List of all members.

Public Member Functions

void addNewWindow (IWorkbenchWindow window)
 Adds a new window to the database manager tables.

Static Public Member Functions

static int getWindowNumber (IWorkbenchWindow window)
 Returns the index into the vWindows vector of the current window being used.
static Boolean removeWindow (IWorkbenchWindow window)
 Remove a window from the database managers tables.
static int getNumberOfDatabases (IWorkbenchWindow window)
static ViewerWindow getViewerWindow (IWorkbenchWindow window)
 Returns the hpcviewer window class associated with the workbench window passed as an argument.
static int size ()
static ViewerWindow getViewerWindow (int index)

Static Private Attributes

static Vector< ViewerWindowvWindows = new Vector<ViewerWindow>(3)
 Vector of tables to keep track of what has happened in each open hpcviewer window.

Detailed Description

The viewer window manager keeps track of which performance databases have been opened for each window created by the hpcviewer.

When a window is created it creates a new ViewerWindow class and (normally) adds it to end of the vWindows vector. The index into this vector will be used as the window number and its value+1 (so the first window will have a window number of 1 instead of 0) will be used in the window title. When windows are closed its entry in the vector will be set to null so that it does not affect the window number of other windows in the vector. When a new ViewerWindow is being added to the vector it will reuse a slot in the vector which has a null value if such an entry exists. The ViewerWindow class will keep track of all the databases opened (using the Database class) in that window. This allows us to provide a list of databases which can be closed for each window. It also gives us a place to keep track of the experiment data for each opened database.

Author:
mohrg

Definition at line 26 of file ViewerWindowManager.java.


Member Function Documentation

void edu.rice.cs.hpc.viewer.window.ViewerWindowManager.addNewWindow ( IWorkbenchWindow  window  ) 
static int edu.rice.cs.hpc.viewer.window.ViewerWindowManager.getNumberOfDatabases ( IWorkbenchWindow  window  )  [static]
static ViewerWindow edu.rice.cs.hpc.viewer.window.ViewerWindowManager.getViewerWindow ( int  index  )  [static]
static ViewerWindow edu.rice.cs.hpc.viewer.window.ViewerWindowManager.getViewerWindow ( IWorkbenchWindow  window  )  [static]

Returns the hpcviewer window class associated with the workbench window passed as an argument.

Definition at line 111 of file ViewerWindowManager.java.

References edu.rice.cs.hpc.viewer.window.ViewerWindowManager.vWindows.

static int edu.rice.cs.hpc.viewer.window.ViewerWindowManager.getWindowNumber ( IWorkbenchWindow  window  )  [static]

Returns the index into the vWindows vector of the current window being used.

Returns:
-1 if the window doesn't exist otherwise: the window number

Definition at line 37 of file ViewerWindowManager.java.

References edu.rice.cs.hpc.viewer.window.ViewerWindowManager.vWindows.

static Boolean edu.rice.cs.hpc.viewer.window.ViewerWindowManager.removeWindow ( IWorkbenchWindow  window  )  [static]
static int edu.rice.cs.hpc.viewer.window.ViewerWindowManager.size (  )  [static]

Member Data Documentation


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

Generated on 5 May 2015 for HPCVIEWER by  doxygen 1.6.1