Do not call onModuleLoad() second time
onModuleLoad() method is automatically called by GWT framework. Calling it once again in PluginGenerator cause double plugin initialization. Change-Id: I86b179f0a2da99121c74d1c095281bdd7de30636 Signed-off-by: Dariusz Luksza <dariusz@luksza.org>
This commit is contained in:
@@ -72,12 +72,6 @@ public class PluginGenerator extends Generator {
|
|||||||
|
|
||||||
// We really use a SourceWriter since it's convenient
|
// We really use a SourceWriter since it's convenient
|
||||||
SourceWriter sw = f.createSourceWriter(context, out);
|
SourceWriter sw = f.createSourceWriter(context, out);
|
||||||
sw.println("public " + generatedSimpleSourceName + "() {");
|
|
||||||
sw.indent();
|
|
||||||
sw.println("onModuleLoad();");
|
|
||||||
sw.outdent();
|
|
||||||
sw.println("}");
|
|
||||||
|
|
||||||
sw.commit(logger);
|
sw.commit(logger);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user