Examples of appendToGroup()


Examples of org.eclipse.jface.action.IMenuManager.appendToGroup()

        IWorkbenchWindow window = workbench.getActiveWorkbenchWindow();
        // we are using the global BACK and FORWARD actions here
        // and will register "handlers" for these commands
        navigateMenu.appendToGroup(IWorkbenchActionConstants.NAV_END,
            ActionFactory.BACK.create(window));
        navigateMenu.appendToGroup(IWorkbenchActionConstants.NAV_END,
            ActionFactory.FORWARD.create(window));
       
        if (!manager.isVisible()){
            // since this is the top level menu bar why would it not be visible?
            manager.setVisible(true);
View Full Code Here

Examples of org.eclipse.jface.action.IMenuManager.appendToGroup()

                    menu = targetMenu.findMenuUsingPath(items[ii].toLowerCase());                 
                }
               
                if (menu == null) {                 
                    menu = createMenu(items[ii], items[ii]);
                    targetMenu.appendToGroup(ADDITIONS_GROUP, menu);
                }
               
                targetMenu = menu;
            }
           
View Full Code Here

Examples of org.eclipse.jface.action.IMenuManager.appendToGroup()

            group = items[items.length - 1];
            IContributionItem groupItem = targetMenu.find(group);
           
            if (groupItem == null) {
                groupItem = new GroupMarker(group);
                targetMenu.appendToGroup(ADDITIONS_GROUP, groupItem);
            }
           
            targetMenu.appendToGroup(group, action);
            handleActionAccelerator(action, targetMenu, serviceReference);
            targetMenu.appendToGroup(group, new Separator());
View Full Code Here

Examples of org.eclipse.jface.action.IMenuManager.appendToGroup()

            if (groupItem == null) {
                groupItem = new GroupMarker(group);
                targetMenu.appendToGroup(ADDITIONS_GROUP, groupItem);
            }
           
            targetMenu.appendToGroup(group, action);
            handleActionAccelerator(action, targetMenu, serviceReference);
            targetMenu.appendToGroup(group, new Separator());
            algorithmsToActions.put(getItemID(serviceReference), action);
            actionsToMenuManagers.put(action, targetMenu);
           
View Full Code Here

Examples of org.eclipse.jface.action.IMenuManager.appendToGroup()

                targetMenu.appendToGroup(ADDITIONS_GROUP, groupItem);
            }
           
            targetMenu.appendToGroup(group, action);
            handleActionAccelerator(action, targetMenu, serviceReference);
            targetMenu.appendToGroup(group, new Separator());
            algorithmsToActions.put(getItemID(serviceReference), action);
            actionsToMenuManagers.put(action, targetMenu);
           
            Display.getDefault().asyncExec(this.updateAction);
        } else {
View Full Code Here

Examples of org.eclipse.jface.action.IMenuManager.appendToGroup()

  public void contributeToMenu(IMenuManager menu) {
    super.contributeToMenu(menu);
   
    IMenuManager editMenu= menu.findMenuUsingPath(IWorkbenchActionConstants.M_EDIT);
    if (editMenu != null) {
      editMenu.appendToGroup(ITextEditorActionConstants.GROUP_ASSIST, fQuickAssistMenuEntry);
      fQuickAssistMenuEntry.setVisible(false);
      editMenu.appendToGroup(ITextEditorActionConstants.GROUP_INFORMATION, fRetargetShowInformationAction);
    }
  }
View Full Code Here

Examples of org.eclipse.jface.action.IMenuManager.appendToGroup()

   
    IMenuManager editMenu= menu.findMenuUsingPath(IWorkbenchActionConstants.M_EDIT);
    if (editMenu != null) {
      editMenu.appendToGroup(ITextEditorActionConstants.GROUP_ASSIST, fQuickAssistMenuEntry);
      fQuickAssistMenuEntry.setVisible(false);
      editMenu.appendToGroup(ITextEditorActionConstants.GROUP_INFORMATION, fRetargetShowInformationAction);
    }
  }

  /*
   * @see IEditorActionBarContributor#setActiveEditor(org.eclipse.ui.IEditorPart)
View Full Code Here

Examples of org.eclipse.jface.action.IMenuManager.appendToGroup()

      addOrInsert(editMenu, new Separator(ITextEditorActionConstants.GROUP_INFORMATION));
      addOrInsert(editMenu, new Separator(ITextEditorActionConstants.GROUP_ASSIST));
      addOrInsert(editMenu, new Separator(ITextEditorActionConstants.GROUP_GENERATE));
      addOrInsert(editMenu, new Separator(IWorkbenchActionConstants.MB_ADDITIONS));

      editMenu.appendToGroup(ITextEditorActionConstants.GROUP_ASSIST, fHippieCompletion);
    }

    IMenuManager navigateMenu= menu.findMenuUsingPath(IWorkbenchActionConstants.M_NAVIGATE);
    if (navigateMenu != null) {
      navigateMenu.appendToGroup(IWorkbenchActionConstants.MB_ADDITIONS, fGotoLine);
View Full Code Here

Examples of org.eclipse.jface.action.IMenuManager.appendToGroup()

      editMenu.appendToGroup(ITextEditorActionConstants.GROUP_ASSIST, fHippieCompletion);
    }

    IMenuManager navigateMenu= menu.findMenuUsingPath(IWorkbenchActionConstants.M_NAVIGATE);
    if (navigateMenu != null) {
      navigateMenu.appendToGroup(IWorkbenchActionConstants.MB_ADDITIONS, fGotoLine);
    }
  }

  /**
   * The <code>item</code> is {@link IContributionManager#add(IContributionItem) added} to
View Full Code Here

Examples of org.eclipse.jface.action.IMenuManager.appendToGroup()

    if (editMenu != null) {
      editMenu.insertBefore("additions", new Separator("amateras"));
      for(int i=0;i<actionIds.size();i++){
        RetargetTextEditorAction action = new RetargetTextEditorAction(HTMLPlugin.getDefault().getResourceBundle(), null);
        this.actions.add(action);
        editMenu.appendToGroup("amateras",action);
      }
    }
  }

}
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.