[jbpm-commits] JBoss JBPM SVN: r3649 - in projects/gwt-console/trunk: plugin/src/main/java/org/jboss/bpm/console/client and 9 other directories.

do-not-reply at jboss.org do-not-reply at jboss.org
Thu Jan 15 09:47:17 EST 2009


Author: heiko.braun at jboss.com
Date: 2009-01-15 09:47:17 -0500 (Thu, 15 Jan 2009)
New Revision: 3649

Added:
   projects/gwt-console/trunk/plugin-example/src/main/java/org/jboss/bpm/console/client/
   projects/gwt-console/trunk/plugin-example/src/main/resources/org/jboss/bpm/console/workspace.cfg
   projects/gwt-console/trunk/war/src/main/resources/org/jboss/bpm/console/workspace-default.cfg
Removed:
   projects/gwt-console/trunk/plugin-example/src/main/java/org/jboss/bpm/console/mapsplugin/
   projects/gwt-console/trunk/plugin-example/src/main/resources/org/jboss/bpm/console/workspace.txt
   projects/gwt-console/trunk/war/src/main/resources/org/jboss/bpm/console/workspace.txt
Modified:
   projects/gwt-console/trunk/plugin-example/plugin-example.iml
   projects/gwt-console/trunk/plugin-example/pom.xml
   projects/gwt-console/trunk/plugin/src/main/java/org/jboss/bpm/console/client/Editor.java
   projects/gwt-console/trunk/pom.xml
   projects/gwt-console/trunk/war/gwt-war.iml
   projects/gwt-console/trunk/war/pom.xml
   projects/gwt-console/trunk/war/src/main/java/org/jboss/bpm/console/client/process/ProcessEditor.java
   projects/gwt-console/trunk/war/src/main/java/org/jboss/bpm/console/client/report/ReportEditor.java
   projects/gwt-console/trunk/war/src/main/java/org/jboss/bpm/console/client/task/TaskEditor.java
   projects/gwt-console/trunk/war/src/main/java/org/jboss/bpm/console/rebind/WorkspaceGenerator.java
Log:
Pugin example first cut. Lauch with -Pplugin-example switch

Modified: projects/gwt-console/trunk/plugin/src/main/java/org/jboss/bpm/console/client/Editor.java
===================================================================
--- projects/gwt-console/trunk/plugin/src/main/java/org/jboss/bpm/console/client/Editor.java	2009-01-15 14:18:26 UTC (rev 3648)
+++ projects/gwt-console/trunk/plugin/src/main/java/org/jboss/bpm/console/client/Editor.java	2009-01-15 14:47:17 UTC (rev 3649)
@@ -36,13 +36,13 @@
  */
 public abstract class Editor extends Panel
 {
-  protected ApplicationContext main;
+  protected ApplicationContext appContext;
   private TabPanel tabPanel;
 
-  protected Editor(ApplicationContext main)
+  protected Editor(ApplicationContext applicationContext)
   {
     super();
-    this.main = main;
+    this.appContext = applicationContext;
     this.setPaddings(10);
 
     // -------
@@ -133,6 +133,7 @@
     view.setId(view.getViewId() + ".tab");
     view.setClosable(closable);
     view.setIconCls(view.getIconCSS());
+    view.setAutoScroll(true);
 
     this.tabPanel.add(view);
     this.tabPanel.setActiveTab(view.getId());

Modified: projects/gwt-console/trunk/plugin-example/plugin-example.iml
===================================================================
--- projects/gwt-console/trunk/plugin-example/plugin-example.iml	2009-01-15 14:18:26 UTC (rev 3648)
+++ projects/gwt-console/trunk/plugin-example/plugin-example.iml	2009-01-15 14:47:17 UTC (rev 3649)
@@ -9,7 +9,8 @@
     </content>
     <orderEntry type="inheritedJdk" />
     <orderEntry type="sourceFolder" forTests="false" />
-    <orderEntry type="module-library">
+    <orderEntry type="module" module-name="plugin" />
+    <orderEntry type="module-library" exported="">
       <library name="M2 Dep: com.google.code.gson:gson:jar:1.2.2:provided">
         <CLASSES>
           <root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/com/google/code/gson/gson/1.2.2/gson-1.2.2.jar!/" />
@@ -18,7 +19,7 @@
         <SOURCES />
       </library>
     </orderEntry>
-    <orderEntry type="module-library">
+    <orderEntry type="module-library" exported="">
       <library name="M2 Dep: com.google.gwt:gwt-servlet:jar:1.5.2:provided">
         <CLASSES>
           <root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/com/google/gwt/gwt-servlet/1.5.2/gwt-servlet-1.5.2.jar!/" />
@@ -27,7 +28,7 @@
         <SOURCES />
       </library>
     </orderEntry>
-    <orderEntry type="module-library">
+    <orderEntry type="module-library" exported="">
       <library name="M2 Dep: org.jbpm.jbpm3:gwt-console-rpc:jar:1.0.0-SNAPSHOT:provided">
         <CLASSES>
           <root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/org/jbpm/jbpm3/gwt-console-rpc/1.0.0-SNAPSHOT/gwt-console-rpc-1.0.0-SNAPSHOT.jar!/" />
@@ -38,7 +39,7 @@
         </SOURCES>
       </library>
     </orderEntry>
-    <orderEntry type="module-library">
+    <orderEntry type="module-library" exported="">
       <library name="M2 Dep: com.gwtext:gwtext:jar:2.0.5:provided">
         <CLASSES>
           <root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/com/gwtext/gwtext/2.0.5/gwtext-2.0.5.jar!/" />
@@ -47,6 +48,44 @@
         <SOURCES />
       </library>
     </orderEntry>
+    <orderEntry type="module-library" exported="">
+      <library name="M2 Dep: javax.xml.bind:jaxb-api:jar:2.1:compile">
+        <CLASSES>
+          <root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/javax/xml/bind/jaxb-api/2.1/jaxb-api-2.1.jar!/" />
+        </CLASSES>
+        <JAVADOC />
+        <SOURCES />
+      </library>
+    </orderEntry>
+    <orderEntry type="module-library" exported="">
+      <library name="M2 Dep: javax.xml.stream:stax-api:jar:1.0-2:compile">
+        <CLASSES>
+          <root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/javax/xml/stream/stax-api/1.0-2/stax-api-1.0-2.jar!/" />
+        </CLASSES>
+        <JAVADOC />
+        <SOURCES />
+      </library>
+    </orderEntry>
+    <orderEntry type="module-library" exported="">
+      <library name="M2 Dep: com.google.code.gwt-log:gwt-log:jar:2.5.2:compile">
+        <CLASSES>
+          <root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/com/google/code/gwt-log/gwt-log/2.5.2/gwt-log-2.5.2.jar!/" />
+        </CLASSES>
+        <JAVADOC />
+        <SOURCES />
+      </library>
+    </orderEntry>
+    <orderEntry type="module-library" exported="">
+      <library name="M2 Dep: javax.activation:activation:jar:1.1:compile">
+        <CLASSES>
+          <root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/javax/activation/activation/1.1/activation-1.1.jar!/" />
+        </CLASSES>
+        <JAVADOC />
+        <SOURCES>
+          <root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/javax/activation/activation/1.1/activation-1.1-sources.jar!/" />
+        </SOURCES>
+      </library>
+    </orderEntry>
     <orderEntryProperties />
   </component>
 </module>

Modified: projects/gwt-console/trunk/plugin-example/pom.xml
===================================================================
--- projects/gwt-console/trunk/plugin-example/pom.xml	2009-01-15 14:18:26 UTC (rev 3648)
+++ projects/gwt-console/trunk/plugin-example/pom.xml	2009-01-15 14:47:17 UTC (rev 3649)
@@ -29,11 +29,49 @@
       <scope>provided</scope>
     </dependency>
 
+    <dependency>
+      <groupId>org.jbpm.jbpm3</groupId>
+      <artifactId>gwt-console-plugin</artifactId>
+      <version>${version}</version>
+    </dependency>
+
   </dependencies>
 
   <!-- Plugins -->
-  <build>
-    <finalName>mapsplugin</finalName>    
+  <build>    
+    <plugins>
+      <plugin>
+        <artifactId>maven-compiler-plugin</artifactId>
+        <configuration>
+          <source>1.5</source>
+          <target>1.5</target>
+          <showDeprecation>true</showDeprecation>
+          <showWarnings>true</showWarnings>
+          <optimize>true</optimize>
+        </configuration>
+      </plugin>
+      <plugin>
+        <artifactId>maven-jar-plugin</artifactId>
+        <configuration>
+          <archive>
+            <manifest>
+              <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
+            </manifest>
+          </archive>
+        </configuration>
+      </plugin>
+      <plugin>
+        <artifactId>maven-source-plugin</artifactId>
+        <executions>
+          <execution>
+            <id>attach-sources</id>
+            <goals>
+              <goal>jar</goal>
+            </goals>
+          </execution>
+        </executions>
+      </plugin>
+    </plugins>
   </build>
  
 </project>

Added: projects/gwt-console/trunk/plugin-example/src/main/resources/org/jboss/bpm/console/workspace.cfg
===================================================================
--- projects/gwt-console/trunk/plugin-example/src/main/resources/org/jboss/bpm/console/workspace.cfg	                        (rev 0)
+++ projects/gwt-console/trunk/plugin-example/src/main/resources/org/jboss/bpm/console/workspace.cfg	2009-01-15 14:47:17 UTC (rev 3649)
@@ -0,0 +1,5 @@
+#org.jboss.bpm.console.client.process.ProcessEditor
+#org.jboss.bpm.console.client.task.TaskEditor
+#org.jboss.bpm.console.client.report.ReportEditor
+
+org.jboss.bpm.console.client.mapsplugin.MapsEditor
\ No newline at end of file

Deleted: projects/gwt-console/trunk/plugin-example/src/main/resources/org/jboss/bpm/console/workspace.txt
===================================================================
--- projects/gwt-console/trunk/plugin-example/src/main/resources/org/jboss/bpm/console/workspace.txt	2009-01-15 14:18:26 UTC (rev 3648)
+++ projects/gwt-console/trunk/plugin-example/src/main/resources/org/jboss/bpm/console/workspace.txt	2009-01-15 14:47:17 UTC (rev 3649)
@@ -1,3 +0,0 @@
-#org.jboss.bpm.console.client.process.ProcessEditor
-#org.jboss.bpm.console.client.task.TaskEditor
-#org.jboss.bpm.console.client.report.ReportEditor
\ No newline at end of file

Modified: projects/gwt-console/trunk/pom.xml
===================================================================
--- projects/gwt-console/trunk/pom.xml	2009-01-15 14:18:26 UTC (rev 3648)
+++ projects/gwt-console/trunk/pom.xml	2009-01-15 14:47:17 UTC (rev 3649)
@@ -38,6 +38,7 @@
       <module>server</module>
       <module>war</module>
       <module>plugin/</module>
+      <!--module>plugin-example</module-->
    </modules>
 
    <dependencyManagement>

Modified: projects/gwt-console/trunk/war/gwt-war.iml
===================================================================
--- projects/gwt-console/trunk/war/gwt-war.iml	2009-01-15 14:18:26 UTC (rev 3648)
+++ projects/gwt-console/trunk/war/gwt-war.iml	2009-01-15 14:47:17 UTC (rev 3649)
@@ -13,7 +13,16 @@
     <orderEntry type="sourceFolder" forTests="false" />
     <orderEntry type="module" module-name="gwt-parent" />
     <orderEntry type="module" module-name="plugin" />
-    <orderEntry type="module-library" exported="">
+    <orderEntry type="module-library">
+      <library name="M2 Dep: javax.xml.bind:jaxb-api:jar:2.1:compile">
+        <CLASSES>
+          <root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/javax/xml/bind/jaxb-api/2.1/jaxb-api-2.1.jar!/" />
+        </CLASSES>
+        <JAVADOC />
+        <SOURCES />
+      </library>
+    </orderEntry>
+    <orderEntry type="module-library">
       <library name="M2 Dep: junit:junit:jar:3.8.1:test">
         <CLASSES>
           <root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar!/" />
@@ -22,7 +31,7 @@
         <SOURCES />
       </library>
     </orderEntry>
-    <orderEntry type="module-library" exported="">
+    <orderEntry type="module-library">
       <library name="M2 Dep: com.google.code.gson:gson:jar:1.2.2:compile">
         <CLASSES>
           <root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/com/google/code/gson/gson/1.2.2/gson-1.2.2.jar!/" />
@@ -31,7 +40,7 @@
         <SOURCES />
       </library>
     </orderEntry>
-    <orderEntry type="module-library" exported="">
+    <orderEntry type="module-library">
       <library name="M2 Dep: com.google.gwt:gwt-dev:jar:mac:1.5.2:provided">
         <CLASSES>
           <root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/com/google/gwt/gwt-dev/1.5.2/gwt-dev-1.5.2-mac.jar!/" />
@@ -40,7 +49,7 @@
         <SOURCES />
       </library>
     </orderEntry>
-    <orderEntry type="module-library" exported="">
+    <orderEntry type="module-library">
       <library name="M2 Dep: com.google.gwt:gwt-user:jar:1.5.2:provided">
         <CLASSES>
           <root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/com/google/gwt/gwt-user/1.5.2/gwt-user-1.5.2.jar!/" />
@@ -49,7 +58,7 @@
         <SOURCES />
       </library>
     </orderEntry>
-    <orderEntry type="module-library" exported="">
+    <orderEntry type="module-library">
       <library name="M2 Dep: com.google.gwt:gwt-servlet:jar:1.5.2:runtime">
         <CLASSES>
           <root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/com/google/gwt/gwt-servlet/1.5.2/gwt-servlet-1.5.2.jar!/" />
@@ -58,7 +67,7 @@
         <SOURCES />
       </library>
     </orderEntry>
-    <orderEntry type="module-library" exported="">
+    <orderEntry type="module-library">
       <library name="M2 Dep: javax.xml.stream:stax-api:jar:1.0-2:provided">
         <CLASSES>
           <root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/javax/xml/stream/stax-api/1.0-2/stax-api-1.0-2.jar!/" />
@@ -67,7 +76,18 @@
         <SOURCES />
       </library>
     </orderEntry>
-    <orderEntry type="module-library" exported="">
+    <orderEntry type="module-library">
+      <library name="M2 Dep: org.jbpm.jbpm3:gwt-console-rpc:jar:1.0.0-SNAPSHOT:compile">
+        <CLASSES>
+          <root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/org/jbpm/jbpm3/gwt-console-rpc/1.0.0-SNAPSHOT/gwt-console-rpc-1.0.0-SNAPSHOT.jar!/" />
+        </CLASSES>
+        <JAVADOC />
+        <SOURCES>
+          <root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/org/jbpm/jbpm3/gwt-console-rpc/1.0.0-SNAPSHOT/gwt-console-rpc-1.0.0-SNAPSHOT-sources.jar!/" />
+        </SOURCES>
+      </library>
+    </orderEntry>
+    <orderEntry type="module-library">
       <library name="M2 Dep: javax.activation:activation:jar:1.1:provided">
         <CLASSES>
           <root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/javax/activation/activation/1.1/activation-1.1.jar!/" />
@@ -78,7 +98,7 @@
         </SOURCES>
       </library>
     </orderEntry>
-    <orderEntry type="module-library" exported="">
+    <orderEntry type="module-library">
       <library name="M2 Dep: com.google.code.gwt-log:gwt-log:jar:2.5.2:compile">
         <CLASSES>
           <root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/com/google/code/gwt-log/gwt-log/2.5.2/gwt-log-2.5.2.jar!/" />
@@ -87,7 +107,7 @@
         <SOURCES />
       </library>
     </orderEntry>
-    <orderEntry type="module-library" exported="">
+    <orderEntry type="module-library">
       <library name="M2 Dep: com.gwtext:gwtext:jar:2.0.5:compile">
         <CLASSES>
           <root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/com/gwtext/gwtext/2.0.5/gwtext-2.0.5.jar!/" />
@@ -96,26 +116,6 @@
         <SOURCES />
       </library>
     </orderEntry>
-    <orderEntry type="module-library">
-      <library name="M2 Dep: org.jbpm.jbpm3:gwt-console-rpc:jar:1.0.0-SNAPSHOT:compile">
-        <CLASSES>
-          <root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/org/jbpm/jbpm3/gwt-console-rpc/1.0.0-SNAPSHOT/gwt-console-rpc-1.0.0-SNAPSHOT.jar!/" />
-        </CLASSES>
-        <JAVADOC />
-        <SOURCES>
-          <root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/org/jbpm/jbpm3/gwt-console-rpc/1.0.0-SNAPSHOT/gwt-console-rpc-1.0.0-SNAPSHOT-sources.jar!/" />
-        </SOURCES>
-      </library>
-    </orderEntry>
-    <orderEntry type="module-library">
-      <library name="M2 Dep: javax.xml.bind:jaxb-api:jar:2.1:compile">
-        <CLASSES>
-          <root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/javax/xml/bind/jaxb-api/2.1/jaxb-api-2.1.jar!/" />
-        </CLASSES>
-        <JAVADOC />
-        <SOURCES />
-      </library>
-    </orderEntry>
     <orderEntryProperties />
   </component>
 </module>

Modified: projects/gwt-console/trunk/war/pom.xml
===================================================================
--- projects/gwt-console/trunk/war/pom.xml	2009-01-15 14:18:26 UTC (rev 3648)
+++ projects/gwt-console/trunk/war/pom.xml	2009-01-15 14:47:17 UTC (rev 3649)
@@ -21,6 +21,7 @@
   <!--  Dependencies -->
   <dependencies>
 
+    <!-- JBPM -->
     <dependency>
       <groupId>org.jbpm.jbpm3</groupId>
       <artifactId>gwt-console-rpc</artifactId>
@@ -40,6 +41,7 @@
       <version>${version}</version>
     </dependency>
 
+    <!-- GWT -->
     <dependency>
       <groupId>com.google.gwt</groupId>
       <artifactId>gwt-servlet</artifactId>
@@ -67,6 +69,8 @@
       <classifier>${platform}</classifier>
       <scope>provided</scope>
     </dependency>
+
+    <!-- GWT extensions -->
     <dependency>
       <groupId>com.gwtext</groupId>
       <artifactId>gwtext</artifactId>
@@ -76,6 +80,8 @@
       <artifactId>gwt-log</artifactId>
     </dependency>
 
+    <!-- 3rd party -->
+
     <dependency>
       <groupId>javax.xml.stream</groupId>
       <artifactId>stax-api</artifactId>
@@ -96,6 +102,7 @@
   <!-- Plugins -->
   <build>
     <finalName>gwt-console</finalName>
+
     <plugins>
       <plugin>
         <groupId>com.totsp.gwt</groupId>
@@ -226,27 +233,25 @@
       </activation>
     </profile>
 
-    <!--profile>
-       <id>alltests</id>
-       <build>
-       <plugins>
-          <plugin>
-             <groupId>com.totsp.gwt</groupId>
-             <artifactId>maven-googlewebtoolkit2-plugin</artifactId>
-             <version>${gwt-maven.version}</version>
-             <executions>
-                <execution>
-                   <goals>
-                      <goal>mergewebxml</goal>
-                      <goal>compile</goal>
-                      <goal>gwt</goal>
-                      <goal>test</goal>
-                   </goals>
-                </execution>
-             </executions>
-          </plugin>
-       </plugins>
-       </build>
-    </profile-->
+    <profile>
+      <id>plugin-example</id>
+      <dependencies>
+        <!-- example plugin, GWT requires the soures as well -->
+
+        <dependency>
+          <groupId>org.jboss.bpm.console</groupId>
+          <artifactId>mapsplugin</artifactId>
+          <version>${version}</version>
+        </dependency>
+
+        <dependency>
+          <groupId>org.jboss.bpm.console</groupId>
+          <artifactId>mapsplugin</artifactId>
+          <classifier>sources</classifier>
+          <version>${version}</version>
+        </dependency>
+      </dependencies>
+
+    </profile>
   </profiles>
 </project>

Modified: projects/gwt-console/trunk/war/src/main/java/org/jboss/bpm/console/client/process/ProcessEditor.java
===================================================================
--- projects/gwt-console/trunk/war/src/main/java/org/jboss/bpm/console/client/process/ProcessEditor.java	2009-01-15 14:18:26 UTC (rev 3648)
+++ projects/gwt-console/trunk/war/src/main/java/org/jboss/bpm/console/client/process/ProcessEditor.java	2009-01-15 14:47:17 UTC (rev 3649)
@@ -145,7 +145,7 @@
 
     // ----------------------------------
 
-    final View defaultView = new View(main)
+    final View defaultView = new View(appContext)
     {
 
       public String getViewId()

Modified: projects/gwt-console/trunk/war/src/main/java/org/jboss/bpm/console/client/report/ReportEditor.java
===================================================================
--- projects/gwt-console/trunk/war/src/main/java/org/jboss/bpm/console/client/report/ReportEditor.java	2009-01-15 14:18:26 UTC (rev 3648)
+++ projects/gwt-console/trunk/war/src/main/java/org/jboss/bpm/console/client/report/ReportEditor.java	2009-01-15 14:47:17 UTC (rev 3649)
@@ -106,7 +106,7 @@
             toolsPanel.add(new Separator());
             toolsPanel.add(refreshBtn);
 
-            final View defaultView = new View(main)
+            final View defaultView = new View(appContext)
             {
 
               public String getViewId()

Modified: projects/gwt-console/trunk/war/src/main/java/org/jboss/bpm/console/client/task/TaskEditor.java
===================================================================
--- projects/gwt-console/trunk/war/src/main/java/org/jboss/bpm/console/client/task/TaskEditor.java	2009-01-15 14:18:26 UTC (rev 3648)
+++ projects/gwt-console/trunk/war/src/main/java/org/jboss/bpm/console/client/task/TaskEditor.java	2009-01-15 14:47:17 UTC (rev 3649)
@@ -155,7 +155,7 @@
 
       // -------
 
-      final View defaultView = new View(main)
+      final View defaultView = new View(appContext)
       {
 
         public String getViewId()

Modified: projects/gwt-console/trunk/war/src/main/java/org/jboss/bpm/console/rebind/WorkspaceGenerator.java
===================================================================
--- projects/gwt-console/trunk/war/src/main/java/org/jboss/bpm/console/rebind/WorkspaceGenerator.java	2009-01-15 14:18:26 UTC (rev 3648)
+++ projects/gwt-console/trunk/war/src/main/java/org/jboss/bpm/console/rebind/WorkspaceGenerator.java	2009-01-15 14:47:17 UTC (rev 3649)
@@ -37,7 +37,6 @@
  */
 public class WorkspaceGenerator extends Generator
 {
-
   /**
    * Simple name of class to be generated
    */
@@ -51,6 +50,9 @@
    */
   private String typeName = null;
 
+  public static final String WORKSPACE_CONFIG_DEFAULT = "org/jboss/bpm/console/workspace-default.cfg";
+  public static final String WORKSPACE_CONFIG = "org/jboss/bpm/console/workspace.cfg";
+
   public String generate(TreeLogger logger, GeneratorContext context, String typeName)
       throws UnableToCompleteException
   {
@@ -129,12 +131,14 @@
     sourceWriter.println("public void launch(ApplicationContext appContext, Workspace workspace) { ");
     sourceWriter.indent();
 
-    InputStream in = getClass().getClassLoader().getResourceAsStream(
-        "org/jboss/bpm/console/workspace.txt"
-    );
+    InputStream in = getClass().getClassLoader().getResourceAsStream(WORKSPACE_CONFIG);
 
     if (null == in)
-      throw new RuntimeException("Cannot find 'org/jboss/bpm/console/workspace.txt'");
+    {
+      in = getClass().getClassLoader().getResourceAsStream(WORKSPACE_CONFIG_DEFAULT);
+      if(null==in)
+        throw new RuntimeException("Cannot find '"+WORKSPACE_CONFIG+"' or '"+WORKSPACE_CONFIG_DEFAULT+"'");
+    }
 
     try
     {
@@ -161,7 +165,7 @@
     }
     catch (IOException ex)
     {
-      throw new RuntimeException("Error reading 'org/jboss/bpm/console/workspace.txt'");
+      throw new RuntimeException("Error reading '"+WORKSPACE_CONFIG+"'");
     }
 
     // end constructor source generation

Added: projects/gwt-console/trunk/war/src/main/resources/org/jboss/bpm/console/workspace-default.cfg
===================================================================
--- projects/gwt-console/trunk/war/src/main/resources/org/jboss/bpm/console/workspace-default.cfg	                        (rev 0)
+++ projects/gwt-console/trunk/war/src/main/resources/org/jboss/bpm/console/workspace-default.cfg	2009-01-15 14:47:17 UTC (rev 3649)
@@ -0,0 +1,3 @@
+org.jboss.bpm.console.client.process.ProcessEditor
+org.jboss.bpm.console.client.task.TaskEditor
+org.jboss.bpm.console.client.report.ReportEditor
\ No newline at end of file

Deleted: projects/gwt-console/trunk/war/src/main/resources/org/jboss/bpm/console/workspace.txt
===================================================================
--- projects/gwt-console/trunk/war/src/main/resources/org/jboss/bpm/console/workspace.txt	2009-01-15 14:18:26 UTC (rev 3648)
+++ projects/gwt-console/trunk/war/src/main/resources/org/jboss/bpm/console/workspace.txt	2009-01-15 14:47:17 UTC (rev 3649)
@@ -1,3 +0,0 @@
-org.jboss.bpm.console.client.process.ProcessEditor
-org.jboss.bpm.console.client.task.TaskEditor
-org.jboss.bpm.console.client.report.ReportEditor
\ No newline at end of file




More information about the jbpm-commits mailing list