Eclipse plug-in inheriting all my widgetsets together

I’m trying to manage two separate widgetsets, one for a full web site and one for a TouchKit based UI. I can’t find complete documentation on how to do this, but have surmised that I need two different widgetsets, with the @Widgetset() annotation on each UI.

However, whenever I try to compile either widgetset in Eclipse, it adds elements to both .gwt.xml files that reference every add-on, TouchKit, and the other custom widgetset!

I opened the project properties, Vaadin section, and checked off “Suspend automatic addon theme scanning”, but it keeps changing my .gwt.xml files.

Using Vaadin 7.1.9, TouchKit 4.0.0-alpha2, and just updated the current Vaadin Ecilpse plug-in.

Help please!

  • Adam

Yes, it can be problematic. You can edit the .gwt.xml manually, remove the extra elements, and prevent regeneration with:

<!-- WS Compiler: manually edited  -->

For example, for the TouchKit UI’s widget set:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 1.7.0//EN" "http://google-web-toolkit.googlecode.com/svn/tags/1.7.0/distro-source/core/src/gwt-module.dtd">
<module>
    <!-- WS Compiler: manually edited  -->
    <inherits name="com.vaadin.DefaultWidgetSet" />
    <inherits name="com.vaadin.addon.touchkit.gwt.TouchKitWidgetSet" />
</module>

After that, you just need to remember to add widget sets from other add-ons manually, if you use any.

Thank you! Now that I know what to search for I found a couple other threads in the forum on this, but no other mention. I created a ticket against the documentation.

http://dev.vaadin.com/ticket/13139