Examples of appendToGroup()


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

        /* Open in FeedView */
        manager.appendToGroup("internalopen", new OpenNewsAction(selection, getShell()));

        /* Sticky */
        manager.appendToGroup("label", new MakeTypesStickyAction(selection));

        /* Label */
        MenuManager labelMenu = new MenuManager("Label");
        manager.appendToGroup("label", labelMenu);

View Full Code Here

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

        {

          /* Open in FeedView */
          manager.add(new Separator("internalopen")); //$NON-NLS-1$
          if (!selection.isEmpty())
            manager.appendToGroup("internalopen", new OpenNewsAction(selection, getShell())); //$NON-NLS-1$

          manager.add(new GroupMarker("open")); //$NON-NLS-1$

          /* Show only when internal browser is used */
          if (!selection.isEmpty() && !fPreferences.getBoolean(DefaultPreferences.USE_CUSTOM_EXTERNAL_BROWSER) && !fPreferences.getBoolean(DefaultPreferences.USE_DEFAULT_EXTERNAL_BROWSER))
View Full Code Here

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

                        }else{
                            targetMenu.add(action);
                            targetMenu.setVisible(true);
                        }
                    } else
                        actionMenu.appendToGroup(actionExt, tool.getAction()); //$NON-NLS-1$
                } else {
                    actionMenu.appendToGroup(actionExt, tool.getAction()); //$NON-NLS-1$
                }
            }
            if (tool.getType() == ToolProxy.MODAL) {
View Full Code Here

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

                            targetMenu.setVisible(true);
                        }
                    } else
                        actionMenu.appendToGroup(actionExt, tool.getAction()); //$NON-NLS-1$
                } else {
                    actionMenu.appendToGroup(actionExt, tool.getAction()); //$NON-NLS-1$
                }
            }
            if (tool.getType() == ToolProxy.MODAL) {
                MenuCurrentToolItem menuItem = new MenuCurrentToolItem(tool);
                tool.addContribution(menuItem);
View Full Code Here

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

                }
            }
            if (tool.getType() == ToolProxy.MODAL) {
                MenuCurrentToolItem menuItem = new MenuCurrentToolItem(tool);
                tool.addContribution(menuItem);
                actionMenu.appendToGroup("modal.ext", menuItem); //$NON-NLS-1$
            }
        }
        if (actionMenu.getItems().length > 0) {
            // Handle left over tools! Place them in the map menu?
            String menuPath = "map"; // was Constants.M_TOOL
View Full Code Here

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

                    item.runAction();
                }
            };
            newAction.setText(item.text);
            newAction.setImageDescriptor(item.icon);
            newMenu.appendToGroup(Constants.NEW_START, newAction);
        }
        newMenu.add(ContributionItemFactory.NEW_WIZARD_SHORTLIST.create(window));

        fileMenu.add(newMenu);
        fileMenu.add(new GroupMarker(Constants.OPEN_EXT));
View Full Code Here

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

       
        MenuManager fileMenu = new MenuManager("&File", IWorkbenchActionConstants.M_FILE);   //Create File menu as a normal Menu
        menuBar.add(fileMenu);                                //add it to the MenuBar
        MenuManager helpMenu = createMenu("&Help", IWorkbenchActionConstants.M_HELP);    //Create the Help Menu with start, end, and additions as divisions
        helpMenu.add(new Separator());                            //Add a separator and then add the "About" MenuItem.
        helpMenu.appendToGroup("end",aboutAction);   
        menuBar.add(new GroupMarker("start"));                        //Add divisions to the MenuBar so we can add
                                                  //additional menus to the MenuBar between File and Help menus                                          //the File and Help menus.
        menuBar.add(new GroupMarker(IWorkbenchActionConstants.MB_ADDITIONS));
        menuBar.add(new GroupMarker("end"));
       
View Full Code Here

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

    }
   
    menuMgr.addMenuListener(new IMenuListener() {
      public void menuAboutToShow(IMenuManager manager) {
        manager.add(new Separator("control"));
            menuMgr.appendToGroup("control", new PauzeAction(selection));
            menuMgr.appendToGroup("control", new CleanAction(selection));
        DownloadViewPart.this.fillContextMenu(manager);
      }
    });
   
View Full Code Here

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

   
    menuMgr.addMenuListener(new IMenuListener() {
      public void menuAboutToShow(IMenuManager manager) {
        manager.add(new Separator("control"));
            menuMgr.appendToGroup("control", new PauzeAction(selection));
            menuMgr.appendToGroup("control", new CleanAction(selection));
        DownloadViewPart.this.fillContextMenu(manager);
      }
    });
   
   
View Full Code Here

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

   
    setHaloStatus(label, HaloStatusPlugin.getPlugin().getPlayerCount());
    label.setImage(HaloStatusPlugin.getImage("resources/icons/halo1.gif"));
   
    statusLineManager.add(new Separator("halo"));
    statusLineManager.appendToGroup("halo", label);
   
      statusLineManager.update(true);
     
      HaloStatusPlugin.getPlugin().getPreferenceStore().addPropertyChangeListener(new IPropertyChangeListener() {
      public void propertyChange(PropertyChangeEvent event) {
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.