ActiveEditorId Expression [message #331920] |
Mon, 29 September 2008 10:03  |
Eclipse User |
|
|
|
Hi,
I am trying to use expressions to enable/disable (ie set visible/not
visible) menu entries when certain conditions are met. Basically we have a
"profile" which is a bit like a set of preferences and allows users to
turn off certain behaviours.
I have created my own PropertyTester, but I am having a bit of trouble.
The configuration for the propertyTester requires a "type" which I have
set to ...IResource. This works fine when the current selection is an item
in the explorer - although I never use the actual resource.
When the user opens an editor however the propertyTester no longer works.
In fact everything then gets "false" and all of the menu/toolbar items
using this propertyTester disappear!
How can I set up a propertyTester to be used irrespective of the current
selection/ active Editor ?
(At least I think that's the right question !!!!)
Thanks,
Richard
|
|
|
|
Powered by
FUDForum. Page generated in 0.06160 seconds