]> source.dussan.org Git - vaadin-framework.git/commitdiff
Separated part of DefaultWidgetSet to com.vaadin.Vaadin (#9078)
authorArtur Signell <artur@vaadin.com>
Fri, 29 Jun 2012 16:48:43 +0000 (19:48 +0300)
committerArtur Signell <artur@vaadin.com>
Fri, 29 Jun 2012 16:48:43 +0000 (19:48 +0300)
src/com/vaadin/Vaadin.gwt.xml [new file with mode: 0644]
src/com/vaadin/terminal/gwt/DefaultWidgetSet.gwt.xml
src/com/vaadin/terminal/gwt/DefaultWidgetSetBrowserSpecificOverrides.gwt.xml [deleted file]
src/com/vaadin/terminal/gwt/VaadinBrowserSpecificOverrides.gwt.xml [new file with mode: 0644]

diff --git a/src/com/vaadin/Vaadin.gwt.xml b/src/com/vaadin/Vaadin.gwt.xml
new file mode 100644 (file)
index 0000000..d702b07
--- /dev/null
@@ -0,0 +1,84 @@
+<module>
+       <!-- This GWT module inherits all Vaadin client side functionality modules. 
+               This is the module you want to inherit in your client side project to be 
+               able to use com.vaadin.* classes. -->
+
+       <!-- Hint for WidgetSetBuilder not to automatically update the file -->
+       <!-- WS Compiler: manually edited -->
+
+       <inherits name="com.google.gwt.user.User" />
+
+       <inherits name="com.google.gwt.http.HTTP" />
+
+       <inherits name="com.google.gwt.json.JSON" />
+
+       <inherits name="com.vaadin.terminal.gwt.VaadinBrowserSpecificOverrides" />
+
+       <source path="terminal/gwt/client" />
+
+       <!-- Use own Scheduler implementation to be able to track if commands are 
+               running -->
+       <replace-with class="com.vaadin.terminal.gwt.client.VSchedulerImpl">
+               <when-type-is class="com.google.gwt.core.client.impl.SchedulerImpl" />
+       </replace-with>
+
+       <!-- Generators for serializators for classes used in communication between 
+               server and client -->
+       <generate-with
+               class="com.vaadin.terminal.gwt.widgetsetutils.SerializerMapGenerator">
+               <when-type-is
+                       class="com.vaadin.terminal.gwt.client.communication.SerializerMap" />
+       </generate-with>
+
+       <replace-with class="com.vaadin.terminal.gwt.client.VDebugConsole">
+               <when-type-is class="com.vaadin.terminal.gwt.client.Console" />
+       </replace-with>
+
+       <generate-with
+               class="com.vaadin.terminal.gwt.widgetsetutils.EagerWidgetMapGenerator">
+               <when-type-is class="com.vaadin.terminal.gwt.client.WidgetMap" />
+       </generate-with>
+
+       <generate-with
+               class="com.vaadin.terminal.gwt.widgetsetutils.AcceptCriteriaFactoryGenerator">
+               <when-type-is
+                       class="com.vaadin.terminal.gwt.client.ui.dd.VAcceptCriterionFactory" />
+       </generate-with>
+
+       <!-- Generate client side proxies for client to server RPC interfaces -->
+       <generate-with
+               class="com.vaadin.terminal.gwt.widgetsetutils.RpcProxyGenerator">
+               <when-type-assignable
+                       class="com.vaadin.terminal.gwt.client.communication.ServerRpc" />
+       </generate-with>
+
+       <!-- Generate client side proxies for client to server RPC interfaces -->
+       <generate-with
+               class="com.vaadin.terminal.gwt.widgetsetutils.RpcProxyCreatorGenerator">
+               <when-type-assignable
+                       class="com.vaadin.terminal.gwt.client.communication.RpcProxy.RpcProxyCreator" />
+       </generate-with>
+
+       <!-- Generate client side RPC manager for server to client RPC -->
+       <generate-with
+               class="com.vaadin.terminal.gwt.widgetsetutils.GeneratedRpcMethodProviderGenerator">
+               <when-type-assignable
+                       class="com.vaadin.terminal.gwt.client.communication.GeneratedRpcMethodProvider" />
+       </generate-with>
+
+       <generate-with
+               class="com.vaadin.terminal.gwt.widgetsetutils.ConnectorWidgetFactoryGenerator">
+               <when-type-assignable
+                       class="com.vaadin.terminal.gwt.client.ui.ConnectorWidgetFactory" />
+       </generate-with>
+
+       <generate-with
+               class="com.vaadin.terminal.gwt.widgetsetutils.ConnectorStateFactoryGenerator">
+               <when-type-assignable
+                       class="com.vaadin.terminal.gwt.client.ui.ConnectorStateFactory" />
+       </generate-with>
+
+       <!-- Use the new cross site linker to get a nocache.js without document.write -->
+       <add-linker name="xsiframe" />
+
+</module>
index daa5e9f24d536271863ed203e51324e991fb585b..278d92f38ff65806e8097164a3d34409f6068cac 100644 (file)
@@ -6,84 +6,8 @@
        <!-- Hint for WidgetSetBuilder not to automatically update the file -->
        <!-- WS Compiler: manually edited -->
 
-       <inherits name="com.google.gwt.user.User" />
-
-       <inherits name="com.google.gwt.http.HTTP" />
-
-       <inherits name="com.google.gwt.json.JSON" />
-
-       <inherits
-               name="com.vaadin.terminal.gwt.DefaultWidgetSetBrowserSpecificOverrides" />
-
-       <source path="client" />
-
-       <!-- Use own Scheduler implementation to be able to track if commands are 
-               running -->
-       <replace-with class="com.vaadin.terminal.gwt.client.VSchedulerImpl">
-               <when-type-is class="com.google.gwt.core.client.impl.SchedulerImpl" />
-       </replace-with>
-
-
-       <!-- Generators for serializators for classes used in communication between 
-               server and client -->
-       <generate-with
-               class="com.vaadin.terminal.gwt.widgetsetutils.SerializerMapGenerator">
-               <when-type-is
-                       class="com.vaadin.terminal.gwt.client.communication.SerializerMap" />
-       </generate-with>
-
-       <replace-with class="com.vaadin.terminal.gwt.client.VDebugConsole">
-               <when-type-is class="com.vaadin.terminal.gwt.client.Console" />
-       </replace-with>
-
-       <generate-with
-               class="com.vaadin.terminal.gwt.widgetsetutils.EagerWidgetMapGenerator">
-               <when-type-is class="com.vaadin.terminal.gwt.client.WidgetMap" />
-       </generate-with>
-
-       <generate-with
-               class="com.vaadin.terminal.gwt.widgetsetutils.AcceptCriteriaFactoryGenerator">
-               <when-type-is
-                       class="com.vaadin.terminal.gwt.client.ui.dd.VAcceptCriterionFactory" />
-       </generate-with>
-
-       <!-- Generate client side proxies for client to server RPC interfaces -->
-       <generate-with
-               class="com.vaadin.terminal.gwt.widgetsetutils.RpcProxyGenerator">
-               <when-type-assignable
-                       class="com.vaadin.terminal.gwt.client.communication.ServerRpc" />
-       </generate-with>
-
-       <!-- Generate client side proxies for client to server RPC interfaces -->
-       <generate-with
-               class="com.vaadin.terminal.gwt.widgetsetutils.RpcProxyCreatorGenerator">
-               <when-type-assignable
-                       class="com.vaadin.terminal.gwt.client.communication.RpcProxy.RpcProxyCreator" />
-       </generate-with>
-
-       <!-- Generate client side RPC manager for server to client RPC -->
-       <generate-with
-               class="com.vaadin.terminal.gwt.widgetsetutils.GeneratedRpcMethodProviderGenerator">
-               <when-type-assignable
-                       class="com.vaadin.terminal.gwt.client.communication.GeneratedRpcMethodProvider" />
-       </generate-with>
-
-       <generate-with
-               class="com.vaadin.terminal.gwt.widgetsetutils.ConnectorWidgetFactoryGenerator">
-               <when-type-assignable
-                       class="com.vaadin.terminal.gwt.client.ui.ConnectorWidgetFactory" />
-       </generate-with>
-
-       <generate-with
-               class="com.vaadin.terminal.gwt.widgetsetutils.ConnectorStateFactoryGenerator">
-               <when-type-assignable
-                       class="com.vaadin.terminal.gwt.client.ui.ConnectorStateFactory" />
-       </generate-with>
+       <inherits name="com.vaadin.Vaadin" />
 
        <entry-point class="com.vaadin.terminal.gwt.client.ApplicationConfiguration" />
 
-       <!-- Use the new cross site linker to get a nocache.js without document.write -->
-       <add-linker name="xsiframe" />
-
-
 </module>
diff --git a/src/com/vaadin/terminal/gwt/DefaultWidgetSetBrowserSpecificOverrides.gwt.xml b/src/com/vaadin/terminal/gwt/DefaultWidgetSetBrowserSpecificOverrides.gwt.xml
deleted file mode 100644 (file)
index b5ab61d..0000000
+++ /dev/null
@@ -1,53 +0,0 @@
-<module>
-       <!-- This GWT module defines the browser specific overrides used by Vaadin -->
-
-       <!-- Hint for WidgetSetBuilder not to automatically update the file -->
-       <!-- WS Compiler: manually edited -->
-
-       <!-- Fall through to this rule for everything but IE -->
-       <replace-with
-               class="com.vaadin.terminal.gwt.client.ui.upload.UploadIFrameOnloadStrategy">
-               <when-type-is
-                       class="com.vaadin.terminal.gwt.client.ui.upload.UploadIFrameOnloadStrategy" />
-       </replace-with>
-
-       <replace-with
-               class="com.vaadin.terminal.gwt.client.ui.upload.UploadIFrameOnloadStrategyIE">
-               <when-type-is
-                       class="com.vaadin.terminal.gwt.client.ui.upload.UploadIFrameOnloadStrategy" />
-               <any>
-                       <when-property-is name="user.agent" value="ie8" />
-               </any>
-       </replace-with>
-
-       <!-- Fall through to this rule for everything but IE -->
-       <replace-with class="com.vaadin.terminal.gwt.client.ui.draganddropwrapper.VDragAndDropWrapper">
-               <when-type-is class="com.vaadin.terminal.gwt.client.ui.draganddropwrapper.VDragAndDropWrapper" />
-       </replace-with>
-
-       <replace-with class="com.vaadin.terminal.gwt.client.ui.draganddropwrapper.VDragAndDropWrapperIE">
-               <when-type-is class="com.vaadin.terminal.gwt.client.ui.draganddropwrapper.VDragAndDropWrapper" />
-               <any>
-                       <when-property-is name="user.agent" value="ie8" />
-               </any>
-       </replace-with>
-
-       <!-- Fall through to this rule for everything but IE -->
-       <replace-with class="com.vaadin.terminal.gwt.client.LayoutManager">
-               <when-type-is class="com.vaadin.terminal.gwt.client.LayoutManager" />
-       </replace-with>
-
-       <replace-with class="com.vaadin.terminal.gwt.client.LayoutManagerIE8">
-               <when-type-is class="com.vaadin.terminal.gwt.client.LayoutManager" />
-               <any>
-                       <when-property-is name="user.agent" value="ie8" />
-               </any>
-       </replace-with>
-
-       <!-- Workaround for #6682. Remove when fixed in GWT. -->
-       <replace-with class="com.google.gwt.dom.client.VaadinDOMImplSafari">
-               <when-type-is class="com.google.gwt.dom.client.DOMImpl" />
-               <when-property-is name="user.agent" value="safari" />
-       </replace-with>
-
-</module>
diff --git a/src/com/vaadin/terminal/gwt/VaadinBrowserSpecificOverrides.gwt.xml b/src/com/vaadin/terminal/gwt/VaadinBrowserSpecificOverrides.gwt.xml
new file mode 100644 (file)
index 0000000..b5ab61d
--- /dev/null
@@ -0,0 +1,53 @@
+<module>
+       <!-- This GWT module defines the browser specific overrides used by Vaadin -->
+
+       <!-- Hint for WidgetSetBuilder not to automatically update the file -->
+       <!-- WS Compiler: manually edited -->
+
+       <!-- Fall through to this rule for everything but IE -->
+       <replace-with
+               class="com.vaadin.terminal.gwt.client.ui.upload.UploadIFrameOnloadStrategy">
+               <when-type-is
+                       class="com.vaadin.terminal.gwt.client.ui.upload.UploadIFrameOnloadStrategy" />
+       </replace-with>
+
+       <replace-with
+               class="com.vaadin.terminal.gwt.client.ui.upload.UploadIFrameOnloadStrategyIE">
+               <when-type-is
+                       class="com.vaadin.terminal.gwt.client.ui.upload.UploadIFrameOnloadStrategy" />
+               <any>
+                       <when-property-is name="user.agent" value="ie8" />
+               </any>
+       </replace-with>
+
+       <!-- Fall through to this rule for everything but IE -->
+       <replace-with class="com.vaadin.terminal.gwt.client.ui.draganddropwrapper.VDragAndDropWrapper">
+               <when-type-is class="com.vaadin.terminal.gwt.client.ui.draganddropwrapper.VDragAndDropWrapper" />
+       </replace-with>
+
+       <replace-with class="com.vaadin.terminal.gwt.client.ui.draganddropwrapper.VDragAndDropWrapperIE">
+               <when-type-is class="com.vaadin.terminal.gwt.client.ui.draganddropwrapper.VDragAndDropWrapper" />
+               <any>
+                       <when-property-is name="user.agent" value="ie8" />
+               </any>
+       </replace-with>
+
+       <!-- Fall through to this rule for everything but IE -->
+       <replace-with class="com.vaadin.terminal.gwt.client.LayoutManager">
+               <when-type-is class="com.vaadin.terminal.gwt.client.LayoutManager" />
+       </replace-with>
+
+       <replace-with class="com.vaadin.terminal.gwt.client.LayoutManagerIE8">
+               <when-type-is class="com.vaadin.terminal.gwt.client.LayoutManager" />
+               <any>
+                       <when-property-is name="user.agent" value="ie8" />
+               </any>
+       </replace-with>
+
+       <!-- Workaround for #6682. Remove when fixed in GWT. -->
+       <replace-with class="com.google.gwt.dom.client.VaadinDOMImplSafari">
+               <when-type-is class="com.google.gwt.dom.client.DOMImpl" />
+               <when-property-is name="user.agent" value="safari" />
+       </replace-with>
+
+</module>