[jbpm-commits] JBoss JBPM SVN: r3636 - in projects/gwt-console/trunk: rpc and 10 other directories.
do-not-reply at jboss.org
do-not-reply at jboss.org
Wed Jan 14 08:44:28 EST 2009
Author: heiko.braun at jboss.com
Date: 2009-01-14 08:44:28 -0500 (Wed, 14 Jan 2009)
New Revision: 3636
Added:
projects/gwt-console/trunk/war/src/main/java/org/jboss/bpm/console/client/WorkspaceLauncher.java
projects/gwt-console/trunk/war/src/main/java/org/jboss/bpm/console/rebind/
projects/gwt-console/trunk/war/src/main/java/org/jboss/bpm/console/rebind/WorkspaceGenerator.java
projects/gwt-console/trunk/war/src/main/resources/org/jboss/bpm/console/workspace.txt
Removed:
projects/gwt-console/trunk/war/src/main/java/org/jboss/bpm/console/client/WelcomeEditor.java
Modified:
projects/gwt-console/trunk/gwt-parent.iml
projects/gwt-console/trunk/rpc/gwt-rpc.iml
projects/gwt-console/trunk/server/gwt-server.iml
projects/gwt-console/trunk/server/pom.xml
projects/gwt-console/trunk/server/src/main/resources/definition_report.rptdesign
projects/gwt-console/trunk/war/gwt-war.iml
projects/gwt-console/trunk/war/src/main/java/org/jboss/bpm/console/client/Editor.java
projects/gwt-console/trunk/war/src/main/java/org/jboss/bpm/console/client/MainView.java
projects/gwt-console/trunk/war/src/main/java/org/jboss/bpm/console/client/process/ProcessDefinitionListEditor.java
projects/gwt-console/trunk/war/src/main/java/org/jboss/bpm/console/client/process/ProcessInstanceEditor.java
projects/gwt-console/trunk/war/src/main/java/org/jboss/bpm/console/client/process/ProcessInstanceListEditor.java
projects/gwt-console/trunk/war/src/main/java/org/jboss/bpm/console/client/report/OverviewReportEditor.java
projects/gwt-console/trunk/war/src/main/java/org/jboss/bpm/console/client/report/ProcessReportEditor.java
projects/gwt-console/trunk/war/src/main/java/org/jboss/bpm/console/client/task/TaskListEditor.java
projects/gwt-console/trunk/war/src/main/resources/org/jboss/bpm/console/Application.gwt.xml
Log:
WorkspaceLauncher using DeferredBinding, first cut
Modified: projects/gwt-console/trunk/gwt-parent.iml
===================================================================
--- projects/gwt-console/trunk/gwt-parent.iml 2009-01-14 05:51:14 UTC (rev 3635)
+++ projects/gwt-console/trunk/gwt-parent.iml 2009-01-14 13:44:28 UTC (rev 3636)
@@ -15,9 +15,6 @@
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
- <orderEntry type="module" module-name="jbpm3-enterprise" exported="" />
- <orderEntry type="module" module-name="jbpm3-identity" exported="" />
- <orderEntry type="module" module-name="jbpm3-core" exported="" />
<orderEntry type="module-library" exported="">
<library name="M2 Dep: org.slf4j:slf4j-simple:jar:1.5.2:compile">
<CLASSES>
@@ -73,15 +70,6 @@
</library>
</orderEntry>
<orderEntry type="module-library" exported="">
- <library name="M2 Dep: commons-httpclient:commons-httpclient:jar:3.1:compile">
- <CLASSES>
- <root url="jar://$MODULE_DIR$/../../../../../../.m2/repository/commons-httpclient/commons-httpclient/3.1/commons-httpclient-3.1.jar!/" />
- </CLASSES>
- <JAVADOC />
- <SOURCES />
- </library>
- </orderEntry>
- <orderEntry type="module-library" exported="">
<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!/" />
@@ -172,24 +160,6 @@
</library>
</orderEntry>
<orderEntry type="module-library" exported="">
- <library name="M2 Dep: javax.mail:mail:jar:1.4:compile">
- <CLASSES>
- <root url="jar://$MODULE_DIR$/../../../../../../.m2/repository/javax/mail/mail/1.4/mail-1.4.jar!/" />
- </CLASSES>
- <JAVADOC />
- <SOURCES />
- </library>
- </orderEntry>
- <orderEntry type="module-library" exported="">
- <library name="M2 Dep: tjws:webserver:jar:1.3.3:compile">
- <CLASSES>
- <root url="jar://$MODULE_DIR$/../../../../../../.m2/repository/tjws/webserver/1.3.3/webserver-1.3.3.jar!/" />
- </CLASSES>
- <JAVADOC />
- <SOURCES />
- </library>
- </orderEntry>
- <orderEntry type="module-library" exported="">
<library name="M2 Dep: org.jyaml:jyaml:jar:1.3:compile">
<CLASSES>
<root url="jar://$MODULE_DIR$/../../../../../../.m2/repository/org/jyaml/jyaml/1.3/jyaml-1.3.jar!/" />
@@ -226,21 +196,14 @@
</library>
</orderEntry>
<orderEntry type="module-library" exported="">
- <library name="M2 Dep: com.sun.xml.bind:jaxb-impl:jar:2.1.2:compile">
- <CLASSES>
- <root url="jar://$MODULE_DIR$/../../../../../../.m2/repository/com/sun/xml/bind/jaxb-impl/2.1.2/jaxb-impl-2.1.2.jar!/" />
- </CLASSES>
- <JAVADOC />
- <SOURCES />
- </library>
- </orderEntry>
- <orderEntry type="module-library" exported="">
<library name="M2 Dep: org.jboss.logging:jboss-logging-spi:jar:2.0.5.GA:provided">
<CLASSES>
<root url="jar://$MODULE_DIR$/../../../../../../.m2/repository/org/jboss/logging/jboss-logging-spi/2.0.5.GA/jboss-logging-spi-2.0.5.GA.jar!/" />
</CLASSES>
<JAVADOC />
- <SOURCES />
+ <SOURCES>
+ <root url="jar://$MODULE_DIR$/../../../../../../.m2/repository/org/jboss/logging/jboss-logging-spi/2.0.5.GA/jboss-logging-spi-2.0.5.GA-sources.jar!/" />
+ </SOURCES>
</library>
</orderEntry>
<orderEntry type="module-library" exported="">
@@ -370,15 +333,6 @@
</library>
</orderEntry>
<orderEntry type="module-library" exported="">
- <library name="M2 Dep: javax.servlet:servlet-api:jar:2.5:compile">
- <CLASSES>
- <root url="jar://$MODULE_DIR$/../../../../../../.m2/repository/javax/servlet/servlet-api/2.5/servlet-api-2.5.jar!/" />
- </CLASSES>
- <JAVADOC />
- <SOURCES />
- </library>
- </orderEntry>
- <orderEntry type="module-library" exported="">
<library name="M2 Dep: javax.annotation:jsr250-api:jar:1.0:compile">
<CLASSES>
<root url="jar://$MODULE_DIR$/../../../../../../.m2/repository/javax/annotation/jsr250-api/1.0/jsr250-api-1.0.jar!/" />
@@ -402,7 +356,9 @@
<root url="jar://$MODULE_DIR$/../../../../../../.m2/repository/javax/activation/activation/1.1/activation-1.1.jar!/" />
</CLASSES>
<JAVADOC />
- <SOURCES />
+ <SOURCES>
+ <root url="jar://$MODULE_DIR$/../../../../../../.m2/repository/javax/activation/activation/1.1/activation-1.1-sources.jar!/" />
+ </SOURCES>
</library>
</orderEntry>
<orderEntry type="module-library" exported="">
@@ -438,7 +394,9 @@
<root url="jar://$MODULE_DIR$/../../../../../../.m2/repository/dom4j/dom4j/1.6.1/dom4j-1.6.1.jar!/" />
</CLASSES>
<JAVADOC />
- <SOURCES />
+ <SOURCES>
+ <root url="jar://$MODULE_DIR$/../../../../../../.m2/repository/dom4j/dom4j/1.6.1/dom4j-1.6.1-sources.jar!/" />
+ </SOURCES>
</library>
</orderEntry>
<orderEntry type="module-library" exported="">
@@ -505,15 +463,6 @@
</library>
</orderEntry>
<orderEntry type="module-library" exported="">
- <library name="M2 Dep: mysql:mysql-connector-java:jar:5.1.6:provided">
- <CLASSES>
- <root url="jar://$MODULE_DIR$/../../../../../../.m2/repository/mysql/mysql-connector-java/5.1.6/mysql-connector-java-5.1.6.jar!/" />
- </CLASSES>
- <JAVADOC />
- <SOURCES />
- </library>
- </orderEntry>
- <orderEntry type="module-library" exported="">
<library name="M2 Dep: sun-jaxb:jaxb-api:jar:2.1.4:provided">
<CLASSES>
<root url="jar://$MODULE_DIR$/../../../../../../.m2/repository/sun-jaxb/jaxb-api/2.1.4/jaxb-api-2.1.4.jar!/" />
@@ -568,15 +517,6 @@
</library>
</orderEntry>
<orderEntry type="module-library" exported="">
- <library name="M2 Dep: org.jboss.bpm:bpm-spec-api:jar:1.0.0-SNAPSHOT:provided">
- <CLASSES>
- <root url="jar://$MODULE_DIR$/../../../../../../.m2/repository/org/jboss/bpm/bpm-spec-api/1.0.0-SNAPSHOT/bpm-spec-api-1.0.0-SNAPSHOT.jar!/" />
- </CLASSES>
- <JAVADOC />
- <SOURCES />
- </library>
- </orderEntry>
- <orderEntry type="module-library" exported="">
<library name="M2 Dep: wutka-dtdparser:dtdparser121:jar:1.2.1:provided">
<CLASSES>
<root url="jar://$MODULE_DIR$/../../../../../../.m2/repository/wutka-dtdparser/dtdparser121/1.2.1/dtdparser121-1.2.1.jar!/" />
@@ -640,16 +580,20 @@
</library>
</orderEntry>
<orderEntry type="module-library" exported="">
- <library name="M2 Dep: commons-codec:commons-codec:jar:1.2:compile">
+ <library name="M2 Dep: org.jbpm.jbpm3:jbpm-enterprise:jar:3.3.1-SNAPSHOT:provided">
<CLASSES>
- <root url="jar://$MODULE_DIR$/../../../../../../.m2/repository/commons-codec/commons-codec/1.2/commons-codec-1.2.jar!/" />
+ <root url="jar://$MODULE_DIR$/../../../../../../.m2/repository/org/jbpm/jbpm3/jbpm-enterprise/3.3.1-SNAPSHOT/jbpm-enterprise-3.3.1-SNAPSHOT.jar!/" />
</CLASSES>
- <JAVADOC />
- <SOURCES />
+ <JAVADOC>
+ <root url="jar://$MODULE_DIR$/../../../../../../.m2/repository/org/jbpm/jbpm3/jbpm-enterprise/3.3.1-SNAPSHOT/jbpm-enterprise-3.3.1-SNAPSHOT-javadoc.jar!/" />
+ </JAVADOC>
+ <SOURCES>
+ <root url="jar://$MODULE_DIR$/../../../../../../.m2/repository/org/jbpm/jbpm3/jbpm-enterprise/3.3.1-SNAPSHOT/jbpm-enterprise-3.3.1-SNAPSHOT-sources.jar!/" />
+ </SOURCES>
</library>
</orderEntry>
<orderEntry type="module-library" exported="">
- <library name="M2 Dep: net.sf.ezmorph:ezmorph:jar:1.0.6:compile">
+ <library name="M2 Dep: net.sf.ezmorph:ezmorph:jar:1.0.6:test">
<CLASSES>
<root url="jar://$MODULE_DIR$/../../../../../../.m2/repository/net/sf/ezmorph/ezmorph/1.0.6/ezmorph-1.0.6.jar!/" />
</CLASSES>
@@ -658,7 +602,7 @@
</library>
</orderEntry>
<orderEntry type="module-library" exported="">
- <library name="M2 Dep: net.sf.json-lib:json-lib:jar:2.2.3:compile">
+ <library name="M2 Dep: net.sf.json-lib:json-lib:jar:2.2.3:test">
<CLASSES>
<root url="jar://$MODULE_DIR$/../../../../../../.m2/repository/net/sf/json-lib/json-lib/2.2.3/json-lib-2.2.3.jar!/" />
</CLASSES>
@@ -667,17 +611,54 @@
</library>
</orderEntry>
<orderEntry type="module-library" exported="">
- <library name="M2 Dep: commons-beanutils:commons-beanutils:jar:1.7.0:compile">
+ <library name="M2 Dep: org.jbpm.jbpm3:jbpm-identity:jar:3.3.1-SNAPSHOT:provided">
<CLASSES>
+ <root url="jar://$MODULE_DIR$/../../../../../../.m2/repository/org/jbpm/jbpm3/jbpm-identity/3.3.1-SNAPSHOT/jbpm-identity-3.3.1-SNAPSHOT.jar!/" />
+ </CLASSES>
+ <JAVADOC>
+ <root url="jar://$MODULE_DIR$/../../../../../../.m2/repository/org/jbpm/jbpm3/jbpm-identity/3.3.1-SNAPSHOT/jbpm-identity-3.3.1-SNAPSHOT-javadoc.jar!/" />
+ </JAVADOC>
+ <SOURCES>
+ <root url="jar://$MODULE_DIR$/../../../../../../.m2/repository/org/jbpm/jbpm3/jbpm-identity/3.3.1-SNAPSHOT/jbpm-identity-3.3.1-SNAPSHOT-sources.jar!/" />
+ </SOURCES>
+ </library>
+ </orderEntry>
+ <orderEntry type="module-library" exported="">
+ <library name="M2 Dep: commons-beanutils:commons-beanutils:jar:1.7.0:test">
+ <CLASSES>
<root url="jar://$MODULE_DIR$/../../../../../../.m2/repository/commons-beanutils/commons-beanutils/1.7.0/commons-beanutils-1.7.0.jar!/" />
</CLASSES>
<JAVADOC />
+ <SOURCES>
+ <root url="jar://$MODULE_DIR$/../../../../../../.m2/repository/commons-beanutils/commons-beanutils/1.7.0/commons-beanutils-1.7.0-sources.jar!/" />
+ </SOURCES>
+ </library>
+ </orderEntry>
+ <orderEntry type="module-library" exported="">
+ <library name="M2 Dep: org.jboss.bpm:bpm-spec-api:jar:1.0.0-Alpha1:provided">
+ <CLASSES>
+ <root url="jar://$MODULE_DIR$/../../../../../../.m2/repository/org/jboss/bpm/bpm-spec-api/1.0.0-Alpha1/bpm-spec-api-1.0.0-Alpha1.jar!/" />
+ </CLASSES>
+ <JAVADOC />
<SOURCES />
</library>
</orderEntry>
<orderEntry type="module-library" exported="">
- <library name="M2 Dep: commons-lang:commons-lang:jar:2.4:compile">
+ <library name="M2 Dep: org.jbpm.jbpm3:jbpm-jpdl:jar:3.3.1-SNAPSHOT:provided">
<CLASSES>
+ <root url="jar://$MODULE_DIR$/../../../../../../.m2/repository/org/jbpm/jbpm3/jbpm-jpdl/3.3.1-SNAPSHOT/jbpm-jpdl-3.3.1-SNAPSHOT.jar!/" />
+ </CLASSES>
+ <JAVADOC>
+ <root url="jar://$MODULE_DIR$/../../../../../../.m2/repository/org/jbpm/jbpm3/jbpm-jpdl/3.3.1-SNAPSHOT/jbpm-jpdl-3.3.1-SNAPSHOT-javadoc.jar!/" />
+ </JAVADOC>
+ <SOURCES>
+ <root url="jar://$MODULE_DIR$/../../../../../../.m2/repository/org/jbpm/jbpm3/jbpm-jpdl/3.3.1-SNAPSHOT/jbpm-jpdl-3.3.1-SNAPSHOT-sources.jar!/" />
+ </SOURCES>
+ </library>
+ </orderEntry>
+ <orderEntry type="module-library" exported="">
+ <library name="M2 Dep: commons-lang:commons-lang:jar:2.4:test">
+ <CLASSES>
<root url="jar://$MODULE_DIR$/../../../../../../.m2/repository/commons-lang/commons-lang/2.4/commons-lang-2.4.jar!/" />
</CLASSES>
<JAVADOC />
@@ -685,7 +666,7 @@
</library>
</orderEntry>
<orderEntry type="module-library" exported="">
- <library name="M2 Dep: commons-collections:commons-collections:jar:3.2:compile">
+ <library name="M2 Dep: commons-collections:commons-collections:jar:3.2:test">
<CLASSES>
<root url="jar://$MODULE_DIR$/../../../../../../.m2/repository/commons-collections/commons-collections/3.2/commons-collections-3.2.jar!/" />
</CLASSES>
Modified: projects/gwt-console/trunk/rpc/gwt-rpc.iml
===================================================================
--- projects/gwt-console/trunk/rpc/gwt-rpc.iml 2009-01-14 05:51:14 UTC (rev 3635)
+++ projects/gwt-console/trunk/rpc/gwt-rpc.iml 2009-01-14 13:44:28 UTC (rev 3636)
@@ -59,7 +59,9 @@
<root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/javax/activation/activation/1.1/activation-1.1.jar!/" />
</CLASSES>
<JAVADOC />
- <SOURCES />
+ <SOURCES>
+ <root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/javax/activation/activation/1.1/activation-1.1-sources.jar!/" />
+ </SOURCES>
</library>
</orderEntry>
<orderEntryProperties />
Modified: projects/gwt-console/trunk/server/gwt-server.iml
===================================================================
--- projects/gwt-console/trunk/server/gwt-server.iml 2009-01-14 05:51:14 UTC (rev 3635)
+++ projects/gwt-console/trunk/server/gwt-server.iml 2009-01-14 13:44:28 UTC (rev 3636)
@@ -11,9 +11,6 @@
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="module" module-name="gwt-parent" />
- <orderEntry type="module" module-name="jbpm3-enterprise" />
- <orderEntry type="module" module-name="jbpm3-identity" />
- <orderEntry type="module" module-name="jbpm3-core" />
<orderEntry type="module-library" exported="">
<library name="M2 Dep: org.slf4j:slf4j-simple:jar:1.5.2:compile">
<CLASSES>
@@ -42,15 +39,6 @@
</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: poi:poi:jar:2.5.1-final-20040804:provided">
<CLASSES>
<root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/poi/poi/2.5.1-final-20040804/poi-2.5.1-final-20040804.jar!/" />
@@ -69,15 +57,6 @@
</library>
</orderEntry>
<orderEntry type="module-library" exported="">
- <library name="M2 Dep: commons-httpclient:commons-httpclient:jar:3.1:compile">
- <CLASSES>
- <root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/commons-httpclient/commons-httpclient/3.1/commons-httpclient-3.1.jar!/" />
- </CLASSES>
- <JAVADOC />
- <SOURCES />
- </library>
- </orderEntry>
- <orderEntry type="module-library" exported="">
<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!/" />
@@ -168,24 +147,6 @@
</library>
</orderEntry>
<orderEntry type="module-library" exported="">
- <library name="M2 Dep: javax.mail:mail:jar:1.4:compile">
- <CLASSES>
- <root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/javax/mail/mail/1.4/mail-1.4.jar!/" />
- </CLASSES>
- <JAVADOC />
- <SOURCES />
- </library>
- </orderEntry>
- <orderEntry type="module-library" exported="">
- <library name="M2 Dep: tjws:webserver:jar:1.3.3:compile">
- <CLASSES>
- <root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/tjws/webserver/1.3.3/webserver-1.3.3.jar!/" />
- </CLASSES>
- <JAVADOC />
- <SOURCES />
- </library>
- </orderEntry>
- <orderEntry type="module-library" exported="">
<library name="M2 Dep: org.jyaml:jyaml:jar:1.3:compile">
<CLASSES>
<root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/org/jyaml/jyaml/1.3/jyaml-1.3.jar!/" />
@@ -222,21 +183,14 @@
</library>
</orderEntry>
<orderEntry type="module-library" exported="">
- <library name="M2 Dep: com.sun.xml.bind:jaxb-impl:jar:2.1.2:compile">
- <CLASSES>
- <root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/com/sun/xml/bind/jaxb-impl/2.1.2/jaxb-impl-2.1.2.jar!/" />
- </CLASSES>
- <JAVADOC />
- <SOURCES />
- </library>
- </orderEntry>
- <orderEntry type="module-library" exported="">
<library name="M2 Dep: org.jboss.logging:jboss-logging-spi:jar:2.0.5.GA:provided">
<CLASSES>
<root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/org/jboss/logging/jboss-logging-spi/2.0.5.GA/jboss-logging-spi-2.0.5.GA.jar!/" />
</CLASSES>
<JAVADOC />
- <SOURCES />
+ <SOURCES>
+ <root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/org/jboss/logging/jboss-logging-spi/2.0.5.GA/jboss-logging-spi-2.0.5.GA-sources.jar!/" />
+ </SOURCES>
</library>
</orderEntry>
<orderEntry type="module-library" exported="">
@@ -276,15 +230,6 @@
</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.transaction:jta:jar:1.0.1B:provided">
<CLASSES>
<root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/javax/transaction/jta/1.0.1B/jta-1.0.1B.jar!/" />
@@ -366,15 +311,6 @@
</library>
</orderEntry>
<orderEntry type="module-library" exported="">
- <library name="M2 Dep: javax.servlet:servlet-api:jar:2.5:compile">
- <CLASSES>
- <root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/javax/servlet/servlet-api/2.5/servlet-api-2.5.jar!/" />
- </CLASSES>
- <JAVADOC />
- <SOURCES />
- </library>
- </orderEntry>
- <orderEntry type="module-library" exported="">
<library name="M2 Dep: javax.annotation:jsr250-api:jar:1.0:compile">
<CLASSES>
<root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/javax/annotation/jsr250-api/1.0/jsr250-api-1.0.jar!/" />
@@ -393,15 +329,6 @@
</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 />
- </library>
- </orderEntry>
- <orderEntry type="module-library" exported="">
<library name="M2 Dep: com.sun.xml.fastinfoset:FastInfoset:jar:1.2.2:compile">
<CLASSES>
<root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/com/sun/xml/fastinfoset/FastInfoset/1.2.2/FastInfoset-1.2.2.jar!/" />
@@ -434,7 +361,9 @@
<root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/dom4j/dom4j/1.6.1/dom4j-1.6.1.jar!/" />
</CLASSES>
<JAVADOC />
- <SOURCES />
+ <SOURCES>
+ <root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/dom4j/dom4j/1.6.1/dom4j-1.6.1-sources.jar!/" />
+ </SOURCES>
</library>
</orderEntry>
<orderEntry type="module-library" exported="">
@@ -501,15 +430,6 @@
</library>
</orderEntry>
<orderEntry type="module-library" exported="">
- <library name="M2 Dep: mysql:mysql-connector-java:jar:5.1.6:provided">
- <CLASSES>
- <root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/mysql/mysql-connector-java/5.1.6/mysql-connector-java-5.1.6.jar!/" />
- </CLASSES>
- <JAVADOC />
- <SOURCES />
- </library>
- </orderEntry>
- <orderEntry type="module-library" exported="">
<library name="M2 Dep: sun-jaxb:jaxb-api:jar:2.1.4:provided">
<CLASSES>
<root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/sun-jaxb/jaxb-api/2.1.4/jaxb-api-2.1.4.jar!/" />
@@ -564,15 +484,6 @@
</library>
</orderEntry>
<orderEntry type="module-library" exported="">
- <library name="M2 Dep: org.jboss.bpm:bpm-spec-api:jar:1.0.0-SNAPSHOT:provided">
- <CLASSES>
- <root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/org/jboss/bpm/bpm-spec-api/1.0.0-SNAPSHOT/bpm-spec-api-1.0.0-SNAPSHOT.jar!/" />
- </CLASSES>
- <JAVADOC />
- <SOURCES />
- </library>
- </orderEntry>
- <orderEntry type="module-library" exported="">
<library name="M2 Dep: wutka-dtdparser:dtdparser121:jar:1.2.1:provided">
<CLASSES>
<root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/wutka-dtdparser/dtdparser121/1.2.1/dtdparser121-1.2.1.jar!/" />
@@ -608,17 +519,21 @@
<SOURCES />
</library>
</orderEntry>
- <orderEntry type="module-library" exported="">
- <library name="M2 Dep: commons-codec:commons-codec:jar:1.2:compile">
+ <orderEntry type="module-library">
+ <library name="M2 Dep: org.jbpm.jbpm3:jbpm-enterprise:jar:3.3.1-SNAPSHOT:provided">
<CLASSES>
- <root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/commons-codec/commons-codec/1.2/commons-codec-1.2.jar!/" />
+ <root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/org/jbpm/jbpm3/jbpm-enterprise/3.3.1-SNAPSHOT/jbpm-enterprise-3.3.1-SNAPSHOT.jar!/" />
</CLASSES>
- <JAVADOC />
- <SOURCES />
+ <JAVADOC>
+ <root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/org/jbpm/jbpm3/jbpm-enterprise/3.3.1-SNAPSHOT/jbpm-enterprise-3.3.1-SNAPSHOT-javadoc.jar!/" />
+ </JAVADOC>
+ <SOURCES>
+ <root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/org/jbpm/jbpm3/jbpm-enterprise/3.3.1-SNAPSHOT/jbpm-enterprise-3.3.1-SNAPSHOT-sources.jar!/" />
+ </SOURCES>
</library>
</orderEntry>
<orderEntry type="module-library">
- <library name="M2 Dep: net.sf.ezmorph:ezmorph:jar:1.0.6:compile">
+ <library name="M2 Dep: net.sf.ezmorph:ezmorph:jar:1.0.6:test">
<CLASSES>
<root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/net/sf/ezmorph/ezmorph/1.0.6/ezmorph-1.0.6.jar!/" />
</CLASSES>
@@ -627,7 +542,7 @@
</library>
</orderEntry>
<orderEntry type="module-library">
- <library name="M2 Dep: net.sf.json-lib:json-lib:jar:2.2.3:compile">
+ <library name="M2 Dep: net.sf.json-lib:json-lib:jar:2.2.3:test">
<CLASSES>
<root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/net/sf/json-lib/json-lib/2.2.3/json-lib-2.2.3.jar!/" />
</CLASSES>
@@ -636,17 +551,65 @@
</library>
</orderEntry>
<orderEntry type="module-library">
- <library name="M2 Dep: commons-beanutils:commons-beanutils:jar:1.7.0:compile">
+ <library name="M2 Dep: org.jbpm.jbpm3:jbpm-identity:jar:3.3.1-SNAPSHOT:provided">
<CLASSES>
+ <root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/org/jbpm/jbpm3/jbpm-identity/3.3.1-SNAPSHOT/jbpm-identity-3.3.1-SNAPSHOT.jar!/" />
+ </CLASSES>
+ <JAVADOC>
+ <root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/org/jbpm/jbpm3/jbpm-identity/3.3.1-SNAPSHOT/jbpm-identity-3.3.1-SNAPSHOT-javadoc.jar!/" />
+ </JAVADOC>
+ <SOURCES>
+ <root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/org/jbpm/jbpm3/jbpm-identity/3.3.1-SNAPSHOT/jbpm-identity-3.3.1-SNAPSHOT-sources.jar!/" />
+ </SOURCES>
+ </library>
+ </orderEntry>
+ <orderEntry type="module-library">
+ <library name="M2 Dep: commons-beanutils:commons-beanutils:jar:1.7.0:test">
+ <CLASSES>
<root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/commons-beanutils/commons-beanutils/1.7.0/commons-beanutils-1.7.0.jar!/" />
</CLASSES>
<JAVADOC />
+ <SOURCES>
+ <root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/commons-beanutils/commons-beanutils/1.7.0/commons-beanutils-1.7.0-sources.jar!/" />
+ </SOURCES>
+ </library>
+ </orderEntry>
+ <orderEntry type="module-library">
+ <library name="M2 Dep: org.jboss.bpm:bpm-spec-api:jar:1.0.0-Alpha1:provided">
+ <CLASSES>
+ <root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/org/jboss/bpm/bpm-spec-api/1.0.0-Alpha1/bpm-spec-api-1.0.0-Alpha1.jar!/" />
+ </CLASSES>
+ <JAVADOC />
<SOURCES />
</library>
</orderEntry>
<orderEntry type="module-library">
- <library name="M2 Dep: commons-lang:commons-lang:jar:2.4:compile">
+ <library name="M2 Dep: org.jbpm.jbpm3:jbpm-jpdl:jar:3.3.1-SNAPSHOT:provided">
<CLASSES>
+ <root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/org/jbpm/jbpm3/jbpm-jpdl/3.3.1-SNAPSHOT/jbpm-jpdl-3.3.1-SNAPSHOT.jar!/" />
+ </CLASSES>
+ <JAVADOC>
+ <root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/org/jbpm/jbpm3/jbpm-jpdl/3.3.1-SNAPSHOT/jbpm-jpdl-3.3.1-SNAPSHOT-javadoc.jar!/" />
+ </JAVADOC>
+ <SOURCES>
+ <root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/org/jbpm/jbpm3/jbpm-jpdl/3.3.1-SNAPSHOT/jbpm-jpdl-3.3.1-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!/" />
+ </CLASSES>
+ <JAVADOC />
+ <SOURCES>
+ <root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/javax/activation/activation/1.1/activation-1.1-sources.jar!/" />
+ </SOURCES>
+ </library>
+ </orderEntry>
+ <orderEntry type="module-library">
+ <library name="M2 Dep: commons-lang:commons-lang:jar:2.4:test">
+ <CLASSES>
<root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/commons-lang/commons-lang/2.4/commons-lang-2.4.jar!/" />
</CLASSES>
<JAVADOC />
@@ -654,7 +617,7 @@
</library>
</orderEntry>
<orderEntry type="module-library">
- <library name="M2 Dep: commons-collections:commons-collections:jar:3.2:compile">
+ <library name="M2 Dep: commons-collections:commons-collections:jar:3.2:test">
<CLASSES>
<root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/commons-collections/commons-collections/3.2/commons-collections-3.2.jar!/" />
</CLASSES>
Modified: projects/gwt-console/trunk/server/pom.xml
===================================================================
--- projects/gwt-console/trunk/server/pom.xml 2009-01-14 05:51:14 UTC (rev 3635)
+++ projects/gwt-console/trunk/server/pom.xml 2009-01-14 13:44:28 UTC (rev 3636)
@@ -106,7 +106,7 @@
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
</exclusion>
- <exclusion>
+ <exclusion>
<groupId>javax.xml.stream</groupId>
<artifactId>stax-api</artifactId>
</exclusion>
Modified: projects/gwt-console/trunk/server/src/main/resources/definition_report.rptdesign
===================================================================
--- projects/gwt-console/trunk/server/src/main/resources/definition_report.rptdesign 2009-01-14 05:51:14 UTC (rev 3635)
+++ projects/gwt-console/trunk/server/src/main/resources/definition_report.rptdesign 2009-01-14 13:44:28 UTC (rev 3636)
@@ -329,117 +329,8 @@
<simple-master-page name="Simple MasterPage" id="2"/>
</page-setup>
<body>
- <text id="286">
- <property name="fontFamily">sans-serif</property>
- <property name="paddingTop">10pt</property>
- <property name="paddingLeft">10pt</property>
- <property name="contentType">html</property>
- <text-property name="content"><![CDATA[Report for process: <value-of>params["name"]</value-of> ]]></text-property>
- </text>
- <table name="GlobalScriptTable" id="245">
- <property name="width">100%</property>
- <property name="dataSet">ExecQuartileByInstance</property>
- <list-property name="boundDataColumns">
- <structure>
- <property name="name">startDate</property>
- <expression name="expression">dataSetRow["startDate"]</expression>
- <property name="dataType">date-time</property>
- </structure>
- <structure>
- <property name="name">endDate</property>
- <expression name="expression">dataSetRow["endDate"]</expression>
- <property name="dataType">date-time</property>
- </structure>
- <structure>
- <property name="name">TOKEN_</property>
- <expression name="expression">dataSetRow["TOKEN_"]</expression>
- <property name="dataType">decimal</property>
- </structure>
- <structure>
- <property name="name">instanceID</property>
- <expression name="expression">dataSetRow["instanceID"]</expression>
- <property name="dataType">decimal</property>
- </structure>
- <structure>
- <property name="name">NAME_</property>
- <expression name="expression">dataSetRow["NAME_"]</expression>
- <property name="dataType">string</property>
- </structure>
- <structure>
- <property name="name">exec</property>
- <expression name="expression">dataSetRow["exec"]</expression>
- <property name="dataType">any</property>
- </structure>
- <structure>
- <property name="name">q3</property>
- <expression name="expression">dataSetRow["q3"]</expression>
- <property name="dataType">any</property>
- </structure>
- <structure>
- <property name="name">q1</property>
- <expression name="expression">dataSetRow["q1"]</expression>
- <property name="dataType">any</property>
- </structure>
- <structure>
- <property name="name">upperQuartile</property>
- <expression name="expression">dataSetRow["upperQuartile"]</expression>
- <property name="dataType">any</property>
- </structure>
- <structure>
- <property name="name">Column Binding</property>
- <expression name="expression">params["name"]</expression>
- <property name="dataType">any</property>
- </structure>
- </list-property>
- <method name="onCreate"><![CDATA[// make dataset values available as global variables
-var q3Value = this.getRowData().getColumnValue("q3");
-var q1Value = this.getRowData().getColumnValue("exec");
-reportContext.setGlobalVariable("q3", q3Value);
-reportContext.setGlobalVariable("q1", q1Value);]]></method>
- <column id="258"/>
- <column id="259"/>
- <detail>
- <row id="250">
- <cell id="251"/>
- <cell id="252"/>
- </row>
- </detail>
- </table>
- <table id="287">
- <property name="marginTop">0pt</property>
- <property name="canShrink">true</property>
- <property name="width">620px</property>
- <column id="300"/>
- <column id="301"/>
- <header>
- <row id="288">
- <cell id="289">
- <text id="339">
- <property name="fontFamily">sans-serif</property>
- <property name="fontWeight">bold</property>
- <property name="paddingTop">1pt</property>
- <property name="paddingLeft">10pt</property>
- <property name="textAlign">left</property>
- <property name="contentType">auto</property>
- <text-property name="content"><![CDATA[Execution time quartiles]]></text-property>
- </text>
- </cell>
- <cell id="290">
- <text id="341">
- <property name="fontFamily">sans-serif</property>
- <property name="fontWeight">bold</property>
- <property name="textAlign">left</property>
- <property name="contentType">auto</property>
- <text-property name="content"><![CDATA[Upper quartile]]></text-property>
- </text>
- </cell>
- </row>
- </header>
- <detail>
- <row id="292">
- <cell id="293">
- <extended-item extensionName="Chart" name="ExecQuartiles" id="223">
- <xml-property name="xmlRepresentation"><![CDATA[<model:ChartWithAxes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:attribute="http://www.birt.eclipse.org/ChartModelAttribute" xmlns:data="http://www.birt.eclipse.org/ChartModelData" xmlns:layout="http://www.birt.eclipse.org/ChartModelLayout" xmlns:model="http://www.birt.eclipse.org/ChartModel" xmlns:type="http://www.birt.eclipse.org/ChartModelType">
+ <extended-item extensionName="Chart" name="ExecQuartiles" id="223">
+ <xml-property name="xmlRepresentation"><![CDATA[<model:ChartWithAxes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:attribute="http://www.birt.eclipse.org/ChartModelAttribute" xmlns:data="http://www.birt.eclipse.org/ChartModelData" xmlns:layout="http://www.birt.eclipse.org/ChartModelLayout" xmlns:model="http://www.birt.eclipse.org/ChartModel" xmlns:type="http://www.birt.eclipse.org/ChartModelType">
<Type>Bar Chart</Type>
<SubType>Side-by-side</SubType>
<Block>
@@ -1575,59 +1466,167 @@
<Rotation/>
</model:ChartWithAxes>
]]></xml-property>
- <property name="outputFormat">SVG</property>
- <property name="dataSet">ExecQuartileByInstance</property>
- <property name="height">130pt</property>
- <property name="width">212pt</property>
- <list-property name="boundDataColumns">
- <structure>
- <property name="name">startDate</property>
- <expression name="expression">dataSetRow["startDate"]</expression>
- <property name="dataType">date-time</property>
- </structure>
- <structure>
- <property name="name">endDate</property>
- <expression name="expression">dataSetRow["endDate"]</expression>
- <property name="dataType">date-time</property>
- </structure>
- <structure>
- <property name="name">TOKEN_</property>
- <expression name="expression">dataSetRow["TOKEN_"]</expression>
- <property name="dataType">decimal</property>
- </structure>
- <structure>
- <property name="name">instanceID</property>
- <expression name="expression">dataSetRow["instanceID"]</expression>
- <property name="dataType">decimal</property>
- </structure>
- <structure>
- <property name="name">NAME_</property>
- <expression name="expression">dataSetRow["NAME_"]</expression>
- <property name="dataType">string</property>
- </structure>
- <structure>
- <property name="name">exec</property>
- <expression name="expression">dataSetRow["exec"]</expression>
- <property name="dataType">any</property>
- </structure>
- <structure>
- <property name="name">q3</property>
- <expression name="expression">dataSetRow["q3"]</expression>
- <property name="dataType">any</property>
- </structure>
- <structure>
- <property name="name">q1</property>
- <expression name="expression">dataSetRow["q1"]</expression>
- <property name="dataType">any</property>
- </structure>
- <structure>
- <property name="name">upperQuartile</property>
- <expression name="expression">dataSetRow["upperQuartile"]</expression>
- <property name="dataType">any</property>
- </structure>
- </list-property>
- </extended-item>
+ <property name="outputFormat">SVG</property>
+ <property name="dataSet">ExecQuartileByInstance</property>
+ <property name="height">130pt</property>
+ <property name="width">212pt</property>
+ <list-property name="boundDataColumns">
+ <structure>
+ <property name="name">startDate</property>
+ <expression name="expression">dataSetRow["startDate"]</expression>
+ <property name="dataType">date-time</property>
+ </structure>
+ <structure>
+ <property name="name">endDate</property>
+ <expression name="expression">dataSetRow["endDate"]</expression>
+ <property name="dataType">date-time</property>
+ </structure>
+ <structure>
+ <property name="name">TOKEN_</property>
+ <expression name="expression">dataSetRow["TOKEN_"]</expression>
+ <property name="dataType">decimal</property>
+ </structure>
+ <structure>
+ <property name="name">instanceID</property>
+ <expression name="expression">dataSetRow["instanceID"]</expression>
+ <property name="dataType">decimal</property>
+ </structure>
+ <structure>
+ <property name="name">NAME_</property>
+ <expression name="expression">dataSetRow["NAME_"]</expression>
+ <property name="dataType">string</property>
+ </structure>
+ <structure>
+ <property name="name">exec</property>
+ <expression name="expression">dataSetRow["exec"]</expression>
+ <property name="dataType">any</property>
+ </structure>
+ <structure>
+ <property name="name">q3</property>
+ <expression name="expression">dataSetRow["q3"]</expression>
+ <property name="dataType">any</property>
+ </structure>
+ <structure>
+ <property name="name">q1</property>
+ <expression name="expression">dataSetRow["q1"]</expression>
+ <property name="dataType">any</property>
+ </structure>
+ <structure>
+ <property name="name">upperQuartile</property>
+ <expression name="expression">dataSetRow["upperQuartile"]</expression>
+ <property name="dataType">any</property>
+ </structure>
+ </list-property>
+ </extended-item>
+ <text id="286">
+ <property name="fontFamily">sans-serif</property>
+ <property name="paddingTop">10pt</property>
+ <property name="paddingLeft">10pt</property>
+ <property name="contentType">html</property>
+ <text-property name="content"><![CDATA[Report for process: <value-of>params["name"]</value-of> ]]></text-property>
+ </text>
+ <table name="GlobalScriptTable" id="245">
+ <property name="width">100%</property>
+ <property name="dataSet">ExecQuartileByInstance</property>
+ <list-property name="boundDataColumns">
+ <structure>
+ <property name="name">startDate</property>
+ <expression name="expression">dataSetRow["startDate"]</expression>
+ <property name="dataType">date-time</property>
+ </structure>
+ <structure>
+ <property name="name">endDate</property>
+ <expression name="expression">dataSetRow["endDate"]</expression>
+ <property name="dataType">date-time</property>
+ </structure>
+ <structure>
+ <property name="name">TOKEN_</property>
+ <expression name="expression">dataSetRow["TOKEN_"]</expression>
+ <property name="dataType">decimal</property>
+ </structure>
+ <structure>
+ <property name="name">instanceID</property>
+ <expression name="expression">dataSetRow["instanceID"]</expression>
+ <property name="dataType">decimal</property>
+ </structure>
+ <structure>
+ <property name="name">NAME_</property>
+ <expression name="expression">dataSetRow["NAME_"]</expression>
+ <property name="dataType">string</property>
+ </structure>
+ <structure>
+ <property name="name">exec</property>
+ <expression name="expression">dataSetRow["exec"]</expression>
+ <property name="dataType">any</property>
+ </structure>
+ <structure>
+ <property name="name">q3</property>
+ <expression name="expression">dataSetRow["q3"]</expression>
+ <property name="dataType">any</property>
+ </structure>
+ <structure>
+ <property name="name">q1</property>
+ <expression name="expression">dataSetRow["q1"]</expression>
+ <property name="dataType">any</property>
+ </structure>
+ <structure>
+ <property name="name">upperQuartile</property>
+ <expression name="expression">dataSetRow["upperQuartile"]</expression>
+ <property name="dataType">any</property>
+ </structure>
+ <structure>
+ <property name="name">Column Binding</property>
+ <expression name="expression">params["name"]</expression>
+ <property name="dataType">any</property>
+ </structure>
+ </list-property>
+ <method name="onCreate"><![CDATA[// make dataset values available as global variables
+var q3Value = this.getRowData().getColumnValue("q3");
+var q1Value = this.getRowData().getColumnValue("exec");
+reportContext.setGlobalVariable("q3", q3Value);
+reportContext.setGlobalVariable("q1", q1Value);]]></method>
+ <column id="258"/>
+ <column id="259"/>
+ <detail>
+ <row id="250">
+ <cell id="251"/>
+ <cell id="252"/>
+ </row>
+ </detail>
+ </table>
+ <table id="287">
+ <property name="marginTop">0pt</property>
+ <property name="canShrink">true</property>
+ <property name="width">620px</property>
+ <column id="300"/>
+ <column id="301"/>
+ <header>
+ <row id="288">
+ <cell id="289">
+ <text id="339">
+ <property name="fontFamily">sans-serif</property>
+ <property name="fontWeight">bold</property>
+ <property name="paddingTop">1pt</property>
+ <property name="paddingLeft">10pt</property>
+ <property name="textAlign">left</property>
+ <property name="contentType">auto</property>
+ <text-property name="content"><![CDATA[Execution time quartiles]]></text-property>
+ </text>
</cell>
+ <cell id="290">
+ <text id="341">
+ <property name="fontFamily">sans-serif</property>
+ <property name="fontWeight">bold</property>
+ <property name="textAlign">left</property>
+ <property name="contentType">auto</property>
+ <text-property name="content"><![CDATA[Upper quartile]]></text-property>
+ </text>
+ </cell>
+ </row>
+ </header>
+ <detail>
+ <row id="292">
+ <cell id="293"/>
<cell id="294">
<table id="319">
<property name="fontFamily">sans-serif</property>
Modified: projects/gwt-console/trunk/war/gwt-war.iml
===================================================================
--- projects/gwt-console/trunk/war/gwt-war.iml 2009-01-14 05:51:14 UTC (rev 3635)
+++ projects/gwt-console/trunk/war/gwt-war.iml 2009-01-14 13:44:28 UTC (rev 3636)
@@ -11,7 +11,7 @@
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
- <orderEntry type="module" module-name="gwt-parent" exported="" />
+ <orderEntry type="module" module-name="gwt-parent" />
<orderEntry type="module-library" exported="">
<library name="M2 Dep: junit:junit:jar:3.8.1:test">
<CLASSES>
@@ -72,7 +72,9 @@
<root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/javax/activation/activation/1.1/activation-1.1.jar!/" />
</CLASSES>
<JAVADOC />
- <SOURCES />
+ <SOURCES>
+ <root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/javax/activation/activation/1.1/activation-1.1-sources.jar!/" />
+ </SOURCES>
</library>
</orderEntry>
<orderEntry type="module-library" exported="">
Modified: projects/gwt-console/trunk/war/src/main/java/org/jboss/bpm/console/client/Editor.java
===================================================================
--- projects/gwt-console/trunk/war/src/main/java/org/jboss/bpm/console/client/Editor.java 2009-01-14 05:51:14 UTC (rev 3635)
+++ projects/gwt-console/trunk/war/src/main/java/org/jboss/bpm/console/client/Editor.java 2009-01-14 13:44:28 UTC (rev 3636)
@@ -25,17 +25,18 @@
/**
* An editor can be plugged into a {@link org.jboss.bpm.console.client.Workspace}
- *
+ *
* @author Heiko.Braun <heiko.braun at jboss.com>
*/
public abstract class Editor extends Panel
{
- protected Editor()
- {
- super();
- }
+
+ protected Editor(MainView main)
+ {
+ super();
+ }
- public abstract String getEditorId();
- public abstract String getTitle();
- public abstract String getIconCSS();
+ public abstract String getEditorId();
+ public abstract String getTitle();
+ public abstract String getIconCSS();
}
Modified: projects/gwt-console/trunk/war/src/main/java/org/jboss/bpm/console/client/MainView.java
===================================================================
--- projects/gwt-console/trunk/war/src/main/java/org/jboss/bpm/console/client/MainView.java 2009-01-14 05:51:14 UTC (rev 3635)
+++ projects/gwt-console/trunk/war/src/main/java/org/jboss/bpm/console/client/MainView.java 2009-01-14 13:44:28 UTC (rev 3636)
@@ -23,6 +23,7 @@
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.HTML;
+import com.google.gwt.core.client.GWT;
import com.gwtext.client.core.Margins;
import com.gwtext.client.core.RegionPosition;
import com.gwtext.client.widgets.MessageBox;
@@ -36,6 +37,7 @@
import org.jboss.bpm.console.client.report.OverviewReportEditor;
import org.jboss.bpm.console.client.task.TaskListEditor;
import org.jboss.bpm.console.client.util.ConsoleLog;
+import org.jboss.bpm.console.client.WorkspaceLauncher;
import java.util.List;
@@ -46,136 +48,133 @@
*/
public class MainView extends Composite
{
- private HTML status = new HTML();
- private Header header;
- private Menu menu;
- private Workspace workspace;
+ private HTML status = new HTML();
+ private Header header;
+ private Menu menu;
+ private Workspace workspace;
- private URLBuilder urlBuilder;
- private Viewport viewport;
- private Authentication auth;
+ private URLBuilder urlBuilder;
+ private Viewport viewport;
+ private Authentication auth;
- private ConsoleConfig config;
+ private ConsoleConfig config;
- public boolean isAttached()
- {
- return super.isAttached(); //To change body of overridden methods use File | Settings | File Templates.
- }
+ public boolean isAttached()
+ {
+ return super.isAttached(); //To change body of overridden methods use File | Settings | File Templates.
+ }
- public MainView(Authentication auth, URLBuilder urlBuilder, ConsoleConfig config)
- {
- this.auth = auth;
- this.config = config;
- this.urlBuilder = urlBuilder;
+ public MainView(Authentication auth, URLBuilder urlBuilder, ConsoleConfig config)
+ {
+ this.auth = auth;
+ this.config = config;
+ this.urlBuilder = urlBuilder;
- Panel mainPanel = createMainPanel();
- assembleMainApplication(mainPanel);
+ Panel mainPanel = createMainPanel();
+ assembleMainApplication(mainPanel);
+
+ viewport = new Viewport(mainPanel);
+ }
- viewport = new Viewport(mainPanel);
- }
+ private Panel createMainPanel()
+ {
+ Panel mainPanel = new Panel();
+ mainPanel.setBorder(false);
+ mainPanel.setPaddings(5); // outer most padding
+ mainPanel.setLayout(new FitLayout());
+ mainPanel.setWidth(UIConstants.OVERALL_WIDTH);
+ mainPanel.setHeight(UIConstants.OVERALL_WIDTH);
+ return mainPanel;
+ }
- private Panel createMainPanel()
- {
- Panel mainPanel = new Panel();
- mainPanel.setBorder(false);
- mainPanel.setPaddings(5); // outer most padding
- mainPanel.setLayout(new FitLayout());
- mainPanel.setWidth(UIConstants.OVERALL_WIDTH);
- mainPanel.setHeight(UIConstants.OVERALL_WIDTH);
- return mainPanel;
- }
+ private void assembleMainApplication(Panel mainPanel)
+ {
+ Panel borderPanel = new Panel();
+ borderPanel.setBorder(false);
+ borderPanel.setLayout(new BorderLayout());
- private void assembleMainApplication(Panel mainPanel)
- {
- Panel borderPanel = new Panel();
- borderPanel.setBorder(false);
- borderPanel.setLayout(new BorderLayout());
+ // ------------------------------------------
- // ------------------------------------------
+ header = new Header(this);
+ borderPanel.add(header, new BorderLayoutData(RegionPosition.NORTH));
+ header.setUserInfo(auth.getUsername(), auth.getRolesAssigned());
- header = new Header(this);
- borderPanel.add(header, new BorderLayoutData(RegionPosition.NORTH));
- header.setUserInfo(auth.getUsername(), auth.getRolesAssigned());
-
- // ------------------------------------------
+ // ------------------------------------------
- menu = new Menu(this);
- BorderLayoutData menuData = new BorderLayoutData(RegionPosition.WEST);
- menuData.setSplit(false);
- menuData.setMinSize(UIConstants.MAIN_MENU_MIN);
- menuData.setMaxSize(UIConstants.MAIN_MENU_MAX);
- menuData.setMargins(new Margins(0, 5, 0, 0));
- borderPanel.add(menu, menuData);
+ menu = new Menu(this);
+ BorderLayoutData menuData = new BorderLayoutData(RegionPosition.WEST);
+ menuData.setSplit(false);
+ menuData.setMinSize(UIConstants.MAIN_MENU_MIN);
+ menuData.setMaxSize(UIConstants.MAIN_MENU_MAX);
+ menuData.setMargins(new Margins(0, 5, 0, 0));
+ borderPanel.add(menu, menuData);
- // ------------------------------------------
+ // ------------------------------------------
- workspace = new Workspace();
- borderPanel.add(workspace, new BorderLayoutData(RegionPosition.CENTER));
+ workspace = new Workspace();
+ WorkspaceLauncher launcher = GWT.create(WorkspaceLauncher.class);
+ launcher.launch(this, workspace);
+
+ borderPanel.add(workspace, new BorderLayoutData(RegionPosition.CENTER));
- // ------------------------------------------
- // TODO: these don't initialze correctly when ordered differently or launched from Menu
- workspace.addEditor( new ProcessDefinitionListEditor(this), false );
- workspace.addEditor( new TaskListEditor(this), false );
- workspace.addEditor( new OverviewReportEditor(this), false);
+ // ------------------------------------------
- // ------------------------------------------
+ mainPanel.add(borderPanel);
+ }
- mainPanel.add(borderPanel);
- }
+ public void addEditor(Editor editor)
+ {
+ ConsoleLog.debug("Add editor " + editor.getEditorId());
+ workspace.addEditor(editor, true);
+ }
- public void addEditor(Editor editor)
- {
- ConsoleLog.debug("Add editor " + editor.getEditorId());
- workspace.addEditor(editor, true);
- }
+ public boolean hasEditor(String id)
+ {
+ return workspace.hasEditor(id);
+ }
- public boolean hasEditor(String id)
- {
- return workspace.hasEditor(id);
- }
+ public void showEditor(String id)
+ {
+ workspace.showTab(id);
+ }
- public void showEditor(String id)
- {
- workspace.showTab(id);
- }
+ public URLBuilder getUrlBuilder()
+ {
+ return this.urlBuilder;
+ }
- public URLBuilder getUrlBuilder()
- {
- return this.urlBuilder;
- }
+ public void displayMessage(final String message, final boolean isError)
+ {
+ status.setText(message);
- public void displayMessage(final String message, final boolean isError)
- {
- status.setText(message);
+ MessageBox.show(new MessageBoxConfig() {
+ {
+ String title = isError ? "Error" : "System Message";
+ setTitle(title);
+ setMsg(message);
+ setButtons(MessageBox.OK);
+ setCallback(new MessageBox.PromptCallback()
+ {
+ public void execute(String btnID, String text)
+ {
+ }
+ });
+ }
+ });
+ }
- MessageBox.show(new MessageBoxConfig() {
- {
- String title = isError ? "Error" : "System Message";
- setTitle(title);
- setMsg(message);
- setButtons(MessageBox.OK);
- setCallback(new MessageBox.PromptCallback()
- {
- public void execute(String btnID, String text)
- {
- }
- });
- }
- });
- }
+ public List<String> getRolesAssigned()
+ {
+ return auth.getRolesAssigned();
+ }
- public List<String> getRolesAssigned()
- {
- return auth.getRolesAssigned();
- }
+ public String getUsername()
+ {
+ return auth.getUsername();
+ }
- public String getUsername()
- {
- return auth.getUsername();
- }
-
- public void logout()
- {
- auth.doLogout();
- }
+ public void logout()
+ {
+ auth.doLogout();
+ }
}
Deleted: projects/gwt-console/trunk/war/src/main/java/org/jboss/bpm/console/client/WelcomeEditor.java
===================================================================
--- projects/gwt-console/trunk/war/src/main/java/org/jboss/bpm/console/client/WelcomeEditor.java 2009-01-14 05:51:14 UTC (rev 3635)
+++ projects/gwt-console/trunk/war/src/main/java/org/jboss/bpm/console/client/WelcomeEditor.java 2009-01-14 13:44:28 UTC (rev 3636)
@@ -1,44 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * Copyright 2006, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags. See the copyright.txt file in the
- * distribution for a full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.bpm.console.client;
-
-/**
- * @author Heiko.Braun <heiko.braun at jboss.com>
- */
-public class WelcomeEditor extends Editor
-{
-
- public String getEditorId()
- {
- return "org.jboss.bpm.console.welcome";
- }
-
- public String getTitle()
- {
- return "GWT-Console";
- }
-
- public String getIconCSS()
- {
- return "";
- }
-}
Added: projects/gwt-console/trunk/war/src/main/java/org/jboss/bpm/console/client/WorkspaceLauncher.java
===================================================================
--- projects/gwt-console/trunk/war/src/main/java/org/jboss/bpm/console/client/WorkspaceLauncher.java (rev 0)
+++ projects/gwt-console/trunk/war/src/main/java/org/jboss/bpm/console/client/WorkspaceLauncher.java 2009-01-14 13:44:28 UTC (rev 3636)
@@ -0,0 +1,30 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.bpm.console.client;
+
+/**
+ * @author Heiko.Braun <heiko.braun at jboss.com>
+ */
+public interface WorkspaceLauncher
+{
+ void launch(MainView main, Workspace workspace);
+}
Modified: projects/gwt-console/trunk/war/src/main/java/org/jboss/bpm/console/client/process/ProcessDefinitionListEditor.java
===================================================================
--- projects/gwt-console/trunk/war/src/main/java/org/jboss/bpm/console/client/process/ProcessDefinitionListEditor.java 2009-01-14 05:51:14 UTC (rev 3635)
+++ projects/gwt-console/trunk/war/src/main/java/org/jboss/bpm/console/client/process/ProcessDefinitionListEditor.java 2009-01-14 13:44:28 UTC (rev 3636)
@@ -57,7 +57,7 @@
public ProcessDefinitionListEditor(final MainView view)
{
- super();
+ super(view);
this.setId(ID);
this.view = view;
Modified: projects/gwt-console/trunk/war/src/main/java/org/jboss/bpm/console/client/process/ProcessInstanceEditor.java
===================================================================
--- projects/gwt-console/trunk/war/src/main/java/org/jboss/bpm/console/client/process/ProcessInstanceEditor.java 2009-01-14 05:51:14 UTC (rev 3635)
+++ projects/gwt-console/trunk/war/src/main/java/org/jboss/bpm/console/client/process/ProcessInstanceEditor.java 2009-01-14 13:44:28 UTC (rev 3636)
@@ -53,7 +53,7 @@
public ProcessInstanceEditor(final ProcessDefinitionRef proc, final ProcessInstanceRef instance, final MainView view)
{
- super();
+ super(view);
this.setId(ProcessInstanceEditor.ID+"."+instance.getInstanceId());
this.processDefinition = proc;
Modified: projects/gwt-console/trunk/war/src/main/java/org/jboss/bpm/console/client/process/ProcessInstanceListEditor.java
===================================================================
--- projects/gwt-console/trunk/war/src/main/java/org/jboss/bpm/console/client/process/ProcessInstanceListEditor.java 2009-01-14 05:51:14 UTC (rev 3635)
+++ projects/gwt-console/trunk/war/src/main/java/org/jboss/bpm/console/client/process/ProcessInstanceListEditor.java 2009-01-14 13:44:28 UTC (rev 3636)
@@ -65,7 +65,7 @@
public ProcessInstanceListEditor(ProcessDefinitionRef proc, final MainView view)
{
- super();
+ super(view);
this.parent = proc;
this.view = view;
Modified: projects/gwt-console/trunk/war/src/main/java/org/jboss/bpm/console/client/report/OverviewReportEditor.java
===================================================================
--- projects/gwt-console/trunk/war/src/main/java/org/jboss/bpm/console/client/report/OverviewReportEditor.java 2009-01-14 05:51:14 UTC (rev 3635)
+++ projects/gwt-console/trunk/war/src/main/java/org/jboss/bpm/console/client/report/OverviewReportEditor.java 2009-01-14 13:44:28 UTC (rev 3636)
@@ -48,7 +48,7 @@
public OverviewReportEditor(final MainView view)
{
- super();
+ super(view);
this.view = view;
this.setId(ID);
this.setPaddings(10);
Modified: projects/gwt-console/trunk/war/src/main/java/org/jboss/bpm/console/client/report/ProcessReportEditor.java
===================================================================
--- projects/gwt-console/trunk/war/src/main/java/org/jboss/bpm/console/client/report/ProcessReportEditor.java 2009-01-14 05:51:14 UTC (rev 3635)
+++ projects/gwt-console/trunk/war/src/main/java/org/jboss/bpm/console/client/report/ProcessReportEditor.java 2009-01-14 13:44:28 UTC (rev 3636)
@@ -44,137 +44,138 @@
*/
public class ProcessReportEditor extends Editor
{
- public final static String ID = "org.jboss.bpm.metric.ProcessMetric";
- private String definitionName;
- private MainView view;
+ public final static String ID = "org.jboss.bpm.metric.ProcessMetric";
+ private String definitionName;
+ private MainView view;
- public ProcessReportEditor(final String definitionName, final MainView view)
- {
- this.definitionName = definitionName;
- this.view = view;
- this.setId( createWidgetID(definitionName) );
+ public ProcessReportEditor(final String definitionName, final MainView view)
+ {
+ super(view);
+ this.definitionName = definitionName;
+ this.view = view;
+ this.setId( createWidgetID(definitionName) );
- this.setPaddings(10);
+ this.setPaddings(10);
- // -------------------------------------
- this.setLayout(new VerticalLayout(10) );
+ // -------------------------------------
+ this.setLayout(new VerticalLayout(10) );
- this.addListener(
- new PanelListenerAdapter()
- {
+ this.addListener(
+ new PanelListenerAdapter()
+ {
- public void onRender(Component component)
- {
+ public void onRender(Component component)
+ {
- final String reportUrl= view.getUrlBuilder().getDefinitionReportUrl(definitionName);
- ConsoleLog.debug("Report resource:" + reportUrl);
+ final String reportUrl= view.getUrlBuilder().getDefinitionReportUrl(definitionName);
+ ConsoleLog.debug("Report resource:" + reportUrl);
- final ComboBox comboBox = buildInstanceSelection();
+ final ComboBox comboBox = buildInstanceSelection();
- final BirtPanel birtPanel = new BirtPanel();
- birtPanel.setUrl(reportUrl);
+ final BirtPanel birtPanel = new BirtPanel();
+ birtPanel.setUrl(reportUrl);
- // --
+ // --
- Button refreshBtn = new Button("Refresh", new ButtonListenerAdapter()
- {
+ Button refreshBtn = new Button("Refresh", new ButtonListenerAdapter()
+ {
- public void onClick(Button button, EventObject eventObject)
- {
- birtPanel.setUrl(reportUrl);
- }
- });
+ public void onClick(Button button, EventObject eventObject)
+ {
+ birtPanel.setUrl(reportUrl);
+ }
+ });
- Button viewBtn = new Button("Examine", new ButtonListenerAdapter()
- {
+ Button viewBtn = new Button("Examine", new ButtonListenerAdapter()
+ {
- public void onClick(Button button, EventObject eventObject)
- {
- String rawValue = comboBox.getRawValue();
- if(rawValue==null || rawValue.equals(""))
- MessageBox.alert("Please enter a process instance ID!");
- else
- MessageBox.alert("Not implemented");
- }
- });
+ public void onClick(Button button, EventObject eventObject)
+ {
+ String rawValue = comboBox.getRawValue();
+ if(rawValue==null || rawValue.equals(""))
+ MessageBox.alert("Please enter a process instance ID!");
+ else
+ MessageBox.alert("Not implemented");
+ }
+ });
- // --
+ // --
- Panel p = new Panel();
- p.setLayout( new HorizontalLayout(10) );
- Label label = new Label("Instance ID");
- label.setStyleName("bpm-label");
- p.add(label);
- p.add(comboBox);
- p.add( viewBtn );
- p.add( new Separator() );
- p.add( refreshBtn );
+ Panel p = new Panel();
+ p.setLayout( new HorizontalLayout(10) );
+ Label label = new Label("Instance ID");
+ label.setStyleName("bpm-label");
+ p.add(label);
+ p.add(comboBox);
+ p.add( viewBtn );
+ p.add( new Separator() );
+ p.add( refreshBtn );
- add(p);
- add(birtPanel);
- }
- }
- );
- }
+ add(p);
+ add(birtPanel);
+ }
+ }
+ );
+ }
- private ComboBox buildInstanceSelection()
- {
+ private ComboBox buildInstanceSelection()
+ {
- final RecordDef recordDef = new RecordDef(
- new FieldDef[]{
- new IntegerFieldDef("instanceId"),
- new IntegerFieldDef("parentId"),
- new StringFieldDef("key"),
- new StringFieldDef("state"),
- new DateFieldDef("startDate", UIConstants.DATE_FORMAT),
- new DateFieldDef("endDate", UIConstants.DATE_FORMAT),
- new BooleanFieldDef("suspended")
- }
- );
+ final RecordDef recordDef = new RecordDef(
+ new FieldDef[]{
+ new IntegerFieldDef("instanceId"),
+ new IntegerFieldDef("parentId"),
+ new StringFieldDef("key"),
+ new StringFieldDef("state"),
+ new DateFieldDef("startDate", UIConstants.DATE_FORMAT),
+ new DateFieldDef("endDate", UIConstants.DATE_FORMAT),
+ new BooleanFieldDef("suspended")
+ }
+ );
- final JsonReader reader = new JsonReader(recordDef);
- reader.setRoot("instances");
- reader.setTotalProperty("totalCount");
- reader.setId("instanceId");
+ final JsonReader reader = new JsonReader(recordDef);
+ reader.setRoot("instances");
+ reader.setTotalProperty("totalCount");
+ reader.setId("instanceId");
- DataProxy dataProxy = new ScriptTagProxy(
- view.getUrlBuilder().getProcessDefinitionsURL(), 1000*10);
+ DataProxy dataProxy = new ScriptTagProxy(
+ view.getUrlBuilder().getProcessDefinitionsURL(), 1000*10);
- final Store store = new Store(dataProxy, reader, false);
- store.load();
+ final Store store = new Store(dataProxy, reader, false);
+ store.load();
- ComboBox cb = new ComboBox();
- cb.setMinChars(1);
- cb.setFieldLabel("Instance ID");
- cb.setStore(store);
- cb.setDisplayField("ID");
- cb.setMode(ComboBox.LOCAL);
- cb.setTriggerAction(ComboBox.ALL);
- cb.setEmptyText("Please enter an ID");
- cb.setLoadingText("Searching...");
- cb.setTypeAhead(true);
- cb.setSelectOnFocus(true);
- cb.setWidth(180);
+ ComboBox cb = new ComboBox();
+ cb.setMinChars(1);
+ cb.setFieldLabel("Instance ID");
+ cb.setStore(store);
+ cb.setDisplayField("ID");
+ cb.setMode(ComboBox.LOCAL);
+ cb.setTriggerAction(ComboBox.ALL);
+ cb.setEmptyText("Please enter an ID");
+ cb.setLoadingText("Searching...");
+ cb.setTypeAhead(true);
+ cb.setSelectOnFocus(true);
+ cb.setWidth(180);
- return cb;
- }
- public String getEditorId()
- {
- return createWidgetID(definitionName);
- }
+ return cb;
+ }
+ public String getEditorId()
+ {
+ return createWidgetID(definitionName);
+ }
- public String getTitle()
- {
- return definitionName +" Metrics";
- }
+ public String getTitle()
+ {
+ return definitionName +" Metrics";
+ }
- public String getIconCSS()
- {
- return "bpm-report-icon";
- }
+ public String getIconCSS()
+ {
+ return "bpm-report-icon";
+ }
- public static String createWidgetID(String definitionName)
- {
- return ID+"."+definitionName;
- }
+ public static String createWidgetID(String definitionName)
+ {
+ return ID+"."+definitionName;
+ }
}
Modified: projects/gwt-console/trunk/war/src/main/java/org/jboss/bpm/console/client/task/TaskListEditor.java
===================================================================
--- projects/gwt-console/trunk/war/src/main/java/org/jboss/bpm/console/client/task/TaskListEditor.java 2009-01-14 05:51:14 UTC (rev 3635)
+++ projects/gwt-console/trunk/war/src/main/java/org/jboss/bpm/console/client/task/TaskListEditor.java 2009-01-14 13:44:28 UTC (rev 3636)
@@ -57,7 +57,7 @@
public TaskListEditor(MainView mainView)
{
- super();
+ super(mainView);
this.setId(ID);
this.mainView = mainView;
Added: 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 (rev 0)
+++ projects/gwt-console/trunk/war/src/main/java/org/jboss/bpm/console/rebind/WorkspaceGenerator.java 2009-01-14 13:44:28 UTC (rev 3636)
@@ -0,0 +1,165 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.bpm.console.rebind;
+
+import com.google.gwt.core.ext.Generator;
+import com.google.gwt.core.ext.TreeLogger;
+import com.google.gwt.core.ext.GeneratorContext;
+import com.google.gwt.core.ext.UnableToCompleteException;
+import com.google.gwt.core.ext.typeinfo.TypeOracle;
+import com.google.gwt.core.ext.typeinfo.JClassType;
+import com.google.gwt.user.rebind.ClassSourceFileComposerFactory;
+import com.google.gwt.user.rebind.SourceWriter;
+
+import java.io.*;
+
+/**
+ * @author Heiko.Braun <heiko.braun at jboss.com>
+ */
+public class WorkspaceGenerator extends Generator
+{
+
+ /** Simple name of class to be generated */
+ private String className = null;
+ /** Package name of class to be generated */
+ private String packageName = null;
+ /** Fully qualified class name passed into GWT.create() */
+ private String typeName = null;
+
+ public String generate(TreeLogger logger, GeneratorContext context, String typeName)
+ throws UnableToCompleteException
+ {
+ this.typeName = typeName;
+ TypeOracle typeOracle = context.getTypeOracle();
+
+ try {
+ // get classType and save instance variables
+ JClassType classType = typeOracle.getType(typeName);
+ packageName = classType.getPackage().getName();
+ className = classType.getSimpleSourceName() + "Wrapper";
+
+ // Generate class source code
+ generateClass(logger, context);
+
+ } catch (Exception e) {
+ // record to logger that Map generation threw an exception
+ e.printStackTrace(System.out);
+ logger.log(TreeLogger.ERROR, "Failed to generate workspace launcher", e);
+ }
+
+ // return the fully qualifed name of the class generated
+ return packageName + "." + className;
+ }
+
+ /**
+ * Generate source code for new class. Class extends
+ <code>HashMap</code>.
+ *
+ * @param logger Logger object
+ * @param context Generator context
+ */
+ private void generateClass(TreeLogger logger, GeneratorContext
+ context) {
+
+ // get print writer that receives the source code
+ PrintWriter printWriter = null;
+ printWriter = context.tryCreate(logger, packageName, className);
+
+ // print writer if null, source code has ALREADY been generated, return
+ if (printWriter == null) return;
+
+ // init composer, set class properties, create source writer
+ ClassSourceFileComposerFactory composerFactory =
+ new ClassSourceFileComposerFactory(packageName, className);
+
+ // Imports
+ composerFactory.addImport("org.jboss.bpm.console.client.MainView");
+ composerFactory.addImport("org.jboss.bpm.console.client.Workspace");
+ composerFactory.addImport("org.jboss.bpm.console.client.WorkspaceLauncher");
+
+ // Interfaces
+ composerFactory.addImplementedInterface("org.jboss.bpm.console.client.WorkspaceLauncher");
+
+ // SourceWriter
+ SourceWriter sourceWriter = composerFactory.createSourceWriter(context, printWriter);
+
+ // Methods
+ generateMethods(sourceWriter);
+
+
+ // close generated class
+ sourceWriter.outdent();
+ sourceWriter.println("}");
+
+ // commit generated class
+ context.commit(logger, printWriter);
+ }
+
+ private void generateMethods(SourceWriter sourceWriter)
+ {
+ // start constructor source generation
+ sourceWriter.println("public void launch(MainView main, Workspace workspace) { ");
+ sourceWriter.indent();
+
+ InputStream in = getClass().getClassLoader().getResourceAsStream(
+ "org/jboss/bpm/console/workspace.txt"
+ );
+
+ if(null==in)
+ throw new RuntimeException("Cannot find 'org/jboss/bpm/console/workspace.txt'");
+
+ try {
+ //use buffering, reading one line at a time
+ //FileReader always assumes default encoding is OK!
+ BufferedReader input = new BufferedReader(new InputStreamReader(in));
+ try {
+ String line = null;
+ while (( line = input.readLine()) != null){
+
+ sourceWriter.println("workspace.addEditor( new "+line+"(main), false );");
+ }
+ }
+ finally {
+ input.close();
+ }
+ }
+ catch (IOException ex){
+ throw new RuntimeException("Error reading 'org/jboss/bpm/console/workspace.txt'");
+ }
+
+ // end constructor source generation
+ sourceWriter.outdent();
+ sourceWriter.println("}");
+ }
+
+ /*private void generateConstructor(SourceWriter sourceWriter)
+ {
+ // start constructor source generation
+ sourceWriter.println("public " + className + "() { ");
+ sourceWriter.indent();
+ sourceWriter.println("super();");
+ // end constructor source generation
+ sourceWriter.outdent();
+ sourceWriter.println("}");
+ }*/
+
+}
Modified: projects/gwt-console/trunk/war/src/main/resources/org/jboss/bpm/console/Application.gwt.xml
===================================================================
--- projects/gwt-console/trunk/war/src/main/resources/org/jboss/bpm/console/Application.gwt.xml 2009-01-14 05:51:14 UTC (rev 3635)
+++ projects/gwt-console/trunk/war/src/main/resources/org/jboss/bpm/console/Application.gwt.xml 2009-01-14 13:44:28 UTC (rev 3636)
@@ -1,38 +1,42 @@
<module>
- <!-- Inherit the core Web Toolkit stuff. -->
- <inherits name='com.google.gwt.user.User' />
- <inherits name='com.google.gwt.json.JSON'/>
- <inherits name="com.google.gwt.i18n.I18N"/>
- <inherits name='com.gwtext.GwtExt' />
+ <!-- Inherit the core Web Toolkit stuff. -->
+ <inherits name='com.google.gwt.user.User' />
+ <inherits name='com.google.gwt.json.JSON'/>
+ <inherits name="com.google.gwt.i18n.I18N"/>
+ <inherits name='com.gwtext.GwtExt' />
- <!-- Add gwt-log support, default level `DEBUG` -->
- <inherits name="com.allen_sauer.gwt.log.gwt-log-DEBUG" />
+ <!-- Add gwt-log support, default level `DEBUG` -->
+ <inherits name="com.allen_sauer.gwt.log.gwt-log-DEBUG" />
- <!-- Add the `WARN` and `DEBUG` compile time log level -->
- <!--extend-property name="log_level" values="DEBUG,WARN"/-->
+ <generate-with class="org.jboss.bpm.console.rebind.WorkspaceGenerator" >
+ <when-type-assignable class="org.jboss.bpm.console.client.WorkspaceLauncher"/>
+ </generate-with>
- <!-- Loggers Enabled by default -->
- <set-property name="log_ConsoleLogger" value="ENABLED" />
- <set-property name="log_DivLogger" value="DISABLED" />
- <set-property name="log_FirebugLogger" value="DISABLED" />
- <set-property name="log_GWTLogger" value="ENABLED" />
- <set-property name="log_SystemLogger" value="ENABLED" />
+ <!-- Add the `WARN` and `DEBUG` compile time log level -->
+ <!--extend-property name="log_level" values="DEBUG,WARN"/-->
- <!-- Loggers Disabled by default -->
- <set-property name="log_RemoteLogger" value="DISABLED" />
- <set-property name="log_WindowLogger" value="DISABLED" />
+ <!-- Loggers Enabled by default -->
+ <set-property name="log_ConsoleLogger" value="ENABLED" />
+ <set-property name="log_DivLogger" value="DISABLED" />
+ <set-property name="log_FirebugLogger" value="DISABLED" />
+ <set-property name="log_GWTLogger" value="ENABLED" />
+ <set-property name="log_SystemLogger" value="ENABLED" />
- <!-- Specify the app entry point class. -->
- <entry-point class='org.jboss.bpm.console.client.Application' />
+ <!-- Loggers Disabled by default -->
+ <set-property name="log_RemoteLogger" value="DISABLED" />
+ <set-property name="log_WindowLogger" value="DISABLED" />
- <servlet path="/xhp" class="jmaki.xhp.XmlHttpProxyServlet"/>
+ <!-- Specify the app entry point class. -->
+ <entry-point class='org.jboss.bpm.console.client.Application' />
- <!-- Specify a css to load into your gwt application -->
- <stylesheet src='console.css' />
- <stylesheet src="js/ext/resources/css/ext-all.css" />
+ <servlet path="/xhp" class="jmaki.xhp.XmlHttpProxyServlet"/>
- <script src="js/ext/adapter/ext/ext-base.js" />
- <script src="js/ext/ext-all.js" />
+ <!-- Specify a css to load into your gwt application -->
+ <stylesheet src='console.css' />
+ <stylesheet src="js/ext/resources/css/ext-all.css" />
+ <script src="js/ext/adapter/ext/ext-base.js" />
+ <script src="js/ext/ext-all.js" />
+
</module>
\ No newline at end of file
Added: 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 (rev 0)
+++ projects/gwt-console/trunk/war/src/main/resources/org/jboss/bpm/console/workspace.txt 2009-01-14 13:44:28 UTC (rev 3636)
@@ -0,0 +1,3 @@
+org.jboss.bpm.console.client.process.ProcessDefinitionListEditor
+org.jboss.bpm.console.client.task.TaskListEditor
+org.jboss.bpm.console.client.report.OverviewReportEditor
\ No newline at end of file
More information about the jbpm-commits
mailing list