I’m trying to add a Menu Item to the Run Menu in Eclipse via a plugin.
However, I only want this Item to appear when I’m in the “Report Design” perspective (this is for BIRT).
Secondly, (if possible) I’d like the menu item to be only enabled if the extension of the open file is .rptdesign.
I’m not having any luck using either of the visibility or visibleWhen elements in the plugin.xml
Any hints appreciated,
Ro
Eventually got it, here’s what I had to do…..
Create the Command
Create the Handler for the command
Add an existing property tester available in BIRT (to test the file type) – Would not work if i changed the namespace parameter
Added two definitions
On my menu extension, added a setting to the command, marking when its visible