Package org.eclipse.jface.action

Examples of org.eclipse.jface.action.ControlContribution


        final SVNPluginAction[] toolbarActions = SVNUIPlugin.getCommitDialogToolBarActions();
        IToolbarControlCreator toolbarControlCreator = new IToolbarControlCreator() {
            public void createToolbarControls(ToolBarManager toolbarManager) {
               
                toolbarManager.add(new Separator());
                toolbarManager.add(new ControlContribution("showCompare") {
                    protected Control createControl(Composite parent) {
                        showCompareButton = new Button(parent, SWT.TOGGLE | SWT.FLAT);
                        showCompareButton.setImage(SVNUIPlugin.getImage(ISVNUIConstants.IMG_SYNCPANE)); //$NON-NLS-1$
                        showCompareButton.setToolTipText(RbSubclipseMessages.getString("PAGE_CODE_COMPARE"));
                        showCompareButton.setSelection(showCompare);
View Full Code Here


    private void createToolBar() {
        IToolBarManager mgr = getViewSite().getActionBars().getToolBarManager();

        mgr.add(new GroupMarker(CHOOSER_MENU_GROUP));
        mgr.appendToGroup(CHOOSER_MENU_GROUP, new ControlContribution("none"){ //$NON-NLS-1$
                    protected Control createControl( Composite parent ) {
                        configChooser = new Combo(parent, SWT.DROP_DOWN | SWT.READ_ONLY);

                        // update the chooser with the currently selected layer
                        //
View Full Code Here

  private void createSpace(IToolBarManager toolBar) {
    createString(toolBar, "  ");
  }

  private void createString(IToolBarManager toolBar, final String str) {
    toolBar.add(new ControlContribution(null) {
      @Override
      protected Control createControl(Composite parent) {
        return toolkit.createLabel(parent, str);
      }
    });
View Full Code Here

   * Creates tool bar items for Windows operating system.
   *
   * @param toolBar The tool bar.
   */
  private void createToolBarForWindowsOS(IToolBarManager toolBar) {
    toolBar.add(new ControlContribution("rabbit.ui.fromDateTime") {
      @Override
      protected Control createControl(Composite parent) {
        final Calendar dateToBind = preferences.getStartDate();
        final DateTime fromDateTime = new DateTime(parent, SWT.DROP_DOWN
            | SWT.BORDER);
        fromDateTime
            .setToolTipText("Select the start date for the data to be displayed");
        updateDateTime(fromDateTime, dateToBind);
        fromDateTime.addListener(SWT.Selection, new Listener() {
          @Override
          public void handleEvent(Event event) {
            updateDate(dateToBind, fromDateTime);
          }
        });
        return fromDateTime;
      }
    });
    createSpace(toolBar);
    toolBar.add(new ControlContribution("rabbit.ui.toDateTime") {
      @Override
      protected Control createControl(Composite parent) {
        final Calendar dateToBind = preferences.getEndDate();
        final DateTime toDateTime = new DateTime(parent, SWT.DROP_DOWN
            | SWT.BORDER);
View Full Code Here

      manager.add(new FilterJobAction("Ignore failed builds", "Do not report build errors for this project", j.getName()));
    }
  }

  private void fillLocalToolBar(IToolBarManager manager) {
    ControlContribution nameControlContribution = new ControlContribution("contribution_id") {
      protected Control createControl(Composite parent) {      
        nameText = new Text(parent, SWT.BORDER);

        nameText.addModifyListener(new ModifyListener() {
          public void modifyText(org.eclipse.swt.events.ModifyEvent e) {         
View Full Code Here

      manager.add(new FilterJobAction("Ignore failed builds", "Do not report build errors for this project", j.getName()));
    }
  }

  private void fillLocalToolBar(IToolBarManager manager) {
    ControlContribution nameControlContribution = new ControlContribution("contribution_id") {
      protected Control createControl(Composite parent) {      
        nameText = new Text(parent, SWT.BORDER);

        nameText.addModifyListener(new ModifyListener() {
          public void modifyText(org.eclipse.swt.events.ModifyEvent e) {         
View Full Code Here

      manager.add(new FilterJobAction("Ignore failed builds", "Do not report build errors for this project", j.getName()));
    }
  }

  private void fillLocalToolBar(IToolBarManager manager) {
    ControlContribution nameControlContribution = new ControlContribution("contribution_id") {
      protected Control createControl(Composite parent) {      
        nameText = new Text(parent, SWT.BORDER);

        nameText.addModifyListener(new ModifyListener() {
          public void modifyText(org.eclipse.swt.events.ModifyEvent e) {         
View Full Code Here

      manager.add(new FilterJobAction("Ignore failed builds", "Do not report build errors for this project", j.getName()));
    }
  }

  private void fillLocalToolBar(IToolBarManager manager) {
    ControlContribution nameControlContribution = new ControlContribution("contribution_id") {
      protected Control createControl(Composite parent) {      
        nameText = new Text(parent, SWT.BORDER);

        nameText.addModifyListener(new ModifyListener() {
          public void modifyText(org.eclipse.swt.events.ModifyEvent e) {         
View Full Code Here

      authorText.setEnabled(enabled);
  }

  private void updateToolbar() {

    ControlContribution controlContribution = new ControlContribution(
        "StagingView.searchText") { //$NON-NLS-1$
      @Override
      protected Control createControl(Composite parent) {
        Composite toolbarComposite = toolkit.createComposite(parent,
            SWT.NONE);
View Full Code Here

  private void updateRefLink(final String name) {
    IToolBarManager toolbar = form.getToolBarManager();
    toolbar.removeAll();

    ControlContribution refLabelControl = new ControlContribution(
        "refLabel") { //$NON-NLS-1$
      @Override
      protected Control createControl(Composite cParent) {
        Composite composite = toolkit.createComposite(cParent);
        composite.setLayout(new RowLayout());
View Full Code Here

TOP

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

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.