Package org.eclipse.jface.action

Examples of org.eclipse.jface.action.ToolBarContributionItem


      toolBarX.add(getAction(ActionFactory.PRINT.getId()));

      toolBarX.add(new GroupMarker(IWorkbenchActionConstants.PRINT_EXT));

      toolBarX.add(new Separator(IWorkbenchActionConstants.MB_ADDITIONS));
      toolBar.add(new ToolBarContributionItem(toolBarX,
          IWorkbenchActionConstants.TOOLBAR_FILE));
    }

    toolBar.add(new GroupMarker(IWorkbenchActionConstants.MB_ADDITIONS));

    toolBar.add(new GroupMarker("group.nav"));

    toolBar.add(new GroupMarker(IWorkbenchActionConstants.GROUP_EDITOR));

    toolBar.add(new GroupMarker(IWorkbenchActionConstants.GROUP_HELP));

    {
      IToolBarManager toolBarX = new ToolBarManager();

      toolBarX.add(new Separator(IWorkbenchActionConstants.GROUP_HELP));

      toolBarX.add(new GroupMarker(IWorkbenchActionConstants.GROUP_APP));
      toolBar.add(new ToolBarContributionItem(toolBarX,
          IWorkbenchActionConstants.TOOLBAR_HELP));
    }
  }
View Full Code Here


    if (actionBarPresentationFactory != null) {
      return actionBarPresentationFactory.createToolBarContributionItem(
          actionBarPresentationFactory.createToolBarManager(),
          getId(configurationElement));
    }
    return new ToolBarContributionItem(new ToolBarManager(),
        getId(configurationElement));
  }
View Full Code Here

        IToolBarManager toolbar = new ToolBarManager( SWT.FLAT | SWT.RIGHT );
        toolbar.add( newDropDownAction );
        toolbar.add( saveAction );
        toolbar.add( printAction );
        toolbar.add( preferencesAction );
        coolBar.add( new ToolBarContributionItem( toolbar, Application.PLUGIN_ID + ".toolbar" ) ); //$NON-NLS-1$

        // add marker for additions
        coolBar.add( new GroupMarker( IWorkbenchActionConstants.MB_ADDITIONS ) );

        // add navigation tool bar
        // some actions are added from org.eclipse.ui.editor to the HISTORY_GROUP
        IToolBarManager navToolBar = new ToolBarManager( SWT.FLAT | SWT.RIGHT );
        navToolBar.add( new Separator( IWorkbenchActionConstants.HISTORY_GROUP ) );
        navToolBar.add( backwardHistoryAction );
        navToolBar.add( forwardHistoryAction );
        coolBar.add( new ToolBarContributionItem( navToolBar, IWorkbenchActionConstants.TOOLBAR_NAVIGATE ) );
    }
View Full Code Here

        helpMenu.add(aboutAction);
    }
   
    protected void fillCoolBar(ICoolBarManager coolBar) {
        IToolBarManager toolbar = new ToolBarManager(SWT.FLAT | SWT.RIGHT);
        coolBar.add(new ToolBarContributionItem(toolbar, "main"));  
        toolbar.add(openViewAction);
        toolbar.add(messagePopupAction);
        toolbar.add(openMapAction);
        toolbar.add(openMapOverviewAction);
    }
View Full Code Here

        if ( actionToolBarManager.getItems().length > 0){
            IContributionItem item = subManager.find(ToolConstants.ACTION_TOOLBAR_ID);
            if(item != null){
                subManager.remove(ToolConstants.ACTION_TOOLBAR_ID);
            }
            ToolBarContributionItem toolBarContributionItem = new ToolBarContributionItem(actionToolBarManager, ToolConstants.ACTION_TOOLBAR_ID);
            subManager.add(toolBarContributionItem);
        }
       
//        ToolBarManager modalToolBarManager = new ToolBarManager(SWT.FLAT);
//        ApplicationGIS.getToolManager().contributeModalTools(modalToolBarManager, getActionBars());
View Full Code Here

    /**
     * @param coolBar
     * @param window The window that contains the CoolBar
     */
    public void fillCoolBar( ICoolBarManager coolBar, IWorkbenchWindow window ) {
        coolBar.add(new ToolBarContributionItem(createFileBar(window),
                IWorkbenchActionConstants.TOOLBAR_FILE));
    }
View Full Code Here

    }

  protected void fillCoolBar(ICoolBarManager coolBar)
    {
    IToolBarManager toolbar = new ToolBarManager(SWT.FLAT | SWT.RIGHT);
    coolBar.add(new ToolBarContributionItem(toolbar, "main"));
    toolbar.add(saveAction);
    toolbar.add(copyAction);
    toolbar.add(pasteAction);
   
    toolbar.add(searchAction);
View Full Code Here

    coolBarManager.setLockLayout(false);               
    int toolBarStyle = SWT.FLAT | SWT.WRAP;

    /* Create "File" group */
    ToolBarManager toolBarManager = new ToolBarManager(toolBarStyle);
    ToolBarContributionItem toolItem = new ToolBarContributionItem(toolBarManager);

    ActionContributionItem newFileItem = new ActionContributionItem(events.newFileAct);
    ActionContributionItem openFileItem = new ActionContributionItem(events.openProblemAct);
    ActionContributionItem saveFileItem = new ActionContributionItem(events.saveProblemAct);

    toolBarManager.add(newFileItem);
    toolBarManager.add(openFileItem);
    toolBarManager.add(saveFileItem);
    coolBarManager.add(toolItem);

    /* Create "Solution" group */
    toolBarManager = new ToolBarManager(toolBarStyle);
    toolItem = new ToolBarContributionItem(toolBarManager);

    ActionContributionItem solveItem = new ActionContributionItem(events.solveProblemAct);

    toolBarManager.add(solveItem);
    coolBarManager.add(toolItem);
View Full Code Here

    {
        // add main tool bar
        IToolBarManager toolbar = new ToolBarManager( SWT.FLAT | SWT.RIGHT );
        toolbar.add( newDropDownAction );
        toolbar.add( preferencesAction );
        coolBar.add( new ToolBarContributionItem( toolbar, Application.PLUGIN_ID + ".toolbar" ) ); //$NON-NLS-1$

        // add marker for additions
        coolBar.add( new GroupMarker( IWorkbenchActionConstants.MB_ADDITIONS ) );

        // add navigation tool bar
        // some actions are added from org.eclipse.ui.editor to the HISTORY_GROUP
        IToolBarManager navToolBar = new ToolBarManager( SWT.FLAT | SWT.RIGHT );
        navToolBar.add( new Separator( IWorkbenchActionConstants.HISTORY_GROUP ) );
        navToolBar.add( backwardHistoryAction );
        navToolBar.add( forwardHistoryAction );
        coolBar.add( new ToolBarContributionItem( navToolBar, IWorkbenchActionConstants.TOOLBAR_NAVIGATE ) );

    }
View Full Code Here

  }

  @Override
  protected void fillCoolBar(final ICoolBarManager coolBar) {
    final IToolBarManager toolbar = new ToolBarManager(SWT.FLAT | SWT.RIGHT);
    coolBar.add(new ToolBarContributionItem(toolbar, "main"));
    toolbar.add(_saveAction);

  }
View Full Code Here

TOP

Related Classes of org.eclipse.jface.action.ToolBarContributionItem

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.