| [news.eclipse.platform.swt] Re: retrieve MenuItem by ID |
"Luciano Boschi" <boschi@xxxxxxxxxxxxxxxxxxxxx> wrote in message news:d7k6t4$bm$1@xxxxxxxxxxxxxxxxxxx
Hi everyone, I'm developing an Eclipse plugin. I need to enable/disable a menu item programmatically.
The question is: how can I access the MenuItem object? for instance: from its IWorkbenchWindowActionDelegate.
The only things I know are the MenuItem id and menubarPath (as specified in the plugin.xml file).
Has the menu been contributed by YOUR plugin? or another one?
It's contributed by my plugin.
then I have a SaveResult.java file that begins with something like:
----------------- package it.unifi.ing.lexlooter.actions; public class SaveResult implements IWorkbenchWindowActionDelegate .... -----------------
Or have I to use another approach?
Thanks