Author: [email protected]
Date: Wed Jun 24 10:15:17 2009
New Revision: 5628

Added:
    trunk/eclipse/reference/code-museum/SingleIssue.launch
    trunk/eclipse/reference/code-museum/war/
    trunk/eclipse/reference/code-museum/war/DefaultMuseum.html   (contents,  
props changed)
    trunk/eclipse/reference/code-museum/war/SingleIssue.html   (contents,  
props changed)
    trunk/eclipse/reference/code-museum/war/WEB-INF/
    trunk/eclipse/reference/code-museum/war/WEB-INF/classes/
    trunk/eclipse/reference/code-museum/war/WEB-INF/classes/marker
    trunk/eclipse/reference/code-museum/war/WEB-INF/web.xml
Removed:
     
trunk/reference/code-museum/src/com/google/gwt/museum/public/DefaultMuseum.html
    trunk/reference/code-museum/src/com/google/gwt/museum/public/Museum.html
     
trunk/reference/code-museum/src/com/google/gwt/museum/public/SingleIssue.html
Modified:
    trunk/eclipse/reference/code-museum/DefaultMuseum.launch
     
trunk/reference/code-museum/src/com/google/gwt/museum/DefaultMuseum.gwt.xml
    trunk/reference/code-museum/src/com/google/gwt/museum/Museum.gwt.xml
    trunk/reference/code-museum/src/com/google/gwt/museum/SingleIssue.gwt.xml
     
trunk/reference/code-museum/src/com/google/gwt/museum/client/common/AbstractIssue.java

Log:
Updates the code museum to use HostedMode instead of GWTShell, and adds a  
war/ directory.

Patch by: jlabanca
Review by: jgw



Modified: trunk/eclipse/reference/code-museum/DefaultMuseum.launch
==============================================================================
--- trunk/eclipse/reference/code-museum/DefaultMuseum.launch    (original)
+++ trunk/eclipse/reference/code-museum/DefaultMuseum.launch    Wed Jun 24  
10:15:17 2009
@@ -17,8 +17,8 @@
  <listEntry value="&lt;?xml version=&quot;1.0&quot;  
encoding=&quot;UTF-8&quot;  
standalone=&quot;no&quot;?&gt;&#10;&lt;runtimeClasspathEntry  
id=&quot;org.eclipse.jdt.launching.classpathentry.defaultClasspath&quot;&gt;&#10;&lt;memento
  
exportedEntriesOnly=&quot;false&quot;  
project=&quot;code-museum&quot;/&gt;&#10;&lt;/runtimeClasspathEntry&gt;&#10;"/>
  </listAttribute>
  <booleanAttribute key="org.eclipse.jdt.launching.DEFAULT_CLASSPATH"  
value="false"/>
-<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE"  
value="com.google.gwt.dev.GWTShell"/>
-<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS"  
value="-out www com.google.gwt.museum.DefaultMuseum/DefaultMuseum.html"/>
+<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE"  
value="com.google.gwt.dev.HostedMode"/>
+<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS"  
value="-startupUrl  
DefaultMuseum.html&#10;com.google.gwt.museum.DefaultMuseum"/>
  <stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR"  
value="code-museum"/>
-<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS"  
value="-Dgwt.devjar=${gwt_devjar}&quot;"/>
+<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS"  
value="-ea&#13;&#10;-Xmx256M&#10;-Dgwt.devjar=${gwt_devjar}&quot;"/>
  </launchConfiguration>

Added: trunk/eclipse/reference/code-museum/SingleIssue.launch
==============================================================================
--- (empty file)
+++ trunk/eclipse/reference/code-museum/SingleIssue.launch      Wed Jun 24  
10:15:17 2009
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<launchConfiguration type="org.eclipse.jdt.launching.localJavaApplication">
+<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
+<listEntry value="/code-museum"/>
+</listAttribute>
+<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
+<listEntry value="4"/>
+</listAttribute>
+<booleanAttribute key="org.eclipse.debug.core.appendEnvironmentVariables"  
value="true"/>
+<listAttribute key="org.eclipse.jdt.launching.CLASSPATH">
+<listEntry value="&lt;?xml version=&quot;1.0&quot;  
encoding=&quot;UTF-8&quot;  
standalone=&quot;no&quot;?&gt;&#10;&lt;runtimeClasspathEntry  
containerPath=&quot;org.eclipse.jdt.launching.JRE_CONTAINER&quot;  
javaProject=&quot;code-museum&quot; path=&quot;1&quot;  
type=&quot;4&quot;/&gt;&#10;"/>
+<listEntry value="&lt;?xml version=&quot;1.0&quot;  
encoding=&quot;UTF-8&quot;  
standalone=&quot;no&quot;?&gt;&#10;&lt;runtimeClasspathEntry  
internalArchive=&quot;/code-museum/src&quot; path=&quot;3&quot;  
type=&quot;2&quot;/&gt;&#10;"/>
+<listEntry value="&lt;?xml version=&quot;1.0&quot;  
encoding=&quot;UTF-8&quot;  
standalone=&quot;no&quot;?&gt;&#10;&lt;runtimeClasspathEntry  
internalArchive=&quot;/gwt-user/core/src&quot; path=&quot;3&quot;  
type=&quot;2&quot;/&gt;&#10;"/>
+<listEntry value="&lt;?xml version=&quot;1.0&quot;  
encoding=&quot;UTF-8&quot;  
standalone=&quot;no&quot;?&gt;&#10;&lt;runtimeClasspathEntry  
internalArchive=&quot;/gwt-dev-linux/core/src&quot; path=&quot;3&quot;  
type=&quot;2&quot;/&gt;&#10;"/>
+<listEntry value="&lt;?xml version=&quot;1.0&quot;  
encoding=&quot;UTF-8&quot;  
standalone=&quot;no&quot;?&gt;&#10;&lt;runtimeClasspathEntry  
internalArchive=&quot;/gwt-user/core/super&quot; path=&quot;3&quot;  
type=&quot;2&quot;/&gt;&#10;"/>
+<listEntry value="&lt;?xml version=&quot;1.0&quot;  
encoding=&quot;UTF-8&quot;  
standalone=&quot;no&quot;?&gt;&#10;&lt;runtimeClasspathEntry  
internalArchive=&quot;/gwt-dev-linux/core/super&quot; path=&quot;3&quot;  
type=&quot;2&quot;/&gt;&#10;"/>
+<listEntry value="&lt;?xml version=&quot;1.0&quot;  
encoding=&quot;UTF-8&quot;  
standalone=&quot;no&quot;?&gt;&#10;&lt;runtimeClasspathEntry  
id=&quot;org.eclipse.jdt.launching.classpathentry.defaultClasspath&quot;&gt;&#10;&lt;memento
  
exportedEntriesOnly=&quot;false&quot;  
project=&quot;code-museum&quot;/&gt;&#10;&lt;/runtimeClasspathEntry&gt;&#10;"/>
+</listAttribute>
+<booleanAttribute key="org.eclipse.jdt.launching.DEFAULT_CLASSPATH"  
value="false"/>
+<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE"  
value="com.google.gwt.dev.HostedMode"/>
+<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS"  
value="-startupUrl SingleIssue.html&#10;com.google.gwt.museum.SingleIssue"/>
+<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR"  
value="code-museum"/>
+<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS"  
value="-ea&#13;&#10;-Xmx256M&#10;-Dgwt.devjar=${gwt_devjar}&quot;"/>
+</launchConfiguration>

Added: trunk/eclipse/reference/code-museum/war/DefaultMuseum.html
==============================================================================
--- (empty file)
+++ trunk/eclipse/reference/code-museum/war/DefaultMuseum.html  Wed Jun 24  
10:15:17 2009
@@ -0,0 +1,11 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html>
+       <head>
+               <title>Museum</title>
+               <script language='javascript'  
src='defaultmuseum/defaultmuseum.nocache.js'></script>
+       </head>
+
+       <body>
+               <iframe src="javascript:''" id="__gwt_historyFrame"  
style="position:absolute;width:0;height:0;border:0"></iframe>
+       </body>
+</html>

Added: trunk/eclipse/reference/code-museum/war/SingleIssue.html
==============================================================================
--- (empty file)
+++ trunk/eclipse/reference/code-museum/war/SingleIssue.html    Wed Jun 24  
10:15:17 2009
@@ -0,0 +1,11 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html>
+       <head>
+               <title>Single issue from Museum</title>
+               <script language='javascript'  
src='singleissue/singleissue.nocache.js'></script>
+       </head>
+
+       <body>
+               <iframe src="javascript:''" id="__gwt_historyFrame"  
style="position:absolute;width:0;height:0;border:0"></iframe>
+       </body>
+</html>

Added: trunk/eclipse/reference/code-museum/war/WEB-INF/classes/marker
==============================================================================

Added: trunk/eclipse/reference/code-museum/war/WEB-INF/web.xml
==============================================================================
--- (empty file)
+++ trunk/eclipse/reference/code-museum/war/WEB-INF/web.xml     Wed Jun 24  
10:15:17 2009
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<web-app>
+
+  <!-- Default page to serve -->
+  <welcome-file-list>
+    <welcome-file>DefaultMuseum.html</welcome-file>
+  </welcome-file-list>
+
+</web-app>

Modified:  
trunk/reference/code-museum/src/com/google/gwt/museum/DefaultMuseum.gwt.xml
==============================================================================
---  
trunk/reference/code-museum/src/com/google/gwt/museum/DefaultMuseum.gwt.xml     
 
(original)
+++  
trunk/reference/code-museum/src/com/google/gwt/museum/DefaultMuseum.gwt.xml     
 
Wed Jun 24 10:15:17 2009
@@ -1,4 +1,4 @@
-<module>
+<module rename-to="defaultmuseum">

      <!-- Inherit the core Web Toolkit stuff.                  -->
      <inherits name='com.google.gwt.museum.Museum'/>

Modified:  
trunk/reference/code-museum/src/com/google/gwt/museum/Museum.gwt.xml
==============================================================================
--- trunk/reference/code-museum/src/com/google/gwt/museum/Museum.gwt.xml        
 
(original)
+++ trunk/reference/code-museum/src/com/google/gwt/museum/Museum.gwt.xml        
 
Wed Jun 24 10:15:17 2009
@@ -1,4 +1,4 @@
-<module>
+<module rename-to="museum">

      <!-- Inherit the core Web Toolkit stuff.                  -->
      <inherits name='com.google.gwt.user.User'/>

Modified:  
trunk/reference/code-museum/src/com/google/gwt/museum/SingleIssue.gwt.xml
==============================================================================
---  
trunk/reference/code-museum/src/com/google/gwt/museum/SingleIssue.gwt.xml       
 
(original)
+++  
trunk/reference/code-museum/src/com/google/gwt/museum/SingleIssue.gwt.xml       
 
Wed Jun 24 10:15:17 2009
@@ -1,4 +1,4 @@
-<module>
+<module rename-to="singleissue">

      <!-- Inherit the core Web Toolkit stuff.                  -->
      <inherits name='com.google.gwt.user.User'/>

Modified:  
trunk/reference/code-museum/src/com/google/gwt/museum/client/common/AbstractIssue.java
==============================================================================
---  
trunk/reference/code-museum/src/com/google/gwt/museum/client/common/AbstractIssue.java
   
(original)
+++  
trunk/reference/code-museum/src/com/google/gwt/museum/client/common/AbstractIssue.java
   
Wed Jun 24 10:15:17 2009
@@ -16,6 +16,7 @@
  package com.google.gwt.museum.client.common;

  import com.google.gwt.core.client.EntryPoint;
+import com.google.gwt.core.client.GWT;
  import com.google.gwt.dom.client.Document;
  import com.google.gwt.dom.client.LinkElement;
  import com.google.gwt.user.client.Window;
@@ -49,10 +50,11 @@
        cssName = "Default";
      }

+    String baseUrl = GWT.getModuleBaseURL();
      LinkElement issueLinkElement = Document.get().createLinkElement();
      issueLinkElement.setRel("stylesheet");
      issueLinkElement.setType("text/css");
-    issueLinkElement.setHref("issues/" + cssName + ".css");
+    issueLinkElement.setHref(baseUrl + "issues/" + cssName + ".css");
      return issueLinkElement;
    }


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

Reply via email to