Examples of IActionBarPresentationFactory


Examples of org.eclipse.ui.internal.provisional.presentations.IActionBarPresentationFactory

   * @see org.eclipse.ui.internal.menus.AbstractContributionFactory#createContributionItems(org.eclipse.ui.internal.menus.IMenuService,
   *      java.util.List)
   */
  public void createContributionItems(IServiceLocator serviceLocator,
      IContributionRoot additions) {
    IActionBarPresentationFactory actionBarPresentationFactory = null;

    WorkbenchWindow window = (WorkbenchWindow) serviceLocator
        .getService(IWorkbenchWindow.class);
    if (window != null) {
      actionBarPresentationFactory = window
View Full Code Here

Examples of org.eclipse.ui.internal.provisional.presentations.IActionBarPresentationFactory

    /**
     * Constructs a view pane for a view part.
     */
    public ViewPane(IViewReference ref, WorkbenchPage page) {
        super(ref, page);
        IActionBarPresentationFactory actionBarPresentation = ((WorkbenchWindow) page
        .getWorkbenchWindow()).getActionBarPresentationFactory();
       
        isvToolBarMgr = actionBarPresentation.createViewToolBarManager();
    }
View Full Code Here

Examples of org.eclipse.ui.internal.provisional.presentations.IActionBarPresentationFactory

              // If a tool bar contribution item already exists
              // for this id then use the old object
              if (oldItem != null) {
                newItem = oldItem;
              } else {
                IActionBarPresentationFactory actionBarPresentation = getActionBarPresentationFactory();
                newItem = actionBarPresentation.createToolBarContributionItem(
                    actionBarPresentation.createToolBarManager(), id);
                if (type
                    .equals(IWorkbenchConstants.TAG_TYPE_PLACEHOLDER)) {
                  IToolBarContributionItem newToolBarItem = (IToolBarContributionItem) newItem;
                  if (height != null) {
                    newToolBarItem.setCurrentHeight(height
View Full Code Here

Examples of org.eclipse.ui.internal.provisional.presentations.IActionBarPresentationFactory

        // If a tool bar contribution item already exists for this id
        // then use the old object
        if (oldItem instanceof IToolBarContributionItem) {
          newItem = oldItem;
        } else {
          IActionBarPresentationFactory actionBarPresentaiton = getActionBarPresentationFactory();
          newItem = actionBarPresentaiton.createToolBarContributionItem(
                  actionBarPresentaiton.createToolBarManager(), id);
          // make it invisible by default
          newItem.setVisible(false);
          // Need to add the item to the cool bar manager so that its
          // canonical order can be preserved
          IContributionItem refItem = findAlphabeticalOrder(
View Full Code Here

Examples of org.eclipse.ui.internal.provisional.presentations.IActionBarPresentationFactory

     *
     * @return the presentation used.
     */
    public IActionBarPresentationFactory getActionBarPresentationFactory() {
      // allow replacement of the actionbar presentation
      IActionBarPresentationFactory actionBarPresentation;         
      AbstractPresentationFactory presentationFactory =
        getWindowConfigurer().getPresentationFactory();
      if (presentationFactory instanceof IActionBarPresentationFactory) {
          actionBarPresentation = ((IActionBarPresentationFactory) presentationFactory);
      } else {
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.