Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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
Srinivas  is currently offline Srinivas
Messages: 3
Registered: February 2010
Junior Member
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
Paul Webster is currently offline Paul Webster
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

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: Thu Jul 31 16:00:26 EDT 2014

Powered by FUDForum. Page generated in 0.01395 seconds