Examples of ToolBarManager


Examples of org.eclipse.jface.action.ToolBarManager

    popUpMenu.add(new ActionContributionItem(actions.get(ActionFactory.LOCK_TOOL_BAR)));
//    popUpMenu.add(new ActionContributionItem(actions.get(ActionFactory.EDIT_ACTION_SETS)));
    coolBar.setContextMenuManager(popUpMenu);

    coolBar.add(new GroupMarker(IWorkbenchActionConstants.GROUP_FILE));
    ToolBarManager fileToolBar = new ToolBarManager();
    fileToolBar.add(new Separator(IWorkbenchActionConstants.NEW_GROUP));
    fileToolBar.add(actions.get(ActionFactory.NEW_WIZARD_DROP_DOWN));
    fileToolBar.add(new GroupMarker(IWorkbenchActionConstants.SAVE_GROUP));
    fileToolBar.add(actions.get(ActionFactory.SAVE));
    coolBar.add(fileToolBar);

    coolBar.add(new GroupMarker(IWorkbenchActionConstants.HISTORY_GROUP));
    ToolBarManager navigateToolBar = new ToolBarManager();
    navigateToolBar.add(new Separator(IWorkbenchActionConstants.HISTORY_GROUP));
    navigateToolBar.add(actions.get(ActionFactory.BACKWARD_HISTORY));
    navigateToolBar.add(actions.get(ActionFactory.FORWARD_HISTORY));
    coolBar.add(navigateToolBar);
  }
View Full Code Here

Examples of org.eclipse.jface.action.ToolBarManager

            control.setTopLeft( browserConnectionWidgetControl );

            // tool bar
            actionToolBar = new ToolBar( control, SWT.FLAT | SWT.RIGHT );
            actionToolBar.setLayoutData( new GridData( SWT.END, SWT.NONE, true, false ) );
            actionToolBarManager = new ToolBarManager( actionToolBar );
            control.setTopCenter( actionToolBar );

            // local menu
            control.setTopRight( null );
View Full Code Here

Examples of org.eclipse.jface.action.ToolBarManager

        layout = new GridLayout();
        layout.marginHeight = layout.marginWidth = layout.horizontalSpacing = layout.verticalSpacing = 0;
        setLayout(layout);

        // Create a toolbar.
        toolBarMgr = new ToolBarManager(SWT.FLAT);
        ToolBar toolBar = toolBarMgr.createControl(this);
        gid = new GridData();
        gid.horizontalAlignment = GridData.FILL;
        gid.verticalAlignment = GridData.BEGINNING;
        toolBar.setLayoutData(gid);
View Full Code Here

Examples of org.eclipse.jface.action.ToolBarManager

      int orientation = SWT.HORIZONTAL;
      if (dropSide == SWT.LEFT || dropSide == SWT.RIGHT)
        orientation = SWT.VERTICAL;
     
      // Create the new control, manager...
      tbm = new ToolBarManager(SWT.FLAT | orientation);
      menuService.populateContributionManager(tbm, uriSpec);
     
      // Set the state for any Control entries
      IContributionItem[] items = tbm.getItems();
      for (int i = 0; i < items.length; i++) {
View Full Code Here

Examples of org.eclipse.jface.action.ToolBarManager

     * @param parent parent <code>Composite</code> of toolbar button
     */
    private void createClearText(Composite parent) {
      // only create the button if the text widget doesn't support one natively
      if ((filterText.getStyle() & SWT.CANCEL) == 0) {
      filterToolBar = new ToolBarManager(SWT.FLAT | SWT.HORIZONTAL);
      filterToolBar.createControl(parent);

      IAction clearTextAction = new Action("", IAction.AS_PUSH_BUTTON) {//$NON-NLS-1$
        /*
         * (non-Javadoc)
 
View Full Code Here

Examples of org.eclipse.jface.action.ToolBarManager

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

Examples of org.eclipse.jface.action.ToolBarManager

        control.setTopLeft( infoTextControl );

        // tool bar
        actionToolBar = new ToolBar( control, SWT.FLAT | SWT.RIGHT );
        actionToolBar.setLayoutData( new GridData( SWT.END, SWT.NONE, true, false ) );
        actionToolBarManager = new ToolBarManager( actionToolBar );
        control.setTopCenter( actionToolBar );

        // local menu
        this.menuManager = new MenuManager();
        menuToolBar = new ToolBar( control, SWT.FLAT | SWT.RIGHT );
View Full Code Here

Examples of org.eclipse.jface.action.ToolBarManager

     * Populates the Cool Bar
     */
    protected void fillCoolBar( ICoolBarManager coolBar )
    {
        // add main tool bar
        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

Examples of org.eclipse.jface.action.ToolBarManager

        GridData data = new GridData(GridData.FILL_HORIZONTAL
                | GridData.GRAB_HORIZONTAL);
        getFilterControl().setLayoutData(data);

        ToolBar toolBar = new ToolBar(filterParent, SWT.FLAT | SWT.HORIZONTAL);
        filterToolBar = new ToolBarManager(toolBar);

        createClearText(filterToolBar);

        filterToolBar.update(false);
        // initially there is no text to clear
View Full Code Here

Examples of org.eclipse.jface.action.ToolBarManager

   *
   * @return Control
   */
  Control getContainerToolBar(Composite composite) {
        ToolBar historyBar = new ToolBar(composite, SWT.HORIZONTAL | SWT.FLAT);
        ToolBarManager historyManager = new ToolBarManager(historyBar);
   
        history.createHistoryControls(historyBar, historyManager);
       
        historyManager.update(false);
   
        return historyBar;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.