problem recognizing source from a 2nd gwt project

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

problem recognizing source from a 2nd gwt project

Postby richfarrell » Fri Dec 21, 2007 8:10 am

Hello,
I have a gwt module that references value objects from another project. I’ve made the other project a gwt project by simply including the default gwt module in that project (before that it had no GWT code at all in it).





I then try to reference the project in my project xml with this line
<inherits name="com.uptodate.utdAdminVo.ImageViewer"/> and the complete xml is below.

This doesn’t seem to work, I still get many errors for the included value objects, and when I right click on the problem the quick fix is
“Import GWT module com.uptodate.utdAdminVo.ImageViewerâ€
richfarrell
 
Posts: 3
Joined: Wed Mar 07, 2007 11:36 am
Location: waltham, ma

Re: problem recognizing source from a 2nd gwt project

Postby Eric Clayberg » Fri Dec 21, 2007 10:27 am

It doesn't sound like your value objects are located in the package "com.mycompany.project.client". Just including a fake *.gwt.xml is not enough.

The following explains how to set up multiple GWT modules and how to have one refrence another...

http://code.google.com/webtoolkit/docum ... ml#Modules

GWT Designer does not impose any rules that are not already imposed by GWT itself.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

Postby peterblazejewicz » Fri Dec 21, 2007 11:02 am

hi Rich,

GWT Designer plugins is so nice built into Eclipse features that is enough if you have:
- 2nd Eclpse project open and built wihtout issue (so it is compiled into its bin output folder)
- in your current Eclipse project you reference external project in buildpath (Properties>Java build path>Projects>Required projects on the build path);

after that when coding you should get QuickHints including automatic "inherit" .gwt.xml module tag added to your project module just after you type referenced project class (code hinting works without adding "inherit" tag, errors should be corrected by QuickFix features automatically),

if referencing external project does not work that way then definitely there is something wrong wiht build paths (in referenced or current project),

regards,
Peter
Peter Blazejewicz
GWT groups profile
peterblazejewicz
 
Posts: 153
Joined: Fri Jul 27, 2007 7:09 pm
Location: Europe/Poland/Warsaw

Postby Eric Clayberg » Sun Dec 23, 2007 11:20 am

See the Enhanced Compilation section of the GWT Designer docs.

Image
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
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