The viewer window manager keeps track of which performance databases have been opened for each window created by the hpcviewer. More...
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< ViewerWindow > | vWindows = new Vector<ViewerWindow>(3) |
Vector of tables to keep track of what has happened in each open hpcviewer window. |
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.
Definition at line 26 of file ViewerWindowManager.java.
void edu.rice.cs.hpc.viewer.window.ViewerWindowManager.addNewWindow | ( | IWorkbenchWindow | window | ) |
Adds a new window to the database manager tables.
Definition at line 53 of file ViewerWindowManager.java.
References edu.rice.cs.hpc.viewer.util.WindowTitle.refreshAllTitles(), edu.rice.cs.hpc.viewer.window.ViewerWindow.setWinObj(), and edu.rice.cs.hpc.viewer.window.ViewerWindowManager.vWindows.
Referenced by edu.rice.cs.hpc.viewer.framework.ApplicationWorkbenchWindowAdvisor.preWindowOpen().
static int edu.rice.cs.hpc.viewer.window.ViewerWindowManager.getNumberOfDatabases | ( | IWorkbenchWindow | window | ) | [static] |
Definition at line 100 of file ViewerWindowManager.java.
References edu.rice.cs.hpc.viewer.window.ViewerWindow.getOpenDatabases().
static ViewerWindow edu.rice.cs.hpc.viewer.window.ViewerWindowManager.getViewerWindow | ( | int | index | ) | [static] |
Definition at line 131 of file ViewerWindowManager.java.
References edu.rice.cs.hpc.viewer.window.ViewerWindowManager.vWindows.
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.
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] |
Remove a window from the database managers tables.
Definition at line 70 of file ViewerWindowManager.java.
References edu.rice.cs.hpc.viewer.window.ViewerWindow.dispose(), edu.rice.cs.hpc.viewer.window.ViewerWindow.getWinObj(), edu.rice.cs.hpc.viewer.util.WindowTitle.refreshAllTitles(), and edu.rice.cs.hpc.viewer.window.ViewerWindowManager.vWindows.
static int edu.rice.cs.hpc.viewer.window.ViewerWindowManager.size | ( | ) | [static] |
Definition at line 127 of file ViewerWindowManager.java.
References edu.rice.cs.hpc.viewer.window.ViewerWindowManager.vWindows.
Vector<ViewerWindow> edu.rice.cs.hpc.viewer.window.ViewerWindowManager.vWindows = new Vector<ViewerWindow>(3) [static, private] |
Vector of tables to keep track of what has happened in each open hpcviewer window.
Definition at line 30 of file ViewerWindowManager.java.
Referenced by edu.rice.cs.hpc.viewer.window.ViewerWindowManager.addNewWindow(), edu.rice.cs.hpc.viewer.window.ViewerWindowManager.getViewerWindow(), edu.rice.cs.hpc.viewer.window.ViewerWindowManager.getWindowNumber(), edu.rice.cs.hpc.viewer.window.ViewerWindowManager.removeWindow(), and edu.rice.cs.hpc.viewer.window.ViewerWindowManager.size().