MenuItemSeparator in uibinder produces xml error

295 views
Skip to first unread message

tanteanni

unread,
Jul 3, 2012, 5:28:13 AM7/3/12
to google-we...@googlegroups.com
i just tried to create a MenuBar with some item and a separator with uibinder, but Eclipse' xml validation or the underlying xml model doesn't like the separator:

cvc-complex-type.2.4.a: Invalid content was found starting with element 'g:MenuItemSeparator'. One of '{"urn:import:com.google.gwt.user.client.ui":MenuItem}' is expected.

how to fix this?
(disabling validation in eclipse doesn't work)

Thomas Broyer

unread,
Jul 3, 2012, 6:45:43 AM7/3/12
to google-we...@googlegroups.com

tanteanni

unread,
Jul 3, 2012, 8:48:28 AM7/3/12
to google-we...@googlegroups.com
thx thomas,

but how to tell it eclipse? where is the underlying model for uibinder xml that eclipse uses for verification? is this model up to date?
is there a way to get rid of the error in eclipse?

Thomas Broyer

unread,
Jul 3, 2012, 9:55:06 AM7/3/12
to google-we...@googlegroups.com

On Tuesday, July 3, 2012 2:48:28 PM UTC+2, tanteanni wrote:
thx thomas,

but how to tell it eclipse? where is the underlying model for uibinder xml that eclipse uses for verification? is this model up to date?
is there a way to get rid of the error in eclipse?


You might want to both:
 1. report a bug against GWT so that the schema is updated
 2. and ask on https://groups.google.com/d/forum/google-plugin-eclipse why it's used for validation and how to disable it, and then possibly report a bug against the GPE and/or GWT Designer (depending on what you're using) if asked to do so.

Have you tried simply deleting the marker?

tanteanni

unread,
Jul 3, 2012, 10:25:55 AM7/3/12
to google-we...@googlegroups.com
the for your investigation thomas!

tanteanni

unread,
Jul 3, 2012, 10:27:31 AM7/3/12
to google-we...@googlegroups.com
and yes i tried deleting the marker after disabling xml validation vor the project - but the marker always comes back


On Tuesday, 3 July 2012 15:55:06 UTC+2, Thomas Broyer wrote:

Thomas Broyer

unread,
Jul 3, 2012, 11:57:25 AM7/3/12
to google-we...@googlegroups.com


On Tuesday, July 3, 2012 4:27:31 PM UTC+2, tanteanni wrote:
and yes i tried deleting the marker after disabling xml validation vor the project - but the marker always comes back

But it's just a marker, it doesn't affect building or running the project, right?

tanteanni

unread,
Jul 4, 2012, 2:56:57 AM7/4/12
to google-we...@googlegroups.com
right, but on all "run as" and some other things eclipse asks "proceed with launch?" - this is a good thing. but now i am forced to switch this off because all other bugs are hidden behind this little one :-|
Reply all
Reply to author
Forward
0 new messages