Package org.eclipse.jface.action

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


        IToolBarManager toolbarManager = form.getToolBarManager();
        toolbarManager.add( new EditorImportConfigurationAction( editor ) );
        toolbarManager.add( new Separator() );
        toolbarManager.add( new EditorExportConfigurationAction( editor ) );

        toolbarManager.update( true );

        createFormContent( parent, toolkit );
    }

View Full Code Here


      // remove tool bar actions
      IToolBarManager toolBarManager = getToolBarManager();
      if (toolBarManager != null) {
        removeToolBarActions(toolBarManager);
        toolBarManager.update(false);
      }

      // remove local menus
      IMenuManager menuManager = getMenuManager();
      if (menuManager != null) {
View Full Code Here

        return composite;
      }
    };
    toolbar.add(refLabelControl);
    toolbar.update(true);
  }

  /**
   * @return the repository the view is showing the reflog for
   */
 
View Full Code Here

      update = update
          | mgr.remove(RepositoryPropertySource.EDITACTIONID) != null;
      update = update
          | mgr.remove(BranchPropertySource.EDITACTIONID) != null;
      if (update)
        mgr.update(false);
    }
    lastSourceType = type;
  }
}
View Full Code Here

      toolbar.add(createCommandContributionItem(CherryPickHandler.ID));
      toolbar.add(createCommandContributionItem(RevertHandler.ID));
      toolbar.add(createCommandContributionItem(ShowInHistoryHandler.ID));
    }
    addContributions(toolbar);
    toolbar.update(true);
    getSite().setSelectionProvider(new ISelectionProvider() {

      public void setSelection(ISelection selection) {
        // Ignored
      }
View Full Code Here

        mgr.add(new Separator());
        mgr.add(editAction);
      }

      mgr.update(false);
    }
  }

  public Object getEditableValue() {
    return null;
View Full Code Here

            backAction);
        toolBarManager.add(new Separator(IntroConfigurer.TB_ADDITIONS));
        toolBarManager.add(homeAction);
        toolBarManager.add(backAction);
        toolBarManager.add(forwardAction);
        toolBarManager.update(true);
        actionBars.updateActionBars();
        updateNavigationActionsState();
    }

View Full Code Here

    protected void addToolBarActions() {
        // Handle menus:
        IActionBars actionBars = getIntroPart().getIntroSite().getActionBars();
        IToolBarManager toolBarManager = actionBars.getToolBarManager();
        toolBarManager.add(viewIntroModelAction);
        toolBarManager.update(true);
        actionBars.updateActionBars();
    }

    /**
     * Called when the Intro changes state. This method should not be
View Full Code Here

            backAction);
        toolBarManager.add(new Separator(IntroConfigurer.TB_ADDITIONS));
        toolBarManager.add(homeAction);
        toolBarManager.add(backAction);
        toolBarManager.add(forwardAction);
        toolBarManager.update(true);
        actionBars.updateActionBars();
        updateNavigationActionsState();
    }

    public void dynamicStandbyStateChanged(boolean standby,
View Full Code Here

        // Choose visible panels.
        final IAction selectPanelsAction = new SearchEditorPanelsAction(
            "Choose visible panels", this);
        toolbar.add(selectPanelsAction);

        toolbar.update(true);
    }

    /**
     * Update grouping state of the {@link #attributesPanel} and reset its editor values.
     */
 
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.