Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » POPUP MENU(Enabling and disabling filters)
POPUP MENU [message #518292] Wed, 03 March 2010 12:05 Go to next message
Eclipse UserFriend
How to enable popup menu based on the extensions mentioned in a properties file. I want enable a context menu on all file extensions using *.* and exclude some extensions.
Re: POPUP MENU [message #518624 is a reply to message #518292] Thu, 04 March 2010 06:24 Go to previous message
Eclipse UserFriend
Both org.eclipse.ui.popupMenus (filters) and org.eclipse.ui.menus (core
expressions, property testers) support checking file extensions. But
they are static in their definition (defined at build time in the
plugin.xml).

With anything that uses core expressions, you can write your own
property tester than can compare the file extension against your more
dynamic list.

check out the wiki links in my sig for examples of menu contributions
and core expressions.

PW

--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .platform.doc.isv/guide/workbench.htm
Previous Topic:Re: Shift-tab does not work in compare
Next Topic:Setting ProgressRegion location
Goto Forum:
  


Current Time: Fri Apr 18 04:16:41 EDT 2025

Powered by FUDForum. Page generated in 0.24750 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top