I found the way to have classes in a different classpath in the same project
by adding a "otherclassname.gwt.xml" file.
That way I can debug a widget in a different classpath than the one from the
main/test application. Eclipse would recognize the 2 classes in the editor
and build without the additional gwt.xml file and inherit, but the run would
fail.

Here is the directory structure and the content of the two gwt.xml files:

C:\GWTSelector\ClassSelectorDemo\.classpath
C:\GWTSelector\ClassSelectorDemo\.project
C:\GWTSelector\ClassSelectorDemo\bin
... (left out some directories)
C:\GWTSelector\ClassSelectorDemo\ClassSelectorDemo-compile.cmd
C:\GWTSelector\ClassSelectorDemo\ClassSelectorDemo-shell.cmd
C:\GWTSelector\ClassSelectorDemo\ClassSelectorDemo.ant.xml
C:\GWTSelector\ClassSelectorDemo\ClassSelectorDemo.launch
C:\GWTSelector\ClassSelectorDemo\src
C:\GWTSelector\ClassSelectorDemo\src\com
C:\GWTSelector\ClassSelectorDemo\src\com\codefactory
C:\GWTSelector\ClassSelectorDemo\src\com\codefactory\gwt
C:\GWTSelector\ClassSelectorDemo\src\com\codefactory\gwt\classselector
C:\GWTSelector\ClassSelectorDemo\src\com\codefactory\gwt\classselector\ClassSelector.gwt.xml
*<!!!!!!! The interesting one*
C:\GWTSelector\ClassSelectorDemo\src\com\codefactory\gwt\classselector\client
C:\GWTSelector\ClassSelectorDemo\src\com\codefactory\gwt\classselector\client\ClassSelector.java
C:\GWTSelector\ClassSelectorDemo\src\com\codefactory\gwt\classselectordemo
C:\GWTSelector\ClassSelectorDemo\src\com\codefactory\gwt\classselectordemo\ClassSelectorDemo.gwt.xml
*<!!!!!!! and that one*
C:\GWTSelector\ClassSelectorDemo\src\com\codefactory\gwt\classselectordemo\client
C:\GWTSelector\ClassSelectorDemo\src\com\codefactory\gwt\classselectordemo\client\ClassSelectorDemo.java
C:\GWTSelector\ClassSelectorDemo\src\com\codefactory\gwt\classselectordemo\public
C:\GWTSelector\ClassSelectorDemo\src\com\codefactory\gwt\classselectordemo\public\ClassSelectorDemo.css
C:\GWTSelector\ClassSelectorDemo\src\com\codefactory\gwt\classselectordemo\public\ClassSelectorDemo.html
... (left out some directories)

*ClassSelector.gwt.xml*

<module>

     <!-- Inherit the core Web Toolkit stuff.                        -->
     <inherits name='com.google.gwt.user.User'/>

     <!-- Other module inherits                                      -->

</module>

*ClassSelectorDemo.gwt.xml*

<module>

     <!-- Inherit the core Web Toolkit stuff.                        -->
     <inherits name='com.google.gwt.user.User'/>

     <!-- Inherit the default GWT style sheet.  You can change       -->
     <!-- the theme of your GWT application by uncommenting          -->
     <!-- any one of the following lines.                            -->
     <inherits name='com.google.gwt.user.theme.standard.Standard'/>
     <!-- <inherits name='com.google.gwt.user.theme.chrome.Chrome'/> -->
     <!-- <inherits name='com.google.gwt.user.theme.dark.Dark'/>     -->

     <!-- Other module inherits                                      -->
     *<inherits name='com.codefactory.gwt.classselector.ClassSelector'/>*

     <!-- Specify the app entry point class.                         -->
     <entry-point
class='com.codefactory.gwt.classselectordemo.client.ClassSelectorDemo'/>

     <!-- Specify the application specific style sheet.              -->
     <stylesheet src='ClassSelectorDemo.css' />

</module>

Cheers,

Fred

On Fri, Jan 16, 2009 at 21:36, Fred Janon <fja...@gmail.com> wrote:
> Hi,
>
> I am developing a widget that I would like to package in a jar for use in
> GWT projects. I created a new project for my widget, wrote the code and
> debugged it in its own project. Now I want to create a test project (in a
> different Java package) and be able to still modify/debug my widget
without
> having to build a jar every time. Basically the question is: can we work
in
> an Eclipse project with 2 different Java packages, one for the
application,
> one for a widget under development. I would be the same as modying the GWT
> code in a client project. I am using GWT 15.3 and Eclipse.
>
> Thanks
>
> Fred
>
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to