Revision: 9541
Author: [email protected]
Date: Thu Jan 13 13:57:26 2011
Log: Cherry picking r9540 into releases/2.2, Adds a hook to invalidate a
rebind within dev mode
http://code.google.com/p/google-web-toolkit/source/detail?r=9541
Modified:
/releases/2.2/dev/core/src/com/google/gwt/dev/shell/ShellModuleSpaceHost.java
/releases/2.2/dev/core/src/com/google/gwt/dev/shell/StandardRebindOracle.java
=======================================
---
/releases/2.2/dev/core/src/com/google/gwt/dev/shell/ShellModuleSpaceHost.java
Mon Dec 20 10:49:11 2010
+++
/releases/2.2/dev/core/src/com/google/gwt/dev/shell/ShellModuleSpaceHost.java
Thu Jan 13 13:57:26 2011
@@ -83,6 +83,15 @@
public TreeLogger getLogger() {
return logger;
}
+
+ /**
+ * Invalidates the given source type name, so the next rebind request
will
+ * generate a type again.
+ */
+ public void invalidateRebind(String sourceTypeName) {
+ checkForModuleSpace();
+ rebindOracle.invalidateRebind(sourceTypeName);
+ }
public void onModuleReady(ModuleSpace readySpace)
throws UnableToCompleteException {
=======================================
---
/releases/2.2/dev/core/src/com/google/gwt/dev/shell/StandardRebindOracle.java
Thu Dec 23 06:00:26 2010
+++
/releases/2.2/dev/core/src/com/google/gwt/dev/shell/StandardRebindOracle.java
Thu Jan 13 13:57:26 2011
@@ -234,6 +234,14 @@
this.rules = rules;
this.genCtx = genCtx;
}
+
+ /**
+ * Invalidates the given source type name, so the next rebind request
will
+ * generate type again.
+ */
+ public void invalidateRebind(String sourceTypeName) {
+ typeNameBindingMap.remove(sourceTypeName);
+ }
public String rebind(TreeLogger logger, String typeName)
throws UnableToCompleteException {
--
http://groups.google.com/group/Google-Web-Toolkit-Contributors