Ignore code fragments during designing

GWT Designer allows you to quickly create the modules, composites, panels, remote services and other elements that comprise Google Web Tookit applications.

Moderators: Konstantin.Scheglov, gnebling, Alexander.Mitin, jwren, Eric Clayberg

Ignore code fragments during designing

Postby Keiichi24 » Tue May 20, 2008 11:58 pm

I've created a composite with a lot of custom code to generate content. At a certain point the designer fails with the message 'Parse error or Internal designer error'. I've isolated the fragment which causes this error. Compiling the project works as it should so it's not a programming fault, that's for sure.

I don't believe I can adjust my code in such manner so the designer won't fail on it.

Is there a way to let GWT designer ignore code fragments?
Posts: 2
Joined: Wed Mar 12, 2008 11:34 am

Re: Ignore code fragments during designing

Postby Eric Clayberg » Wed May 21, 2008 3:43 am

You can hide runtime problems by using an isDesignTime() check...

http://download.instantiations.com/Desi ... DesignTime

You can hide code from the parser using a code hiding tag...

http://download.instantiations.com/Desi ... rsing.html
Eric Clayberg
Software Engineering Manager

Author: "Eclipse Plug-ins"
Eric Clayberg
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

Return to GWT Designer

Who is online

Users browsing this forum: No registered users and 3 guests