org.eclipse.ercp.eworkbench
Class eWorkbenchAdvisor

java.lang.Object
  extended by org.eclipse.ui.application.WorkbenchAdvisor
      extended by org.eclipse.ercp.eworkbench.eWorkbenchAdvisor

public class eWorkbenchAdvisor
extends WorkbenchAdvisor


Constructor Summary
eWorkbenchAdvisor()
           
 
Method Summary
 java.lang.String getInitialWindowPerspectiveId()
          Returns the id of the perspective to use for the initial workbench org.eclipse.jface.window, or null if no initial perspective should be shown in the initial workbench org.eclipse.jface.window.
 void preWindowOpen(IWorkbenchWindowConfigurer configurer)
          Performs arbitrary actions before the given workbench org.eclipse.jface.window is opened.
 
Methods inherited from class org.eclipse.ui.application.WorkbenchAdvisor
createEmptyWindowContents, createWindowContents, createWorkbenchWindowAdvisor, eventLoopException, eventLoopIdle, getDefaultPageInput, getMainPreferencePageId, getWorkbenchConfigurer, initialize, internalBasicInitialize, isApplicationMenu, openIntro, openWindows, postShutdown, postStartup, postWindowClose, postWindowCreate, postWindowOpen, postWindowRestore, preShutdown, preStartup, preWindowShellClose
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

eWorkbenchAdvisor

public eWorkbenchAdvisor()
Method Detail

getInitialWindowPerspectiveId

public java.lang.String getInitialWindowPerspectiveId()
Description copied from class: WorkbenchAdvisor
Returns the id of the perspective to use for the initial workbench org.eclipse.jface.window, or null if no initial perspective should be shown in the initial workbench org.eclipse.jface.window.

This method is called during startup when the workbench is creating the first new org.eclipse.jface.window. Subclasses must implement.

If the IWorkbenchPreferenceConstants.DEFAULT_PERSPECTIVE_ID org.eclipse.jface.preference is specified, it supercedes the perspective specified here.

Specified by:
getInitialWindowPerspectiveId in class WorkbenchAdvisor
Returns:
the id of the perspective for the initial org.eclipse.jface.window, or null if no initial perspective should be shown

preWindowOpen

public void preWindowOpen(IWorkbenchWindowConfigurer configurer)
Description copied from class: WorkbenchAdvisor
Performs arbitrary actions before the given workbench org.eclipse.jface.window is opened.

This method is called before the org.eclipse.jface.window's controls have been created. Clients must not call this method directly (although super calls are okay). The default implementation does nothing. Subclasses may override. Typical clients will use the configurer passed in to tweak the workbench org.eclipse.jface.window in an application-specific way; however, filling the org.eclipse.jface.window's menu bar, tool bar, and status line must be done in fillActionBars, which is called immediately after this method is called.

Overrides:
preWindowOpen in class WorkbenchAdvisor
Parameters:
configurer - an object for configuring the particular workbench org.eclipse.jface.window being opened
See Also:
WorkbenchAdvisor.createWorkbenchWindowAdvisor(IWorkbenchWindowConfigurer)