Revision: 9540
Author: [email protected]
Date: Thu Jan 13 13:31:09 2011
Log: Adds a hook to invalidate a rebind within dev mode (from Alexander
Mitin)

Review at http://gwt-code-reviews.appspot.com/1275801

Review by: [email protected]
http://code.google.com/p/google-web-toolkit/source/detail?r=9540

Modified:
 /trunk/dev/core/src/com/google/gwt/dev/shell/ShellModuleSpaceHost.java
 /trunk/dev/core/src/com/google/gwt/dev/shell/StandardRebindOracle.java

=======================================
--- /trunk/dev/core/src/com/google/gwt/dev/shell/ShellModuleSpaceHost.java Mon Dec 20 10:49:11 2010 +++ /trunk/dev/core/src/com/google/gwt/dev/shell/ShellModuleSpaceHost.java Thu Jan 13 13:31:09 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 {
=======================================
--- /trunk/dev/core/src/com/google/gwt/dev/shell/StandardRebindOracle.java Thu Dec 23 06:00:26 2010 +++ /trunk/dev/core/src/com/google/gwt/dev/shell/StandardRebindOracle.java Thu Jan 13 13:31:09 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

Reply via email to