[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
][
Date Index
][
Thread Index
]
[news.eclipse.tools.jdt] Re: JDT Sub-menu ALWAYS appears on MY context menus
From
:
sgeorge@xxxxxx
(Sapna George)
Date
: Wed, 8 Jun 2005 14:39:17 +0000 (UTC)
Newsgroups
:
eclipse.tools.jdt
Organization
: not organized
User-agent
: NewsPortal/0.36 (http://florian-amrhein.de/newsportal)
I resolved this issue. Inorder to prevent these global menu items from appearing in your context menus, we have to use a new API to register the context menu manager in the editor.
Old Code:
getSite().registerContextMenu(menuID, menuManager, getSite().getSelectionProvider);
New Code:
((IEditorSite)getSite()).registerContextMenu(menuID, menuManager, getSite().getSelectionProvider(), false);
The false flag tells Platform to not use the global menus.
sapna
References
:
[news.eclipse.tools.jdt] JDT Sub-menu ALWAYS appears on MY context menus
From:
Sapna George
[news.eclipse.tools.jdt] Re: JDT Sub-menu ALWAYS appears on MY context menus
From:
Markus Keller
[news.eclipse.tools.jdt] Re: JDT Sub-menu ALWAYS appears on MY context menus
From:
Sapna George
[news.eclipse.tools.jdt] Re: JDT Sub-menu ALWAYS appears on MY context menus
From:
Markus Keller
Prev by Date:
[news.eclipse.tools.jdt] Re: JDT Builder and AST content
Next by Date:
[news.eclipse.tools.jdt] Re: Build Working Set not working
Previous by thread:
[news.eclipse.tools.jdt] Re: JDT Sub-menu ALWAYS appears on MY context menus
Next by thread:
[news.eclipse.tools.jdt] Ideas on JVMTI Profiling of JUnit suites (through a plugin)?
Index(es):
Date
Thread