Skip to main content

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 17:05 Go to next message
Srinivas  is currently offline Srinivas Friend
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 11:24 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
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

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.


Paul Webster .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: Mon Jun 24 09:45:29 GMT 2024

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

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

Back to the top