Package org.eclipse.jface.action

Examples of org.eclipse.jface.action.ToolBarManager.update()


        if (toolbarControlCreator != null) {
            toolbarControlCreator.createToolbarControls(toolbarManager);
            toolbarManager.add(new Separator());
        }

        toolbarManager.update(true);

        resourceList = new ArrayList<IResource>();

        if (resources != null) {
            Arrays.sort(resources, comparator);
View Full Code Here


        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

    coolBar.add(controlToolbar1);
   
    controlToolbar1.add(stopAction);
    controlToolbar1.add(pauseAction);

    controlToolbar1.update(true);
   
    IToolBarManager controlToolbar2 = new ToolBarManager(coolBar.getStyle());
    coolBar.add(controlToolbar2);

    controlToolbar2.add(seekMinusAction);
View Full Code Here

    ToolBarManager historyManager = new ToolBarManager(SWT.HORIZONTAL | SWT.FLAT);
    historyManager.createControl(composite);
 
    history.createHistoryControls(historyManager.getControl(), historyManager);
   
    historyManager.update(false);
 
    return historyManager.getControl();
  }

View Full Code Here

    Table table = tableViewer.getTable();
    table.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));
   
    IMenuService menuService = (IMenuService) PlatformUI.getWorkbench().getService(IMenuService.class);
        menuService.populateContributionManager(toolBarManager, "toolbar:de.ambits.csvmaster.editors.tableComposite");
        toolBarManager.update(true);
       
        //Enables key support for the table viewer
        TableViewerKeyboardSupporter supporter = new TableViewerKeyboardSupporter(tableViewer);
        supporter.startSupport();
       
View Full Code Here

                    handCursor.dispose();
                }
            }
        });
        toolBarManager.add(getSyncAction());
        toolBarManager.update(true);
        getSection().setTextClient(toolbar);
    }

    protected class SyncAction extends Action {
        public SyncAction(String tooltipText) {
View Full Code Here

            }
          }
        };
        iControl.addInputChangeListener(inputChangeListener);

        tbm.update(true);

        addLinkListener(iControl);

        return iControl;
View Full Code Here

      updateHeader();
      ToolBarManager tbm = CompareViewerPane.getToolBarManager(fComposite
          .getParent());
      if (tbm != null) {
        updateToolItems();
        tbm.update(true);
        tbm.getControl().getParent().layout(true);
      }

    }
  }
View Full Code Here

      tbm.getControl().addDisposeListener(a);

      createToolItems(tbm);
      updateToolItems();

      tbm.update(true);
    }
  }

  /**
   * Callback that is invoked when the control of this merge viewer is given
View Full Code Here

    toolBarManager.add(fAddFieldExcludeMappingAction);   
    toolBarManager.add(fExpandAllAction);   
    toolBarManager.add(fCollapseAllAction);   
    toolBarManager.add(fExtendAction);   

    toolBarManager.update(true);

    section.setTextClient(toolbar);
 
 
  public TreeViewer getMappings() {
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.