GWT modules are meant to enable modularisation for Google Web Toolkit (GWT).
I like to develop my applications in mutiple eclipse projects by linking their source folders.
So, I create one project for the actual application and one for the library or whatever that the application uses.
First, I created the projects using the eclipse GWT plugin wizard.
I renamed the “gwt.xml” file in the library project to “webeditor.gwt.xml”. Then I changed the module name:
<module rename-to=’de.linnk.webeditor.webeditor’>
Further, I added the statement:
<source path=”client”/>
Then I put a class “Test” in the client source folder.
The I rennamed the source folder from “src” to “webeditor”.
In the project for the application, I linked the “webeditor” source folder and I added the following line in the “gwt.xml” file:
<inherits name=’de.linnk.webeditor.webeditor’/>
Now I can use the class “Test” in my application project – without having to compile the library application – its automatically compiled when the application project is compiled.
NOTE: I don’t know why I have to leave the “entry-point” declaration in my library’s gwt.xml? Doesn’t compile without that …