Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[Dltk-dev] why is the popup menu for the scriptoutline page disabled?

Hi

this part:

         MenuManager manager = new MenuManager(DLTKUIPlugin.getPluginId() + ".outline",DLTKUIPlugin.getPluginId() + ".outline");
         manager.setRemoveAllWhenShown(true);
         manager.addMenuListener(new IMenuListener() {
         public void menuAboutToShow(IMenuManager m) {
         contextMenuAboutToShow(m);
         }
         });
         fMenu = manager.createContextMenu(tree);
         tree.setMenu(fMenu);

        IPageSite site = getSite();
        site.registerContextMenu(DLTKUIPlugin.getPluginId() + ".outline", manager, fOutlineViewer); //$NON-NLS-1$


is disabled in ScriptOutlinePage
Is there a special reason for that?

I like to contribute to that popup menu in my own plugin,  (but if nothing is shown that is a bit hard :) )

If i enable that and then i contribute an action on the popupMenu extentions it works fine.

I tried to clean it up, because properties doesn't make much sense i think there.
But things like Call Hierarchy/search and  the run debug items is that disabled by design?

johan


Back to the top