[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools] IAction ids for popup menu extensions

Here's an unexpected result:

I have added several popup menu items to a couple of Java views - but not
the Outline view :-( - and was expecting that when my correponding plugin
run(IAction) method was called that the action.getId() method call would
return the id matching the popup menu item just selected. The thought was
that I could use that id for selecting the correct action to take.

Instead all I get is a generic id (e.g. "PluginAction.8") which is of no
use to me since I have no way of knowing what that id means.

I have worked around the problem by using the setInitializationData method
which returns the correct id, however I would have naturally expected the
same id to be returned in the IAction object.

Bug?

Mike