org.eclipse.ohf.stem.core.common.presentation
Class CoreEditorAdvisor

java.lang.Object
  extended by org.eclipse.ui.application.WorkbenchAdvisor
      extended by org.eclipse.ohf.stem.core.common.presentation.CoreEditorAdvisor

public final class CoreEditorAdvisor
extends org.eclipse.ui.application.WorkbenchAdvisor

Customized WorkbenchAdvisor for the RCP application.


Nested Class Summary
static class CoreEditorAdvisor.AboutAction
          About action for the RCP application.
static class CoreEditorAdvisor.Application
          RCP's application
static class CoreEditorAdvisor.OpenAction
          Open action for the objects from the Core model.
static class CoreEditorAdvisor.OpenURIAction
          Open URI action for the objects from the Core model.
static class CoreEditorAdvisor.Perspective
          RCP's perspective NOT USED
static class CoreEditorAdvisor.WindowActionBarAdvisor
          RCP's action bar advisor
static class CoreEditorAdvisor.WindowAdvisor
          RCP's window advisor
 
Field Summary
 
Fields inherited from class org.eclipse.ui.application.WorkbenchAdvisor
FILL_COOL_BAR, FILL_MENU_BAR, FILL_PROXY, FILL_STATUS_LINE
 
Constructor Summary
CoreEditorAdvisor()
           
 
Method Summary
 org.eclipse.ui.application.WorkbenchWindowAdvisor createWorkbenchWindowAdvisor(org.eclipse.ui.application.IWorkbenchWindowConfigurer configurer)
           
 java.lang.String getInitialWindowPerspectiveId()
           
 java.lang.String getMainPreferencePageId()
           
 void initialize(org.eclipse.ui.application.IWorkbenchConfigurer configurer)
           
static boolean openEditor(org.eclipse.ui.IWorkbench workbench, org.eclipse.emf.common.util.URI fileURI)
           
static java.lang.String openFilePathDialog(org.eclipse.swt.widgets.Shell shell, java.lang.String fileExtensionFilter, int style)
           
 
Methods inherited from class org.eclipse.ui.application.WorkbenchAdvisor
createWindowContents, eventLoopException, eventLoopIdle, fillActionBars, getDefaultPageInput, getWorkbenchErrorHandler, internalBasicInitialize, isApplicationMenu, openIntro, openWindows, postShutdown, postStartup, postWindowClose, postWindowCreate, postWindowOpen, postWindowRestore, preShutdown, preStartup, preWindowOpen, preWindowShellClose, restoreState, saveState
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CoreEditorAdvisor

public CoreEditorAdvisor()
Method Detail

openFilePathDialog

public static java.lang.String openFilePathDialog(org.eclipse.swt.widgets.Shell shell,
                                                  java.lang.String fileExtensionFilter,
                                                  int style)


openEditor

public static boolean openEditor(org.eclipse.ui.IWorkbench workbench,
                                 org.eclipse.emf.common.util.URI fileURI)


getInitialWindowPerspectiveId

public java.lang.String getInitialWindowPerspectiveId()
Specified by:
getInitialWindowPerspectiveId in class org.eclipse.ui.application.WorkbenchAdvisor
See Also:
set the initial Perspective

getMainPreferencePageId

public java.lang.String getMainPreferencePageId()
Overrides:
getMainPreferencePageId in class org.eclipse.ui.application.WorkbenchAdvisor
See Also:
WorkbenchAdvisor.getMainPreferencePageId()

initialize

public void initialize(org.eclipse.ui.application.IWorkbenchConfigurer configurer)
Overrides:
initialize in class org.eclipse.ui.application.WorkbenchAdvisor
See Also:

createWorkbenchWindowAdvisor

public org.eclipse.ui.application.WorkbenchWindowAdvisor createWorkbenchWindowAdvisor(org.eclipse.ui.application.IWorkbenchWindowConfigurer configurer)
Overrides:
createWorkbenchWindowAdvisor in class org.eclipse.ui.application.WorkbenchAdvisor
See Also: