Public Member Functions | |
ApplicationWorkbenchWindowAdvisor (IWorkbenchWindowConfigurer configurer, String[]args) | |
Creates a new workbench window advisor for configuring a workbench window via the given workbench window configurer Retrieve the RCP's arguments and verify if it contains database to open. | |
ActionBarAdvisor | createActionBarAdvisor (IActionBarConfigurer configurer) |
Creates a new action bar advisor to configure the action bars of the window via the given action bar configurer. | |
void | preWindowOpen () |
Performs arbitrary actions before the window is opened. | |
void | postWindowOpen () |
Action when the window is already opened. | |
boolean | preWindowShellClose () |
Performs arbitrary actions as the window's shell is being closed directly, and possibly veto the close. | |
void | postWindowCreate () |
Laksono 2009.02.11: removing unwanted menus. | |
Private Member Functions | |
void | openDatabase (boolean withCallerView) |
Open an experiment database. | |
void | removeViews () |
void | removeViews (IWorkbenchPage page) |
void | closeAllEditors () |
Close all editors in the current active page. | |
int | getFlag (boolean withCallerView) |
return the flag to indicate if a caller view needs to be displayed or not | |
void | shutdownEvent (IWorkbench workbench, final IWorkbenchPage pageCurrent) |
add a shutdown event to the workbench | |
Private Attributes | |
String[] | sArgs = null |
final IWorkbench | workbench |
final IWorkbenchWindow | window |
Definition at line 33 of file ApplicationWorkbenchWindowAdvisor.java.
edu.rice.cs.hpc.viewer.framework.ApplicationWorkbenchWindowAdvisor.ApplicationWorkbenchWindowAdvisor | ( | IWorkbenchWindowConfigurer | configurer, | |
String[] | args | |||
) |
Creates a new workbench window advisor for configuring a workbench window via the given workbench window configurer Retrieve the RCP's arguments and verify if it contains database to open.
configurer | ||
args |
Definition at line 46 of file ApplicationWorkbenchWindowAdvisor.java.
References edu.rice.cs.hpc.viewer.framework.ApplicationWorkbenchWindowAdvisor.sArgs, edu.rice.cs.hpc.viewer.framework.ApplicationWorkbenchWindowAdvisor.window, and edu.rice.cs.hpc.viewer.framework.ApplicationWorkbenchWindowAdvisor.workbench.
void edu.rice.cs.hpc.viewer.framework.ApplicationWorkbenchWindowAdvisor.closeAllEditors | ( | ) | [private] |
Close all editors in the current active page.
Definition at line 224 of file ApplicationWorkbenchWindowAdvisor.java.
References edu.rice.cs.hpc.viewer.framework.ApplicationWorkbenchWindowAdvisor.window.
Referenced by edu.rice.cs.hpc.viewer.framework.ApplicationWorkbenchWindowAdvisor.postWindowOpen(), and edu.rice.cs.hpc.viewer.framework.ApplicationWorkbenchWindowAdvisor.preWindowShellClose().
ActionBarAdvisor edu.rice.cs.hpc.viewer.framework.ApplicationWorkbenchWindowAdvisor.createActionBarAdvisor | ( | IActionBarConfigurer | configurer | ) |
Creates a new action bar advisor to configure the action bars of the window via the given action bar configurer.
The default implementation returns a new instance of ActionBarAdvisor
Definition at line 57 of file ApplicationWorkbenchWindowAdvisor.java.
int edu.rice.cs.hpc.viewer.framework.ApplicationWorkbenchWindowAdvisor.getFlag | ( | boolean | withCallerView | ) | [private] |
return the flag to indicate if a caller view needs to be displayed or not
withCallerView |
Definition at line 234 of file ApplicationWorkbenchWindowAdvisor.java.
Referenced by edu.rice.cs.hpc.viewer.framework.ApplicationWorkbenchWindowAdvisor.openDatabase(), and edu.rice.cs.hpc.viewer.framework.ApplicationWorkbenchWindowAdvisor.postWindowOpen().
void edu.rice.cs.hpc.viewer.framework.ApplicationWorkbenchWindowAdvisor.openDatabase | ( | boolean | withCallerView | ) | [private] |
Open an experiment database.
A database is a folder that contains XML experiment files (only the first one will be taken into account)
Definition at line 191 of file ApplicationWorkbenchWindowAdvisor.java.
References edu.rice.cs.hpc.viewer.framework.ApplicationWorkbenchWindowAdvisor.getFlag(), edu.rice.cs.hpc.viewer.experiment.ExperimentManager.openFileExperiment(), edu.rice.cs.hpc.viewer.framework.ApplicationWorkbenchWindowAdvisor.removeViews(), and edu.rice.cs.hpc.viewer.framework.ApplicationWorkbenchWindowAdvisor.window.
Referenced by edu.rice.cs.hpc.viewer.framework.ApplicationWorkbenchWindowAdvisor.postWindowOpen().
void edu.rice.cs.hpc.viewer.framework.ApplicationWorkbenchWindowAdvisor.postWindowCreate | ( | ) |
Laksono 2009.02.11: removing unwanted menus.
Definition at line 288 of file ApplicationWorkbenchWindowAdvisor.java.
void edu.rice.cs.hpc.viewer.framework.ApplicationWorkbenchWindowAdvisor.postWindowOpen | ( | ) |
Action when the window is already opened.
Definition at line 84 of file ApplicationWorkbenchWindowAdvisor.java.
References edu.rice.cs.hpc.viewer.framework.ApplicationWorkbenchWindowAdvisor.closeAllEditors(), edu.rice.cs.hpc.viewer.framework.ApplicationWorkbenchWindowAdvisor.getFlag(), edu.rice.cs.hpc.viewer.experiment.ExperimentView.loadExperimentAndProcess(), edu.rice.cs.hpc.viewer.framework.ApplicationWorkbenchWindowAdvisor.openDatabase(), edu.rice.cs.hpc.viewer.experiment.ExperimentManager.openDatabaseFromDirectory(), edu.rice.cs.hpc.viewer.framework.ApplicationWorkbenchWindowAdvisor.removeViews(), edu.rice.cs.hpc.viewer.framework.ApplicationWorkbenchWindowAdvisor.sArgs, edu.rice.cs.hpc.viewer.framework.ApplicationWorkbenchWindowAdvisor.shutdownEvent(), edu.rice.cs.hpc.viewer.framework.ApplicationWorkbenchWindowAdvisor.window, and edu.rice.cs.hpc.viewer.framework.ApplicationWorkbenchWindowAdvisor.workbench.
void edu.rice.cs.hpc.viewer.framework.ApplicationWorkbenchWindowAdvisor.preWindowOpen | ( | ) |
Performs arbitrary actions before the window is opened.
Definition at line 65 of file ApplicationWorkbenchWindowAdvisor.java.
References edu.rice.cs.hpc.viewer.window.ViewerWindowManager.addNewWindow(), and edu.rice.cs.hpc.viewer.framework.ApplicationWorkbenchWindowAdvisor.window.
boolean edu.rice.cs.hpc.viewer.framework.ApplicationWorkbenchWindowAdvisor.preWindowShellClose | ( | ) |
Performs arbitrary actions as the window's shell is being closed directly, and possibly veto the close.
Definition at line 241 of file ApplicationWorkbenchWindowAdvisor.java.
References edu.rice.cs.hpc.viewer.framework.ApplicationWorkbenchWindowAdvisor.closeAllEditors(), edu.rice.cs.hpc.viewer.framework.ApplicationWorkbenchWindowAdvisor.removeViews(), and edu.rice.cs.hpc.viewer.framework.ApplicationWorkbenchWindowAdvisor.window.
void edu.rice.cs.hpc.viewer.framework.ApplicationWorkbenchWindowAdvisor.removeViews | ( | IWorkbenchPage | page | ) | [private] |
Definition at line 212 of file ApplicationWorkbenchWindowAdvisor.java.
void edu.rice.cs.hpc.viewer.framework.ApplicationWorkbenchWindowAdvisor.removeViews | ( | ) | [private] |
Definition at line 207 of file ApplicationWorkbenchWindowAdvisor.java.
References edu.rice.cs.hpc.viewer.framework.ApplicationWorkbenchWindowAdvisor.window.
Referenced by edu.rice.cs.hpc.viewer.framework.ApplicationWorkbenchWindowAdvisor.openDatabase(), edu.rice.cs.hpc.viewer.framework.ApplicationWorkbenchWindowAdvisor.postWindowOpen(), edu.rice.cs.hpc.viewer.framework.ApplicationWorkbenchWindowAdvisor.preWindowShellClose(), and edu.rice.cs.hpc.viewer.framework.ApplicationWorkbenchWindowAdvisor.shutdownEvent().
void edu.rice.cs.hpc.viewer.framework.ApplicationWorkbenchWindowAdvisor.shutdownEvent | ( | IWorkbench | workbench, | |
final IWorkbenchPage | pageCurrent | |||
) | [private] |
add a shutdown event to the workbench
Definition at line 258 of file ApplicationWorkbenchWindowAdvisor.java.
References edu.rice.cs.hpc.viewer.framework.ApplicationWorkbenchWindowAdvisor.removeViews().
Referenced by edu.rice.cs.hpc.viewer.framework.ApplicationWorkbenchWindowAdvisor.postWindowOpen().
String [] edu.rice.cs.hpc.viewer.framework.ApplicationWorkbenchWindowAdvisor.sArgs = null [private] |
final IWorkbenchWindow edu.rice.cs.hpc.viewer.framework.ApplicationWorkbenchWindowAdvisor.window [private] |
Definition at line 37 of file ApplicationWorkbenchWindowAdvisor.java.
Referenced by edu.rice.cs.hpc.viewer.framework.ApplicationWorkbenchWindowAdvisor.ApplicationWorkbenchWindowAdvisor(), edu.rice.cs.hpc.viewer.framework.ApplicationWorkbenchWindowAdvisor.closeAllEditors(), edu.rice.cs.hpc.viewer.framework.ApplicationWorkbenchWindowAdvisor.openDatabase(), edu.rice.cs.hpc.viewer.framework.ApplicationWorkbenchWindowAdvisor.postWindowOpen(), edu.rice.cs.hpc.viewer.framework.ApplicationWorkbenchWindowAdvisor.preWindowOpen(), edu.rice.cs.hpc.viewer.framework.ApplicationWorkbenchWindowAdvisor.preWindowShellClose(), and edu.rice.cs.hpc.viewer.framework.ApplicationWorkbenchWindowAdvisor.removeViews().
final IWorkbench edu.rice.cs.hpc.viewer.framework.ApplicationWorkbenchWindowAdvisor.workbench [private] |