Examples of createContextMenu()


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

            @Override
            public void menuAboutToShow(final IMenuManager manager) {
                TraceLogView.this.fillContextMenu(manager);
            }
        });
        final Menu menu = menuMgr.createContextMenu(viewer.getControl());
        viewer.getControl().setMenu(menu);
        getSite().registerContextMenu(menuMgr, viewer);
    }

    private void contributeToActionBars() {
View Full Code Here

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

                // recursive loop?
                // menuAboutToShow(m);
                contextMenuAboutToShow(m);
            }
        });
        final Menu menu = manager.createContextMenu(tree);
        tree.setMenu(menu);

        site.registerContextMenu(ErlangCore.PLUGIN_ID + ".outline", manager,
                fOutlineViewer);
        fActionGroups = new CompositeActionGroup(
View Full Code Here

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

            @Override
            public void menuAboutToShow(final IMenuManager manager) {
                LiveExpressionsView.this.fillContextMenu(manager);
            }
        });
        final Menu menu = menuMgr.createContextMenu(viewer.getControl());
        viewer.getControl().setMenu(menu);
        getSite().registerContextMenu(menuMgr, viewer);
    }

    private void contributeToActionBars() {
View Full Code Here

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

  protected void createContextMenuFor(StructuredViewer viewer) {
    MenuManager contextMenu = new MenuManager("#PopUp");
    contextMenu.add(new Separator("additions"));
    contextMenu.setRemoveAllWhenShown(true);
    contextMenu.addMenuListener(this);
    Menu menu= contextMenu.createContextMenu(viewer.getControl());
    viewer.getControl().setMenu(menu);
    getSite().registerContextMenu(contextMenu, new UnwrappingSelectionProvider(viewer));

    int dndOperations = DND.DROP_COPY | DND.DROP_MOVE | DND.DROP_LINK;
    Transfer[] transfers = new Transfer[] { LocalTransfer.getInstance() };
View Full Code Here

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

  protected void createContextMenuFor(StructuredViewer viewer) {
    MenuManager contextMenu = new MenuManager("#PopUp");
    contextMenu.add(new Separator("additions"));
    contextMenu.setRemoveAllWhenShown(true);
    contextMenu.addMenuListener(this);
    Menu menu= contextMenu.createContextMenu(viewer.getControl());
    viewer.getControl().setMenu(menu);
    getSite().registerContextMenu(contextMenu, new UnwrappingSelectionProvider(viewer));

    int dndOperations = DND.DROP_COPY | DND.DROP_MOVE | DND.DROP_LINK;
    Transfer[] transfers = new Transfer[] { LocalTransfer.getInstance() };
View Full Code Here

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

            }
          });
    }

    MenuManager menuMgr = new MenuManager();
    Menu menu = menuMgr.createContextMenu(treeViewer.getTree());
    menuMgr.addMenuListener(new IMenuListener() {
      public void menuAboutToShow(IMenuManager menuMgr) {
        fillTreeMenu(menuMgr);
      }
    });
View Full Code Here

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

                mActions.setContext(new ActionContext(selection));
                mActions.fillContextMenu(manager);
            }
        });
       
        Menu menu = menuManager.createContextMenu(mTreeViewer.getTree());
        mTreeViewer.getTree().setMenu(menu);
        getSite().registerContextMenu(menuManager, mTreeViewer);
    }
   
    /**
 
View Full Code Here

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

        menuMgr.addMenuListener(new IMenuListener() {
            public void menuAboutToShow(IMenuManager manager) {
                ResolveVisualizerView.this.fillContextMenu(manager);
            }
        });
        Menu menu = menuMgr.createContextMenu(viewer.getControl());
        viewer.getControl().setMenu(menu);
        getSite().registerContextMenu(menuMgr, viewer);
    }

    private void contributeToActionBars() {
View Full Code Here

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

            }

        });

        // Create menu.
        Menu menu = contextMenu.createContextMenu(viewer.getControl());
        viewer.getControl().setMenu(menu);

        // Register menu for extension.
        getSite().registerContextMenu(contextMenu, viewer);
View Full Code Here

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

                   
                    menuManager.add( contributionItem );
                }
            }
        });
        Menu menu = menuManager.createContextMenu( control );
        control.setMenu( menu );
    }
   
    class ExpressionViewerFactoryContributionItem extends ContributionItem {
       
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.