Package org.eclipse.jface.action

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 MediaOpenAction(selection));
        menuMgr.appendToGroup("control", new SyncPlayAction(selection));
        MediaViewPart.this.fillContextMenu(manager);
      }
View Full Code Here


      public void menuAboutToShow(IMenuManager manager) {
        manager.add(new Separator("control"));
        menuMgr
            .appendToGroup("control",
                new MediaOpenAction(selection));
        menuMgr.appendToGroup("control", new SyncPlayAction(selection));
        MediaViewPart.this.fillContextMenu(manager);
      }
    });

    if (lControl != null && lProvider != null) {
View Full Code Here

        /* Show in Feed (only for searchmarks) */
        if (fViewer.getInput() instanceof SearchMarkReference) {
          OpenNewsAction showInFeedAction = new OpenNewsAction(selection);
          showInFeedAction.setText("Show in Feed");
          manager.appendToGroup("open", showInFeedAction);
        }

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

View Full Code Here

          showInFeedAction.setText("Show in Feed");
          manager.appendToGroup("open", showInFeedAction);
        }

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

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

View Full Code Here

          /* Open in FeedView */
          if (!fIsEmbedded) {
            manager.add(new Separator("internalopen")); //$NON-NLS-1$
            if (!fCurrentSelection.isEmpty()) {
              manager.appendToGroup("internalopen", new OpenNewsAction(fCurrentSelection, fBrowser.getControl().getShell())); //$NON-NLS-1$
              useSeparator = false;
            }
          }

          manager.add(useSeparator ? new Separator("open") : new GroupMarker("open")); //$NON-NLS-1$ //$NON-NLS-2$
View Full Code Here

        {

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

          manager.add(new GroupMarker("open"));

          /* 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

        /* Need a Selection here */
        if (selection.isEmpty())
          return;

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

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

        /* Label */
 
View Full Code Here

        /* 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

        {

          /* 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

                        }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

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.