aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMarc Englund <marc.englund@itmill.com>2010-02-11 10:24:59 +0000
committerMarc Englund <marc.englund@itmill.com>2010-02-11 10:24:59 +0000
commitf1bd9c8f2a9f063dfc36d0cbb488df16dae00f37 (patch)
treebf43acf2fb1061900ff90f50e7de4ce4fdd7c39f /src
parent87102e2ed9d2daf6ed4e2141cc1c3bef6262ad43 (diff)
downloadvaadin-framework-f1bd9c8f2a9f063dfc36d0cbb488df16dae00f37.tar.gz
vaadin-framework-f1bd9c8f2a9f063dfc36d0cbb488df16dae00f37.zip
Merged from 6.2: Better warning & removed old commented code for #3974 (multiple entrypoints detection)
svn changeset:11270/svn branch:6.3
Diffstat (limited to 'src')
-rw-r--r--src/com/vaadin/terminal/gwt/client/ApplicationConfiguration.java18
1 files changed, 6 insertions, 12 deletions
diff --git a/src/com/vaadin/terminal/gwt/client/ApplicationConfiguration.java b/src/com/vaadin/terminal/gwt/client/ApplicationConfiguration.java
index 060c4dedf1..5bcf613f6d 100644
--- a/src/com/vaadin/terminal/gwt/client/ApplicationConfiguration.java
+++ b/src/com/vaadin/terminal/gwt/client/ApplicationConfiguration.java
@@ -148,20 +148,14 @@ public class ApplicationConfiguration {
int lastdot = module.lastIndexOf(".");
String base = module.substring(0, lastdot);
String simpleName = module.substring(lastdot + 1);
- // TODO figure out (ask around) WTF this is almost-removed
- // if (!wsname.startsWith(base) || !wsname.endsWith(simpleName)) {
- // // WidgetSet module name does not match implementation name;
- // // probably inherited WidgetSet with entry-point. Skip.
- // GWT.log("Ignored init for " + wsname + " when starting " + module,
- // null);
- // return;
- // }
if (initedWidgetSet != null) {
- // Something went wrong: multiple widgetsets inited
- String msg = "Tried to init " + widgetset.getClass().getName()
- + ", but " + initedWidgetSet.getClass().getName()
- + " was already inited.";
+ // Multiple widgetsets inited; can happen with custom WS + entry
+ // point
+ String msg = "Ignoring " + widgetset.getClass().getName()
+ + ", because " + initedWidgetSet.getClass().getName()
+ + " was already inited (if this is wrong, your entry point"
+ + " is probably not first your .gwt.xml).";
throw new IllegalStateException(msg);
}
initedWidgetSet = widgetset;