Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Control visibility of an action declared in plugin.xml
Control visibility of an action declared in plugin.xml [message #330601] Tue, 05 August 2008 10:29 Go to next message
Eclipse UserFriend
Originally posted by: guillaume.x.bedard.jpmorganchase.com

Hi!

Does anyone know how to control the visibility of an action that is
declared in plugin.xml? I want to be able to filter out menu bar items.

Thanking you in advance,

Guillaume
Re: Control visibility of an action declared in plugin.xml [message #330627 is a reply to message #330601] Wed, 06 August 2008 08:24 Go to previous messageGo to next message
Stefan Winkler is currently offline Stefan WinklerFriend
Messages: 307
Registered: July 2009
Location: Germany
Senior Member
Hi Guillaume,

Guillaume Bedard schrieb:
> Does anyone know how to control the visibility of an action that is
> declared in plugin.xml? I want to be able to filter out menu bar items.
Which extension point do you use?

A brief howto which describes the visibility/enablement of actions
declared using the org.eclipse.ui.popupMenus extension point can be
found at
http://xpomul.bloggles.info/2008/07/24/using-advanced-featur es-in-eclipse-popup-menus/

Cheers,
Stefan
Re: Control visibility of an action declared in plugin.xml [message #330643 is a reply to message #330627] Thu, 07 August 2008 03:26 Go to previous message
Craig Foote is currently offline Craig FooteFriend
Messages: 217
Registered: July 2009
Senior Member
The newer "menus" extension point has a visibleWhen clause. Check out the
extension point documentation, especially the examples at the end.

Craig

On Wed, 06 Aug 2008 10:24:32 +0200, Stefan Winkler wrote:

> Hi Guillaume,
>
> Guillaume Bedard schrieb:
>> Does anyone know how to control the visibility of an action that is
>> declared in plugin.xml? I want to be able to filter out menu bar
>> items.
> Which extension point do you use?
>
> A brief howto which describes the visibility/enablement of actions
> declared using the org.eclipse.ui.popupMenus extension point can be
> found at
> http://xpomul.bloggles.info/2008/07/24/using-advanced-featur es-in-
eclipse-popup-menus/
>
> Cheers,
> Stefan
Previous Topic:Setting prefrence 'Open Mode' programmatically
Next Topic:Checkbox in TableCells - Screenshots of Button fails
Goto Forum:
  


Current Time: Fri Jul 19 12:11:27 GMT 2024

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

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

Back to the top