Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » e(fx)clipse » Error rendering menu(DefMenuBarRenderer does not allow HandledMenuItemImpl)
Error rendering menu [message #1728748] Thu, 07 April 2016 05:20 Go to next message
Anish Abraham is currently offline Anish AbrahamFriend
Messages: 9
Registered: April 2016
Junior Member
I'm very new both to application development using the Eclipse 4 Platform and to JavaFX.

I was trying to setup and sample application starting from the recommended bundle structure shown in the tutorial (https://wiki.eclipse.org/Efxclipse/Tutorials/Tutorial4)

I created a perspective with part stashes and parts just fine. But when trying to add a menu, I kept getting the following error:
Apr 07, 2016 12:13:33 AM org.eclipse.fx.ui.workbench.renderers.base.BaseMenuBarRenderer isChildElementAllowed
INFO: class org.eclipse.fx.ui.workbench.renderers.fx.DefMenuBarRenderer does not allow an element of type 'class org.eclipse.e4.ui.model.application.ui.menu.impl.HandledMenuItemImpl' as its child


Would appreciate any help figuring out what I'm doing wrong.
Re: Error rendering menu [message #1728807 is a reply to message #1728748] Thu, 07 April 2016 14:01 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Hi,

It looks like you've put your HandledMenuItem directly below the
root-menu-entry in your window.

This can not work the Window-Menu should only hold MMenu-Instances so
you structure has to look like this:

Menu {
Menu {
label = "File"
HandledMenuItem {
label = "Exit"
}
}
}



Tom

On 07.04.16 14:23, Anish Abraham wrote:
> I'm very new both to application development using the Eclipse 4
> Platform and to JavaFX.
> I was trying to setup and sample application starting from the
> recommended bundle structure shown in the tutorial
> (https://wiki.eclipse.org/Efxclipse/Tutorials/Tutorial4)
>
> I created a perspective with part stashes and parts just fine. But when
> trying to add a menu, I kept getting the following error:
>
> Apr 07, 2016 12:13:33 AM
> org.eclipse.fx.ui.workbench.renderers.base.BaseMenuBarRenderer
> isChildElementAllowed
> INFO: class org.eclipse.fx.ui.workbench.renderers.fx.DefMenuBarRenderer
> does not allow an element of type 'class
> org.eclipse.e4.ui.model.application.ui.menu.impl.HandledMenuItemImpl' as
> its child
>
>
> Would appreciate any help figuring out what I'm doing wrong.
Previous Topic:Call order for declaring application model's context variables as modifiable
Next Topic:TreeItem problem in JavaxFX with EMF Edit
Goto Forum:
  


Current Time: Fri May 10 02:58:58 GMT 2024

Powered by FUDForum. Page generated in 0.03599 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top