Permalink
Browse files

Use EPL for GPE

git-svn-id: http://google-web-toolkit.googlecode.com/svn/trunk@10746 8db76d5a-ed1c-0410-87a9-c151d255dfc7
  • Loading branch information...
1 parent 6b069ca commit fe92b7fdb4a74d095ddf606b036f57b32f0ccf42 scheglov@google.com committed Nov 11, 2011
@@ -50,6 +50,7 @@
import com.google.gwt.user.rebind.ClassSourceFileComposerFactory;
import com.google.gwt.user.rebind.SourceWriter;
+import java.beans.Beans;
import java.io.PrintWriter;
import java.io.Serializable;
import java.net.URL;
@@ -968,6 +969,11 @@ private String generateSimpleSourceName(TreeLogger logger,
toReturn.append("_" + getClass().getSimpleName());
+ // If design time, generate new class each time to allow reloading.
+ if (Beans.isDesignTime()) {
+ toReturn.append("_designTime" + System.currentTimeMillis());
+ }
+
return toReturn.toString();
}

0 comments on commit fe92b7f

Please sign in to comment.