Package org.eclipse.ui.application

Examples of org.eclipse.ui.application.IWorkbenchWindowConfigurer


    public ActionBarAdvisor createActionBarAdvisor(IActionBarConfigurer configurer) {
        return new ApplicationActionBarAdvisor(configurer);
    }
   
    public void preWindowOpen() {
        IWorkbenchWindowConfigurer configurer = getWindowConfigurer();
        configurer.setInitialSize(new Point(1200, 900));
        configurer.setShowCoolBar(true);
        configurer.setShowPerspectiveBar(true);
        configurer.setShowStatusLine(true);
        configurer.setShowMenuBar(true);
        configurer.setShowFastViewBars(true);
        PlatformUI.getPreferenceStore().setValue(
        IWorkbenchPreferenceConstants.DOCK_PERSPECTIVE_BAR, IWorkbenchPreferenceConstants.TOP_RIGHT);
    PlatformUI.getPreferenceStore().setValue(
        IWorkbenchPreferenceConstants.SHOW_MEMORY_MONITOR, true);
    PlatformUI.getPreferenceStore().setValue(
View Full Code Here


     * ActionBarAdvisor.fillActionBars, which is called immediately after this method is
     * called.
     */
    public void preWindowOpen()
    {
        IWorkbenchWindowConfigurer configurer = getWindowConfigurer();
        configurer.setInitialSize( new Point( 950, 708 ) );
        configurer.setShowCoolBar( true );
        configurer.setShowStatusLine( false );
        configurer.setShowPerspectiveBar( true );
        configurer.setShowProgressIndicator( true );
        configurer.setShowFastViewBars( true );
    }
View Full Code Here

    }

    @Override
    public void preWindowOpen() {
  System.out.println("Jaba Was here");
  IWorkbenchWindowConfigurer configurer = getWindowConfigurer();
  configurer.setInitialSize(new Point(400, 300));
  configurer.setShowCoolBar(true);
  configurer.setShowStatusLine(true);
    }
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

    /*
     *
     */
    public void preWindowOpen()
    {
        final IWorkbenchWindowConfigurer configurer = getWindowConfigurer();
        final Monitor primary = Display.getDefault().getPrimaryMonitor();

        /*
         * Get the bounds of the primary monitor, not its client area.
         *
         * Client area on multi-monitor desktops in Linux (Xinerama) spans across all monitors,
         * but the window manager won't allow the window to take all that space immediately
         * (at least that's the effect I'm observing on my desktop).
         *
         * What's funny is that the window still opens on monitor[0], but is shifted
         * outside of its bounds (and thus spills to monitor[1]). Seems like getPrimaryMonitor()
         * is not used when creating the Workbench shell.
         */
        final Rectangle fullScreenSize = primary.getBounds();
        int width = calculateInitialSize(fullScreenSize.width, 800);
        int height = calculateInitialSize(fullScreenSize.height, 600);
        configurer.setInitialSize(new Point(width, height));

        configurer.setShowStatusLine(true);
        configurer.setShowMenuBar(true);
        configurer.setShowPerspectiveBar(true);
        configurer.setShowProgressIndicator(true);
        configurer.setShowCoolBar(true);
    }
View Full Code Here

    }
   
    @Override
    public void preWindowOpen()
    {
        IWorkbenchWindowConfigurer configurer = getWindowConfigurer();
        configurer.setInitialSize(new Point(600, 400));
        configurer.setShowCoolBar(true);
        configurer.setShowStatusLine(false);
    }
View Full Code Here

    public ActionBarAdvisor createActionBarAdvisor(IActionBarConfigurer configurer) {
        return new ApplicationActionBarAdvisor(configurer);
    }
   
    public void preWindowOpen() {
        IWorkbenchWindowConfigurer configurer = getWindowConfigurer();
        configurer.setInitialSize(new Point(600, 400));
        configurer.setShowCoolBar(true);
        configurer.setShowStatusLine(false);
    }
View Full Code Here

  public WorkbenchWindowAdvisor createWorkbenchWindowAdvisor(
      IWorkbenchWindowConfigurer configurer) {
    return new WorkbenchWindowAdvisor(configurer) {
      public void preWindowOpen() {
        super.preWindowOpen();
        IWorkbenchWindowConfigurer wc = getWindowConfigurer();
        wc.setInitialSize(new Point(600, 450));
        wc.setShowCoolBar(true);
        wc.setShowStatusLine(true);
        wc.setShowProgressIndicator(true);
      }

      /*
       * @see
       * org.eclipse.ui.application.WorkbenchWindowAdvisor#postWindowCreate
       * ()
       *
       * @since 3.3
       */
      public void postWindowCreate() {
        super.postWindowCreate();
        IWorkbenchWindowConfigurer wc = getWindowConfigurer();
        IWorkbenchPage[] pages = wc.getWindow().getPages();
        for (int i = 0; i < pages.length; i++) {
          pages[i].hideActionSet("org.eclipse.ui.edit.text.actionSet.openExternalFile");
          pages[i].hideActionSet("org.eclipse.search.menu");
          pages[i].hideActionSet("org.eclipse.ui.edit.text.actionSet.annotationNavigation");
          pages[i].hideActionSet("org.eclipse.ui.edit.text.actionSet.navigation");
View Full Code Here

     * ActionBarAdvisor.fillActionBars, which is called immediately after this method is
     * called.
     */
    public void preWindowOpen()
    {
        IWorkbenchWindowConfigurer configurer = getWindowConfigurer();
        configurer.setInitialSize( new Point( 900, 600 ) );
        configurer.setShowCoolBar( true );
        configurer.setShowStatusLine( false );
        configurer.setShowPerspectiveBar( true );
        configurer.setShowProgressIndicator( true );
    }
View Full Code Here

    }

    @Override
    public void preWindowOpen()
    {
        IWorkbenchWindowConfigurer configurer = getWindowConfigurer();
        configurer.setShowCoolBar( true );
        configurer.setShowMenuBar( false );
        configurer.setShowStatusLine( true );
    }
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.