[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] JFace Action contribution items

Hello

I am using a MenuManager and a ToolbarManager and ActionContributionItems
for populating both

Some actions are both in the menu and the toolbar, like "undo" and "redo". I
would like to have a single ActionContributionItem for each action, but use
it both in the toolbar and the menu manager, since creating two Actions
violates that pattern that an Action is different from the representation of
it.

Therefore I put tooltiptext, text and image to the single
ActionContributionItem. What I do not like is that the image appears in the
Menu. Is there any way to turn of that behaviour without creating a seperate
action for the menu manager that does not have an associated image
descriptor?

Regards, Halldor