aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorHenri Sara <henri.sara@itmill.com>2010-06-30 09:51:07 +0000
committerHenri Sara <henri.sara@itmill.com>2010-06-30 09:51:07 +0000
commit88bf5707b85f1b2c90be6084b32ff8c567410cd0 (patch)
tree8e90e359eede507ae41b568a152f02e3e51e284f /src
parent37bbdc0cdaef2bce34d0bbd6893c063961f0a52f (diff)
downloadvaadin-framework-88bf5707b85f1b2c90be6084b32ff8c567410cd0.tar.gz
vaadin-framework-88bf5707b85f1b2c90be6084b32ff8c567410cd0.zip
Avoid duplicating references to any GWT modules, not just widgetsets.
svn changeset:13971/svn branch:6.4
Diffstat (limited to 'src')
-rw-r--r--src/com/vaadin/terminal/gwt/widgetsetutils/WidgetSetBuilder.java8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/com/vaadin/terminal/gwt/widgetsetutils/WidgetSetBuilder.java b/src/com/vaadin/terminal/gwt/widgetsetutils/WidgetSetBuilder.java
index 32ce84fa66..4b8ad76888 100644
--- a/src/com/vaadin/terminal/gwt/widgetsetutils/WidgetSetBuilder.java
+++ b/src/com/vaadin/terminal/gwt/widgetsetutils/WidgetSetBuilder.java
@@ -92,7 +92,7 @@ public class WidgetSetBuilder {
if (isEditable(content)) {
String originalContent = content;
- Collection<String> oldInheritedWidgetsets = getCurrentWidgetSets(content);
+ Collection<String> oldInheritedWidgetsets = getCurrentGwtModules(content);
// add widgetsets that do not exist
for (String ws : availableWidgetSets.keySet()) {
@@ -143,7 +143,7 @@ public class WidgetSetBuilder {
+ "\" />" + "\n</module>");
}
- private static Collection<String> getCurrentWidgetSets(String content) {
+ private static Collection<String> getCurrentGwtModules(String content) {
HashSet<String> hashSet = new HashSet<String>();
Pattern inheritsPattern = Pattern.compile(" name=\"([^\"]*)\"");
@@ -151,9 +151,7 @@ public class WidgetSetBuilder {
while (matcher.find()) {
String possibleWidgetSet = matcher.group(1);
- if (possibleWidgetSet.toLowerCase().contains("widgetset")) {
- hashSet.add(possibleWidgetSet);
- }
+ hashSet.add(possibleWidgetSet);
}
return hashSet;
}