Revision: 6322
Author: j...@google.com
Date: Thu Oct  8 08:49:57 2009
Log: Add better error handling for future protocol version where we support
downloading the real plugin via a shim plugin.


http://code.google.com/p/google-web-toolkit/source/detail?r=6322

Modified:
   
/changes/jat/abstractui/dev/oophm/src/com/google/gwt/dev/shell/BrowserChannel.java
   
/changes/jat/abstractui/dev/oophm/src/com/google/gwt/dev/shell/BrowserChannelServer.java

=======================================
---  
/changes/jat/abstractui/dev/oophm/src/com/google/gwt/dev/shell/BrowserChannel.java
       
Tue Oct  6 15:59:35 2009
+++  
/changes/jat/abstractui/dev/oophm/src/com/google/gwt/dev/shell/BrowserChannel.java
       
Thu Oct  8 08:49:57 2009
@@ -157,7 +157,9 @@

      REQUEST_ICON(13),

-    USER_AGENT_ICON(14);
+    USER_AGENT_ICON(14),
+
+    REQUEST_PLUGIN(15);

      private final int id;

=======================================
---  
/changes/jat/abstractui/dev/oophm/src/com/google/gwt/dev/shell/BrowserChannelServer.java
         
Wed Oct  7 09:24:31 2009
+++  
/changes/jat/abstractui/dev/oophm/src/com/google/gwt/dev/shell/BrowserChannelServer.java
         
Thu Oct  8 08:49:57 2009
@@ -294,6 +294,13 @@
          moduleName = loadModule.getModuleName();
          userAgent = loadModule.getUserAgent();
          break;
+      case REQUEST_PLUGIN:
+        logger.log(TreeLogger.ERROR, "Plugin download not supported yet");
+        // We can't clear the socket since we don't know how to interpret  
this
+        // message yet -- it is only here now so we can give a better error
+        // message with mixed versions once it is supported.
+        new FatalErrorMessage(this, "Plugin download not  
supported").send();
+        return;
        default:
          logger.log(TreeLogger.ERROR, "Unexpected message type " + type
              + "; expecting CheckVersions");

--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~----------~----~----~----~------~----~------~--~---

Reply via email to