Package org.eclipse.ui.application

Examples of org.eclipse.ui.application.IWorkbenchWindowConfigurer


  /*
   * @see org.eclipse.ui.application.WorkbenchWindowAdvisor#preWindowOpen()
   */
  @Override
  public void preWindowOpen() {
    IWorkbenchWindowConfigurer configurer = getWindowConfigurer();

    /* Set Window State and define visibility of UI elements */
    configurer.setShowCoolBar(true);
    configurer.setShowPerspectiveBar(false);
    configurer.setShowStatusLine(true);
    configurer.setShowMenuBar(true);
    configurer.setShowFastViewBars(true);
    configurer.setShowProgressIndicator(true);
    configurer.setTitle("RSSOwl"); //$NON-NLS-1$

    /* Apply DND Support for Editor Area */
    configurer.addEditorAreaTransfer(LocalSelectionTransfer.getTransfer());
    configurer.configureEditorAreaDropListener(new EditorDNDImpl());
  }
View Full Code Here


  /*
   * @see org.eclipse.ui.application.WorkbenchWindowAdvisor#preWindowOpen()
   */
  @Override
  public void preWindowOpen() {
    IWorkbenchWindowConfigurer configurer = getWindowConfigurer();

    /* Set Window State and define visibility of UI elements */
    configurer.setShowCoolBar(true);
    configurer.setShowPerspectiveBar(false);
    configurer.setShowStatusLine(true);
    configurer.setShowMenuBar(true);
    configurer.setShowFastViewBars(false);
    configurer.setShowProgressIndicator(true);
    configurer.setTitle("RSSOwl"); //$NON-NLS-1$

    /* Apply DND Support for Editor Area */
    configurer.addEditorAreaTransfer(LocalSelectionTransfer.getTransfer());
    configurer.configureEditorAreaDropListener(new EditorDNDImpl());

    /* Retrieve Preferences */
    fPreferences = Owl.getPreferenceService().getGlobalScope();
  }
View Full Code Here

  /*
   * @see org.eclipse.ui.application.WorkbenchWindowAdvisor#preWindowOpen()
   */
  @Override
  public void preWindowOpen() {
    IWorkbenchWindowConfigurer configurer = getWindowConfigurer();

    /* Set Window State and define visibility of UI elements */
    configurer.setShowCoolBar(true);
    configurer.setShowPerspectiveBar(false);
    configurer.setShowStatusLine(true);
    configurer.setShowMenuBar(true);
    configurer.setShowFastViewBars(false);
    configurer.setShowProgressIndicator(true);
    configurer.setTitle("RSSOwl"); //$NON-NLS-1$

    /* Set Window Size to match monitor size (only on single monitor) */
    Point size = OwlUI.getFirstMonitorSize();
    if (size != null)
      configurer.setInitialSize(size);

    /* Apply DND Support for Editor Area */
    configurer.addEditorAreaTransfer(LocalSelectionTransfer.getTransfer());
    configurer.configureEditorAreaDropListener(new EditorDNDImpl());

    /* Retrieve Preferences */
    fPreferences = Owl.getPreferenceService().getGlobalScope();
  }
View Full Code Here

   * (non-Javadoc)
   *
   * @see org.eclipse.ui.application.WorkbenchAdvisor#preWindowOpen
   */
  public void preWindowOpen() {
    IWorkbenchWindowConfigurer configurer = getWindowConfigurer();

    // show the shortcut bar and progress indicator, which are hidden by
    // default
    configurer.setShowPerspectiveBar(true);
    configurer.setShowFastViewBars(true);
    configurer.setShowProgressIndicator(true);

    // add the drag and drop support for the editor area
    configurer.addEditorAreaTransfer(EditorInputTransfer.getInstance());
    configurer.addEditorAreaTransfer(ResourceTransfer.getInstance());
    configurer.addEditorAreaTransfer(FileTransfer.getInstance());
    configurer.addEditorAreaTransfer(MarkerTransfer.getInstance());
    configurer.configureEditorAreaDropListener(new EditorAreaDropAdapter(
        configurer.getWindow()));

    hookTitleUpdateListeners(configurer);
  }
View Full Code Here

    IDEWorkbenchPlugin.getDefault().getPreferenceStore()
        .addPropertyChangeListener(propertyChangeListener);
  }

  private String computeTitle() {
    IWorkbenchWindowConfigurer configurer = getWindowConfigurer();
    IWorkbenchPage currentPage = configurer.getWindow().getActivePage();
    IEditorPart activeEditor = null;
    if (currentPage != null) {
      activeEditor = lastActiveEditor;
    }
View Full Code Here

    return title;
  }

  private void recomputeTitle() {
    IWorkbenchWindowConfigurer configurer = getWindowConfigurer();
    String oldTitle = configurer.getTitle();
    String newTitle = computeTitle();
    if (!newTitle.equals(oldTitle)) {
      configurer.setTitle(newTitle);
    }
    setTitlePath();
  }
View Full Code Here

   * Updates the window title. Format will be: [pageInput -]
   * [currentPerspective -] [editorInput -] [workspaceLocation -] productName
   * @param editorHidden TODO
   */
  private void updateTitle(boolean editorHidden) {
    IWorkbenchWindowConfigurer configurer = getWindowConfigurer();
    IWorkbenchWindow window = configurer.getWindow();
    IEditorPart activeEditor = null;
    IWorkbenchPage currentPage = window.getActivePage();
    IPerspectiveDescriptor persp = null;
    IAdaptable input = null;

View Full Code Here

   * (non-Javadoc)
   *
   * @see org.eclipse.ui.application.WorkbenchAdvisor#postWindowRestore
   */
  public void postWindowRestore() throws WorkbenchException {
    IWorkbenchWindowConfigurer configurer = getWindowConfigurer();
    IWorkbenchWindow window = configurer.getWindow();

    int index = getWorkbench().getWorkbenchWindowCount() - 1;

    AboutInfo[] welcomePerspectiveInfos = wbAdvisor
        .getWelcomePerspectiveInfos();
View Full Code Here

     * <!-- end-user-doc -->
     * @generated
     */
    @Override
    public void preWindowOpen() {
      IWorkbenchWindowConfigurer configurer = getWindowConfigurer();
      configurer.setInitialSize(new Point(600, 450));
      configurer.setShowCoolBar(false);
      configurer.setShowStatusLine(true);
      configurer.setTitle(getString("_UI_Application_title"));
    }
View Full Code Here

  /**
   * @generated
   */
  public void preWindowOpen() {
    IWorkbenchWindowConfigurer configurer = getWindowConfigurer();
    configurer.setInitialSize(new Point(1000, 700));
    configurer
        .setTitle(OntoUML.diagram.part.Messages.DiagramEditorWorkbenchWindowAdvisor_Title);
  }
View Full Code Here

TOP

Related Classes of org.eclipse.ui.application.IWorkbenchWindowConfigurer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.