Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [e4-dev] How to create a pulldown toolbar entry?

On Tue, Aug 30, 2011 at 11:18 AM, Stefan Wiese <stefan.wiese@xxxxxxxxxxx> wrote:
> I get an exception this way.
> java.lang.IllegalArgumentException: The added object
> 'org.eclipse.e4.ui.model.application.ui.menu.impl.MenuImpl@16136f0
> (elementId: menu1, tags: null, contributorURI: null) (widget: null,
> renderer: null, toBeRendered: true, onTop: false, visible: true,
> containerData: null, accessibilityPhrase: null) (label: Menu1, iconURI:
> null, tooltip: null, mnemonics: null) (enabled: true)' is not assignable to
> 'org.eclipse.e4.ui.model.application.ui.menu.MToolBarElement'

Your XML seems strange.

The MMenu model is a 'menu' of an MToolItem, not a 'children'.

MMenus also cannot contain MHandledToolItems.

Remy

----------
Remy Suen
Eclipse Platform/UI Committer
IBM Ottawa
1-613-356-5162


Back to the top