Author: koen.aers(a)jboss.com
Date: 2009-11-11 15:54:30 -0500 (Wed, 11 Nov 2009)
New Revision: 18625
Added:
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/META-INF/MANIFEST.MF
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/plugin.properties
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/plugin.xml
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/editor/JpdlEditor.java
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/editpart/JpdlTreeEditPartFactory.java
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/editpart/PrimitiveObjectTreeEditPart.java
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/editpart/QueryTaskTreeRootEditPart.java
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/handler/AddParameterHandler.java
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/io/
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/io/AbstractElementDeserializer.java
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/io/ExclusiveGatewayDeserializer.java
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/io/ExclusiveGatewaySerializer.java
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/io/JavaTaskDeserializer.java
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/io/JavaTaskSerializer.java
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/io/SequenceFlowDeserializer.java
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/io/SequenceFlowSerializer.java
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/model/HqlTask.java
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/model/JavaTask.java
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/model/QueryTask.java
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/model/SqlTask.java
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/properties/JavaTaskClassSection.java
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/properties/JavaTaskExpressionSection.java
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/properties/JavaTaskMethodSection.java
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/properties/JavaTaskVariableSection.java
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/properties/PrimitiveObjectValueSection.java
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/properties/QueryTaskQuerySection.java
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/properties/QueryTaskUniqueSection.java
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/properties/QueryTaskVariableNameSection.java
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/view/DetailsPage.java
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/view/DetailsView.java
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/wizard/AddJpdl4SupportWizard.java
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/wizard/ChooseJpdl4RuntimePage.java
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/wizard/ConfigureJpdl4RuntimePage.java
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/wizard/NewJpdl4FileWizard.java
Removed:
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/META-INF/MANIFEST.MF
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/plugin.properties
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/plugin.xml
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/editor/JpdlEditor.java
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/editpart/HqlTaskTreeRootEditPart.java
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/editpart/JpdlTreeEditPartFactory.java
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/editpart/WireObjectTreeEditPart.java
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/handler/AddParameterHandler.java
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/io/
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/io/AbstractElementDeserializer.java
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/io/ExclusiveGatewayDeserializer.java
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/io/ExclusiveGatewaySerializer.java
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/io/JavaTaskDeserializer.java
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/io/JavaTaskSerializer.java
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/io/SequenceFlowDeserializer.java
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/io/SequenceFlowSerializer.java
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/model/HqlTask.java
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/model/JavaTask.java
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/model/SqlTask.java
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/model/WireObject.java
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/model/WireObjectContainer.java
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/properties/HqlTaskQuerySection.java
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/properties/HqlTaskUniqueSection.java
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/properties/HqlTaskVariableNameSection.java
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/properties/JavaTaskClassSection.java
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/properties/JavaTaskMethodSection.java
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/properties/JavaTaskVariableSection.java
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/view/DetailsPage.java
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/view/DetailsView.java
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/wizard/NewJpdl4FileWizard.java
Log:
Copied: tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4 (from rev 16344,
trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4)
Deleted: tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/META-INF/MANIFEST.MF
===================================================================
--- trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4/META-INF/MANIFEST.MF 2009-07-02 15:15:08
UTC (rev 16344)
+++ tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/META-INF/MANIFEST.MF 2009-11-11 20:54:30
UTC (rev 18625)
@@ -1,22 +0,0 @@
-Manifest-Version: 1.0
-Bundle-ManifestVersion: 2
-Bundle-Name: %Bundle-Name.0
-Bundle-SymbolicName: org.jboss.tools.flow.jpdl4;singleton:=true
-Bundle-Version: 1.0.0.qualifier
-Bundle-Vendor: %Bundle-Vendor.0
-Bundle-RequiredExecutionEnvironment: J2SE-1.5
-Require-Bundle: org.jboss.tools.flow.common;bundle-version="1.0.0",
- org.eclipse.core.resources;bundle-version="3.4.1",
- org.eclipse.gef;bundle-version="3.4.1",
- org.eclipse.ui;bundle-version="3.4.1",
- org.eclipse.core.runtime;bundle-version="3.4.0",
- org.eclipse.ui.ide;bundle-version="3.4.1",
- org.eclipse.ui.views.properties.tabbed;bundle-version="3.4.1",
- org.jboss.tools.jbpm.common;bundle-version="1.0.0"
-Bundle-ActivationPolicy: lazy
-Bundle-Activator: org.jboss.tools.flow.jpdl4.Activator
-Export-Package: org.jboss.tools.flow.jpdl4,
- org.jboss.tools.flow.jpdl4.editor,
- org.jboss.tools.flow.jpdl4.io,
- org.jboss.tools.flow.jpdl4.model
-Bundle-Localization: plugin
Copied: tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/META-INF/MANIFEST.MF (from rev
18323, trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4/META-INF/MANIFEST.MF)
===================================================================
--- tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/META-INF/MANIFEST.MF
(rev 0)
+++ tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/META-INF/MANIFEST.MF 2009-11-11 20:54:30
UTC (rev 18625)
@@ -0,0 +1,22 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: %Bundle-Name.0
+Bundle-SymbolicName: org.jboss.tools.flow.jpdl4;singleton:=true
+Bundle-Version: 1.2.0.qualifier
+Bundle-Vendor: %Bundle-Vendor.0
+Bundle-RequiredExecutionEnvironment: J2SE-1.5
+Require-Bundle: org.jboss.tools.flow.common;bundle-version="1.0.0",
+ org.eclipse.core.resources;bundle-version="3.4.1",
+ org.eclipse.gef;bundle-version="3.4.1",
+ org.eclipse.ui;bundle-version="3.4.1",
+ org.eclipse.core.runtime;bundle-version="3.4.0",
+ org.eclipse.ui.ide;bundle-version="3.4.1",
+ org.eclipse.ui.views.properties.tabbed;bundle-version="3.4.1",
+ org.jboss.tools.jbpm.common;bundle-version="1.0.0"
+Bundle-ActivationPolicy: lazy
+Bundle-Activator: org.jboss.tools.flow.jpdl4.Activator
+Export-Package: org.jboss.tools.flow.jpdl4,
+ org.jboss.tools.flow.jpdl4.editor,
+ org.jboss.tools.flow.jpdl4.io,
+ org.jboss.tools.flow.jpdl4.model
+Bundle-Localization: plugin
Deleted: tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/plugin.properties
===================================================================
--- trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4/plugin.properties 2009-07-02 15:15:08
UTC (rev 16344)
+++ tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/plugin.properties 2009-11-11 20:54:30
UTC (rev 18625)
@@ -1,3 +0,0 @@
-#Properties file for org.jboss.tools.flow.jpdl4
-Bundle-Vendor.0 = JBoss by Red Hat
-Bundle-Name.0 = Jpdl4 Plug-in
\ No newline at end of file
Copied: tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/plugin.properties (from rev 16464,
trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4/plugin.properties)
===================================================================
--- tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/plugin.properties
(rev 0)
+++ tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/plugin.properties 2009-11-11 20:54:30
UTC (rev 18625)
@@ -0,0 +1,3 @@
+#Properties file for org.jboss.tools.flow.jpdl4
+Bundle-Vendor.0 = JBoss by Red Hat
+Bundle-Name.0 = jPDL4 Graphical Editor
\ No newline at end of file
Deleted: tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/plugin.xml
===================================================================
--- trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4/plugin.xml 2009-07-02 15:15:08 UTC (rev
16344)
+++ tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/plugin.xml 2009-11-11 20:54:30 UTC (rev
18625)
@@ -1,916 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<?eclipse version="3.2"?>
-<plugin>
-
- <extension
- point="org.eclipse.core.contenttype.contentTypes">
- <content-type
- base-type="org.eclipse.core.runtime.xml"
- file-extensions="xml"
- id="org.jboss.tools.flow.jpdl4"
- name="jPDL 4 File"
- priority="normal">
- <describer
-
class="org.eclipse.core.runtime.content.XMLRootElementContentDescriber">
- <parameter
- name="element"
- value="process">
- </parameter>
- </describer>
- </content-type>
- </extension>
-<!-- <extension point="org.eclipse.ui.editors">
- <editor
- name="jPDL4 Editor"
- icon="icons/process.gif"
-
contributorClass="org.jboss.tools.flow.common.editor.GenericActionBarContributor"
- class="org.jboss.tools.flow.jpdl4.editor.JpdlEditor"
- id="org.jboss.tools.flow.jpdl4.editor">
- <contentTypeBinding
- contentTypeId="org.jboss.tools.flow.jpdl4">
- </contentTypeBinding>
- </editor>
- </extension> -->
- <extension
- point="org.jboss.tools.flow.common.languages">
- <language
- editor="org.jboss.tools.flow.jpdl4.editor"
- id="org.jboss.tools.flow.jpdl4"
- name="jBPM Process Definition Language">
- </language>
- </extension>
- <extension
- point="org.jboss.tools.flow.common.elements">
- <element
- class="org.jboss.tools.flow.jpdl4.model.Process"
- figure="icons/process.gif"
- id="org.jboss.tools.flow.jpdl4.process"
- label="process"
- language="org.jboss.tools.flow.jpdl4">
- <flow
-
acceptsElementStrategy="org.jboss.tools.flow.jpdl4.strategy.ProcessAcceptsElementStrategy"></flow>
- </element>
-<!-- <element
- class="org.jboss.tools.flow.jpdl4.model.SuperState"
- figure="icons/exclusive.gif"
- id="org.jboss.tools.flow.jpdl4.superState"
- language="org.jboss.tools.flow.jpdl4"
- name="Super State">
- <container></container>
- </element> -->
- <element
- class="org.jboss.tools.flow.jpdl4.model.StartEvent"
- figure="icons/16/start_event_empty.png"
- id="org.jboss.tools.flow.jpdl4.startEvent"
- label="start"
- language="org.jboss.tools.flow.jpdl4">
- <node
-
acceptsIncomingConnectionStrategy="org.jboss.tools.flow.jpdl4.strategy.StartEventAcceptsIncomingConnectionStrategy">
- <figure
class="org.jboss.tools.flow.jpdl4.figure.StartEventFigure"></figure>
- </node>
- </element>
- <element
- class="org.jboss.tools.flow.jpdl4.model.TerminateEndEvent"
- figure="icons/16/end_event_terminate.png"
- id="org.jboss.tools.flow.jpdl4.terminateEndEvent"
- label="end"
- language="org.jboss.tools.flow.jpdl4">
- <node
-
acceptsOutgoingConnectionStrategy="org.jboss.tools.flow.jpdl4.strategy.EndEventAcceptsOutgoingConnectionStrategy">
- <figure
class="org.jboss.tools.flow.jpdl4.figure.TerminateEndEventFigure"></figure>
- </node>
- </element>
- <element
- class="org.jboss.tools.flow.jpdl4.model.CancelEndEvent"
- figure="icons/16/end_event_cancel.png"
- id="org.jboss.tools.flow.jpdl4.cancelEndEvent"
- label="cancel"
- language="org.jboss.tools.flow.jpdl4">
- <node
-
acceptsOutgoingConnectionStrategy="org.jboss.tools.flow.jpdl4.strategy.EndEventAcceptsOutgoingConnectionStrategy">
- <figure
class="org.jboss.tools.flow.jpdl4.figure.CancelEndEventFigure"></figure>
- </node>
- </element>
- <element
- class="org.jboss.tools.flow.jpdl4.model.ErrorEndEvent"
- figure="icons/16/end_event_error.png"
- id="org.jboss.tools.flow.jpdl4.errorEndEvent"
- label="error"
- language="org.jboss.tools.flow.jpdl4">
- <node
-
acceptsOutgoingConnectionStrategy="org.jboss.tools.flow.jpdl4.strategy.EndEventAcceptsOutgoingConnectionStrategy">
- <figure
class="org.jboss.tools.flow.jpdl4.figure.ErrorEndEventFigure"></figure>
- </node>
- </element>
- <element
- class="org.jboss.tools.flow.jpdl4.model.WaitTask"
- figure="icons/16/task_wait.png"
- id="org.jboss.tools.flow.jpdl4.waitTask"
- label="state"
- language="org.jboss.tools.flow.jpdl4">
- <node>
- <figure
class="org.jboss.tools.flow.jpdl4.figure.TaskFigure"></figure>
- </node>
- </element>
- <element
- class="org.jboss.tools.flow.jpdl4.model.HqlTask"
- figure="icons/16/task_hql.png"
- id="org.jboss.tools.flow.jpdl4.hqlTask"
- label="hql"
- language="org.jboss.tools.flow.jpdl4">
- <node>
- <figure
class="org.jboss.tools.flow.jpdl4.figure.TaskFigure"></figure>
- </node>
- </element>
- <element
- class="org.jboss.tools.flow.jpdl4.model.SqlTask"
- figure="icons/16/task_sql.png"
- id="org.jboss.tools.flow.jpdl4.sqlTask"
- label="sql"
- language="org.jboss.tools.flow.jpdl4">
- <node>
- <figure
class="org.jboss.tools.flow.jpdl4.figure.TaskFigure"></figure>
- </node>
- </element>
- <element
- class="org.jboss.tools.flow.jpdl4.model.MailTask"
- figure="icons/16/task_empty.png"
- id="org.jboss.tools.flow.jpdl4.mailTask"
- label="mail"
- language="org.jboss.tools.flow.jpdl4">
- <node>
- <figure
class="org.jboss.tools.flow.jpdl4.figure.TaskFigure"></figure>
- </node>
- </element>
- <element
- class="org.jboss.tools.flow.jpdl4.model.JavaTask"
- figure="icons/16/task_java.png"
- id="org.jboss.tools.flow.jpdl4.javaTask"
- label="java"
- language="org.jboss.tools.flow.jpdl4">
- <node>
- <figure
class="org.jboss.tools.flow.jpdl4.figure.TaskFigure"></figure>
- </node>
- </element>
- <element
- class="org.jboss.tools.flow.jpdl4.model.ScriptTask"
- figure="icons/16/task_empty.png"
- id="org.jboss.tools.flow.jpdl4.scriptTask"
- label="script"
- language="org.jboss.tools.flow.jpdl4">
- <node>
- <figure
class="org.jboss.tools.flow.jpdl4.figure.TaskFigure"></figure>
- </node>
- </element>
-<!-- <element
- class="org.jboss.tools.flow.jpdl4.model.ServiceTask"
- figure="icons/16/task_empty.png"
- id="org.jboss.tools.flow.jpdl4.serviceTask"
- label="esb"
- language="org.jboss.tools.flow.jpdl4">
- <node>
- <figure
class="org.jboss.tools.flow.jpdl4.figure.TaskFigure"></figure>
- </node>
- </element> -->
- <element
- class="org.jboss.tools.flow.jpdl4.model.HumanTask"
- figure="icons/16/task_empty.png"
- id="org.jboss.tools.flow.jpdl4.humanTask"
- label="task"
- language="org.jboss.tools.flow.jpdl4">
- <node>
- <figure
class="org.jboss.tools.flow.jpdl4.figure.TaskFigure"></figure>
- </node>
- </element>
- <element
- class="org.jboss.tools.flow.jpdl4.model.SubprocessTask"
- figure="icons/16/task_empty.png"
- id="org.jboss.tools.flow.jpdl4.subprocessTask"
- label="Subprocess"
- language="org.jboss.tools.flow.jpdl4">
- <node>
- <figure
class="org.jboss.tools.flow.jpdl4.figure.TaskFigure"></figure>
- </node>
- </element>
- <element
- class="org.jboss.tools.flow.jpdl4.model.CustomTask"
- figure="icons/16/task_empty.png"
- id="org.jboss.tools.flow.jpdl4.customTask"
- label="custom"
- language="org.jboss.tools.flow.jpdl4">
- <node>
- <figure
class="org.jboss.tools.flow.jpdl4.figure.TaskFigure"></figure>
- </node>
- </element>
- <element
- class="org.jboss.tools.flow.jpdl4.model.ExclusiveGateway"
- figure="icons/16/gateway_exclusive.png"
- id="org.jboss.tools.flow.jpdl4.exclusiveGateway"
- label="exclusive"
- language="org.jboss.tools.flow.jpdl4">
- <node>
- <figure
class="org.jboss.tools.flow.jpdl4.figure.ExclusiveGatewayFigure"></figure>
- </node>
- </element>
- <element
- class="org.jboss.tools.flow.jpdl4.model.ForkParallelGateway"
- figure="icons/16/gateway_parallel.png"
- id="org.jboss.tools.flow.jpdl4.parallelForkGateway"
- label="fork"
- language="org.jboss.tools.flow.jpdl4">
- <node>
- <figure
class="org.jboss.tools.flow.jpdl4.figure.ParallelGatewayFigure"></figure>
- </node>
- </element>
- <element
- class="org.jboss.tools.flow.jpdl4.model.JoinParallelGateway"
- figure="icons/16/gateway_parallel.png"
- id="org.jboss.tools.flow.jpdl4.parallelJoinGateway"
- label="join"
- language="org.jboss.tools.flow.jpdl4">
- <node>
- <figure
class="org.jboss.tools.flow.jpdl4.figure.ParallelGatewayFigure"></figure>
- </node>
- </element>
- <element
- class="org.jboss.tools.flow.jpdl4.model.SequenceFlow"
- figure="icons/sequence.gif"
- id="org.jboss.tools.flow.jpdl4.sequenceFlow"
- label="flow"
- language="org.jboss.tools.flow.jpdl4">
- <connection></connection>
- </element>
- <element
- class="org.jboss.tools.flow.jpdl4.model.Swimlane"
- figure="icons/16/swimlane.gif"
- id="org.jboss.tools.flow.jpdl4.swimlane"
- label="swimlane"
- language="org.jboss.tools.flow.jpdl4">
- </element>
- <element
- class="org.jboss.tools.flow.jpdl4.model.Timer"
- figure="icons/16/timer.gif"
- id="org.jboss.tools.flow.jpdl4.timer"
- label="timer"
- language="org.jboss.tools.flow.jpdl4">
- </element>
- <element
- class="org.jboss.tools.flow.jpdl4.model.EventListenerContainer"
- figure="icons/16/events_multiple.gif"
- id="org.jboss.tools.flow.jpdl4.eventListenerContainer"
- label="events"
- language="org.jboss.tools.flow.jpdl4">
- </element>
- <element
- class="org.jboss.tools.flow.jpdl4.model.EventListener"
- figure="icons/16/event.gif"
- id="org.jboss.tools.flow.jpdl4.eventListener"
- label="event"
- language="org.jboss.tools.flow.jpdl4">
- </element>
- <element
- class="org.jboss.tools.flow.jpdl4.model.InputParameter"
- figure="icons/16/input.gif"
- id="org.jboss.tools.flow.jpdl4.inputParameter"
- label="input parameter"
- language="org.jboss.tools.flow.jpdl4">
- </element>
- <element
- class="org.jboss.tools.flow.jpdl4.model.OutputParameter"
- figure="icons/16/output.gif"
- id="org.jboss.tools.flow.jpdl4.outputParameter"
- label="output parameter"
- language="org.jboss.tools.flow.jpdl4">
- </element>
- <element
- class="org.jboss.tools.flow.jpdl4.model.Argument"
- figure="icons/16/argument.gif"
- id="org.jboss.tools.flow.jpdl4.argument"
- label="argument"
- language="org.jboss.tools.flow.jpdl4">
- </element>
- <element
- class="org.jboss.tools.flow.jpdl4.model.Field"
- figure="icons/16/field.gif"
- id="org.jboss.tools.flow.jpdl4.field"
- label="field"
- language="org.jboss.tools.flow.jpdl4">
- </element>
- <element
- class="org.jboss.tools.flow.jpdl4.model.PrimitiveObject"
- figure="icons/16/object.png"
- id="org.jboss.tools.flow.jpdl4.primitive"
- label="primitive"
- language="org.jboss.tools.flow.jpdl4">
- </element>
- </extension>
- <extension
- point="org.eclipse.ui.newWizards">
- <category
- id="org.jboss.tools.flow.jpdl4"
- name="jBPM 4"
- parentCategory="org.jboss.tools.jbpm">
- </category>
- <wizard
- category="org.jboss.tools.flow.jpdl4"
- class="org.jboss.tools.flow.jpdl4.wizard.NewJpdl4FileWizard"
- icon="icons/process.gif"
- id="org.jboss.tools.flow.jpdl4.file"
- name="Process Definition">
- </wizard>
- </extension>
-
- <extension
point="org.eclipse.ui.views.properties.tabbed.propertyContributor">
- <propertyContributor
- contributorId="org.jboss.tools.flow.jpdl4.editor"
- typeMapper="org.jboss.tools.flow.jpdl4.properties.TypeMapper">
- <propertyCategory category="general"/>
- <propertyCategory category="details"/>
- <propertyCategory category="graphics"/>
-<!-- <propertyCategory category="advanced"/> -->
- </propertyContributor>
- </extension>
-
- <extension
point="org.eclipse.ui.views.properties.tabbed.propertyTabs">
- <propertyTabs contributorId="org.jboss.tools.flow.jpdl4.editor">
- <propertyTab
- category="general"
- id="org.jboss.tools.jpdl4.general"
- label="General"/>
- <propertyTab
- afterTab="org.jboss.tools.jpdl4.general"
- category="general"
- id="org.jboss.tools.jpdl4.assignment"
- label="Assignment"/>
- <propertyTab
- afterTab="org.jboss.tools.jpdl4.general"
- category="general"
- id="org.jboss.tools.jpdl4.subprocess"
- label="Subprocess"/>
- <propertyTab
- afterTab="org.jboss.tools.jpdl4.general"
- category="general"
- id="org.jboss.tools.jpdl4.javaTask.fields"
- label="Fields"/>
- <propertyTab
- afterTab="org.jboss.tools.jpdl4.javaTask.fields"
- category="general"
- id="org.jboss.tools.jpdl4.javaTask.arguments"
- label="Arguments"/>
-<!-- <propertyTab
- afterTab="org.jboss.tools.jpdl4.general"
- category="details"
- id="org.jboss.tools.jpdl4.details"
- label="Details"/>
- <propertyTab
- afterTab="org.jboss.tools.jpdl4.details"
- category="graphics"
- id="org.jboss.tools.jpdl4.graphics"
- label="Graphics"/>
- <propertyTab
- afterTab="org.jboss.tools.jpdl4.graphics"
- category="advanced"
- id="org.jboss.tools.jpdl4.advanced"
- label="Advanced"/> -->
- </propertyTabs>
- </extension>
-
- <extension
point="org.eclipse.ui.views.properties.tabbed.propertySections">
- <propertySections
contributorId="org.jboss.tools.flow.jpdl4.editor">
-<!-- <propertySection
- class="org.jboss.tools.flow.jpdl4.properties.AdvancedSection"
- id="org.jboss.tools.jpdl4.advanced"
- tab="org.jboss.tools.jpdl4.advanced">
- <input type="java.lang.Object"/>
- </propertySection> -->
- <propertySection
- class="org.jboss.tools.flow.jpdl4.properties.NameSection"
- id="org.jboss.tools.jpdl4.name"
- tab="org.jboss.tools.jpdl4.general">
- <input
type="org.jboss.tools.flow.jpdl4.model.SequenceFlow"/>
- <input type="org.jboss.tools.flow.jpdl4.model.ProcessNode"/>
- <input type="org.jboss.tools.flow.jpdl4.model.Process"/>
- <input type="org.jboss.tools.flow.jpdl4.model.Swimlane"/>
- </propertySection>
- <propertySection
- class="org.jboss.tools.flow.jpdl4.properties.TimerSection"
- id="org.jboss.tools.jpdl4.timer"
- tab="org.jboss.tools.jpdl4.general">
- <input type="org.jboss.tools.flow.jpdl4.model.Timer"/>
- </propertySection>
- <propertySection
- class="org.jboss.tools.flow.jpdl4.properties.SubprocessSection"
- id="org.jboss.tools.jpdl4.subprocess"
- tab="org.jboss.tools.jpdl4.subprocess">
- <input
type="org.jboss.tools.flow.jpdl4.model.SubprocessTask"/>
- </propertySection>
- <propertySection
- class="org.jboss.tools.flow.jpdl4.properties.EventTypeSection"
- id="org.jboss.tools.jpdl4.eventListenerContainer.eventType"
- tab="org.jboss.tools.jpdl4.general">
- <input
type="org.jboss.tools.flow.jpdl4.model.EventListenerContainer"/>
- </propertySection>
- <propertySection
-
class="org.jboss.tools.flow.jpdl4.properties.EventListenerClassNameSection"
- id="org.jboss.tools.jpdl4.eventListener.className"
- tab="org.jboss.tools.jpdl4.general">
- <input
type="org.jboss.tools.flow.jpdl4.model.EventListener"/>
- </propertySection>
- <propertySection
- class="org.jboss.tools.flow.jpdl4.properties.AssignmentSection"
- id="org.jboss.tools.jpdl4.assignment"
- tab="org.jboss.tools.jpdl4.assignment">
- <input type="org.jboss.tools.flow.jpdl4.model.HumanTask"/>
- <input type="org.jboss.tools.flow.jpdl4.model.Swimlane"/>
- </propertySection>
- <propertySection
- afterSection="org.jboss.tools.jpdl4.name"
-
class="org.jboss.tools.flow.jpdl4.properties.ProcessKeySection"
- id="org.jboss.tools.jpdl4.process.key"
- tab="org.jboss.tools.jpdl4.general">
- <input type="org.jboss.tools.flow.jpdl4.model.Process"/>
- </propertySection>
- <propertySection
- afterSection="org.jboss.tools.jpdl4.process.key"
-
class="org.jboss.tools.flow.jpdl4.properties.ProcessVersionSection"
- id="org.jboss.tools.jpdl4.process.version"
- tab="org.jboss.tools.jpdl4.general">
- <input type="org.jboss.tools.flow.jpdl4.model.Process"/>
- </propertySection>
- <propertySection
- afterSection="org.jboss.tools.jpdl4.process.version"
-
class="org.jboss.tools.flow.jpdl4.properties.ProcessDescriptionSection"
- id="org.jboss.tools.jpdl4.process.description"
- tab="org.jboss.tools.jpdl4.general">
- <input type="org.jboss.tools.flow.jpdl4.model.Process"/>
- </propertySection>
- <propertySection
- afterSection="org.jboss.tools.jpdl4.name"
-
class="org.jboss.tools.flow.jpdl4.properties.ExclusiveGatewayLanguageSection"
- id="org.jboss.tools.jpdl4.exclusiveGateway.language"
- tab="org.jboss.tools.jpdl4.general">
- <input
type="org.jboss.tools.flow.jpdl4.model.ExclusiveGateway"/>
- </propertySection>
- <propertySection
- afterSection="org.jboss.tools.jpdl4.exclusiveGateway.language"
-
class="org.jboss.tools.flow.jpdl4.properties.ExclusiveGatewayExpressionSection"
- id="org.jboss.tools.jpdl4.exclusiveGateway.expression"
- tab="org.jboss.tools.jpdl4.general">
- <input
type="org.jboss.tools.flow.jpdl4.model.ExclusiveGateway"/>
- </propertySection>
- <propertySection
-
afterSection="org.jboss.tools.jpdl4.exclusiveGateway.expression"
-
class="org.jboss.tools.flow.jpdl4.properties.ExclusiveGatewayClassNameSection"
- id="org.jboss.tools.jpdl4.exclusiveGateway.classname"
- tab="org.jboss.tools.jpdl4.general">
- <input
type="org.jboss.tools.flow.jpdl4.model.ExclusiveGateway"/>
- </propertySection>
- <propertySection
- afterSection="org.jboss.tools.jpdl4.name"
-
class="org.jboss.tools.flow.jpdl4.properties.EndEventEndsSection"
- id="org.jboss.tools.jpdl4.endEvent.ends"
- tab="org.jboss.tools.jpdl4.general">
- <input
type="org.jboss.tools.flow.jpdl4.model.TerminateEndEvent"/>
- </propertySection>
- <propertySection
- afterSection="org.jboss.tools.jpdl4.endEvent.ends"
-
class="org.jboss.tools.flow.jpdl4.properties.EndEventStateSection"
- id="org.jboss.tools.jpdl4.endEvent.state"
- tab="org.jboss.tools.jpdl4.general">
- <input
type="org.jboss.tools.flow.jpdl4.model.TerminateEndEvent"/>
- </propertySection>
- <propertySection
-
afterSection="org.jboss.tools.jpdl4.eventListenerContainer.eventType"
-
class="org.jboss.tools.flow.jpdl4.properties.EventListenerContainerDueDateSection"
- id="org.jboss.tools.jpdl4.eventListenerContainer.timer"
- tab="org.jboss.tools.jpdl4.general">
- <input
type="org.jboss.tools.flow.jpdl4.model.EventListenerContainer"/>
- </propertySection>
- <propertySection
- afterSection="org.jboss.tools.jpdl4.name"
-
class="org.jboss.tools.flow.jpdl4.properties.SequenceFlowTimerSection"
- id="org.jboss.tools.jpdl4.sequenceFlow.timer"
- tab="org.jboss.tools.jpdl4.general">
- <input
type="org.jboss.tools.flow.jpdl4.model.SequenceFlow"/>
- </propertySection>
- <propertySection
- afterSection="org.jboss.tools.jpdl4.sequenceFlow.timer"
-
class="org.jboss.tools.flow.jpdl4.properties.SequenceFlowOutcomeValueSection"
-
filter="org.jboss.tools.flow.jpdl4.properties.SequenceFlowOutcomeValueFilter"
- id="org.jboss.tools.jpdl4.sequenceFlow.outcome"
- tab="org.jboss.tools.jpdl4.general">
- </propertySection>
- <propertySection
- afterSection="org.jboss.tools.jpdl4.name"
-
class="org.jboss.tools.flow.jpdl4.properties.JavaTaskClassSection"
- id="org.jboss.tools.jpdl4.javaTask.class"
- tab="org.jboss.tools.jpdl4.general">
- <input type="org.jboss.tools.flow.jpdl4.model.JavaTask"/>
- </propertySection>
- <propertySection
- afterSection="org.jboss.tools.jpdl4.javaTask.class"
-
class="org.jboss.tools.flow.jpdl4.properties.JavaTaskMethodSection"
- id="org.jboss.tools.jpdl4.javaTask.method"
- tab="org.jboss.tools.jpdl4.general">
- <input type="org.jboss.tools.flow.jpdl4.model.JavaTask"/>
- </propertySection>
- <propertySection
- afterSection="org.jboss.tools.jpdl4.javaTask.method"
-
class="org.jboss.tools.flow.jpdl4.properties.JavaTaskVariableSection"
- id="org.jboss.tools.jpdl4.javaTask.var"
- tab="org.jboss.tools.jpdl4.general">
- <input type="org.jboss.tools.flow.jpdl4.model.JavaTask"/>
- </propertySection>
- <propertySection
- afterSection="org.jboss.tools.jpdl4.name"
-
class="org.jboss.tools.flow.jpdl4.properties.ScriptTaskExpressionSection"
- id="org.jboss.tools.jpdl4.scriptTask.expr"
- tab="org.jboss.tools.jpdl4.general">
- <input type="org.jboss.tools.flow.jpdl4.model.ScriptTask"/>
- </propertySection>
- <propertySection
- afterSection="org.jboss.tools.jpdl4.scriptTask.expr"
-
class="org.jboss.tools.flow.jpdl4.properties.ScriptTaskLanguageSection"
- id="org.jboss.tools.jpdl4.scriptTask.lang"
- tab="org.jboss.tools.jpdl4.general">
- <input type="org.jboss.tools.flow.jpdl4.model.ScriptTask"/>
- </propertySection>
- <propertySection
- afterSection="org.jboss.tools.jpdl4.scriptTask.lang"
-
class="org.jboss.tools.flow.jpdl4.properties.ScriptTaskVariableSection"
- id="org.jboss.tools.jpdl4.scriptTask.var"
- tab="org.jboss.tools.jpdl4.general">
- <input type="org.jboss.tools.flow.jpdl4.model.ScriptTask"/>
- </propertySection>
- <propertySection
- afterSection="org.jboss.tools.jpdl4.scriptTask.var"
-
class="org.jboss.tools.flow.jpdl4.properties.ScriptTaskTextSection"
- id="org.jboss.tools.jpdl4.scriptTask.text"
- tab="org.jboss.tools.jpdl4.general">
- <input type="org.jboss.tools.flow.jpdl4.model.ScriptTask"/>
- </propertySection>
- <propertySection
-
class="org.jboss.tools.flow.jpdl4.properties.ParameterOuterVariableSection"
- id="org.jboss.tools.jpdl4.inputParameter.outerVariable"
- tab="org.jboss.tools.jpdl4.general">
- <input
type="org.jboss.tools.flow.jpdl4.model.InputParameter"/>
- </propertySection>
- <propertySection
-
afterSection="org.jboss.tools.jpdl4.inputParameter.outerVariable"
-
class="org.jboss.tools.flow.jpdl4.properties.ParameterInnerVariableSection"
- id="org.jboss.tools.jpdl4.inputParameter.innerVariable"
- tab="org.jboss.tools.jpdl4.general">
- <input
type="org.jboss.tools.flow.jpdl4.model.InputParameter"/>
- </propertySection>
- <propertySection
-
afterSection="org.jboss.tools.jpdl4.inputParameter.innerVariable"
-
class="org.jboss.tools.flow.jpdl4.properties.ParameterExpressionSection"
- id="org.jboss.tools.jpdl4.inputParameter.expression"
- tab="org.jboss.tools.jpdl4.general">
- <input
type="org.jboss.tools.flow.jpdl4.model.InputParameter"/>
- </propertySection>
- <propertySection
- afterSection="org.jboss.tools.jpdl4.inputParameter.expression"
-
class="org.jboss.tools.flow.jpdl4.properties.ParameterLanguageSection"
- id="org.jboss.tools.jpdl4.inputParameter.language"
- tab="org.jboss.tools.jpdl4.general">
- <input
type="org.jboss.tools.flow.jpdl4.model.InputParameter"/>
- </propertySection>
- <propertySection
-
class="org.jboss.tools.flow.jpdl4.properties.ParameterInnerVariableSection"
- id="org.jboss.tools.jpdl4.outputParameter.innerVariable"
- tab="org.jboss.tools.jpdl4.general">
- <input
type="org.jboss.tools.flow.jpdl4.model.OutputParameter"/>
- </propertySection>
- <propertySection
-
afterSection="org.jboss.tools.jpdl4.outputParameter.innerVariable"
-
class="org.jboss.tools.flow.jpdl4.properties.ParameterOuterVariableSection"
- id="org.jboss.tools.jpdl4.outputParameter.outerVariable"
- tab="org.jboss.tools.jpdl4.general">
- <input
type="org.jboss.tools.flow.jpdl4.model.OutputParameter"/>
- </propertySection>
- <propertySection
-
afterSection="org.jboss.tools.jpdl4.outputParameter.outerVariable"
-
class="org.jboss.tools.flow.jpdl4.properties.ParameterExpressionSection"
- id="org.jboss.tools.jpdl4.outputParameter.expression"
- tab="org.jboss.tools.jpdl4.general">
- <input
type="org.jboss.tools.flow.jpdl4.model.OutputParameter"/>
- </propertySection>
- <propertySection
-
afterSection="org.jboss.tools.jpdl4.outputParameter.expression"
-
class="org.jboss.tools.flow.jpdl4.properties.ParameterLanguageSection"
- id="org.jboss.tools.jpdl4.outputParameter.language"
- tab="org.jboss.tools.jpdl4.general">
- <input
type="org.jboss.tools.flow.jpdl4.model.OutputParameter"/>
- </propertySection>
- <propertySection
-
class="org.jboss.tools.flow.jpdl4.properties.ArgumentValueSection"
- id="org.jboss.tools.jpdl4.argument.value"
- tab="org.jboss.tools.jpdl4.general">
- <input type="org.jboss.tools.flow.jpdl4.model.Argument"/>
- </propertySection>
- <propertySection
- class="org.jboss.tools.flow.jpdl4.properties.FieldNameSection"
- id="org.jboss.tools.jpdl4.field.name"
- tab="org.jboss.tools.jpdl4.general">
- <input type="org.jboss.tools.flow.jpdl4.model.Field"/>
- </propertySection>
- <propertySection
- afterSection="org.jboss.tools.jpdl4.field.name"
-
class="org.jboss.tools.flow.jpdl4.properties.FieldValueSection"
- id="org.jboss.tools.jpdl4.field.value"
- tab="org.jboss.tools.jpdl4.general">
- <input type="org.jboss.tools.flow.jpdl4.model.Field"/>
- </propertySection>
- <propertySection
- afterSection="org.jboss.tools.jpdl4.name"
-
class="org.jboss.tools.flow.jpdl4.properties.HqlTaskVariableNameSection"
- id="org.jboss.tools.jpdl4.hqlTask.variableName"
- tab="org.jboss.tools.jpdl4.general">
- <input type="org.jboss.tools.flow.jpdl4.model.HqlTask"/>
- </propertySection>
- <propertySection
- afterSection="org.jboss.tools.jpdl4.hqlTask.variableName"
-
class="org.jboss.tools.flow.jpdl4.properties.HqlTaskUniqueSection"
- id="org.jboss.tools.jpdl4.hqlTask.unique"
- tab="org.jboss.tools.jpdl4.general">
- <input type="org.jboss.tools.flow.jpdl4.model.HqlTask"/>
- </propertySection>
- <propertySection
- afterSection="org.jboss.tools.jpdl4.hqlTask.unique"
-
class="org.jboss.tools.flow.jpdl4.properties.HqlTaskQuerySection"
- id="org.jboss.tools.jpdl4.hqlTask.query"
- tab="org.jboss.tools.jpdl4.general">
- <input type="org.jboss.tools.flow.jpdl4.model.HqlTask"/>
- </propertySection>
- </propertySections>
- </extension>
- <extension
- point="org.eclipse.ui.views">
- <view
- class="org.jboss.tools.flow.jpdl4.view.DetailsView"
- icon="icons/process.gif"
- id="org.jboss.tools.flow.jpdl4.details"
- name="Details"
- restorable="true">
- </view>
- </extension>
- <extension
- point="org.eclipse.ui.commands">
- <category
- description="jPDL 4 Command Category"
- id="org.jboss.tools.flow.jpdl4"
- name="jPDL 4">
- </category>
- <command
- categoryId="org.jboss.tools.flow.jpdl4"
-
defaultHandler="org.jboss.tools.flow.jpdl4.handler.AddSwimlaneHandler"
- id="org.jboss.tools.flow.jpdl4.addSwimlane"
- name="Add Swimlane">
- </command>
- <command
- categoryId="org.jboss.tools.flow.jpdl4"
-
defaultHandler="org.jboss.tools.flow.jpdl4.handler.AddEventListenerHandler"
- id="org.jboss.tools.flow.jpdl4.addEventListener"
- name="Add Event Listener">
- </command>
- <command
- categoryId="org.jboss.tools.flow.jpdl4"
-
defaultHandler="org.jboss.tools.flow.jpdl4.handler.AddTimerHandler"
- id="org.jboss.tools.flow.jpdl4.addTimer"
- name="Add Timer">
- </command>
- <command
- categoryId="org.jboss.tools.flow.jpdl4"
-
defaultHandler="org.jboss.tools.flow.jpdl4.handler.AddInputParameterHandler"
- id="org.jboss.tools.flow.jpdl4.addInputParameter"
- name="Add Input Parameter">
- </command>
- <command
- categoryId="org.jboss.tools.flow.jpdl4"
-
defaultHandler="org.jboss.tools.flow.jpdl4.handler.AddOutputParameterHandler"
- id="org.jboss.tools.flow.jpdl4.addOutputParameter"
- name="Add Output Parameter">
- </command>
- <command
- categoryId="org.jboss.tools.flow.jpdl4"
-
defaultHandler="org.jboss.tools.flow.jpdl4.handler.AddArgumentHandler"
- id="org.jboss.tools.flow.jpdl4.addArgument"
- name="Add Argument">
- </command>
- <command
- categoryId="org.jboss.tools.flow.jpdl4"
-
defaultHandler="org.jboss.tools.flow.jpdl4.handler.AddFieldHandler"
- id="org.jboss.tools.flow.jpdl4.addField"
- name="Add Field">
- </command>
- <command
- categoryId="org.jboss.tools.flow.jpdl4"
-
defaultHandler="org.jboss.tools.flow.jpdl4.handler.AddParameterHandler"
- id="org.jboss.tools.flow.jpdl4.addParameter"
- name="Add Parameter">
- </command>
- <command
- categoryId="org.jboss.tools.flow.jpdl4"
-
defaultHandler="org.jboss.tools.flow.jpdl4.handler.DeleteElementHandler"
- id="org.jboss.tools.flow.jpdl4.delete"
- name="Delete">
- </command>
- </extension>
- <extension
- point="org.eclipse.ui.menus">
- <menuContribution
- locationURI="popup:org.jboss.tools.flow.jpdl4.details">
- <command
- commandId="org.jboss.tools.flow.jpdl4.addSwimlane"
- icon="icons/16/new_swimlane.gif"
- id="org.jboss.tools.flow.jpdl4.addSwimlane"
- style="push">
- <visibleWhen
- checkEnabled="true">
- <iterate>
- <or>
- <instanceof
-
value="org.jboss.tools.flow.jpdl4.editpart.ProcessTreeRootEditPart">
- </instanceof>
- <instanceof
-
value="org.jboss.tools.flow.jpdl4.editpart.SwimlaneListTreeEditPart">
- </instanceof>
- </or>
- </iterate>
- </visibleWhen>
- </command>
- <command
- commandId="org.jboss.tools.flow.jpdl4.addEventListener"
- icon="icons/16/new_event_listener.gif"
- id="org.jboss.tools.flow.jpdl4.addEventListener"
- style="push">
- <visibleWhen
- checkEnabled="true">
- <iterate>
- <or>
- <instanceof
-
value="org.jboss.tools.flow.jpdl4.editpart.ProcessTreeRootEditPart">
- </instanceof>
- <instanceof
-
value="org.jboss.tools.flow.jpdl4.editpart.TaskTreeRootEditPart">
- </instanceof>
- <instanceof
-
value="org.jboss.tools.flow.jpdl4.editpart.SequenceFlowTreeRootEditPart">
- </instanceof>
- <instanceof
-
value="org.jboss.tools.flow.jpdl4.editpart.EventListenerListTreeEditPart">
- </instanceof>
- </or>
- </iterate>
- </visibleWhen>
- </command>
- <command
- commandId="org.jboss.tools.flow.jpdl4.addTimer"
- icon="icons/16/new_timer.gif"
- id="org.jboss.tools.flow.jpdl4.addTimer"
- style="push">
- <visibleWhen
- checkEnabled="true">
- <iterate>
- <or>
- <instanceof
-
value="org.jboss.tools.flow.jpdl4.editpart.ProcessTreeRootEditPart">
- </instanceof>
- <instanceof
-
value="org.jboss.tools.flow.jpdl4.editpart.TimerListTreeEditPart">
- </instanceof>
- </or>
- </iterate>
- </visibleWhen>
- </command>
- <command
- commandId="org.jboss.tools.flow.jpdl4.addInputParameter"
- icon="icons/16/input.gif"
- id="org.jboss.tools.flow.jpdl4.addInputParameter"
- style="push">
- <visibleWhen
- checkEnabled="true">
- <iterate>
- <or>
- <instanceof
-
value="org.jboss.tools.flow.jpdl4.editpart.SubprocessTaskTreeRootEditPart">
- </instanceof>
- <instanceof
-
value="org.jboss.tools.flow.jpdl4.editpart.InputParameterListTreeEditPart">
- </instanceof>
- </or>
- </iterate>
- </visibleWhen>
- </command>
- <command
- commandId="org.jboss.tools.flow.jpdl4.addOutputParameter"
- icon="icons/16/output.gif"
- id="org.jboss.tools.flow.jpdl4.addOutputParameter"
- style="push">
- <visibleWhen
- checkEnabled="true">
- <iterate>
- <or>
- <instanceof
-
value="org.jboss.tools.flow.jpdl4.editpart.SubprocessTaskTreeRootEditPart">
- </instanceof>
- <instanceof
-
value="org.jboss.tools.flow.jpdl4.editpart.OutputParameterListTreeEditPart">
- </instanceof>
- </or>
- </iterate>
- </visibleWhen>
- </command>
- <command
- commandId="org.jboss.tools.flow.jpdl4.addArgument"
- icon="icons/16/argument.gif"
- id="org.jboss.tools.flow.jpdl4.addArgument"
- style="push">
- <visibleWhen
- checkEnabled="true">
- <iterate>
- <or>
- <instanceof
-
value="org.jboss.tools.flow.jpdl4.editpart.JavaTaskTreeRootEditPart">
- </instanceof>
- <instanceof
-
value="org.jboss.tools.flow.jpdl4.editpart.ArgumentListTreeEditPart">
- </instanceof>
- </or>
- </iterate>
- </visibleWhen>
- </command>
- <command
- commandId="org.jboss.tools.flow.jpdl4.addParameter"
- icon="icons/16/argument.gif"
- id="org.jboss.tools.flow.jpdl4.addParameter"
- style="push">
- <visibleWhen
- checkEnabled="true">
- <iterate>
- <or>
- <instanceof
-
value="org.jboss.tools.flow.jpdl4.editpart.HqlTaskTreeRootEditPart">
- </instanceof>
- <instanceof
-
value="org.jboss.tools.flow.jpdl4.editpart.ParameterListTreeEditPart">
- </instanceof>
- </or>
- </iterate>
- </visibleWhen>
- </command>
- <command
- commandId="org.jboss.tools.flow.jpdl4.addField"
- icon="icons/16/field.gif"
- id="org.jboss.tools.flow.jpdl4.addField"
- style="push">
- <visibleWhen
- checkEnabled="true">
- <iterate>
- <or>
- <instanceof
-
value="org.jboss.tools.flow.jpdl4.editpart.JavaTaskTreeRootEditPart">
- </instanceof>
- <instanceof
-
value="org.jboss.tools.flow.jpdl4.editpart.FieldListTreeEditPart">
- </instanceof>
- </or>
- </iterate>
- </visibleWhen>
- </command>
- <separator
- name="org.jboss.tools.flow.jpdl4.details.separator1"
- visible="true">
- </separator>
- <command
- commandId="org.jboss.tools.flow.jpdl4.delete"
- icon="icons/16/delete.gif"
- id="org.jboss.tools.flow.jpdl4.details.delete"
- style="push">
- <visibleWhen
- checkEnabled="true">
- <iterate>
- <instanceof
-
value="org.jboss.tools.flow.jpdl4.editpart.ElementTreeEditPart">
- </instanceof>
- </iterate>
- </visibleWhen>
- </command>
- </menuContribution>
- </extension>
-
- <extension
- point="org.eclipse.ui.preferencePages">
- <page class="org.jboss.tools.jbpm.preferences.DefaultPage"
- id="org.jboss.tools.flow.jpdl4"
- name="jBPM 4"
- category="org.jboss.tools.jbpm"/>
- <page
- class="org.jboss.tools.flow.jpdl4.preferences.Jbpm4LocationsPage"
- id="org.jboss.tools.flow.jpdl4.locations"
- name="Runtime Locations"
- category="org.jboss.tools.flow.jpdl4"/>
- </extension>
-
-</plugin>
Copied: tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/plugin.xml (from rev 17256,
trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4/plugin.xml)
===================================================================
--- tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/plugin.xml (rev
0)
+++ tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/plugin.xml 2009-11-11 20:54:30 UTC (rev
18625)
@@ -0,0 +1,997 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?eclipse version="3.2"?>
+<plugin>
+
+ <extension
+ point="org.eclipse.core.contenttype.contentTypes">
+ <content-type
+ base-type="org.eclipse.core.runtime.xml"
+ file-extensions="xml"
+ id="org.jboss.tools.flow.jpdl4"
+ name="jPDL 4 File"
+ priority="normal">
+ <describer
+
class="org.eclipse.core.runtime.content.XMLRootElementContentDescriber">
+ <parameter
+ name="element"
+ value="process">
+ </parameter>
+ </describer>
+ </content-type>
+ </extension>
+<!-- <extension point="org.eclipse.ui.editors">
+ <editor
+ name="jPDL4 Editor"
+ icon="icons/process.gif"
+
contributorClass="org.jboss.tools.flow.common.editor.GenericActionBarContributor"
+ class="org.jboss.tools.flow.jpdl4.editor.JpdlEditor"
+ id="org.jboss.tools.flow.jpdl4.editor">
+ <contentTypeBinding
+ contentTypeId="org.jboss.tools.flow.jpdl4">
+ </contentTypeBinding>
+ </editor>
+ </extension> -->
+ <extension
+ point="org.jboss.tools.flow.common.languages">
+ <language
+ editor="org.jboss.tools.flow.jpdl4.editor"
+ id="org.jboss.tools.flow.jpdl4"
+ name="jBPM Process Definition Language">
+ </language>
+ </extension>
+ <extension
+ point="org.jboss.tools.flow.common.elements">
+ <element
+ class="org.jboss.tools.flow.jpdl4.model.Process"
+ figure="icons/process.gif"
+ id="org.jboss.tools.flow.jpdl4.process"
+ label="process"
+ language="org.jboss.tools.flow.jpdl4">
+ <flow
+
acceptsElementStrategy="org.jboss.tools.flow.jpdl4.strategy.ProcessAcceptsElementStrategy"></flow>
+ </element>
+<!-- <element
+ class="org.jboss.tools.flow.jpdl4.model.SuperState"
+ figure="icons/exclusive.gif"
+ id="org.jboss.tools.flow.jpdl4.superState"
+ language="org.jboss.tools.flow.jpdl4"
+ name="Super State">
+ <container></container>
+ </element> -->
+ <element
+ class="org.jboss.tools.flow.jpdl4.model.StartEvent"
+ figure="icons/16/start_event_empty.png"
+ id="org.jboss.tools.flow.jpdl4.startEvent"
+ label="start"
+ language="org.jboss.tools.flow.jpdl4">
+ <node
+
acceptsIncomingConnectionStrategy="org.jboss.tools.flow.jpdl4.strategy.StartEventAcceptsIncomingConnectionStrategy">
+ <figure
class="org.jboss.tools.flow.jpdl4.figure.StartEventFigure"></figure>
+ </node>
+ </element>
+ <element
+ class="org.jboss.tools.flow.jpdl4.model.TerminateEndEvent"
+ figure="icons/16/end_event_terminate.png"
+ id="org.jboss.tools.flow.jpdl4.terminateEndEvent"
+ label="end"
+ language="org.jboss.tools.flow.jpdl4">
+ <node
+
acceptsOutgoingConnectionStrategy="org.jboss.tools.flow.jpdl4.strategy.EndEventAcceptsOutgoingConnectionStrategy">
+ <figure
class="org.jboss.tools.flow.jpdl4.figure.TerminateEndEventFigure"></figure>
+ </node>
+ </element>
+ <element
+ class="org.jboss.tools.flow.jpdl4.model.CancelEndEvent"
+ figure="icons/16/end_event_cancel.png"
+ id="org.jboss.tools.flow.jpdl4.cancelEndEvent"
+ label="cancel"
+ language="org.jboss.tools.flow.jpdl4">
+ <node
+
acceptsOutgoingConnectionStrategy="org.jboss.tools.flow.jpdl4.strategy.EndEventAcceptsOutgoingConnectionStrategy">
+ <figure
class="org.jboss.tools.flow.jpdl4.figure.CancelEndEventFigure"></figure>
+ </node>
+ </element>
+ <element
+ class="org.jboss.tools.flow.jpdl4.model.ErrorEndEvent"
+ figure="icons/16/end_event_error.png"
+ id="org.jboss.tools.flow.jpdl4.errorEndEvent"
+ label="error"
+ language="org.jboss.tools.flow.jpdl4">
+ <node
+
acceptsOutgoingConnectionStrategy="org.jboss.tools.flow.jpdl4.strategy.EndEventAcceptsOutgoingConnectionStrategy">
+ <figure
class="org.jboss.tools.flow.jpdl4.figure.ErrorEndEventFigure"></figure>
+ </node>
+ </element>
+ <element
+ class="org.jboss.tools.flow.jpdl4.model.WaitTask"
+ figure="icons/16/task_wait.png"
+ id="org.jboss.tools.flow.jpdl4.waitTask"
+ label="state"
+ language="org.jboss.tools.flow.jpdl4">
+ <node>
+ <figure
class="org.jboss.tools.flow.jpdl4.figure.TaskFigure"></figure>
+ </node>
+ </element>
+ <element
+ class="org.jboss.tools.flow.jpdl4.model.HqlTask"
+ figure="icons/16/task_hql.png"
+ id="org.jboss.tools.flow.jpdl4.hqlTask"
+ label="hql"
+ language="org.jboss.tools.flow.jpdl4">
+ <node>
+ <figure
class="org.jboss.tools.flow.jpdl4.figure.TaskFigure"></figure>
+ </node>
+ </element>
+ <element
+ class="org.jboss.tools.flow.jpdl4.model.SqlTask"
+ figure="icons/16/task_sql.png"
+ id="org.jboss.tools.flow.jpdl4.sqlTask"
+ label="sql"
+ language="org.jboss.tools.flow.jpdl4">
+ <node>
+ <figure
class="org.jboss.tools.flow.jpdl4.figure.TaskFigure"></figure>
+ </node>
+ </element>
+ <element
+ class="org.jboss.tools.flow.jpdl4.model.MailTask"
+ figure="icons/16/task_empty.png"
+ id="org.jboss.tools.flow.jpdl4.mailTask"
+ label="mail"
+ language="org.jboss.tools.flow.jpdl4">
+ <node>
+ <figure
class="org.jboss.tools.flow.jpdl4.figure.TaskFigure"></figure>
+ </node>
+ </element>
+ <element
+ class="org.jboss.tools.flow.jpdl4.model.JavaTask"
+ figure="icons/16/task_java.png"
+ id="org.jboss.tools.flow.jpdl4.javaTask"
+ label="java"
+ language="org.jboss.tools.flow.jpdl4">
+ <node>
+ <figure
class="org.jboss.tools.flow.jpdl4.figure.TaskFigure"></figure>
+ </node>
+ </element>
+ <element
+ class="org.jboss.tools.flow.jpdl4.model.ScriptTask"
+ figure="icons/16/task_empty.png"
+ id="org.jboss.tools.flow.jpdl4.scriptTask"
+ label="script"
+ language="org.jboss.tools.flow.jpdl4">
+ <node>
+ <figure
class="org.jboss.tools.flow.jpdl4.figure.TaskFigure"></figure>
+ </node>
+ </element>
+<!-- <element
+ class="org.jboss.tools.flow.jpdl4.model.ServiceTask"
+ figure="icons/16/task_empty.png"
+ id="org.jboss.tools.flow.jpdl4.serviceTask"
+ label="esb"
+ language="org.jboss.tools.flow.jpdl4">
+ <node>
+ <figure
class="org.jboss.tools.flow.jpdl4.figure.TaskFigure"></figure>
+ </node>
+ </element> -->
+ <element
+ class="org.jboss.tools.flow.jpdl4.model.HumanTask"
+ figure="icons/16/task_empty.png"
+ id="org.jboss.tools.flow.jpdl4.humanTask"
+ label="task"
+ language="org.jboss.tools.flow.jpdl4">
+ <node>
+ <figure
class="org.jboss.tools.flow.jpdl4.figure.TaskFigure"></figure>
+ </node>
+ </element>
+ <element
+ class="org.jboss.tools.flow.jpdl4.model.SubprocessTask"
+ figure="icons/16/task_empty.png"
+ id="org.jboss.tools.flow.jpdl4.subprocessTask"
+ label="Subprocess"
+ language="org.jboss.tools.flow.jpdl4">
+ <node>
+ <figure
class="org.jboss.tools.flow.jpdl4.figure.TaskFigure"></figure>
+ </node>
+ </element>
+ <element
+ class="org.jboss.tools.flow.jpdl4.model.CustomTask"
+ figure="icons/16/task_empty.png"
+ id="org.jboss.tools.flow.jpdl4.customTask"
+ label="custom"
+ language="org.jboss.tools.flow.jpdl4">
+ <node>
+ <figure
class="org.jboss.tools.flow.jpdl4.figure.TaskFigure"></figure>
+ </node>
+ </element>
+ <element
+ class="org.jboss.tools.flow.jpdl4.model.ExclusiveGateway"
+ figure="icons/16/gateway_exclusive.png"
+ id="org.jboss.tools.flow.jpdl4.exclusiveGateway"
+ label="exclusive"
+ language="org.jboss.tools.flow.jpdl4">
+ <node>
+ <figure
class="org.jboss.tools.flow.jpdl4.figure.ExclusiveGatewayFigure"></figure>
+ </node>
+ </element>
+ <element
+ class="org.jboss.tools.flow.jpdl4.model.ForkParallelGateway"
+ figure="icons/16/gateway_parallel.png"
+ id="org.jboss.tools.flow.jpdl4.parallelForkGateway"
+ label="fork"
+ language="org.jboss.tools.flow.jpdl4">
+ <node>
+ <figure
class="org.jboss.tools.flow.jpdl4.figure.ParallelGatewayFigure"></figure>
+ </node>
+ </element>
+ <element
+ class="org.jboss.tools.flow.jpdl4.model.JoinParallelGateway"
+ figure="icons/16/gateway_parallel.png"
+ id="org.jboss.tools.flow.jpdl4.parallelJoinGateway"
+ label="join"
+ language="org.jboss.tools.flow.jpdl4">
+ <node>
+ <figure
class="org.jboss.tools.flow.jpdl4.figure.ParallelGatewayFigure"></figure>
+ </node>
+ </element>
+ <element
+ class="org.jboss.tools.flow.jpdl4.model.SequenceFlow"
+ figure="icons/sequence.gif"
+ id="org.jboss.tools.flow.jpdl4.sequenceFlow"
+ label="flow"
+ language="org.jboss.tools.flow.jpdl4">
+ <connection></connection>
+ </element>
+ <element
+ class="org.jboss.tools.flow.jpdl4.model.Swimlane"
+ figure="icons/16/swimlane.gif"
+ id="org.jboss.tools.flow.jpdl4.swimlane"
+ label="swimlane"
+ language="org.jboss.tools.flow.jpdl4">
+ </element>
+ <element
+ class="org.jboss.tools.flow.jpdl4.model.Timer"
+ figure="icons/16/timer.gif"
+ id="org.jboss.tools.flow.jpdl4.timer"
+ label="timer"
+ language="org.jboss.tools.flow.jpdl4">
+ </element>
+ <element
+ class="org.jboss.tools.flow.jpdl4.model.EventListenerContainer"
+ figure="icons/16/events_multiple.gif"
+ id="org.jboss.tools.flow.jpdl4.eventListenerContainer"
+ label="events"
+ language="org.jboss.tools.flow.jpdl4">
+ </element>
+ <element
+ class="org.jboss.tools.flow.jpdl4.model.EventListener"
+ figure="icons/16/event.gif"
+ id="org.jboss.tools.flow.jpdl4.eventListener"
+ label="event"
+ language="org.jboss.tools.flow.jpdl4">
+ </element>
+ <element
+ class="org.jboss.tools.flow.jpdl4.model.InputParameter"
+ figure="icons/16/input.gif"
+ id="org.jboss.tools.flow.jpdl4.inputParameter"
+ label="input parameter"
+ language="org.jboss.tools.flow.jpdl4">
+ </element>
+ <element
+ class="org.jboss.tools.flow.jpdl4.model.OutputParameter"
+ figure="icons/16/output.gif"
+ id="org.jboss.tools.flow.jpdl4.outputParameter"
+ label="output parameter"
+ language="org.jboss.tools.flow.jpdl4">
+ </element>
+ <element
+ class="org.jboss.tools.flow.jpdl4.model.Argument"
+ figure="icons/16/argument.gif"
+ id="org.jboss.tools.flow.jpdl4.argument"
+ label="argument"
+ language="org.jboss.tools.flow.jpdl4">
+ </element>
+ <element
+ class="org.jboss.tools.flow.jpdl4.model.Field"
+ figure="icons/16/field.gif"
+ id="org.jboss.tools.flow.jpdl4.field"
+ label="field"
+ language="org.jboss.tools.flow.jpdl4">
+ </element>
+ <element
+ class="org.jboss.tools.flow.jpdl4.model.PrimitiveObject"
+ figure="icons/16/object.png"
+ id="org.jboss.tools.flow.jpdl4.primitive"
+ label="primitive"
+ language="org.jboss.tools.flow.jpdl4">
+ </element>
+ </extension>
+ <extension
+ point="org.eclipse.ui.newWizards">
+ <wizard
+ category="org.jboss.tools.jbpm"
+ class="org.jboss.tools.flow.jpdl4.wizard.NewJpdl4FileWizard"
+ icon="icons/process.gif"
+ id="org.jboss.tools.flow.jpdl4.file"
+ name="jBPM 4 Process Definition">
+ <description>
+ A wizard that creates a new jBPM 4 process definition
+ </description>
+ </wizard>
+ </extension>
+
+ <extension
point="org.eclipse.ui.views.properties.tabbed.propertyContributor">
+ <propertyContributor
+ contributorId="org.jboss.tools.flow.jpdl4.editor"
+ typeMapper="org.jboss.tools.flow.jpdl4.properties.TypeMapper">
+ <propertyCategory category="general"/>
+ <propertyCategory category="details"/>
+ <propertyCategory category="graphics"/>
+<!-- <propertyCategory category="advanced"/> -->
+ </propertyContributor>
+ </extension>
+
+ <extension
point="org.eclipse.ui.views.properties.tabbed.propertyTabs">
+ <propertyTabs contributorId="org.jboss.tools.flow.jpdl4.editor">
+ <propertyTab
+ category="general"
+ id="org.jboss.tools.jpdl4.general"
+ label="General"/>
+ <propertyTab
+ afterTab="org.jboss.tools.jpdl4.general"
+ category="general"
+ id="org.jboss.tools.jpdl4.assignment"
+ label="Assignment"/>
+ <propertyTab
+ afterTab="org.jboss.tools.jpdl4.general"
+ category="general"
+ id="org.jboss.tools.jpdl4.subprocess"
+ label="Subprocess"/>
+ <propertyTab
+ afterTab="org.jboss.tools.jpdl4.general"
+ category="general"
+ id="org.jboss.tools.jpdl4.javaTask.fields"
+ label="Fields"/>
+ <propertyTab
+ afterTab="org.jboss.tools.jpdl4.javaTask.fields"
+ category="general"
+ id="org.jboss.tools.jpdl4.javaTask.arguments"
+ label="Arguments"/>
+<!-- <propertyTab
+ afterTab="org.jboss.tools.jpdl4.general"
+ category="details"
+ id="org.jboss.tools.jpdl4.details"
+ label="Details"/>
+ <propertyTab
+ afterTab="org.jboss.tools.jpdl4.details"
+ category="graphics"
+ id="org.jboss.tools.jpdl4.graphics"
+ label="Graphics"/>
+ <propertyTab
+ afterTab="org.jboss.tools.jpdl4.graphics"
+ category="advanced"
+ id="org.jboss.tools.jpdl4.advanced"
+ label="Advanced"/> -->
+ </propertyTabs>
+ </extension>
+
+ <extension
point="org.eclipse.ui.views.properties.tabbed.propertySections">
+ <propertySections
contributorId="org.jboss.tools.flow.jpdl4.editor">
+<!-- <propertySection
+ class="org.jboss.tools.flow.jpdl4.properties.AdvancedSection"
+ id="org.jboss.tools.jpdl4.advanced"
+ tab="org.jboss.tools.jpdl4.advanced">
+ <input type="java.lang.Object"/>
+ </propertySection> -->
+ <propertySection
+ class="org.jboss.tools.flow.jpdl4.properties.NameSection"
+ id="org.jboss.tools.jpdl4.name"
+ tab="org.jboss.tools.jpdl4.general">
+ <input
type="org.jboss.tools.flow.jpdl4.model.SequenceFlow"/>
+ <input type="org.jboss.tools.flow.jpdl4.model.ProcessNode"/>
+ <input type="org.jboss.tools.flow.jpdl4.model.Process"/>
+ <input type="org.jboss.tools.flow.jpdl4.model.Swimlane"/>
+ </propertySection>
+ <propertySection
+ class="org.jboss.tools.flow.jpdl4.properties.TimerSection"
+ id="org.jboss.tools.jpdl4.timer"
+ tab="org.jboss.tools.jpdl4.general">
+ <input type="org.jboss.tools.flow.jpdl4.model.Timer"/>
+ </propertySection>
+ <propertySection
+ class="org.jboss.tools.flow.jpdl4.properties.SubprocessSection"
+ id="org.jboss.tools.jpdl4.subprocess"
+ tab="org.jboss.tools.jpdl4.subprocess">
+ <input
type="org.jboss.tools.flow.jpdl4.model.SubprocessTask"/>
+ </propertySection>
+ <propertySection
+ class="org.jboss.tools.flow.jpdl4.properties.EventTypeSection"
+ id="org.jboss.tools.jpdl4.eventListenerContainer.eventType"
+ tab="org.jboss.tools.jpdl4.general">
+ <input
type="org.jboss.tools.flow.jpdl4.model.EventListenerContainer"/>
+ </propertySection>
+ <propertySection
+
class="org.jboss.tools.flow.jpdl4.properties.EventListenerClassNameSection"
+ id="org.jboss.tools.jpdl4.eventListener.className"
+ tab="org.jboss.tools.jpdl4.general">
+ <input
type="org.jboss.tools.flow.jpdl4.model.EventListener"/>
+ </propertySection>
+ <propertySection
+ class="org.jboss.tools.flow.jpdl4.properties.AssignmentSection"
+ id="org.jboss.tools.jpdl4.assignment"
+ tab="org.jboss.tools.jpdl4.assignment">
+ <input type="org.jboss.tools.flow.jpdl4.model.HumanTask"/>
+ <input type="org.jboss.tools.flow.jpdl4.model.Swimlane"/>
+ </propertySection>
+ <propertySection
+ afterSection="org.jboss.tools.jpdl4.name"
+
class="org.jboss.tools.flow.jpdl4.properties.ProcessKeySection"
+ id="org.jboss.tools.jpdl4.process.key"
+ tab="org.jboss.tools.jpdl4.general">
+ <input type="org.jboss.tools.flow.jpdl4.model.Process"/>
+ </propertySection>
+ <propertySection
+ afterSection="org.jboss.tools.jpdl4.process.key"
+
class="org.jboss.tools.flow.jpdl4.properties.ProcessVersionSection"
+ id="org.jboss.tools.jpdl4.process.version"
+ tab="org.jboss.tools.jpdl4.general">
+ <input type="org.jboss.tools.flow.jpdl4.model.Process"/>
+ </propertySection>
+ <propertySection
+ afterSection="org.jboss.tools.jpdl4.process.version"
+
class="org.jboss.tools.flow.jpdl4.properties.ProcessDescriptionSection"
+ id="org.jboss.tools.jpdl4.process.description"
+ tab="org.jboss.tools.jpdl4.general">
+ <input type="org.jboss.tools.flow.jpdl4.model.Process"/>
+ </propertySection>
+ <propertySection
+ afterSection="org.jboss.tools.jpdl4.name"
+
class="org.jboss.tools.flow.jpdl4.properties.ExclusiveGatewayLanguageSection"
+ id="org.jboss.tools.jpdl4.exclusiveGateway.language"
+ tab="org.jboss.tools.jpdl4.general">
+ <input
type="org.jboss.tools.flow.jpdl4.model.ExclusiveGateway"/>
+ </propertySection>
+ <propertySection
+ afterSection="org.jboss.tools.jpdl4.exclusiveGateway.language"
+
class="org.jboss.tools.flow.jpdl4.properties.ExclusiveGatewayExpressionSection"
+ id="org.jboss.tools.jpdl4.exclusiveGateway.expression"
+ tab="org.jboss.tools.jpdl4.general">
+ <input
type="org.jboss.tools.flow.jpdl4.model.ExclusiveGateway"/>
+ </propertySection>
+ <propertySection
+
afterSection="org.jboss.tools.jpdl4.exclusiveGateway.expression"
+
class="org.jboss.tools.flow.jpdl4.properties.ExclusiveGatewayClassNameSection"
+ id="org.jboss.tools.jpdl4.exclusiveGateway.classname"
+ tab="org.jboss.tools.jpdl4.general">
+ <input
type="org.jboss.tools.flow.jpdl4.model.ExclusiveGateway"/>
+ </propertySection>
+ <propertySection
+ afterSection="org.jboss.tools.jpdl4.name"
+
class="org.jboss.tools.flow.jpdl4.properties.EndEventEndsSection"
+ id="org.jboss.tools.jpdl4.endEvent.ends"
+ tab="org.jboss.tools.jpdl4.general">
+ <input
type="org.jboss.tools.flow.jpdl4.model.TerminateEndEvent"/>
+ </propertySection>
+ <propertySection
+ afterSection="org.jboss.tools.jpdl4.endEvent.ends"
+
class="org.jboss.tools.flow.jpdl4.properties.EndEventStateSection"
+ id="org.jboss.tools.jpdl4.endEvent.state"
+ tab="org.jboss.tools.jpdl4.general">
+ <input
type="org.jboss.tools.flow.jpdl4.model.TerminateEndEvent"/>
+ </propertySection>
+ <propertySection
+
afterSection="org.jboss.tools.jpdl4.eventListenerContainer.eventType"
+
class="org.jboss.tools.flow.jpdl4.properties.EventListenerContainerDueDateSection"
+ id="org.jboss.tools.jpdl4.eventListenerContainer.timer"
+ tab="org.jboss.tools.jpdl4.general">
+ <input
type="org.jboss.tools.flow.jpdl4.model.EventListenerContainer"/>
+ </propertySection>
+ <propertySection
+ afterSection="org.jboss.tools.jpdl4.name"
+
class="org.jboss.tools.flow.jpdl4.properties.SequenceFlowTimerSection"
+ id="org.jboss.tools.jpdl4.sequenceFlow.timer"
+ tab="org.jboss.tools.jpdl4.general">
+ <input
type="org.jboss.tools.flow.jpdl4.model.SequenceFlow"/>
+ </propertySection>
+ <propertySection
+ afterSection="org.jboss.tools.jpdl4.sequenceFlow.timer"
+
class="org.jboss.tools.flow.jpdl4.properties.SequenceFlowOutcomeValueSection"
+
filter="org.jboss.tools.flow.jpdl4.properties.SequenceFlowOutcomeValueFilter"
+ id="org.jboss.tools.jpdl4.sequenceFlow.outcome"
+ tab="org.jboss.tools.jpdl4.general">
+ </propertySection>
+ <propertySection
+ afterSection="org.jboss.tools.jpdl4.name"
+
class="org.jboss.tools.flow.jpdl4.properties.JavaTaskClassSection"
+ id="org.jboss.tools.jpdl4.javaTask.class"
+ tab="org.jboss.tools.jpdl4.general">
+ <input type="org.jboss.tools.flow.jpdl4.model.JavaTask"/>
+ </propertySection>
+ <propertySection
+ afterSection="org.jboss.tools.jpdl4.javaTask.class"
+
class="org.jboss.tools.flow.jpdl4.properties.JavaTaskExpressionSection"
+ id="org.jboss.tools.jpdl4.javaTask.expression"
+ tab="org.jboss.tools.jpdl4.general">
+ <input type="org.jboss.tools.flow.jpdl4.model.JavaTask"/>
+ </propertySection>
+ <propertySection
+ afterSection="org.jboss.tools.jpdl4.javaTask.expression"
+
class="org.jboss.tools.flow.jpdl4.properties.JavaTaskMethodSection"
+ id="org.jboss.tools.jpdl4.javaTask.method"
+ tab="org.jboss.tools.jpdl4.general">
+ <input type="org.jboss.tools.flow.jpdl4.model.JavaTask"/>
+ </propertySection>
+ <propertySection
+ afterSection="org.jboss.tools.jpdl4.javaTask.method"
+
class="org.jboss.tools.flow.jpdl4.properties.JavaTaskVariableSection"
+ id="org.jboss.tools.jpdl4.javaTask.var"
+ tab="org.jboss.tools.jpdl4.general">
+ <input type="org.jboss.tools.flow.jpdl4.model.JavaTask"/>
+ </propertySection>
+ <propertySection
+ afterSection="org.jboss.tools.jpdl4.name"
+
class="org.jboss.tools.flow.jpdl4.properties.ScriptTaskExpressionSection"
+ id="org.jboss.tools.jpdl4.scriptTask.expr"
+ tab="org.jboss.tools.jpdl4.general">
+ <input type="org.jboss.tools.flow.jpdl4.model.ScriptTask"/>
+ </propertySection>
+ <propertySection
+ afterSection="org.jboss.tools.jpdl4.scriptTask.expr"
+
class="org.jboss.tools.flow.jpdl4.properties.ScriptTaskLanguageSection"
+ id="org.jboss.tools.jpdl4.scriptTask.lang"
+ tab="org.jboss.tools.jpdl4.general">
+ <input type="org.jboss.tools.flow.jpdl4.model.ScriptTask"/>
+ </propertySection>
+ <propertySection
+ afterSection="org.jboss.tools.jpdl4.scriptTask.lang"
+
class="org.jboss.tools.flow.jpdl4.properties.ScriptTaskVariableSection"
+ id="org.jboss.tools.jpdl4.scriptTask.var"
+ tab="org.jboss.tools.jpdl4.general">
+ <input type="org.jboss.tools.flow.jpdl4.model.ScriptTask"/>
+ </propertySection>
+ <propertySection
+ afterSection="org.jboss.tools.jpdl4.scriptTask.var"
+
class="org.jboss.tools.flow.jpdl4.properties.ScriptTaskTextSection"
+ id="org.jboss.tools.jpdl4.scriptTask.text"
+ tab="org.jboss.tools.jpdl4.general">
+ <input type="org.jboss.tools.flow.jpdl4.model.ScriptTask"/>
+ </propertySection>
+ <propertySection
+
class="org.jboss.tools.flow.jpdl4.properties.ParameterOuterVariableSection"
+ id="org.jboss.tools.jpdl4.inputParameter.outerVariable"
+ tab="org.jboss.tools.jpdl4.general">
+ <input
type="org.jboss.tools.flow.jpdl4.model.InputParameter"/>
+ </propertySection>
+ <propertySection
+
afterSection="org.jboss.tools.jpdl4.inputParameter.outerVariable"
+
class="org.jboss.tools.flow.jpdl4.properties.ParameterInnerVariableSection"
+ id="org.jboss.tools.jpdl4.inputParameter.innerVariable"
+ tab="org.jboss.tools.jpdl4.general">
+ <input
type="org.jboss.tools.flow.jpdl4.model.InputParameter"/>
+ </propertySection>
+ <propertySection
+
afterSection="org.jboss.tools.jpdl4.inputParameter.innerVariable"
+
class="org.jboss.tools.flow.jpdl4.properties.ParameterExpressionSection"
+ id="org.jboss.tools.jpdl4.inputParameter.expression"
+ tab="org.jboss.tools.jpdl4.general">
+ <input
type="org.jboss.tools.flow.jpdl4.model.InputParameter"/>
+ </propertySection>
+ <propertySection
+ afterSection="org.jboss.tools.jpdl4.inputParameter.expression"
+
class="org.jboss.tools.flow.jpdl4.properties.ParameterLanguageSection"
+ id="org.jboss.tools.jpdl4.inputParameter.language"
+ tab="org.jboss.tools.jpdl4.general">
+ <input
type="org.jboss.tools.flow.jpdl4.model.InputParameter"/>
+ </propertySection>
+ <propertySection
+
class="org.jboss.tools.flow.jpdl4.properties.ParameterInnerVariableSection"
+ id="org.jboss.tools.jpdl4.outputParameter.innerVariable"
+ tab="org.jboss.tools.jpdl4.general">
+ <input
type="org.jboss.tools.flow.jpdl4.model.OutputParameter"/>
+ </propertySection>
+ <propertySection
+
afterSection="org.jboss.tools.jpdl4.outputParameter.innerVariable"
+
class="org.jboss.tools.flow.jpdl4.properties.ParameterOuterVariableSection"
+ id="org.jboss.tools.jpdl4.outputParameter.outerVariable"
+ tab="org.jboss.tools.jpdl4.general">
+ <input
type="org.jboss.tools.flow.jpdl4.model.OutputParameter"/>
+ </propertySection>
+ <propertySection
+
afterSection="org.jboss.tools.jpdl4.outputParameter.outerVariable"
+
class="org.jboss.tools.flow.jpdl4.properties.ParameterExpressionSection"
+ id="org.jboss.tools.jpdl4.outputParameter.expression"
+ tab="org.jboss.tools.jpdl4.general">
+ <input
type="org.jboss.tools.flow.jpdl4.model.OutputParameter"/>
+ </propertySection>
+ <propertySection
+
afterSection="org.jboss.tools.jpdl4.outputParameter.expression"
+
class="org.jboss.tools.flow.jpdl4.properties.ParameterLanguageSection"
+ id="org.jboss.tools.jpdl4.outputParameter.language"
+ tab="org.jboss.tools.jpdl4.general">
+ <input
type="org.jboss.tools.flow.jpdl4.model.OutputParameter"/>
+ </propertySection>
+ <propertySection
+
class="org.jboss.tools.flow.jpdl4.properties.ArgumentValueSection"
+ id="org.jboss.tools.jpdl4.argument.value"
+ tab="org.jboss.tools.jpdl4.general">
+ <input type="org.jboss.tools.flow.jpdl4.model.Argument"/>
+ </propertySection>
+ <propertySection
+ class="org.jboss.tools.flow.jpdl4.properties.FieldNameSection"
+ id="org.jboss.tools.jpdl4.field.name"
+ tab="org.jboss.tools.jpdl4.general">
+ <input type="org.jboss.tools.flow.jpdl4.model.Field"/>
+ </propertySection>
+ <propertySection
+ afterSection="org.jboss.tools.jpdl4.field.name"
+
class="org.jboss.tools.flow.jpdl4.properties.FieldValueSection"
+ id="org.jboss.tools.jpdl4.field.value"
+ tab="org.jboss.tools.jpdl4.general">
+ <input type="org.jboss.tools.flow.jpdl4.model.Field"/>
+ </propertySection>
+ <propertySection
+ afterSection="org.jboss.tools.jpdl4.name"
+
class="org.jboss.tools.flow.jpdl4.properties.QueryTaskVariableNameSection"
+ id="org.jboss.tools.jpdl4.hqlTask.variableName"
+ tab="org.jboss.tools.jpdl4.general">
+ <input type="org.jboss.tools.flow.jpdl4.model.QueryTask"/>
+ </propertySection>
+ <propertySection
+ afterSection="org.jboss.tools.jpdl4.hqlTask.variableName"
+
class="org.jboss.tools.flow.jpdl4.properties.QueryTaskUniqueSection"
+ id="org.jboss.tools.jpdl4.hqlTask.unique"
+ tab="org.jboss.tools.jpdl4.general">
+ <input type="org.jboss.tools.flow.jpdl4.model.QueryTask"/>
+ </propertySection>
+ <propertySection
+ afterSection="org.jboss.tools.jpdl4.hqlTask.unique"
+
class="org.jboss.tools.flow.jpdl4.properties.QueryTaskQuerySection"
+ id="org.jboss.tools.jpdl4.hqlTask.query"
+ tab="org.jboss.tools.jpdl4.general">
+ <input type="org.jboss.tools.flow.jpdl4.model.QueryTask"/>
+ </propertySection>
+ <propertySection
+
class="org.jboss.tools.flow.jpdl4.properties.PrimitiveObjectValueSection"
+ id="org.jboss.tools.jpdl4.primitiveObject.value"
+ tab="org.jboss.tools.jpdl4.general">
+ <input
type="org.jboss.tools.flow.jpdl4.model.PrimitiveObject"/>
+ </propertySection>
+ </propertySections>
+ </extension>
+ <extension
+ point="org.eclipse.ui.views">
+ <view
+ category="org.jboss.tools.jbpm"
+ class="org.jboss.tools.flow.jpdl4.view.DetailsView"
+ icon="icons/process.gif"
+ id="org.jboss.tools.flow.jpdl4.details"
+ name="Details (jBPM 4)"
+ restorable="true">
+ </view>
+ </extension>
+ <extension
+ point="org.eclipse.ui.commands">
+ <category
+ description="jPDL 4 Command Category"
+ id="org.jboss.tools.flow.jpdl4"
+ name="jPDL 4">
+ </category>
+ <command
+ categoryId="org.jboss.tools.flow.jpdl4"
+
defaultHandler="org.jboss.tools.flow.jpdl4.handler.AddSwimlaneHandler"
+ id="org.jboss.tools.flow.jpdl4.addSwimlane"
+ name="Add Swimlane">
+ </command>
+ <command
+ categoryId="org.jboss.tools.flow.jpdl4"
+
defaultHandler="org.jboss.tools.flow.jpdl4.handler.AddEventListenerHandler"
+ id="org.jboss.tools.flow.jpdl4.addEventListener"
+ name="Add Event Listener">
+ </command>
+ <command
+ categoryId="org.jboss.tools.flow.jpdl4"
+
defaultHandler="org.jboss.tools.flow.jpdl4.handler.AddTimerHandler"
+ id="org.jboss.tools.flow.jpdl4.addTimer"
+ name="Add Timer">
+ </command>
+ <command
+ categoryId="org.jboss.tools.flow.jpdl4"
+
defaultHandler="org.jboss.tools.flow.jpdl4.handler.AddInputParameterHandler"
+ id="org.jboss.tools.flow.jpdl4.addInputParameter"
+ name="Add Input Parameter">
+ </command>
+ <command
+ categoryId="org.jboss.tools.flow.jpdl4"
+
defaultHandler="org.jboss.tools.flow.jpdl4.handler.AddOutputParameterHandler"
+ id="org.jboss.tools.flow.jpdl4.addOutputParameter"
+ name="Add Output Parameter">
+ </command>
+ <command
+ categoryId="org.jboss.tools.flow.jpdl4"
+
defaultHandler="org.jboss.tools.flow.jpdl4.handler.AddArgumentHandler"
+ id="org.jboss.tools.flow.jpdl4.addArgument"
+ name="Add Argument">
+ </command>
+ <command
+ categoryId="org.jboss.tools.flow.jpdl4"
+
defaultHandler="org.jboss.tools.flow.jpdl4.handler.AddFieldHandler"
+ id="org.jboss.tools.flow.jpdl4.addField"
+ name="Add Field">
+ </command>
+ <command
+ categoryId="org.jboss.tools.flow.jpdl4"
+
defaultHandler="org.jboss.tools.flow.jpdl4.handler.AddParameterHandler"
+ id="org.jboss.tools.flow.jpdl4.addParameter"
+ name="Add Parameter">
+ </command>
+ <command
+ categoryId="org.jboss.tools.flow.jpdl4"
+
defaultHandler="org.jboss.tools.flow.jpdl4.handler.DeleteElementHandler"
+ id="org.jboss.tools.flow.jpdl4.delete"
+ name="Delete">
+ </command>
+ </extension>
+ <extension
+ point="org.eclipse.ui.menus">
+ <menuContribution
+ locationURI="popup:org.jboss.tools.flow.jpdl4.details">
+ <command
+ commandId="org.jboss.tools.flow.jpdl4.addSwimlane"
+ icon="icons/16/new_swimlane.gif"
+ id="org.jboss.tools.flow.jpdl4.addSwimlane"
+ style="push">
+ <visibleWhen
+ checkEnabled="true">
+ <iterate>
+ <or>
+ <instanceof
+
value="org.jboss.tools.flow.jpdl4.editpart.ProcessTreeRootEditPart">
+ </instanceof>
+ <instanceof
+
value="org.jboss.tools.flow.jpdl4.editpart.SwimlaneListTreeEditPart">
+ </instanceof>
+ </or>
+ </iterate>
+ </visibleWhen>
+ </command>
+ <command
+ commandId="org.jboss.tools.flow.jpdl4.addEventListener"
+ icon="icons/16/new_event_listener.gif"
+ id="org.jboss.tools.flow.jpdl4.addEventListener"
+ style="push">
+ <visibleWhen
+ checkEnabled="true">
+ <iterate>
+ <or>
+ <instanceof
+
value="org.jboss.tools.flow.jpdl4.editpart.ProcessTreeRootEditPart">
+ </instanceof>
+ <instanceof
+
value="org.jboss.tools.flow.jpdl4.editpart.TaskTreeRootEditPart">
+ </instanceof>
+ <instanceof
+
value="org.jboss.tools.flow.jpdl4.editpart.SequenceFlowTreeRootEditPart">
+ </instanceof>
+ <instanceof
+
value="org.jboss.tools.flow.jpdl4.editpart.EventListenerListTreeEditPart">
+ </instanceof>
+ </or>
+ </iterate>
+ </visibleWhen>
+ </command>
+ <command
+ commandId="org.jboss.tools.flow.jpdl4.addTimer"
+ icon="icons/16/new_timer.gif"
+ id="org.jboss.tools.flow.jpdl4.addTimer"
+ style="push">
+ <visibleWhen
+ checkEnabled="true">
+ <iterate>
+ <or>
+ <instanceof
+
value="org.jboss.tools.flow.jpdl4.editpart.ProcessTreeRootEditPart">
+ </instanceof>
+ <instanceof
+
value="org.jboss.tools.flow.jpdl4.editpart.TimerListTreeEditPart">
+ </instanceof>
+ </or>
+ </iterate>
+ </visibleWhen>
+ </command>
+ <command
+ commandId="org.jboss.tools.flow.jpdl4.addInputParameter"
+ icon="icons/16/input.gif"
+ id="org.jboss.tools.flow.jpdl4.addInputParameter"
+ style="push">
+ <visibleWhen
+ checkEnabled="true">
+ <iterate>
+ <or>
+ <instanceof
+
value="org.jboss.tools.flow.jpdl4.editpart.SubprocessTaskTreeRootEditPart">
+ </instanceof>
+ <instanceof
+
value="org.jboss.tools.flow.jpdl4.editpart.InputParameterListTreeEditPart">
+ </instanceof>
+ </or>
+ </iterate>
+ </visibleWhen>
+ </command>
+ <command
+ commandId="org.jboss.tools.flow.jpdl4.addOutputParameter"
+ icon="icons/16/output.gif"
+ id="org.jboss.tools.flow.jpdl4.addOutputParameter"
+ style="push">
+ <visibleWhen
+ checkEnabled="true">
+ <iterate>
+ <or>
+ <instanceof
+
value="org.jboss.tools.flow.jpdl4.editpart.SubprocessTaskTreeRootEditPart">
+ </instanceof>
+ <instanceof
+
value="org.jboss.tools.flow.jpdl4.editpart.OutputParameterListTreeEditPart">
+ </instanceof>
+ </or>
+ </iterate>
+ </visibleWhen>
+ </command>
+ <command
+ commandId="org.jboss.tools.flow.jpdl4.addArgument"
+ icon="icons/16/argument.gif"
+ id="org.jboss.tools.flow.jpdl4.addArgument"
+ style="push">
+ <visibleWhen
+ checkEnabled="true">
+ <iterate>
+ <or>
+ <instanceof
+
value="org.jboss.tools.flow.jpdl4.editpart.JavaTaskTreeRootEditPart">
+ </instanceof>
+ <instanceof
+
value="org.jboss.tools.flow.jpdl4.editpart.ArgumentListTreeEditPart">
+ </instanceof>
+ </or>
+ </iterate>
+ </visibleWhen>
+ </command>
+ <command
+ commandId="org.jboss.tools.flow.jpdl4.addParameter"
+ icon="icons/16/argument.gif"
+ id="org.jboss.tools.flow.jpdl4.addParameter"
+ style="push">
+ <visibleWhen
+ checkEnabled="true">
+ <iterate>
+ <or>
+ <instanceof
+
value="org.jboss.tools.flow.jpdl4.editpart.QueryTaskTreeRootEditPart">
+ </instanceof>
+ <instanceof
+
value="org.jboss.tools.flow.jpdl4.editpart.ParameterListTreeEditPart">
+ </instanceof>
+ </or>
+ </iterate>
+ </visibleWhen>
+ </command>
+ <command
+ commandId="org.jboss.tools.flow.jpdl4.addField"
+ icon="icons/16/field.gif"
+ id="org.jboss.tools.flow.jpdl4.addField"
+ style="push">
+ <visibleWhen
+ checkEnabled="true">
+ <iterate>
+ <or>
+ <instanceof
+
value="org.jboss.tools.flow.jpdl4.editpart.JavaTaskTreeRootEditPart">
+ </instanceof>
+ <instanceof
+
value="org.jboss.tools.flow.jpdl4.editpart.FieldListTreeEditPart">
+ </instanceof>
+ </or>
+ </iterate>
+ </visibleWhen>
+ </command>
+ <separator
+ name="org.jboss.tools.flow.jpdl4.details.separator1"
+ visible="true">
+ </separator>
+ <command
+ commandId="org.jboss.tools.flow.jpdl4.delete"
+ icon="icons/16/delete.gif"
+ id="org.jboss.tools.flow.jpdl4.details.delete"
+ style="push">
+ <visibleWhen
+ checkEnabled="true">
+ <iterate>
+ <instanceof
+
value="org.jboss.tools.flow.jpdl4.editpart.ElementTreeEditPart">
+ </instanceof>
+ </iterate>
+ </visibleWhen>
+ </command>
+ </menuContribution>
+ </extension>
+
+ <extension
+ point="org.eclipse.ui.preferencePages">
+ <page class="org.jboss.tools.jbpm.preferences.DefaultPage"
+ id="org.jboss.tools.flow.jpdl4"
+ name="jBPM 4"
+ category="org.jboss.tools.jbpm"/>
+ <page
+ class="org.jboss.tools.flow.jpdl4.preferences.Jbpm4LocationsPage"
+ id="org.jboss.tools.flow.jpdl4.locations"
+ name="Runtime Locations"
+ category="org.jboss.tools.flow.jpdl4"/>
+ </extension>
+ <extension
+ point="org.eclipse.ui.perspectiveExtensions">
+ <perspectiveExtension
+ targetID="org.eclipse.jdt.ui.JavaPerspective">
+ <viewShortcut
+ id="org.eclipse.ui.views.PropertySheet">
+ </viewShortcut>
+ <view
+ id="org.eclipse.ui.views.PropertySheet"
+ minimized="false"
+ relationship="stack"
+ relative="org.eclipse.ui.views.ProblemView"
+ visible="false">
+ </view>
+ <viewShortcut
+ id="org.jboss.tools.flow.jpdl4.details">
+ </viewShortcut>
+ <view
+ id="org.jboss.tools.flow.jpdl4.details"
+ minimized="false"
+ relationship="stack"
+ relative="org.eclipse.mylyn.tasks.ui.views.tasks"
+ visible="false">
+ </view>
+ <view
+ id="org.jboss.tools.flow.jpdl4.details"
+ minimized="false"
+ ratio="0.5"
+ relationship="top"
+ relative="org.eclipse.ui.views.ContentOutline"
+ visible="false">
+ </view>
+ <newWizardShortcut
+ id="org.jboss.tools.flow.jpdl4.file">
+ </newWizardShortcut>
+ </perspectiveExtension>
+ <perspectiveExtension
+ targetID="org.eclipse.jst.j2ee.J2EEPerspective">
+ <viewShortcut
+ id="org.jboss.tools.flow.jpdl4.details">
+ </viewShortcut>
+ <view
+ id="org.jboss.tools.flow.jpdl4.details"
+ minimized="false"
+ ratio="0.5"
+ relationship="top"
+ relative="org.eclipse.ui.views.ContentOutline"
+ visible="false">
+ </view>
+ <newWizardShortcut
+ id="org.jboss.tools.flow.jpdl4.file">
+ </newWizardShortcut>
+ </perspectiveExtension>
+ </extension>
+<!-- <extension
+ point="org.eclipse.ui.popupMenus">
+ <objectContribution
+ objectClass="org.eclipse.core.resources.IProject"
+ adaptable="true"
+ id="org.jboss.tools.flow.jpdl4.projectSetup">
+ <action
+ class="org.jboss.tools.flow.jpdl4.actions.SetupJpdl4ProjectAction"
+ label="Add jPDL 4 Support..."
+ menubarPath="org.eclipse.ui.projectConfigure/additions"
+ enablesFor="+"
+ id="org.jboss.tools.flow.jpdl4.actions.SetupJpdl4ProjectAction">
+ </action>
+ </objectContribution>
+ </extension> -->
+
+</plugin>
Deleted:
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/editor/JpdlEditor.java
===================================================================
---
trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/editor/JpdlEditor.java 2009-07-02
15:15:08 UTC (rev 16344)
+++
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/editor/JpdlEditor.java 2009-11-11
20:54:30 UTC (rev 18625)
@@ -1,185 +0,0 @@
-package org.jboss.tools.flow.jpdl4.editor;
-
-import java.io.IOException;
-import java.io.InputStream;
-import java.io.OutputStream;
-
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.draw2d.IFigure;
-import org.eclipse.draw2d.SWTGraphics;
-import org.eclipse.draw2d.geometry.Rectangle;
-import org.eclipse.gef.DefaultEditDomain;
-import org.eclipse.gef.LayerConstants;
-import org.eclipse.gef.commands.CommandStack;
-import org.eclipse.gef.editparts.LayerManager;
-import org.eclipse.gef.palette.PaletteRoot;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.graphics.GC;
-import org.eclipse.swt.graphics.Image;
-import org.eclipse.swt.graphics.ImageData;
-import org.eclipse.swt.graphics.ImageLoader;
-import org.eclipse.swt.widgets.Display;
-import org.eclipse.ui.part.FileEditorInput;
-import org.eclipse.ui.views.properties.IPropertySheetPage;
-import org.eclipse.ui.views.properties.tabbed.ITabbedPropertySheetPageContributor;
-import org.jboss.tools.flow.common.editor.GenericModelEditor;
-import org.jboss.tools.flow.common.registry.ElementRegistry;
-import org.jboss.tools.flow.common.wrapper.Wrapper;
-import org.jboss.tools.flow.jpdl4.editpart.JpdlGraphicalEditPartFactory;
-import org.jboss.tools.flow.jpdl4.io.JpdlDeserializer;
-import org.jboss.tools.flow.jpdl4.io.JpdlSerializer;
-import org.jboss.tools.flow.jpdl4.properties.JpdlPropertySheetPage;
-import org.jboss.tools.flow.jpdl4.view.DetailsPage;
-import org.jboss.tools.flow.jpdl4.view.IDetailsPage;
-
-public class JpdlEditor extends GenericModelEditor implements
ITabbedPropertySheetPageContributor {
-
- public static String ID = "org.jboss.tools.flow.jpdl4.editor";
-
- private DetailsPage detailsPage;
- private JpdlPropertySheetPage propertySheetPage;
-
- public void doSave(IProgressMonitor monitor) {
- super.doSave(monitor);
- writeImage();
- }
-
- public void doSaveAs() {
- super.doSaveAs();
- writeImage();
- }
-
- protected PaletteRoot createPalette() {
- return new JpdlPaletteFactory().createPalette();
- }
-
- protected org.eclipse.gef.EditPartFactory createEditPartFactory() {
- return new JpdlGraphicalEditPartFactory();
- }
-
- protected Object createModel() {
- return
ElementRegistry.createWrapper("org.jboss.tools.flow.jpdl4.process");
- }
-
- protected void writeModel(OutputStream os) throws IOException {
- Object object = getModel();
- if (object instanceof Wrapper) {
- JpdlSerializer.serialize((Wrapper)object, os);
- }
- }
-
- protected void writeImage() {
- // TODO repair doSave method
- SWTGraphics g = null;
- GC gc = null;
- Image image = null;
-
- LayerManager lm =
(LayerManager)getGraphicalViewer().getEditPartRegistry().get(LayerManager.ID);
- IFigure figure = lm.getLayer(LayerConstants.PRINTABLE_LAYERS);
-
- try {
-
- Rectangle r = figure.getBounds();
- image = new Image(Display.getDefault(), r.width, r.height);
- gc = new GC(image);
- g = new SWTGraphics(gc);
- g.translate(r.x * -1, r.y * -1);
- figure.paint(g);
- ImageLoader imageLoader = new ImageLoader();
- imageLoader.data = new ImageData[] {image.getImageData()};
- imageLoader.save(getImageSavePath(), SWT.IMAGE_JPEG);
- refreshProcessFolder();
-
- } finally {
- if (g != null) {
- g.dispose();
- }
- if (gc != null) {
- gc.dispose();
- }
- if (image != null) {
- image.dispose();
- }
- }
- }
-
- private String getImageSavePath() {
- IFile file = getFile();
- IPath path = file.getRawLocation();
- if ("xml".equals(path.getFileExtension())) path =
path.removeFileExtension();
- if ("jpdl".equals(path.getFileExtension())) path =
path.removeFileExtension();
- path = path.addFileExtension("png");
- return path.toOSString();
- }
-
- private void refreshProcessFolder() {
- try {
- IFile file = ((FileEditorInput)getEditorInput()).getFile();
- file.getParent().refreshLocal(1, null);
- } catch (CoreException e) {
- e.printStackTrace();
- }
- }
-
- protected void createModel(InputStream is) {
- boolean empty = true;
- try {
- empty = is.available() == 0;
- } catch (IOException e) {
- // ignored
- }
- setModel(empty ? createModel() : JpdlDeserializer.deserialize(is));
- }
-
-// public SelectionSynchronizer getSelectionSynchronizer() {
-// if (selectionSynchronizer == null) {
-// selectionSynchronizer = new JpdlSelectionSynchronizer();
-// selectionSynchronizer.addViewer(getGraphicalViewer());
-// }
-// return selectionSynchronizer;
-// }
-
- public String getContributorId() {
- return getSite().getId();
- }
-
-// public CommandStack getCommandStack() {
-// return super.getCommandStack();
-// }
-
- public DefaultEditDomain getEditDomain() {
- return super.getEditDomain();
- }
-
- protected DetailsPage getDetailsPage() {
- if (detailsPage == null) {
- initDetailsPage();
- }
- return detailsPage;
- }
-
- protected void initDetailsPage() {
- detailsPage = new DetailsPage(this);
- getSite().getSelectionProvider().addSelectionChangedListener(detailsPage);
- }
-
- private JpdlPropertySheetPage getPropertySheetPage() {
- if (propertySheetPage == null) {
- propertySheetPage = new JpdlPropertySheetPage(this, getCommandStack());
- }
- return propertySheetPage;
- }
-
- @SuppressWarnings("unchecked")
- public Object getAdapter(Class adapter) {
- if (adapter == IPropertySheetPage.class)
- return getPropertySheetPage();
- else if (adapter == IDetailsPage.class)
- return getDetailsPage();
- return super.getAdapter(adapter);
- }
-
-}
Copied:
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/editor/JpdlEditor.java
(from rev 16875,
trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/editor/JpdlEditor.java)
===================================================================
---
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/editor/JpdlEditor.java
(rev 0)
+++
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/editor/JpdlEditor.java 2009-11-11
20:54:30 UTC (rev 18625)
@@ -0,0 +1,210 @@
+package org.jboss.tools.flow.jpdl4.editor;
+
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.OutputStream;
+
+import org.eclipse.core.resources.IFile;
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.IPath;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.SWTGraphics;
+import org.eclipse.draw2d.geometry.Rectangle;
+import org.eclipse.gef.DefaultEditDomain;
+import org.eclipse.gef.LayerConstants;
+import org.eclipse.gef.editparts.LayerManager;
+import org.eclipse.gef.palette.PaletteRoot;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.graphics.GC;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.swt.graphics.ImageData;
+import org.eclipse.swt.graphics.ImageLoader;
+import org.eclipse.swt.widgets.Display;
+import org.eclipse.ui.IEditorInput;
+import org.eclipse.ui.IEditorSite;
+import org.eclipse.ui.IWorkbench;
+import org.eclipse.ui.IWorkbenchPage;
+import org.eclipse.ui.IWorkbenchWindow;
+import org.eclipse.ui.PartInitException;
+import org.eclipse.ui.PlatformUI;
+import org.eclipse.ui.part.FileEditorInput;
+import org.eclipse.ui.views.properties.IPropertySheetPage;
+import org.eclipse.ui.views.properties.tabbed.ITabbedPropertySheetPageContributor;
+import org.jboss.tools.flow.common.editor.GenericModelEditor;
+import org.jboss.tools.flow.common.registry.ElementRegistry;
+import org.jboss.tools.flow.common.wrapper.Wrapper;
+import org.jboss.tools.flow.jpdl4.editpart.JpdlGraphicalEditPartFactory;
+import org.jboss.tools.flow.jpdl4.io.JpdlDeserializer;
+import org.jboss.tools.flow.jpdl4.io.JpdlSerializer;
+import org.jboss.tools.flow.jpdl4.properties.JpdlPropertySheetPage;
+import org.jboss.tools.flow.jpdl4.view.DetailsPage;
+import org.jboss.tools.flow.jpdl4.view.IDetailsPage;
+
+public class JpdlEditor extends GenericModelEditor implements
+ ITabbedPropertySheetPageContributor {
+
+ public static String ID = "org.jboss.tools.flow.jpdl4.editor";
+
+ private DetailsPage detailsPage;
+ private JpdlPropertySheetPage propertySheetPage;
+
+ public void doSave(IProgressMonitor monitor) {
+ super.doSave(monitor);
+ writeImage();
+ }
+
+ public void doSaveAs() {
+ super.doSaveAs();
+ writeImage();
+ }
+
+ protected PaletteRoot createPalette() {
+ return new JpdlPaletteFactory().createPalette();
+ }
+
+ protected org.eclipse.gef.EditPartFactory createEditPartFactory() {
+ return new JpdlGraphicalEditPartFactory();
+ }
+
+ protected Object createModel() {
+ return ElementRegistry
+ .createWrapper("org.jboss.tools.flow.jpdl4.process");
+ }
+
+ protected void writeModel(OutputStream os) throws IOException {
+ Object object = getModel();
+ if (object instanceof Wrapper) {
+ JpdlSerializer.serialize((Wrapper) object, os);
+ }
+ }
+
+ protected void writeImage() {
+ // TODO repair doSave method
+ SWTGraphics g = null;
+ GC gc = null;
+ Image image = null;
+
+ LayerManager lm = (LayerManager) getGraphicalViewer()
+ .getEditPartRegistry().get(LayerManager.ID);
+ IFigure figure = lm.getLayer(LayerConstants.PRINTABLE_LAYERS);
+
+ try {
+
+ Rectangle r = figure.getBounds();
+ image = new Image(Display.getDefault(), r.width, r.height);
+ gc = new GC(image);
+ g = new SWTGraphics(gc);
+ g.translate(r.x * -1, r.y * -1);
+ figure.paint(g);
+ ImageLoader imageLoader = new ImageLoader();
+ imageLoader.data = new ImageData[] { image.getImageData() };
+ imageLoader.save(getImageSavePath(), SWT.IMAGE_PNG);
+ refreshProcessFolder();
+
+ } finally {
+ if (g != null) {
+ g.dispose();
+ }
+ if (gc != null) {
+ gc.dispose();
+ }
+ if (image != null) {
+ image.dispose();
+ }
+ }
+ }
+
+ public void init(IEditorSite site, IEditorInput input)
+ throws PartInitException {
+ super.init(site, input);
+ IWorkbenchPage workbenchPage = getActivePage();
+ if (workbenchPage != null) {
+ if (workbenchPage.findView("org.eclipse.ui.views.PropertySheet") == null) {
+ workbenchPage.showView("org.eclipse.ui.views.PropertySheet");
+ }
+ if (workbenchPage.findView("org.jboss.tools.flow.jpdl4.details") == null) {
+ workbenchPage.showView("org.jboss.tools.flow.jpdl4.details");
+ }
+ }
+ }
+
+ private IWorkbenchPage getActivePage() {
+ IWorkbenchWindow workbenchWindow = getActiveWorkbenchWindow();
+ return workbenchWindow == null ? null : workbenchWindow.getActivePage();
+ }
+
+ private IWorkbenchWindow getActiveWorkbenchWindow() {
+ IWorkbench workbench = PlatformUI.getWorkbench();
+ return workbench == null ? null : workbench.getActiveWorkbenchWindow();
+ }
+
+ private String getImageSavePath() {
+ IFile file = getFile();
+ IPath path = file.getRawLocation();
+ if ("xml".equals(path.getFileExtension()))
+ path = path.removeFileExtension();
+ if ("jpdl".equals(path.getFileExtension()))
+ path = path.removeFileExtension();
+ path = path.addFileExtension("png");
+ return path.toOSString();
+ }
+
+ private void refreshProcessFolder() {
+ try {
+ IFile file = ((FileEditorInput) getEditorInput()).getFile();
+ file.getParent().refreshLocal(1, null);
+ } catch (CoreException e) {
+ e.printStackTrace();
+ }
+ }
+
+ protected void createModel(InputStream is) {
+ boolean empty = true;
+ try {
+ empty = is.available() == 0;
+ } catch (IOException e) {
+ // ignored
+ }
+ setModel(empty ? createModel() : JpdlDeserializer.deserialize(is));
+ }
+
+ public String getContributorId() {
+ return getSite().getId();
+ }
+
+ public DefaultEditDomain getEditDomain() {
+ return super.getEditDomain();
+ }
+
+ protected DetailsPage getDetailsPage() {
+ if (detailsPage == null) {
+ initDetailsPage();
+ }
+ return detailsPage;
+ }
+
+ protected void initDetailsPage() {
+ detailsPage = new DetailsPage(this);
+ getSite().getSelectionProvider().addSelectionChangedListener(
+ detailsPage);
+ }
+
+ private JpdlPropertySheetPage getPropertySheetPage() {
+ if (propertySheetPage == null) {
+ propertySheetPage = new JpdlPropertySheetPage(this,
+ getCommandStack());
+ }
+ return propertySheetPage;
+ }
+
+ @SuppressWarnings("unchecked")
+ public Object getAdapter(Class adapter) {
+ if (adapter == IPropertySheetPage.class)
+ return getPropertySheetPage();
+ else if (adapter == IDetailsPage.class)
+ return getDetailsPage();
+ return super.getAdapter(adapter);
+ }
+
+}
Deleted:
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/editpart/HqlTaskTreeRootEditPart.java
===================================================================
---
trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/editpart/HqlTaskTreeRootEditPart.java 2009-07-02
15:15:08 UTC (rev 16344)
+++
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/editpart/HqlTaskTreeRootEditPart.java 2009-11-11
20:54:30 UTC (rev 18625)
@@ -1,30 +0,0 @@
-package org.jboss.tools.flow.jpdl4.editpart;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.jboss.tools.flow.common.model.Element;
-import org.jboss.tools.flow.common.wrapper.Wrapper;
-import org.jboss.tools.flow.jpdl4.model.HqlTask;
-
-public class HqlTaskTreeRootEditPart extends TaskTreeRootEditPart {
-
- public HqlTaskTreeRootEditPart(Wrapper wrapper) {
- super(wrapper);
- }
-
- protected List<Object> getModelChildren() {
- List<Object> result = new ArrayList<Object>();
- addParameters(result, (Wrapper)getModel());
- result.addAll(super.getModelChildren());
- return result;
- }
-
- private void addParameters(List<Object> list, Wrapper wrapper) {
- List<Element> parameters = wrapper.getChildren(HqlTask.PARAMETERS);
- if (parameters != null && !parameters.isEmpty()) {
- list.add(new ParameterListTreeEditPart(parameters));
- }
- }
-
-}
Deleted:
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/editpart/JpdlTreeEditPartFactory.java
===================================================================
---
trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/editpart/JpdlTreeEditPartFactory.java 2009-07-02
15:15:08 UTC (rev 16344)
+++
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/editpart/JpdlTreeEditPartFactory.java 2009-11-11
20:54:30 UTC (rev 18625)
@@ -1,57 +0,0 @@
-package org.jboss.tools.flow.jpdl4.editpart;
-
-import org.eclipse.gef.EditPart;
-import org.eclipse.gef.EditPartFactory;
-import org.jboss.tools.flow.common.model.Element;
-import org.jboss.tools.flow.common.wrapper.ConnectionWrapper;
-import org.jboss.tools.flow.common.wrapper.FlowWrapper;
-import org.jboss.tools.flow.common.wrapper.NodeWrapper;
-import org.jboss.tools.flow.common.wrapper.Wrapper;
-import org.jboss.tools.flow.jpdl4.model.Argument;
-import org.jboss.tools.flow.jpdl4.model.EventListener;
-import org.jboss.tools.flow.jpdl4.model.EventListenerContainer;
-import org.jboss.tools.flow.jpdl4.model.Field;
-import org.jboss.tools.flow.jpdl4.model.HqlTask;
-import org.jboss.tools.flow.jpdl4.model.JavaTask;
-import org.jboss.tools.flow.jpdl4.model.Parameter;
-import org.jboss.tools.flow.jpdl4.model.SubprocessTask;
-import org.jboss.tools.flow.jpdl4.model.Swimlane;
-import org.jboss.tools.flow.jpdl4.model.Timer;
-import org.jboss.tools.flow.jpdl4.model.WireObject;
-
-public class JpdlTreeEditPartFactory implements EditPartFactory {
-
- public EditPart createEditPart(EditPart context, Object model) {
- if (model instanceof FlowWrapper && context == null) return new
ProcessTreeRootEditPart((FlowWrapper)model);
- if (model instanceof NodeWrapper && context == null) {
- Element element = ((NodeWrapper)model).getElement();
- if (element instanceof SubprocessTask) return new
SubprocessTaskTreeRootEditPart((Wrapper)model);
- if (element instanceof JavaTask) return new JavaTaskTreeRootEditPart((Wrapper)model);
- if (element instanceof HqlTask) return new HqlTaskTreeRootEditPart((Wrapper)model);
- return new TaskTreeRootEditPart((NodeWrapper)model);
- }
- if (model instanceof ConnectionWrapper && context == null) return new
SequenceFlowTreeRootEditPart((ConnectionWrapper)model);
- if (model instanceof Wrapper) {
- Element element = ((Wrapper)model).getElement();
- if (element instanceof Swimlane) return new SwimlaneTreeEditPart((Wrapper)model);
- if (element instanceof Parameter) return new ParameterTreeEditPart((Wrapper)model);
- if (element instanceof Argument) return new ArgumentTreeEditPart((Wrapper)model);
- if (element instanceof Field) return new FieldTreeEditPart((Wrapper)model);
- if (element instanceof EventListenerContainer) return new
EventListenerListTreeEditPart((Wrapper)model);
- if (element instanceof EventListener) return new
EventListenerTreeEditPart((Wrapper)model);
- if (element instanceof Timer) return new TimerTreeEditPart((Wrapper)model);
- if (element instanceof WireObject) return new WireObjectTreeEditPart((Wrapper)model);
- return new NoDetailsTreeRootEditPart();
- }
- if (model instanceof SwimlaneListTreeEditPart) return (EditPart)model;
- if (model instanceof InputParameterListTreeEditPart) return (EditPart)model;
- if (model instanceof OutputParameterListTreeEditPart) return (EditPart)model;
- if (model instanceof ArgumentListTreeEditPart) return (EditPart)model;
- if (model instanceof FieldListTreeEditPart) return (EditPart)model;
- if (model instanceof TimerListTreeEditPart) return (EditPart)model;
- if (model instanceof ListenerListTreeEditPart) return (EditPart)model;
- if (model instanceof ParameterListTreeEditPart) return (EditPart)model;
- return new NoDetailsTreeRootEditPart();
- }
-
-}
Copied:
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/editpart/JpdlTreeEditPartFactory.java
(from rev 16386,
trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/editpart/JpdlTreeEditPartFactory.java)
===================================================================
---
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/editpart/JpdlTreeEditPartFactory.java
(rev 0)
+++
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/editpart/JpdlTreeEditPartFactory.java 2009-11-11
20:54:30 UTC (rev 18625)
@@ -0,0 +1,57 @@
+package org.jboss.tools.flow.jpdl4.editpart;
+
+import org.eclipse.gef.EditPart;
+import org.eclipse.gef.EditPartFactory;
+import org.jboss.tools.flow.common.model.Element;
+import org.jboss.tools.flow.common.wrapper.ConnectionWrapper;
+import org.jboss.tools.flow.common.wrapper.FlowWrapper;
+import org.jboss.tools.flow.common.wrapper.NodeWrapper;
+import org.jboss.tools.flow.common.wrapper.Wrapper;
+import org.jboss.tools.flow.jpdl4.model.Argument;
+import org.jboss.tools.flow.jpdl4.model.EventListener;
+import org.jboss.tools.flow.jpdl4.model.EventListenerContainer;
+import org.jboss.tools.flow.jpdl4.model.Field;
+import org.jboss.tools.flow.jpdl4.model.JavaTask;
+import org.jboss.tools.flow.jpdl4.model.Parameter;
+import org.jboss.tools.flow.jpdl4.model.PrimitiveObject;
+import org.jboss.tools.flow.jpdl4.model.QueryTask;
+import org.jboss.tools.flow.jpdl4.model.SubprocessTask;
+import org.jboss.tools.flow.jpdl4.model.Swimlane;
+import org.jboss.tools.flow.jpdl4.model.Timer;
+
+public class JpdlTreeEditPartFactory implements EditPartFactory {
+
+ public EditPart createEditPart(EditPart context, Object model) {
+ if (model instanceof FlowWrapper && context == null) return new
ProcessTreeRootEditPart((FlowWrapper)model);
+ if (model instanceof NodeWrapper && context == null) {
+ Element element = ((NodeWrapper)model).getElement();
+ if (element instanceof SubprocessTask) return new
SubprocessTaskTreeRootEditPart((Wrapper)model);
+ if (element instanceof JavaTask) return new JavaTaskTreeRootEditPart((Wrapper)model);
+ if (element instanceof QueryTask) return new
QueryTaskTreeRootEditPart((Wrapper)model);
+ return new TaskTreeRootEditPart((NodeWrapper)model);
+ }
+ if (model instanceof ConnectionWrapper && context == null) return new
SequenceFlowTreeRootEditPart((ConnectionWrapper)model);
+ if (model instanceof Wrapper) {
+ Element element = ((Wrapper)model).getElement();
+ if (element instanceof Swimlane) return new SwimlaneTreeEditPart((Wrapper)model);
+ if (element instanceof Parameter) return new ParameterTreeEditPart((Wrapper)model);
+ if (element instanceof Argument) return new ArgumentTreeEditPart((Wrapper)model);
+ if (element instanceof Field) return new FieldTreeEditPart((Wrapper)model);
+ if (element instanceof EventListenerContainer) return new
EventListenerListTreeEditPart((Wrapper)model);
+ if (element instanceof EventListener) return new
EventListenerTreeEditPart((Wrapper)model);
+ if (element instanceof Timer) return new TimerTreeEditPart((Wrapper)model);
+ if (element instanceof PrimitiveObject) return new
PrimitiveObjectTreeEditPart((Wrapper)model);
+ return new NoDetailsTreeRootEditPart();
+ }
+ if (model instanceof SwimlaneListTreeEditPart) return (EditPart)model;
+ if (model instanceof InputParameterListTreeEditPart) return (EditPart)model;
+ if (model instanceof OutputParameterListTreeEditPart) return (EditPart)model;
+ if (model instanceof ArgumentListTreeEditPart) return (EditPart)model;
+ if (model instanceof FieldListTreeEditPart) return (EditPart)model;
+ if (model instanceof TimerListTreeEditPart) return (EditPart)model;
+ if (model instanceof ListenerListTreeEditPart) return (EditPart)model;
+ if (model instanceof ParameterListTreeEditPart) return (EditPart)model;
+ return new NoDetailsTreeRootEditPart();
+ }
+
+}
Copied:
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/editpart/PrimitiveObjectTreeEditPart.java
(from rev 16383,
trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/editpart/PrimitiveObjectTreeEditPart.java)
===================================================================
---
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/editpart/PrimitiveObjectTreeEditPart.java
(rev 0)
+++
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/editpart/PrimitiveObjectTreeEditPart.java 2009-11-11
20:54:30 UTC (rev 18625)
@@ -0,0 +1,44 @@
+package org.jboss.tools.flow.jpdl4.editpart;
+
+import org.eclipse.core.runtime.Platform;
+import org.eclipse.jface.resource.ImageDescriptor;
+import org.eclipse.swt.graphics.Image;
+import org.jboss.tools.flow.common.wrapper.ModelEvent;
+import org.jboss.tools.flow.common.wrapper.Wrapper;
+import org.jboss.tools.flow.jpdl4.model.PrimitiveObject;
+import org.jboss.tools.flow.jpdl4.util.SharedImages;
+
+public class PrimitiveObjectTreeEditPart extends JpdlTreeEditPart implements
ElementTreeEditPart {
+
+ public PrimitiveObjectTreeEditPart(Wrapper wrapper) {
+ super(wrapper);
+ }
+
+ protected Image getImage() {
+ String iconPath = "icons/16/argument.gif";
+ ImageDescriptor descriptor = ImageDescriptor.createFromURL(
+ Platform.getBundle("org.jboss.tools.flow.jpdl4").getEntry(iconPath));
+ return SharedImages.INSTANCE.getImage(descriptor);
+ }
+
+ protected String getText() {
+ String value = (String)((Wrapper)getModel()).getPropertyValue(PrimitiveObject.VALUE);
+ return (value != null && !("".equals(value))) ? value.trim() :
"object";
+ }
+
+ public void modelChanged(ModelEvent event) {
+ if (event.getChangeType() == Wrapper.CHANGE_PROPERTY) {
+ refreshVisuals();
+ }
+ }
+
+ public void activate() {
+ super.activate();
+ ((Wrapper)getModel()).addListener(this);
+ }
+
+ public void deactivate() {
+ ((Wrapper)getModel()).removeListener(this);
+ super.deactivate();
+ }
+}
Copied:
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/editpart/QueryTaskTreeRootEditPart.java
(from rev 16386,
trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/editpart/QueryTaskTreeRootEditPart.java)
===================================================================
---
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/editpart/QueryTaskTreeRootEditPart.java
(rev 0)
+++
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/editpart/QueryTaskTreeRootEditPart.java 2009-11-11
20:54:30 UTC (rev 18625)
@@ -0,0 +1,30 @@
+package org.jboss.tools.flow.jpdl4.editpart;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.jboss.tools.flow.common.model.Element;
+import org.jboss.tools.flow.common.wrapper.Wrapper;
+import org.jboss.tools.flow.jpdl4.model.QueryTask;
+
+public class QueryTaskTreeRootEditPart extends TaskTreeRootEditPart {
+
+ public QueryTaskTreeRootEditPart(Wrapper wrapper) {
+ super(wrapper);
+ }
+
+ protected List<Object> getModelChildren() {
+ List<Object> result = new ArrayList<Object>();
+ addParameters(result, (Wrapper)getModel());
+ result.addAll(super.getModelChildren());
+ return result;
+ }
+
+ private void addParameters(List<Object> list, Wrapper wrapper) {
+ List<Element> parameters = wrapper.getChildren(QueryTask.PARAMETERS);
+ if (parameters != null && !parameters.isEmpty()) {
+ list.add(new ParameterListTreeEditPart(parameters));
+ }
+ }
+
+}
Deleted:
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/editpart/WireObjectTreeEditPart.java
===================================================================
---
trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/editpart/WireObjectTreeEditPart.java 2009-07-02
15:15:08 UTC (rev 16344)
+++
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/editpart/WireObjectTreeEditPart.java 2009-11-11
20:54:30 UTC (rev 18625)
@@ -1,42 +0,0 @@
-package org.jboss.tools.flow.jpdl4.editpart;
-
-import org.eclipse.core.runtime.Platform;
-import org.eclipse.jface.resource.ImageDescriptor;
-import org.eclipse.swt.graphics.Image;
-import org.jboss.tools.flow.common.wrapper.ModelEvent;
-import org.jboss.tools.flow.common.wrapper.Wrapper;
-import org.jboss.tools.flow.jpdl4.util.SharedImages;
-
-public class WireObjectTreeEditPart extends JpdlTreeEditPart implements
ElementTreeEditPart {
-
- public WireObjectTreeEditPart(Wrapper wrapper) {
- super(wrapper);
- }
-
- protected Image getImage() {
- String iconPath = "icons/16/argument.gif";
- ImageDescriptor descriptor = ImageDescriptor.createFromURL(
- Platform.getBundle("org.jboss.tools.flow.jpdl4").getEntry(iconPath));
- return SharedImages.INSTANCE.getImage(descriptor);
- }
-
- protected String getText() {
- return "WireObject";
- }
-
- public void modelChanged(ModelEvent event) {
- if (event.getChangeType() == Wrapper.CHANGE_PROPERTY) {
- refreshVisuals();
- }
- }
-
- public void activate() {
- super.activate();
- ((Wrapper)getModel()).addListener(this);
- }
-
- public void deactivate() {
- ((Wrapper)getModel()).removeListener(this);
- super.deactivate();
- }
-}
Deleted:
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/handler/AddParameterHandler.java
===================================================================
---
trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/handler/AddParameterHandler.java 2009-07-02
15:15:08 UTC (rev 16344)
+++
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/handler/AddParameterHandler.java 2009-11-11
20:54:30 UTC (rev 18625)
@@ -1,17 +0,0 @@
-package org.jboss.tools.flow.jpdl4.handler;
-
-import org.jboss.tools.flow.jpdl4.model.HqlTask;
-
-public class AddParameterHandler extends AddChildHandler {
-
- @Override
- protected String getChildId() {
- return "org.jboss.tools.flow.jpdl4.wireObject";
- }
-
- @Override
- protected String getChildType() {
- return HqlTask.PARAMETERS;
- }
-
-}
Copied:
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/handler/AddParameterHandler.java
(from rev 16489,
trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/handler/AddParameterHandler.java)
===================================================================
---
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/handler/AddParameterHandler.java
(rev 0)
+++
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/handler/AddParameterHandler.java 2009-11-11
20:54:30 UTC (rev 18625)
@@ -0,0 +1,17 @@
+package org.jboss.tools.flow.jpdl4.handler;
+
+import org.jboss.tools.flow.jpdl4.model.QueryTask;
+
+public class AddParameterHandler extends AddChildHandler {
+
+ @Override
+ protected String getChildId() {
+ return "org.jboss.tools.flow.jpdl4.primitive";
+ }
+
+ @Override
+ protected String getChildType() {
+ return QueryTask.PARAMETERS;
+ }
+
+}
Copied: tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/io
(from rev 16796,
trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/io)
Deleted:
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/io/AbstractElementDeserializer.java
===================================================================
---
trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/io/AbstractElementDeserializer.java 2009-07-27
07:12:00 UTC (rev 16796)
+++
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/io/AbstractElementDeserializer.java 2009-11-11
20:54:30 UTC (rev 18625)
@@ -1,71 +0,0 @@
-package org.jboss.tools.flow.jpdl4.io;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.jboss.tools.flow.common.wrapper.Wrapper;
-import org.jboss.tools.flow.jpdl4.Logger;
-import org.w3c.dom.Element;
-import org.w3c.dom.Node;
-import org.w3c.dom.NodeList;
-
-public abstract class AbstractElementDeserializer implements ElementDeserializer {
-
- protected Wrapper deserializeChildNode(Wrapper parent, Node node) {
- return null;
- }
-
- public void deserializeChildNodes(Wrapper wrapper,
- Element element) {
- if (wrapper == null) return;
- NodeList nodeList = element.getChildNodes();
- ArrayList<Node> unknownNodeList = new ArrayList<Node>();
- for (int i = 0; i < nodeList.getLength(); i++) {
- deserializeChildNode(wrapper, nodeList.item(i), unknownNodeList);
- }
- wrapper.getElement().setMetaData("trailingNodes", unknownNodeList);
- }
-
- protected void deserializeChildNode(Wrapper parent, Node node, List<Node>
unknownNodeList) {
- Wrapper childWrapper = deserializeChildNode(parent, node);
- if (childWrapper != null) {
- childWrapper.getElement().setMetaData("leadingNodes", new
ArrayList<Node>(unknownNodeList));
- unknownNodeList.clear();
- } else {
- unknownNodeList.add(node);
- }
-
- }
-
- protected List<String> getAttributesToRead() {
- return new ArrayList<String>();
- }
-
- protected String getXmlName(String attributeName) {
- return null;
- }
-
- public void deserializeAttributes(Wrapper wrapper, Element element) {
- wrapper.getElement().setMetaData("attributes", element.getAttributes());
- List<String> attributeNames = getAttributesToRead();
- for (String attributeName : attributeNames) {
- String xmlName = getXmlName(attributeName);
- if (xmlName == null) continue;
- String attribute = element.getAttribute(xmlName);
- if (!"".equals(attribute) && attribute != null) {
- wrapper.setPropertyValue(attributeName, attribute);
- }
- }
- }
-
- protected int convertStringToInt(String str) {
- int result = 0;
- try {
- result = new Integer(str).intValue();
- } catch (NumberFormatException e) {
- Logger.logError("Error while converting " + str + " to an
integer.", e);
- }
- return result;
- }
-
-}
Copied:
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/io/AbstractElementDeserializer.java
(from rev 16939,
trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/io/AbstractElementDeserializer.java)
===================================================================
---
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/io/AbstractElementDeserializer.java
(rev 0)
+++
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/io/AbstractElementDeserializer.java 2009-11-11
20:54:30 UTC (rev 18625)
@@ -0,0 +1,71 @@
+package org.jboss.tools.flow.jpdl4.io;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.jboss.tools.flow.common.wrapper.Wrapper;
+import org.jboss.tools.flow.jpdl4.Logger;
+import org.w3c.dom.Element;
+import org.w3c.dom.Node;
+import org.w3c.dom.NodeList;
+
+public abstract class AbstractElementDeserializer implements ElementDeserializer {
+
+ protected Wrapper deserializeChildNode(Wrapper parent, Node node) {
+ return null;
+ }
+
+ public void deserializeChildNodes(Wrapper wrapper,
+ Element element) {
+ if (wrapper == null) return;
+ NodeList nodeList = element.getChildNodes();
+ ArrayList<Node> unknownNodeList = new ArrayList<Node>();
+ for (int i = 0; i < nodeList.getLength(); i++) {
+ deserializeChildNode(wrapper, nodeList.item(i), unknownNodeList);
+ }
+ wrapper.getElement().setMetaData("trailingNodes", unknownNodeList);
+ }
+
+ protected void deserializeChildNode(Wrapper parent, Node node, List<Node>
unknownNodeList) {
+ Wrapper childWrapper = deserializeChildNode(parent, node);
+ if (childWrapper != null) {
+ childWrapper.getElement().setMetaData("leadingNodes", new
ArrayList<Node>(unknownNodeList));
+ unknownNodeList.clear();
+ } else {
+ unknownNodeList.add(node);
+ }
+
+ }
+
+ protected List<String> getAttributesToRead() {
+ return new ArrayList<String>();
+ }
+
+ protected String getXmlName(String attributeName) {
+ return null;
+ }
+
+ public void deserializeAttributes(Wrapper wrapper, Element element) {
+ wrapper.getElement().setMetaData("attributes", element.getAttributes());
+ List<String> attributeNames = getAttributesToRead();
+ for (String attributeName : attributeNames) {
+ String xmlName = getXmlName(attributeName);
+ if (xmlName == null) continue;
+ String attribute = element.getAttribute(xmlName);
+ if (!"".equals(attribute) && attribute != null) {
+ wrapper.setPropertyValue(attributeName, attribute);
+ }
+ }
+ }
+
+ protected int convertStringToInt(String str) {
+ int result = 0;
+ try {
+ result = new Integer(str).intValue();
+ } catch (NumberFormatException e) {
+ Logger.logError("Error while converting " + str + " to an
integer.", e);
+ }
+ return result;
+ }
+
+}
Deleted:
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/io/ExclusiveGatewayDeserializer.java
===================================================================
---
trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/io/ExclusiveGatewayDeserializer.java 2009-07-27
07:12:00 UTC (rev 16796)
+++
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/io/ExclusiveGatewayDeserializer.java 2009-11-11
20:54:30 UTC (rev 18625)
@@ -1,30 +0,0 @@
-/**
- *
- */
-package org.jboss.tools.flow.jpdl4.io;
-
-import org.jboss.tools.flow.common.wrapper.Wrapper;
-import org.jboss.tools.flow.jpdl4.model.ExclusiveGateway;
-import org.w3c.dom.Element;
-import org.w3c.dom.Node;
-
-class ExclusiveGatewayDeserializer extends NodeDeserializer {
- public void deserializeAttributes(Wrapper wrapper, Element element) {
- super.deserializeAttributes(wrapper, element);
- if (!(wrapper.getElement() instanceof ExclusiveGateway)) return;
- ExclusiveGateway exclusiveGateWay = (ExclusiveGateway)wrapper.getElement();
- exclusiveGateWay.setExpr(element.getAttribute("expr"));
- exclusiveGateWay.setLang(element.getAttribute("lang"));
- }
- public Wrapper deserializeChildNode(Wrapper parent, Node node) {
- Wrapper result = null;
- ExclusiveGateway exclusiveGateway = (ExclusiveGateway)parent.getElement();
- if (node instanceof Element && "handler".equals(node.getNodeName()))
{
- String className = ((Element)node).getAttribute("class");
- exclusiveGateway.setHandler("".equals(className) ? null : className);
- } else {
- result = super.deserializeChildNode(parent, node);
- }
- return result;
- }
-}
\ No newline at end of file
Copied:
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/io/ExclusiveGatewayDeserializer.java
(from rev 16940,
trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/io/ExclusiveGatewayDeserializer.java)
===================================================================
---
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/io/ExclusiveGatewayDeserializer.java
(rev 0)
+++
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/io/ExclusiveGatewayDeserializer.java 2009-11-11
20:54:30 UTC (rev 18625)
@@ -0,0 +1,48 @@
+/**
+ *
+ */
+package org.jboss.tools.flow.jpdl4.io;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.jboss.tools.flow.common.wrapper.Wrapper;
+import org.jboss.tools.flow.jpdl4.model.ExclusiveGateway;
+import org.w3c.dom.Element;
+import org.w3c.dom.Node;
+import org.w3c.dom.NodeList;
+
+class ExclusiveGatewayDeserializer extends NodeDeserializer {
+
+ public void deserializeAttributes(Wrapper wrapper, Element element) {
+ super.deserializeAttributes(wrapper, element);
+ if (!(wrapper.getElement() instanceof ExclusiveGateway)) return;
+ ExclusiveGateway exclusiveGateWay = (ExclusiveGateway)wrapper.getElement();
+ exclusiveGateWay.setExpr(element.getAttribute("expr"));
+ exclusiveGateWay.setLang(element.getAttribute("lang"));
+ }
+
+ public void deserializeChildNodes(Wrapper wrapper,
+ Element element) {
+ if (wrapper == null) return;
+ NodeList nodeList = element.getChildNodes();
+ ArrayList<Node> unknownNodeList = new ArrayList<Node>();
+ for (int i = 0; i < nodeList.getLength(); i++) {
+ Node node = nodeList.item(i);
+ if ("handler".equals(node.getNodeName())) {
+ deserializeHandler(wrapper, node, unknownNodeList);
+ } else {
+ deserializeChildNode(wrapper, node, unknownNodeList);
+ }
+ }
+ wrapper.getElement().setMetaData("trailingNodes", unknownNodeList);
+ }
+
+ private void deserializeHandler(Wrapper parent, Node node, List<Node>
unknownNodeList) {
+ parent.setMetaData("beforeHandlerNodes", new
ArrayList<Node>(unknownNodeList));
+ unknownNodeList.clear();
+ String className = ((Element)node).getAttribute("class");
+ parent.setPropertyValue(ExclusiveGateway.HANDLER, "".equals(className) ? null
: className);
+ }
+
+}
\ No newline at end of file
Deleted:
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/io/ExclusiveGatewaySerializer.java
===================================================================
---
trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/io/ExclusiveGatewaySerializer.java 2009-07-27
07:12:00 UTC (rev 16796)
+++
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/io/ExclusiveGatewaySerializer.java 2009-11-11
20:54:30 UTC (rev 18625)
@@ -1,28 +0,0 @@
-/**
- *
- */
-package org.jboss.tools.flow.jpdl4.io;
-
-import java.util.List;
-
-import org.jboss.tools.flow.common.wrapper.Wrapper;
-import org.jboss.tools.flow.jpdl4.model.ExclusiveGateway;
-
-class ExclusiveGatewaySerializer extends ProcessNodeSerializer {
- protected List<String> getAttributesToSave() {
- List<String> result = super.getAttributesToSave();
- result.add("expr");
- result.add("lang");
- return result;
- }
- public void appendBody(StringBuffer buffer, Wrapper wrapper, int level) {
- ExclusiveGateway exclusiveGateway = (ExclusiveGateway)wrapper.getElement();
- String handler = exclusiveGateway.getHandler();
- if (handler != null && !"".equals(handler)) {
- buffer.append("\n");
- appendPadding(buffer, level + 1);
- buffer.append("<handler class=\"" + handler + "\"
/>");
- }
- super.appendBody(buffer, wrapper, level);
- }
-}
\ No newline at end of file
Copied:
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/io/ExclusiveGatewaySerializer.java
(from rev 16940,
trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/io/ExclusiveGatewaySerializer.java)
===================================================================
---
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/io/ExclusiveGatewaySerializer.java
(rev 0)
+++
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/io/ExclusiveGatewaySerializer.java 2009-11-11
20:54:30 UTC (rev 18625)
@@ -0,0 +1,34 @@
+/**
+ *
+ */
+package org.jboss.tools.flow.jpdl4.io;
+
+import java.util.List;
+
+import org.jboss.tools.flow.common.wrapper.Wrapper;
+import org.jboss.tools.flow.jpdl4.model.ExclusiveGateway;
+
+class ExclusiveGatewaySerializer extends ProcessNodeSerializer {
+
+ protected List<String> getAttributesToSave() {
+ List<String> result = super.getAttributesToSave();
+ result.add("expr");
+ result.add("lang");
+ return result;
+ }
+
+ public void appendBody(StringBuffer buffer, Wrapper wrapper, int level) {
+ ExclusiveGateway exclusiveGateway = (ExclusiveGateway)wrapper.getElement();
+ String handler = exclusiveGateway.getHandler();
+ if (handler != null && !"".equals(handler)) {
+ appendHandler(buffer, wrapper, handler, level);
+ }
+ super.appendBody(buffer, wrapper, level);
+ }
+
+ private void appendHandler(StringBuffer buffer, Wrapper wrapper, String handler, int
level) {
+ appendUnknownNodes("beforeHandlerNodes", buffer, wrapper, level);
+ buffer.append("<handler
class=\"").append(handler).append("\" />");
+ }
+
+}
\ No newline at end of file
Deleted:
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/io/JavaTaskDeserializer.java
===================================================================
---
trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/io/JavaTaskDeserializer.java 2009-07-27
07:12:00 UTC (rev 16796)
+++
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/io/JavaTaskDeserializer.java 2009-11-11
20:54:30 UTC (rev 18625)
@@ -1,30 +0,0 @@
-/**
- *
- */
-package org.jboss.tools.flow.jpdl4.io;
-
-import org.jboss.tools.flow.common.wrapper.Wrapper;
-import org.jboss.tools.flow.jpdl4.model.Argument;
-import org.jboss.tools.flow.jpdl4.model.Field;
-import org.jboss.tools.flow.jpdl4.model.JavaTask;
-import org.w3c.dom.Element;
-import org.w3c.dom.Node;
-
-class JavaTaskDeserializer extends NodeDeserializer {
- public void deserializeAttributes(Wrapper wrapper, Element element) {
- super.deserializeAttributes(wrapper, element);
- wrapper.setPropertyValue(JavaTask.CLASS, element.getAttribute("class"));
- wrapper.setPropertyValue(JavaTask.METHOD, element.getAttribute("method"));
- wrapper.setPropertyValue(JavaTask.VAR, element.getAttribute("var"));
- }
- public Wrapper deserializeChildNode(Wrapper parent, Node node) {
- Wrapper result = super.deserializeChildNode(parent, node);
- if (result == null) return result;
- if (result.getElement() instanceof Argument) {
- parent.addChild(JavaTask.ARGS, result);
- } else if (result.getElement() instanceof Field) {
- parent.addChild(JavaTask.FIELDS, result);
- }
- return result;
- }
-}
\ No newline at end of file
Copied:
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/io/JavaTaskDeserializer.java
(from rev 17256,
trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/io/JavaTaskDeserializer.java)
===================================================================
---
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/io/JavaTaskDeserializer.java
(rev 0)
+++
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/io/JavaTaskDeserializer.java 2009-11-11
20:54:30 UTC (rev 18625)
@@ -0,0 +1,31 @@
+/**
+ *
+ */
+package org.jboss.tools.flow.jpdl4.io;
+
+import org.jboss.tools.flow.common.wrapper.Wrapper;
+import org.jboss.tools.flow.jpdl4.model.Argument;
+import org.jboss.tools.flow.jpdl4.model.Field;
+import org.jboss.tools.flow.jpdl4.model.JavaTask;
+import org.w3c.dom.Element;
+import org.w3c.dom.Node;
+
+class JavaTaskDeserializer extends NodeDeserializer {
+ public void deserializeAttributes(Wrapper wrapper, Element element) {
+ super.deserializeAttributes(wrapper, element);
+ wrapper.setPropertyValue(JavaTask.CLASS, element.getAttribute("class"));
+ wrapper.setPropertyValue(JavaTask.METHOD, element.getAttribute("method"));
+ wrapper.setPropertyValue(JavaTask.VAR, element.getAttribute("var"));
+ wrapper.setPropertyValue(JavaTask.EXPR, element.getAttribute("expr"));
+ }
+ public Wrapper deserializeChildNode(Wrapper parent, Node node) {
+ Wrapper result = super.deserializeChildNode(parent, node);
+ if (result == null) return result;
+ if (result.getElement() instanceof Argument) {
+ parent.addChild(JavaTask.ARGS, result);
+ } else if (result.getElement() instanceof Field) {
+ parent.addChild(JavaTask.FIELDS, result);
+ }
+ return result;
+ }
+}
\ No newline at end of file
Deleted:
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/io/JavaTaskSerializer.java
===================================================================
---
trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/io/JavaTaskSerializer.java 2009-07-27
07:12:00 UTC (rev 16796)
+++
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/io/JavaTaskSerializer.java 2009-11-11
20:54:30 UTC (rev 18625)
@@ -1,49 +0,0 @@
-/**
- *
- */
-package org.jboss.tools.flow.jpdl4.io;
-
-import java.util.List;
-
-import org.jboss.tools.flow.common.model.Element;
-import org.jboss.tools.flow.common.wrapper.Wrapper;
-import org.jboss.tools.flow.jpdl4.model.JavaTask;
-
-class JavaTaskSerializer extends ProcessNodeSerializer {
- protected List<String> getAttributesToSave() {
- List<String> result = super.getAttributesToSave();
- result.add("class");
- result.add("method");
- result.add("var");
- return result;
- }
- protected String getPropertyName(String attributeName) {
- if ("class".equals(attributeName)) {
- return JavaTask.CLASS;
- } else if ("method".equals(attributeName)) {
- return JavaTask.METHOD;
- } else if ("var".equals(attributeName)) {
- return JavaTask.VAR;
- }
- return super.getPropertyName(attributeName);
- }
- public void appendBody(StringBuffer buffer, Wrapper wrapper, int level) {
- List<Element> fields = wrapper.getChildren(JavaTask.FIELDS);
- if (fields != null) {
- for (Element field : fields) {
- if (field instanceof Wrapper) {
- JpdlSerializer.serialize((Wrapper)field, buffer, level+1);
- }
- }
- }
- List<Element> arguments = wrapper.getChildren(JavaTask.ARGS);
- if (arguments != null) {
- for (Element argument : arguments) {
- if (argument instanceof Wrapper) {
- JpdlSerializer.serialize((Wrapper)argument, buffer, level+1);
- }
- }
- }
- super.appendBody(buffer, wrapper, level);
- }
-}
\ No newline at end of file
Copied:
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/io/JavaTaskSerializer.java
(from rev 17256,
trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/io/JavaTaskSerializer.java)
===================================================================
---
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/io/JavaTaskSerializer.java
(rev 0)
+++
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/io/JavaTaskSerializer.java 2009-11-11
20:54:30 UTC (rev 18625)
@@ -0,0 +1,52 @@
+/**
+ *
+ */
+package org.jboss.tools.flow.jpdl4.io;
+
+import java.util.List;
+
+import org.jboss.tools.flow.common.model.Element;
+import org.jboss.tools.flow.common.wrapper.Wrapper;
+import org.jboss.tools.flow.jpdl4.model.JavaTask;
+
+class JavaTaskSerializer extends ProcessNodeSerializer {
+ protected List<String> getAttributesToSave() {
+ List<String> result = super.getAttributesToSave();
+ result.add("class");
+ result.add("method");
+ result.add("var");
+ result.add("expr");
+ return result;
+ }
+ protected String getPropertyName(String attributeName) {
+ if ("class".equals(attributeName)) {
+ return JavaTask.CLASS;
+ } else if ("method".equals(attributeName)) {
+ return JavaTask.METHOD;
+ } else if ("var".equals(attributeName)) {
+ return JavaTask.VAR;
+ } else if ("expr".equals(attributeName)) {
+ return JavaTask.EXPR;
+ }
+ return super.getPropertyName(attributeName);
+ }
+ public void appendBody(StringBuffer buffer, Wrapper wrapper, int level) {
+ List<Element> fields = wrapper.getChildren(JavaTask.FIELDS);
+ if (fields != null) {
+ for (Element field : fields) {
+ if (field instanceof Wrapper) {
+ JpdlSerializer.serialize((Wrapper)field, buffer, level+1);
+ }
+ }
+ }
+ List<Element> arguments = wrapper.getChildren(JavaTask.ARGS);
+ if (arguments != null) {
+ for (Element argument : arguments) {
+ if (argument instanceof Wrapper) {
+ JpdlSerializer.serialize((Wrapper)argument, buffer, level+1);
+ }
+ }
+ }
+ super.appendBody(buffer, wrapper, level);
+ }
+}
\ No newline at end of file
Deleted:
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/io/SequenceFlowDeserializer.java
===================================================================
---
trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/io/SequenceFlowDeserializer.java 2009-07-27
07:12:00 UTC (rev 16796)
+++
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/io/SequenceFlowDeserializer.java 2009-11-11
20:54:30 UTC (rev 18625)
@@ -1,109 +0,0 @@
-/**
- *
- */
-package org.jboss.tools.flow.jpdl4.io;
-
-import java.util.StringTokenizer;
-
-import org.eclipse.draw2d.geometry.Point;
-import org.jboss.tools.flow.common.properties.IPropertyId;
-import org.jboss.tools.flow.common.wrapper.ConnectionWrapper;
-import org.jboss.tools.flow.common.wrapper.Wrapper;
-import org.jboss.tools.flow.jpdl4.Logger;
-import org.jboss.tools.flow.jpdl4.model.EventListener;
-import org.jboss.tools.flow.jpdl4.model.SequenceFlow;
-import org.w3c.dom.Element;
-import org.w3c.dom.Node;
-import org.w3c.dom.NodeList;
-
-class SequenceFlowDeserializer extends AbstractElementDeserializer {
-
- public void deserializeAttributes(Wrapper wrapper, Element element) {
- super.deserializeAttributes(wrapper, element);
- if (!(wrapper instanceof ConnectionWrapper)) return;
- ConnectionWrapper connectionWrapper = (ConnectionWrapper)wrapper;
- addGraphics(connectionWrapper, element);
- connectionWrapper.getElement().setMetaData("to",
element.getAttribute("to"));
- connectionWrapper.setPropertyValue(IPropertyId.NAME,
element.getAttribute("name"));
- }
-
- private void addGraphics(ConnectionWrapper wrapper, Element element) {
- String graphics = element.getAttribute("g");
- if (graphics != null && !"".equals(graphics)) {
- int pos = graphics.lastIndexOf(':');
- String labelInfo, bendpointInfo = null;
- if (pos != -1) {
- labelInfo = graphics.substring(pos + 1);
- bendpointInfo = graphics.substring(0, pos);
- } else {
- labelInfo = graphics;
- }
- if (labelInfo != null && !"".equals(labelInfo)) {
- addLabelInfo(wrapper, labelInfo);
- }
- if (bendpointInfo != null && !"".equals(bendpointInfo)) {
- addBendpointInfo(wrapper, bendpointInfo);
- }
- }
- }
-
- private void addBendpointInfo(ConnectionWrapper wrapper, String bendpointInfo) {
- StringTokenizer bendpoints = new StringTokenizer(bendpointInfo, ";");
- int index = 0;
- while (bendpoints.hasMoreTokens()) {
- StringTokenizer bendpoint = new StringTokenizer(bendpoints.nextToken(),
",");
- if (bendpoint.countTokens() != 2) {
- Logger.logInfo(
- "Wrong info in attribute 'g' while determining bendpoints.");
- } else {
- int x = convertStringToInt(bendpoint.nextToken());
- int y = convertStringToInt(bendpoint.nextToken());
- wrapper.addBendpoint(index++, new Point(x, y));
- }
- }
- }
-
- private void addLabelInfo(ConnectionWrapper wrapper, String labelInfo) {
- StringTokenizer label = new StringTokenizer(labelInfo, ",");
- if (label.countTokens() != 2) {
- Logger.logInfo("Wrong info in attribute 'g' while determining label
location.");
- } else {
- int x = convertStringToInt(label.nextToken());
- int y = convertStringToInt(label.nextToken());
- wrapper.getLabel().setLocation(new Point(x, y));
- }
- }
-
- public Wrapper deserializeChildNode(Wrapper parent, Node node) {
- Wrapper result = null;
- if (!(parent instanceof ConnectionWrapper)) return result;
- ConnectionWrapper connectionWrapper = (ConnectionWrapper)parent;
- if (node instanceof Element) {
- if ("timer".equals(node.getNodeName())) {
- String duedate = ((Element)node).getAttribute("duedate");
- if (duedate != null && !("".equals(duedate))) {
- parent.setPropertyValue(SequenceFlow.TIMER, duedate);
- }
- } else if ("outcome-value".equals(node.getNodeName())) {
- NodeList nodeList = ((Element)node).getElementsByTagName("string");
- if (nodeList.getLength() == 1) {
- String value = ((Element)nodeList.item(0)).getAttribute("value");
- if (value != null && !("".equals("value"))) {
- parent.setPropertyValue(SequenceFlow.OUTCOME_VALUE, value);
- }
- }
- } else {
- result = Registry.createWrapper((Element)node);
- }
- if (result == null) return null;
- if (result instanceof Wrapper) {
- if (result.getElement() instanceof EventListener) {
- connectionWrapper.addChild("listener", result);
- }
- }
- }
- return result;
- }
-
-
-}
\ No newline at end of file
Copied:
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/io/SequenceFlowDeserializer.java
(from rev 17255,
trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/io/SequenceFlowDeserializer.java)
===================================================================
---
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/io/SequenceFlowDeserializer.java
(rev 0)
+++
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/io/SequenceFlowDeserializer.java 2009-11-11
20:54:30 UTC (rev 18625)
@@ -0,0 +1,129 @@
+/**
+ *
+ */
+package org.jboss.tools.flow.jpdl4.io;
+
+import java.util.ArrayList;
+import java.util.List;
+import java.util.StringTokenizer;
+
+import org.eclipse.draw2d.geometry.Point;
+import org.jboss.tools.flow.common.properties.IPropertyId;
+import org.jboss.tools.flow.common.wrapper.ConnectionWrapper;
+import org.jboss.tools.flow.common.wrapper.Wrapper;
+import org.jboss.tools.flow.jpdl4.Logger;
+import org.jboss.tools.flow.jpdl4.model.EventListener;
+import org.jboss.tools.flow.jpdl4.model.SequenceFlow;
+import org.w3c.dom.Element;
+import org.w3c.dom.Node;
+import org.w3c.dom.NodeList;
+
+class SequenceFlowDeserializer extends AbstractElementDeserializer {
+
+ public void deserializeAttributes(Wrapper wrapper, Element element) {
+ super.deserializeAttributes(wrapper, element);
+ if (!(wrapper instanceof ConnectionWrapper)) return;
+ ConnectionWrapper connectionWrapper = (ConnectionWrapper)wrapper;
+ addGraphics(connectionWrapper, element);
+ connectionWrapper.getElement().setMetaData("to",
element.getAttribute("to"));
+ connectionWrapper.setPropertyValue(IPropertyId.NAME,
element.getAttribute("name"));
+ }
+
+ private void addGraphics(ConnectionWrapper wrapper, Element element) {
+ String graphics = element.getAttribute("g");
+ if (graphics != null && !"".equals(graphics)) {
+ int pos = graphics.lastIndexOf(':');
+ String labelInfo, bendpointInfo = null;
+ if (pos != -1) {
+ labelInfo = graphics.substring(pos + 1);
+ bendpointInfo = graphics.substring(0, pos);
+ } else {
+ labelInfo = graphics;
+ }
+ if (labelInfo != null && !"".equals(labelInfo)) {
+ addLabelInfo(wrapper, labelInfo);
+ }
+ if (bendpointInfo != null && !"".equals(bendpointInfo)) {
+ addBendpointInfo(wrapper, bendpointInfo);
+ }
+ }
+ }
+
+ private void addBendpointInfo(ConnectionWrapper wrapper, String bendpointInfo) {
+ StringTokenizer bendpoints = new StringTokenizer(bendpointInfo, ";");
+ int index = 0;
+ while (bendpoints.hasMoreTokens()) {
+ StringTokenizer bendpoint = new StringTokenizer(bendpoints.nextToken(),
",");
+ if (bendpoint.countTokens() != 2) {
+ Logger.logInfo(
+ "Wrong info in attribute 'g' while determining bendpoints.");
+ } else {
+ int x = convertStringToInt(bendpoint.nextToken());
+ int y = convertStringToInt(bendpoint.nextToken());
+ wrapper.addBendpoint(index++, new Point(x, y));
+ }
+ }
+ }
+
+ private void addLabelInfo(ConnectionWrapper wrapper, String labelInfo) {
+ StringTokenizer label = new StringTokenizer(labelInfo, ",");
+ if (label.countTokens() != 2) {
+ Logger.logInfo("Wrong info in attribute 'g' while determining label
location.");
+ } else {
+ int x = convertStringToInt(label.nextToken());
+ int y = convertStringToInt(label.nextToken());
+ wrapper.getLabel().setLocation(new Point(x, y));
+ }
+ }
+
+ public void deserializeChildNodes(Wrapper wrapper,
+ Element element) {
+ if (wrapper == null) return;
+ NodeList nodeList = element.getChildNodes();
+ ArrayList<Node> unknownNodeList = new ArrayList<Node>();
+ for (int i = 0; i < nodeList.getLength(); i++) {
+ Node node = nodeList.item(i);
+ if ("timer".equals(node.getNodeName())) {
+ deserializeTimer(wrapper, node, unknownNodeList);
+ } else if ("outcome-value".equals(node.getNodeName())) {
+ deserializeOutcomeValue(wrapper, node, unknownNodeList);
+ } else {
+ deserializeChildNode(wrapper, node, unknownNodeList);
+ }
+ }
+ wrapper.getElement().setMetaData("trailingNodes", unknownNodeList);
+ }
+
+ public Wrapper deserializeChildNode(Wrapper parent, Node node) {
+ Wrapper result = null;
+ if (!(parent instanceof ConnectionWrapper)) return result;
+ ConnectionWrapper connectionWrapper = (ConnectionWrapper)parent;
+ if (node instanceof Element) {
+ result = Registry.createWrapper((Element)node);
+ if (result == null) return null;
+ if (result instanceof Wrapper) {
+ if (result.getElement() instanceof EventListener) {
+ connectionWrapper.addChild("listener", result);
+ }
+ }
+ }
+ return result;
+ }
+
+ private void deserializeTimer(Wrapper parent, Node node, List<Node>
unknownNodeList) {
+ if (!(node instanceof Element)) return;
+ parent.setMetaData("beforeTimerNodes", new
ArrayList<Node>(unknownNodeList));
+ unknownNodeList.clear();
+ parent.setPropertyValue(SequenceFlow.TIMER,
((Element)node).getAttribute("duedate"));
+ }
+
+ private void deserializeOutcomeValue(Wrapper parent, Node node, List<Node>
unknownNodeList) {
+ parent.setMetaData("beforeOutcomeValueNodes", new
ArrayList<Node>(unknownNodeList));
+ unknownNodeList.clear();
+ // outome-value has only one child node
+ Node content = node.getChildNodes().item(0);
+ parent.setPropertyValue(SequenceFlow.OUTCOME_VALUE, content.getNodeValue());
+ }
+
+
+}
\ No newline at end of file
Deleted:
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/io/SequenceFlowSerializer.java
===================================================================
---
trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/io/SequenceFlowSerializer.java 2009-07-27
07:12:00 UTC (rev 16796)
+++
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/io/SequenceFlowSerializer.java 2009-11-11
20:54:30 UTC (rev 18625)
@@ -1,101 +0,0 @@
-/**
- *
- */
-package org.jboss.tools.flow.jpdl4.io;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.eclipse.draw2d.geometry.Point;
-import org.jboss.tools.flow.common.model.Element;
-import org.jboss.tools.flow.common.wrapper.ConnectionWrapper;
-import org.jboss.tools.flow.common.wrapper.LabelWrapper;
-import org.jboss.tools.flow.common.wrapper.Wrapper;
-import org.jboss.tools.flow.jpdl4.model.SequenceFlow;
-
-class SequenceFlowSerializer extends AbstractElementSerializer {
- protected List<String> getAttributesToSave() {
- ArrayList<String> result = new ArrayList<String>();
- result.add("name");
- result.add("to");
- result.add("g");
- return result;
- }
- protected void appendAttributeToSave(String attributeName, StringBuffer buffer, Wrapper
wrapper) {
- if (!(wrapper instanceof ConnectionWrapper)) return;
- Element element = wrapper.getElement();
- if (!(element instanceof SequenceFlow)) return;
- if ("name".equals(attributeName)) {
- appendName(buffer, (SequenceFlow)element);
- } else if ("to".equals(attributeName)) {
- appendTo(buffer, (SequenceFlow)element);
- } else if ("g".equals(attributeName)) {
- appendGraphics(buffer, (ConnectionWrapper)wrapper);
- }
- }
- protected void appendName(StringBuffer buffer, SequenceFlow sequenceFlow) {
- if (sequenceFlow.getName() == null) return;
- String value = sequenceFlow.getName();
- if (value == null || "".equals(sequenceFlow.getName())) return;
- buffer.append(" name=\"" + value + "\"");
- }
- protected void appendTo(StringBuffer buffer, SequenceFlow sequenceFlow) {
- if (sequenceFlow.getTo() == null) return;
- String value = sequenceFlow.getTo().getName();
- if (value == null || "".equals(value)) return;
- buffer.append(" to=\"" + value + "\"");
- }
- protected void appendGraphics(StringBuffer buffer, ConnectionWrapper wrapper) {
- StringBuffer bendPointBuffer = new StringBuffer();
- List<Point> bendPoints = wrapper.getBendpoints();
- if (bendPoints != null && bendPoints.size() > 0) {
- for (int i = 0; i < bendPoints.size(); i++) {
- bendPointBuffer.append(bendPoints.get(i).x);
- bendPointBuffer.append(",");
- bendPointBuffer.append(bendPoints.get(i).y);
- if (i < bendPoints.size() - 1) bendPointBuffer.append(";");
- }
- }
- StringBuffer labelBuffer = new StringBuffer();
- LabelWrapper labelWrapper = wrapper.getLabel();
- if (labelWrapper != null && !isEmpty(labelWrapper.getText())) {
- Point location = labelWrapper.getLocation();
- if (location != null) {
- labelBuffer.append(location.x);
- labelBuffer.append(',');
- labelBuffer.append(location.y);
- }
- }
- if (bendPointBuffer.length() + labelBuffer.length() == 0) return;
- buffer.append(" g=\"");
- buffer.append(bendPointBuffer);
- if (bendPointBuffer.length() > 0) buffer.append(':');
- buffer.append(labelBuffer);
- buffer.append("\"");
- }
- private boolean isEmpty(String str) {
- return str == null || "".equals(str);
- }
- public void appendBody(StringBuffer buffer, Wrapper wrapper, int level) {
- String timer = (String)wrapper.getPropertyValue(SequenceFlow.TIMER);
- if (timer != null && !("".equals(timer))) {
- buffer.append("\n");
- appendPadding(buffer, level + 1);
- buffer.append("<timer duedate=\"" + timer +
"\"/>");
- }
- String outcome = (String)wrapper.getPropertyValue(SequenceFlow.OUTCOME_VALUE);
- if (outcome != null && !("".equals(outcome))) {
- buffer.append("\n");
- appendPadding(buffer, level + 1);
- buffer.append("<outcome-value><string value=\"" + outcome +
"\"/></outcome-value>");
- }
- List<Element> eventListeners = wrapper.getChildren("listener");
- if (eventListeners != null) {
- for (Element eventListener : eventListeners) {
- if (eventListener instanceof Wrapper) {
- JpdlSerializer.serialize((Wrapper)eventListener, buffer, level+1);
- }
- }
- }
- }
-}
\ No newline at end of file
Copied:
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/io/SequenceFlowSerializer.java
(from rev 17255,
trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/io/SequenceFlowSerializer.java)
===================================================================
---
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/io/SequenceFlowSerializer.java
(rev 0)
+++
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/io/SequenceFlowSerializer.java 2009-11-11
20:54:30 UTC (rev 18625)
@@ -0,0 +1,116 @@
+/**
+ *
+ */
+package org.jboss.tools.flow.jpdl4.io;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.eclipse.draw2d.geometry.Point;
+import org.jboss.tools.flow.common.model.Element;
+import org.jboss.tools.flow.common.wrapper.ConnectionWrapper;
+import org.jboss.tools.flow.common.wrapper.LabelWrapper;
+import org.jboss.tools.flow.common.wrapper.Wrapper;
+import org.jboss.tools.flow.jpdl4.model.SequenceFlow;
+
+class SequenceFlowSerializer extends AbstractElementSerializer {
+
+ protected List<String> getAttributesToSave() {
+ ArrayList<String> result = new ArrayList<String>();
+ result.add("name");
+ result.add("to");
+ result.add("g");
+ return result;
+ }
+
+ protected void appendAttributeToSave(String attributeName, StringBuffer buffer, Wrapper
wrapper) {
+ if (!(wrapper instanceof ConnectionWrapper)) return;
+ Element element = wrapper.getElement();
+ if (!(element instanceof SequenceFlow)) return;
+ if ("name".equals(attributeName)) {
+ appendName(buffer, (SequenceFlow)element);
+ } else if ("to".equals(attributeName)) {
+ appendTo(buffer, (SequenceFlow)element);
+ } else if ("g".equals(attributeName)) {
+ appendGraphics(buffer, (ConnectionWrapper)wrapper);
+ }
+ }
+
+ protected void appendName(StringBuffer buffer, SequenceFlow sequenceFlow) {
+ if (sequenceFlow.getName() == null) return;
+ String value = sequenceFlow.getName();
+ if (value == null || "".equals(sequenceFlow.getName())) return;
+ buffer.append(" name=\"" + value + "\"");
+ }
+
+ protected void appendTo(StringBuffer buffer, SequenceFlow sequenceFlow) {
+ if (sequenceFlow.getTo() == null) return;
+ String value = sequenceFlow.getTo().getName();
+ if (value == null || "".equals(value)) return;
+ buffer.append(" to=\"" + value + "\"");
+ }
+
+ protected void appendGraphics(StringBuffer buffer, ConnectionWrapper wrapper) {
+ StringBuffer bendPointBuffer = new StringBuffer();
+ List<Point> bendPoints = wrapper.getBendpoints();
+ if (bendPoints != null && bendPoints.size() > 0) {
+ for (int i = 0; i < bendPoints.size(); i++) {
+ bendPointBuffer.append(bendPoints.get(i).x);
+ bendPointBuffer.append(",");
+ bendPointBuffer.append(bendPoints.get(i).y);
+ if (i < bendPoints.size() - 1) bendPointBuffer.append(";");
+ }
+ }
+ StringBuffer labelBuffer = new StringBuffer();
+ LabelWrapper labelWrapper = wrapper.getLabel();
+ if (labelWrapper != null && !isEmpty(labelWrapper.getText())) {
+ Point location = labelWrapper.getLocation();
+ if (location != null) {
+ labelBuffer.append(location.x);
+ labelBuffer.append(',');
+ labelBuffer.append(location.y);
+ }
+ }
+ if (bendPointBuffer.length() + labelBuffer.length() == 0) return;
+ buffer.append(" g=\"");
+ buffer.append(bendPointBuffer);
+ if (bendPointBuffer.length() > 0) buffer.append(':');
+ buffer.append(labelBuffer);
+ buffer.append("\"");
+ }
+
+ private boolean isEmpty(String str) {
+ return str == null || "".equals(str);
+ }
+
+ public void appendBody(StringBuffer buffer, Wrapper wrapper, int level) {
+ String timer = (String)wrapper.getPropertyValue(SequenceFlow.TIMER);
+ if (timer != null && !("".equals(timer))) {
+ appendTimer(buffer, wrapper, timer, level);
+ }
+ String outcome = (String)wrapper.getPropertyValue(SequenceFlow.OUTCOME_VALUE);
+ if (outcome != null && !("".equals(outcome))) {
+ appendOutcomeValue(buffer, wrapper, outcome, level);
+ }
+ List<Element> eventListeners = wrapper.getChildren("listener");
+ if (eventListeners != null) {
+ for (Element eventListener : eventListeners) {
+ if (eventListener instanceof Wrapper) {
+ JpdlSerializer.serialize((Wrapper)eventListener, buffer, level+1);
+ }
+ }
+ }
+ }
+
+ private void appendTimer(StringBuffer buffer, Wrapper wrapper, String timer, int level)
{
+ appendUnknownNodes("beforeTimerNodes", buffer, wrapper, level);
+ buffer.append("<timer
duedate=\"").append(timer).append("\"/>");
+ }
+
+ private void appendOutcomeValue(StringBuffer buffer, Wrapper wrapper, String outcome,
int level) {
+ appendUnknownNodes("beforeOutcomeValueNodes", buffer, wrapper, level);
+ buffer.append("<outcome-value>").append(outcome).append("</outcome-value>");
+ }
+
+
+}
\ No newline at end of file
Deleted:
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/model/HqlTask.java
===================================================================
---
trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/model/HqlTask.java 2009-07-02
15:15:08 UTC (rev 16344)
+++
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/model/HqlTask.java 2009-11-11
20:54:30 UTC (rev 18625)
@@ -1,80 +0,0 @@
-package org.jboss.tools.flow.jpdl4.model;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.eclipse.ui.views.properties.IPropertyDescriptor;
-import org.eclipse.ui.views.properties.IPropertySource;
-
-
-public class HqlTask extends Task {
-
- public static final String VAR =
"org.jboss.tools.flow.jpdl4.model.hqlTask.var";
- public static final String UNIQUE =
"org.jboss.tools.flow.jpdl4.model.hqlTask.unique";
- public static final String QUERY =
"org.jboss.tools.flow.jpdl4.model.hqlTask.query";
- public static final String PARAMETERS =
"org.jboss.tools.flow.jpdl4.model.hqlTask.parameters";
-
- private String variableName;
- private String unique;
- private String query;
- private List<WireObject> parameters = new ArrayList<WireObject>();
-
- public HqlTask() {
- setMetaData("propertySource", new PropertySource());
- }
-
- protected boolean isPropagationExclusive() {
- return true;
- }
-
- private class PropertySource implements IPropertySource {
-
- public Object getEditableValue() {
- return null;
- }
-
- public IPropertyDescriptor[] getPropertyDescriptors() {
- return new IPropertyDescriptor[0];
- }
-
- public Object getPropertyValue(Object id) {
- if (VAR.equals(id)) {
- return variableName;
- } else if (UNIQUE.equals(id)) {
- return unique;
- } else if (QUERY.equals(id)) {
- return query;
- } else if (PARAMETERS.equals(id)) {
- return parameters;
- }
- return null;
- }
-
- public boolean isPropertySet(Object id) {
- if (VAR.equals(id)) {
- return variableName != null;
- } else if (UNIQUE.equals(id)) {
- return unique != null;
- } else if (QUERY.equals(id)) {
- return query != null;
- } else if (PARAMETERS.equals(id)) {
- return true;
- }
- return false;
- }
-
- public void resetPropertyValue(Object id) {
- }
-
- public void setPropertyValue(Object id, Object value) {
- if (VAR.equals(id)) {
- variableName = (String)value;
- } else if (UNIQUE.equals(id)) {
- unique = (String)value;
- } else if (QUERY.equals(id)) {
- query = (String)value;
- }
- }
-
- }
-}
Copied:
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/model/HqlTask.java
(from rev 16386,
trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/model/HqlTask.java)
===================================================================
---
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/model/HqlTask.java
(rev 0)
+++
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/model/HqlTask.java 2009-11-11
20:54:30 UTC (rev 18625)
@@ -0,0 +1,7 @@
+package org.jboss.tools.flow.jpdl4.model;
+
+
+
+public class HqlTask extends QueryTask {
+
+}
Deleted:
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/model/JavaTask.java
===================================================================
---
trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/model/JavaTask.java 2009-07-02
15:15:08 UTC (rev 16344)
+++
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/model/JavaTask.java 2009-11-11
20:54:30 UTC (rev 18625)
@@ -1,110 +0,0 @@
-package org.jboss.tools.flow.jpdl4.model;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.eclipse.ui.views.properties.IPropertyDescriptor;
-import org.eclipse.ui.views.properties.IPropertySource;
-
-
-public class JavaTask extends Task {
-
- public static final String CLASS =
"org.jboss.tools.flow.jpdl4.model.javaTask.class";
- public static final String METHOD =
"org.jboss.tools.flow.jpdl4.model.javaTask.method";
- public static final String VAR =
"org.jboss.tools.flow.jpdl4.model.javaTask.var";
- public static final String FIELDS =
"org.jboss.tools.flow.jpdl4.model.javaTask.fields";
- public static final String ARGS =
"org.jboss.tools.flow.jpdl4.model.javaTask.args";
-
- private String className;
- private String methodName;
- private String variableName;
- private List<Argument> arguments = new ArrayList<Argument>();
- private List<Field> fields = new ArrayList<Field>();
-
- public JavaTask() {
- setMetaData("propertySource", new PropertySource());
- }
-
- public String getClassName() {
- return className;
- }
-
- public void setClassName(String className) {
- this.className = className;
- }
-
- public String getMethodName() {
- return methodName;
- }
-
- public void setMethodName(String methodName) {
- this.methodName = methodName;
- }
-
- public String getVariableName() {
- return variableName;
- }
-
- public void setVariableName(String variableName) {
- this.variableName = variableName;
- }
-
- protected boolean isPropagationExclusive() {
- return true;
- }
-
- private class PropertySource implements IPropertySource {
-
- public Object getEditableValue() {
- return null;
- }
-
- public IPropertyDescriptor[] getPropertyDescriptors() {
- return new IPropertyDescriptor[0];
- }
-
- public Object getPropertyValue(Object id) {
- if (CLASS.equals(id)) {
- return getClassName();
- } else if (METHOD.equals(id)) {
- return getMethodName();
- } else if (VAR.equals(id)) {
- return getVariableName();
- } else if (FIELDS.equals(id)) {
- return fields;
- } else if (ARGS.equals(id)) {
- return arguments;
- }
- return null;
- }
-
- public boolean isPropertySet(Object id) {
- if (CLASS.equals(id)) {
- return getClassName() != null;
- } else if (METHOD.equals(id)) {
- return getMethodName() != null;
- } else if (VAR.equals(id)) {
- return getVariableName() != null;
- } else if (FIELDS.equals(id)) {
- return true;
- } else if (ARGS.equals(id)) {
- return true;
- }
- return false;
- }
-
- public void resetPropertyValue(Object id) {
- }
-
- public void setPropertyValue(Object id, Object value) {
- if (CLASS.equals(id)) {
- setClassName((String)value);
- } else if (METHOD.equals(id)) {
- setMethodName((String)value);
- } else if (VAR.equals(id)) {
- setVariableName((String)value);
- }
- }
-
- }
-}
Copied:
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/model/JavaTask.java
(from rev 17256,
trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/model/JavaTask.java)
===================================================================
---
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/model/JavaTask.java
(rev 0)
+++
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/model/JavaTask.java 2009-11-11
20:54:30 UTC (rev 18625)
@@ -0,0 +1,126 @@
+package org.jboss.tools.flow.jpdl4.model;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.eclipse.ui.views.properties.IPropertyDescriptor;
+import org.eclipse.ui.views.properties.IPropertySource;
+
+
+public class JavaTask extends Task {
+
+ public static final String CLASS =
"org.jboss.tools.flow.jpdl4.model.javaTask.class";
+ public static final String METHOD =
"org.jboss.tools.flow.jpdl4.model.javaTask.method";
+ public static final String VAR =
"org.jboss.tools.flow.jpdl4.model.javaTask.var";
+ public static final String EXPR =
"org.jboss.tools.flow.jpdl4.model.javaTask.expression";
+ public static final String FIELDS =
"org.jboss.tools.flow.jpdl4.model.javaTask.fields";
+ public static final String ARGS =
"org.jboss.tools.flow.jpdl4.model.javaTask.args";
+
+ private String className;
+ private String methodName;
+ private String variableName;
+ private String expression;
+ private List<Argument> arguments = new ArrayList<Argument>();
+ private List<Field> fields = new ArrayList<Field>();
+
+ public JavaTask() {
+ setMetaData("propertySource", new PropertySource());
+ }
+
+ public String getClassName() {
+ return className;
+ }
+
+ public void setClassName(String className) {
+ this.className = className;
+ }
+
+ public String getMethodName() {
+ return methodName;
+ }
+
+ public void setMethodName(String methodName) {
+ this.methodName = methodName;
+ }
+
+ public String getVariableName() {
+ return variableName;
+ }
+
+ public void setVariableName(String variableName) {
+ this.variableName = variableName;
+ }
+
+ public String getExpression() {
+ return expression;
+ }
+
+ public void setExpression(String expression) {
+ this.expression = expression;
+ }
+
+ protected boolean isPropagationExclusive() {
+ return true;
+ }
+
+ private class PropertySource implements IPropertySource {
+
+ public Object getEditableValue() {
+ return null;
+ }
+
+ public IPropertyDescriptor[] getPropertyDescriptors() {
+ return new IPropertyDescriptor[0];
+ }
+
+ public Object getPropertyValue(Object id) {
+ if (CLASS.equals(id)) {
+ return getClassName();
+ } else if (METHOD.equals(id)) {
+ return getMethodName();
+ } else if (VAR.equals(id)) {
+ return getVariableName();
+ } else if (EXPR.equals(id)) {
+ return getExpression();
+ } else if (FIELDS.equals(id)) {
+ return fields;
+ } else if (ARGS.equals(id)) {
+ return arguments;
+ }
+ return null;
+ }
+
+ public boolean isPropertySet(Object id) {
+ if (CLASS.equals(id)) {
+ return getClassName() != null;
+ } else if (METHOD.equals(id)) {
+ return getMethodName() != null;
+ } else if (VAR.equals(id)) {
+ return getVariableName() != null;
+ } else if (EXPR.equals(id)) {
+ return getExpression() != null;
+ } else if (FIELDS.equals(id)) {
+ return true;
+ } else if (ARGS.equals(id)) {
+ return true;
+ }
+ return false;
+ }
+
+ public void resetPropertyValue(Object id) {
+ }
+
+ public void setPropertyValue(Object id, Object value) {
+ if (CLASS.equals(id)) {
+ setClassName((String)value);
+ } else if (METHOD.equals(id)) {
+ setMethodName((String)value);
+ } else if (VAR.equals(id)) {
+ setVariableName((String)value);
+ } else if (EXPR.equals(id)) {
+ setExpression((String)value);
+ }
+ }
+
+ }
+}
Copied:
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/model/QueryTask.java
(from rev 16386,
trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/model/QueryTask.java)
===================================================================
---
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/model/QueryTask.java
(rev 0)
+++
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/model/QueryTask.java 2009-11-11
20:54:30 UTC (rev 18625)
@@ -0,0 +1,80 @@
+package org.jboss.tools.flow.jpdl4.model;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.eclipse.ui.views.properties.IPropertyDescriptor;
+import org.eclipse.ui.views.properties.IPropertySource;
+
+
+public class QueryTask extends Task {
+
+ public static final String VAR =
"org.jboss.tools.flow.jpdl4.model.queryTask.var";
+ public static final String UNIQUE =
"org.jboss.tools.flow.jpdl4.model.queryTask.unique";
+ public static final String QUERY =
"org.jboss.tools.flow.jpdl4.model.queryTask.query";
+ public static final String PARAMETERS =
"org.jboss.tools.flow.jpdl4.model.queryTask.parameters";
+
+ private String variableName;
+ private String unique;
+ private String query;
+ private List<PrimitiveObject> parameters = new
ArrayList<PrimitiveObject>();
+
+ public QueryTask() {
+ setMetaData("propertySource", new PropertySource());
+ }
+
+ protected boolean isPropagationExclusive() {
+ return true;
+ }
+
+ private class PropertySource implements IPropertySource {
+
+ public Object getEditableValue() {
+ return null;
+ }
+
+ public IPropertyDescriptor[] getPropertyDescriptors() {
+ return new IPropertyDescriptor[0];
+ }
+
+ public Object getPropertyValue(Object id) {
+ if (VAR.equals(id)) {
+ return variableName;
+ } else if (UNIQUE.equals(id)) {
+ return unique;
+ } else if (QUERY.equals(id)) {
+ return query;
+ } else if (PARAMETERS.equals(id)) {
+ return parameters;
+ }
+ return null;
+ }
+
+ public boolean isPropertySet(Object id) {
+ if (VAR.equals(id)) {
+ return variableName != null;
+ } else if (UNIQUE.equals(id)) {
+ return unique != null;
+ } else if (QUERY.equals(id)) {
+ return query != null;
+ } else if (PARAMETERS.equals(id)) {
+ return true;
+ }
+ return false;
+ }
+
+ public void resetPropertyValue(Object id) {
+ }
+
+ public void setPropertyValue(Object id, Object value) {
+ if (VAR.equals(id)) {
+ variableName = (String)value;
+ } else if (UNIQUE.equals(id)) {
+ unique = (String)value;
+ } else if (QUERY.equals(id)) {
+ query = (String)value;
+ }
+ }
+
+ }
+}
Deleted:
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/model/SqlTask.java
===================================================================
---
trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/model/SqlTask.java 2009-07-02
15:15:08 UTC (rev 16344)
+++
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/model/SqlTask.java 2009-11-11
20:54:30 UTC (rev 18625)
@@ -1,10 +0,0 @@
-package org.jboss.tools.flow.jpdl4.model;
-
-
-public class SqlTask extends Task {
-
- protected boolean isPropagationExclusive() {
- return true;
- }
-
-}
Copied:
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/model/SqlTask.java
(from rev 16386,
trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/model/SqlTask.java)
===================================================================
---
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/model/SqlTask.java
(rev 0)
+++
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/model/SqlTask.java 2009-11-11
20:54:30 UTC (rev 18625)
@@ -0,0 +1,6 @@
+package org.jboss.tools.flow.jpdl4.model;
+
+
+public class SqlTask extends QueryTask {
+
+}
Deleted:
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/model/WireObject.java
===================================================================
---
trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/model/WireObject.java 2009-07-02
15:15:08 UTC (rev 16344)
+++
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/model/WireObject.java 2009-11-11
20:54:30 UTC (rev 18625)
@@ -1,7 +0,0 @@
-package org.jboss.tools.flow.jpdl4.model;
-
-import org.jboss.tools.flow.common.model.DefaultElement;
-
-public class WireObject extends DefaultElement {
-
-}
Deleted:
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/model/WireObjectContainer.java
===================================================================
---
trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/model/WireObjectContainer.java 2009-07-02
15:15:08 UTC (rev 16344)
+++
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/model/WireObjectContainer.java 2009-11-11
20:54:30 UTC (rev 18625)
@@ -1,7 +0,0 @@
-package org.jboss.tools.flow.jpdl4.model;
-
-import org.jboss.tools.flow.common.model.DefaultElement;
-
-public class WireObjectContainer extends DefaultElement {
-
-}
Deleted:
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/properties/HqlTaskQuerySection.java
===================================================================
---
trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/properties/HqlTaskQuerySection.java 2009-07-02
15:15:08 UTC (rev 16344)
+++
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/properties/HqlTaskQuerySection.java 2009-11-11
20:54:30 UTC (rev 18625)
@@ -1,11 +0,0 @@
-package org.jboss.tools.flow.jpdl4.properties;
-
-import org.jboss.tools.flow.jpdl4.model.HqlTask;
-
-public class HqlTaskQuerySection extends TextFieldPropertySection {
-
- public HqlTaskQuerySection() {
- super(HqlTask.QUERY, "Query");
- }
-
-}
Deleted:
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/properties/HqlTaskUniqueSection.java
===================================================================
---
trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/properties/HqlTaskUniqueSection.java 2009-07-02
15:15:08 UTC (rev 16344)
+++
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/properties/HqlTaskUniqueSection.java 2009-11-11
20:54:30 UTC (rev 18625)
@@ -1,11 +0,0 @@
-package org.jboss.tools.flow.jpdl4.properties;
-
-import org.jboss.tools.flow.jpdl4.model.HqlTask;
-
-public class HqlTaskUniqueSection extends TextFieldPropertySection {
-
- public HqlTaskUniqueSection() {
- super(HqlTask.UNIQUE, "Unique");
- }
-
-}
Deleted:
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/properties/HqlTaskVariableNameSection.java
===================================================================
---
trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/properties/HqlTaskVariableNameSection.java 2009-07-02
15:15:08 UTC (rev 16344)
+++
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/properties/HqlTaskVariableNameSection.java 2009-11-11
20:54:30 UTC (rev 18625)
@@ -1,11 +0,0 @@
-package org.jboss.tools.flow.jpdl4.properties;
-
-import org.jboss.tools.flow.jpdl4.model.HqlTask;
-
-public class HqlTaskVariableNameSection extends TextFieldPropertySection {
-
- public HqlTaskVariableNameSection() {
- super(HqlTask.VAR, "Variable Name");
- }
-
-}
Deleted:
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/properties/JavaTaskClassSection.java
===================================================================
---
trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/properties/JavaTaskClassSection.java 2009-07-02
15:15:08 UTC (rev 16344)
+++
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/properties/JavaTaskClassSection.java 2009-11-11
20:54:30 UTC (rev 18625)
@@ -1,11 +0,0 @@
-package org.jboss.tools.flow.jpdl4.properties;
-
-import org.jboss.tools.flow.jpdl4.model.JavaTask;
-
-public class JavaTaskClassSection extends TextFieldPropertySection {
-
- public JavaTaskClassSection() {
- super(JavaTask.CLASS, "Class Name");
- }
-
-}
Copied:
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/properties/JavaTaskClassSection.java
(from rev 17256,
trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/properties/JavaTaskClassSection.java)
===================================================================
---
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/properties/JavaTaskClassSection.java
(rev 0)
+++
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/properties/JavaTaskClassSection.java 2009-11-11
20:54:30 UTC (rev 18625)
@@ -0,0 +1,11 @@
+package org.jboss.tools.flow.jpdl4.properties;
+
+import org.jboss.tools.flow.jpdl4.model.JavaTask;
+
+public class JavaTaskClassSection extends TextFieldPropertySection {
+
+ public JavaTaskClassSection() {
+ super(JavaTask.CLASS, "Class");
+ }
+
+}
Copied:
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/properties/JavaTaskExpressionSection.java
(from rev 17256,
trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/properties/JavaTaskExpressionSection.java)
===================================================================
---
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/properties/JavaTaskExpressionSection.java
(rev 0)
+++
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/properties/JavaTaskExpressionSection.java 2009-11-11
20:54:30 UTC (rev 18625)
@@ -0,0 +1,11 @@
+package org.jboss.tools.flow.jpdl4.properties;
+
+import org.jboss.tools.flow.jpdl4.model.JavaTask;
+
+public class JavaTaskExpressionSection extends TextFieldPropertySection {
+
+ public JavaTaskExpressionSection() {
+ super(JavaTask.EXPR, "Expression");
+ }
+
+}
Deleted:
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/properties/JavaTaskMethodSection.java
===================================================================
---
trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/properties/JavaTaskMethodSection.java 2009-07-02
15:15:08 UTC (rev 16344)
+++
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/properties/JavaTaskMethodSection.java 2009-11-11
20:54:30 UTC (rev 18625)
@@ -1,11 +0,0 @@
-package org.jboss.tools.flow.jpdl4.properties;
-
-import org.jboss.tools.flow.jpdl4.model.JavaTask;
-
-public class JavaTaskMethodSection extends TextFieldPropertySection {
-
- public JavaTaskMethodSection() {
- super(JavaTask.METHOD, "Method Name");
- }
-
-}
Copied:
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/properties/JavaTaskMethodSection.java
(from rev 17256,
trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/properties/JavaTaskMethodSection.java)
===================================================================
---
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/properties/JavaTaskMethodSection.java
(rev 0)
+++
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/properties/JavaTaskMethodSection.java 2009-11-11
20:54:30 UTC (rev 18625)
@@ -0,0 +1,11 @@
+package org.jboss.tools.flow.jpdl4.properties;
+
+import org.jboss.tools.flow.jpdl4.model.JavaTask;
+
+public class JavaTaskMethodSection extends TextFieldPropertySection {
+
+ public JavaTaskMethodSection() {
+ super(JavaTask.METHOD, "Method");
+ }
+
+}
Deleted:
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/properties/JavaTaskVariableSection.java
===================================================================
---
trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/properties/JavaTaskVariableSection.java 2009-07-02
15:15:08 UTC (rev 16344)
+++
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/properties/JavaTaskVariableSection.java 2009-11-11
20:54:30 UTC (rev 18625)
@@ -1,11 +0,0 @@
-package org.jboss.tools.flow.jpdl4.properties;
-
-import org.jboss.tools.flow.jpdl4.model.JavaTask;
-
-public class JavaTaskVariableSection extends TextFieldPropertySection {
-
- public JavaTaskVariableSection() {
- super(JavaTask.VAR, "Variable Name");
- }
-
-}
Copied:
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/properties/JavaTaskVariableSection.java
(from rev 17256,
trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/properties/JavaTaskVariableSection.java)
===================================================================
---
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/properties/JavaTaskVariableSection.java
(rev 0)
+++
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/properties/JavaTaskVariableSection.java 2009-11-11
20:54:30 UTC (rev 18625)
@@ -0,0 +1,11 @@
+package org.jboss.tools.flow.jpdl4.properties;
+
+import org.jboss.tools.flow.jpdl4.model.JavaTask;
+
+public class JavaTaskVariableSection extends TextFieldPropertySection {
+
+ public JavaTaskVariableSection() {
+ super(JavaTask.VAR, "Return Variable");
+ }
+
+}
Copied:
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/properties/PrimitiveObjectValueSection.java
(from rev 16383,
trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/properties/PrimitiveObjectValueSection.java)
===================================================================
---
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/properties/PrimitiveObjectValueSection.java
(rev 0)
+++
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/properties/PrimitiveObjectValueSection.java 2009-11-11
20:54:30 UTC (rev 18625)
@@ -0,0 +1,11 @@
+package org.jboss.tools.flow.jpdl4.properties;
+
+import org.jboss.tools.flow.jpdl4.model.PrimitiveObject;
+
+public class PrimitiveObjectValueSection extends TextFieldPropertySection {
+
+ public PrimitiveObjectValueSection() {
+ super(PrimitiveObject.VALUE, "Value");
+ }
+
+}
Copied:
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/properties/QueryTaskQuerySection.java
(from rev 16386,
trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/properties/QueryTaskQuerySection.java)
===================================================================
---
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/properties/QueryTaskQuerySection.java
(rev 0)
+++
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/properties/QueryTaskQuerySection.java 2009-11-11
20:54:30 UTC (rev 18625)
@@ -0,0 +1,11 @@
+package org.jboss.tools.flow.jpdl4.properties;
+
+import org.jboss.tools.flow.jpdl4.model.QueryTask;
+
+public class QueryTaskQuerySection extends TextFieldPropertySection {
+
+ public QueryTaskQuerySection() {
+ super(QueryTask.QUERY, "Query");
+ }
+
+}
Copied:
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/properties/QueryTaskUniqueSection.java
(from rev 16386,
trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/properties/QueryTaskUniqueSection.java)
===================================================================
---
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/properties/QueryTaskUniqueSection.java
(rev 0)
+++
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/properties/QueryTaskUniqueSection.java 2009-11-11
20:54:30 UTC (rev 18625)
@@ -0,0 +1,11 @@
+package org.jboss.tools.flow.jpdl4.properties;
+
+import org.jboss.tools.flow.jpdl4.model.QueryTask;
+
+public class QueryTaskUniqueSection extends TextFieldPropertySection {
+
+ public QueryTaskUniqueSection() {
+ super(QueryTask.UNIQUE, "Unique");
+ }
+
+}
Copied:
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/properties/QueryTaskVariableNameSection.java
(from rev 16386,
trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/properties/QueryTaskVariableNameSection.java)
===================================================================
---
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/properties/QueryTaskVariableNameSection.java
(rev 0)
+++
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/properties/QueryTaskVariableNameSection.java 2009-11-11
20:54:30 UTC (rev 18625)
@@ -0,0 +1,11 @@
+package org.jboss.tools.flow.jpdl4.properties;
+
+import org.jboss.tools.flow.jpdl4.model.QueryTask;
+
+public class QueryTaskVariableNameSection extends TextFieldPropertySection {
+
+ public QueryTaskVariableNameSection() {
+ super(QueryTask.VAR, "Variable Name");
+ }
+
+}
Deleted:
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/view/DetailsPage.java
===================================================================
---
trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/view/DetailsPage.java 2009-07-02
15:15:08 UTC (rev 16344)
+++
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/view/DetailsPage.java 2009-11-11
20:54:30 UTC (rev 18625)
@@ -1,79 +0,0 @@
-package org.jboss.tools.flow.jpdl4.view;
-
-import org.eclipse.gef.EditPart;
-import org.eclipse.gef.EditPartViewer;
-import org.eclipse.gef.ui.parts.TreeViewer;
-import org.eclipse.jface.viewers.ISelection;
-import org.eclipse.jface.viewers.ISelectionChangedListener;
-import org.eclipse.jface.viewers.IStructuredSelection;
-import org.eclipse.jface.viewers.SelectionChangedEvent;
-import org.eclipse.jface.viewers.StructuredSelection;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.Control;
-import org.eclipse.ui.part.Page;
-import org.jboss.tools.flow.jpdl4.editor.JpdlEditor;
-import org.jboss.tools.flow.jpdl4.editpart.JpdlTreeEditPartFactory;
-
-public class DetailsPage extends Page implements IDetailsPage, ISelectionChangedListener
{
-
- private EditPartViewer viewer;
- private Control control;
-
- public DetailsPage(JpdlEditor jpdlEditor) {
- viewer = new TreeViewer();
- viewer.setEditPartFactory(new JpdlTreeEditPartFactory());
- jpdlEditor.getEditDomain().addViewer(viewer);
- }
-
- public Control getControl() {
- return control;
- }
-
- protected EditPartViewer getViewer() {
- return viewer;
- }
-
- public void addSelectionChangedListener(ISelectionChangedListener listener) {
- getViewer().addSelectionChangedListener(listener);
- }
-
- public void removeSelectionChangedListener(ISelectionChangedListener listener) {
- getViewer().removeSelectionChangedListener(listener);
- }
-
- public void createControl(Composite parent) {
- control = getViewer().createControl(parent);
- }
-
- public ISelection getSelection() {
- if (getViewer() == null) {
- return StructuredSelection.EMPTY;
- }
- return getViewer().getSelection();
- }
-
- public void setFocus() {
- if (getControl() != null) {
- getControl().setFocus();
- }
- }
-
- public void setSelection(ISelection selection) {
- if (getViewer() != null) {
- getViewer().setSelection(selection);
- }
- }
-
- public void selectionChanged(SelectionChangedEvent event) {
- ISelection selection = event.getSelection();
- if (selection instanceof IStructuredSelection) {
- Object object = ((IStructuredSelection)selection).getFirstElement();
- if (object instanceof EditPart) {
- object = ((EditPart)object).getModel();
- }
- if (getViewer() != null) {
- getViewer().setContents(object);
- }
- }
- }
-}
Copied:
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/view/DetailsPage.java
(from rev 16386,
trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/view/DetailsPage.java)
===================================================================
---
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/view/DetailsPage.java
(rev 0)
+++
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/view/DetailsPage.java 2009-11-11
20:54:30 UTC (rev 18625)
@@ -0,0 +1,87 @@
+package org.jboss.tools.flow.jpdl4.view;
+
+import org.eclipse.gef.EditPart;
+import org.eclipse.gef.EditPartViewer;
+import org.eclipse.gef.ui.parts.TreeViewer;
+import org.eclipse.jface.viewers.ISelection;
+import org.eclipse.jface.viewers.ISelectionChangedListener;
+import org.eclipse.jface.viewers.IStructuredSelection;
+import org.eclipse.jface.viewers.SelectionChangedEvent;
+import org.eclipse.jface.viewers.StructuredSelection;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Control;
+import org.eclipse.ui.part.Page;
+import org.jboss.tools.flow.jpdl4.editor.JpdlEditor;
+import org.jboss.tools.flow.jpdl4.editpart.JpdlTreeEditPartFactory;
+
+public class DetailsPage extends Page implements IDetailsPage, ISelectionChangedListener
{
+
+ private EditPartViewer viewer;
+ private Control control;
+ private JpdlEditor jpdlEditor;
+
+ public DetailsPage(JpdlEditor jpdlEditor) {
+ viewer = new TreeViewer();
+ viewer.setEditPartFactory(new JpdlTreeEditPartFactory());
+ this.jpdlEditor = jpdlEditor;
+ jpdlEditor.getEditDomain().addViewer(viewer);
+ }
+
+ public Control getControl() {
+ return control;
+ }
+
+ protected EditPartViewer getViewer() {
+ return viewer;
+ }
+
+ public JpdlEditor getContributingEditor() {
+ return jpdlEditor;
+ }
+
+ public void addSelectionChangedListener(ISelectionChangedListener listener) {
+ getViewer().addSelectionChangedListener(listener);
+ }
+
+ public void removeSelectionChangedListener(ISelectionChangedListener listener) {
+ getViewer().removeSelectionChangedListener(listener);
+ }
+
+ public void createControl(Composite parent) {
+ control = getViewer().createControl(parent);
+ }
+
+ public ISelection getSelection() {
+ if (getViewer() == null) {
+ return StructuredSelection.EMPTY;
+ }
+ return getViewer().getSelection();
+ }
+
+ public void setFocus() {
+ if (getControl() != null) {
+ getControl().setFocus();
+ }
+ }
+
+ public void setSelection(ISelection selection) {
+ if (getViewer() != null) {
+ getViewer().setSelection(selection);
+ }
+ }
+
+ public void selectionChanged(SelectionChangedEvent event) {
+ ISelection selection = event.getSelection();
+ if (selection instanceof IStructuredSelection) {
+ Object object = ((IStructuredSelection)selection).getFirstElement();
+ if (object instanceof EditPart) {
+ object = ((EditPart)object).getModel();
+ }
+ if (getViewer() != null) {
+ getViewer().setContents(object);
+ }
+ }
+ }
+
+
+}
Deleted:
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/view/DetailsView.java
===================================================================
---
trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/view/DetailsView.java 2009-07-02
15:15:08 UTC (rev 16344)
+++
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/view/DetailsView.java 2009-11-11
20:54:30 UTC (rev 18625)
@@ -1,125 +0,0 @@
-package org.jboss.tools.flow.jpdl4.view;
-
-import org.eclipse.jface.action.GroupMarker;
-import org.eclipse.jface.action.MenuManager;
-import org.eclipse.jface.viewers.ISelection;
-import org.eclipse.jface.viewers.ISelectionChangedListener;
-import org.eclipse.jface.viewers.ISelectionProvider;
-import org.eclipse.jface.viewers.SelectionChangedEvent;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.Menu;
-import org.eclipse.ui.IEditorPart;
-import org.eclipse.ui.IWorkbenchActionConstants;
-import org.eclipse.ui.IWorkbenchPage;
-import org.eclipse.ui.IWorkbenchPart;
-import org.eclipse.ui.part.IPage;
-import org.eclipse.ui.part.IPageBookViewPage;
-import org.eclipse.ui.part.IPageSite;
-import org.eclipse.ui.part.MessagePage;
-import org.eclipse.ui.part.PageBook;
-import org.eclipse.ui.part.PageBookView;
-import org.eclipse.ui.views.properties.IPropertySheetPage;
-
-public class DetailsView extends PageBookView implements ISelectionProvider,
- ISelectionChangedListener {
-
- private MenuManager menuManager;
-
- public void createPartControl(Composite parent) {
- createContextMenu();
- super.createPartControl(parent);
- }
-
- protected void createContextMenu() {
- menuManager = new MenuManager();
- menuManager.add(new GroupMarker(IWorkbenchActionConstants.MB_ADDITIONS));
- getSite().registerContextMenu("org.jboss.tools.flow.jpdl4.details",
menuManager, getSelectionProvider());
- }
-
-
- public void addSelectionChangedListener(ISelectionChangedListener listener) {
- getSelectionProvider().addSelectionChangedListener(listener);
- }
-
- protected IPage createDefaultPage(PageBook book) {
- MessagePage page = new MessagePage();
- initPage(page);
- page.createControl(book);
- page.setMessage("Details are not available.");
- return page;
- }
-
- protected PageRec doCreatePage(IWorkbenchPart part) {
- Object obj = part.getAdapter(IDetailsPage.class);
- if (obj instanceof IDetailsPage) {
- IDetailsPage page = (IDetailsPage)obj;
- if (page instanceof IPageBookViewPage) {
- initPage((IPageBookViewPage)page);
- }
- page.createControl(getPageBook());
- Menu menu = menuManager.createContextMenu(getPageBook());
- page.getControl().setMenu(menu);
- return new PageRec(part, page);
- }
- return null;
- }
-
- protected void doDestroyPage(IWorkbenchPart part, PageRec rec) {
- IDetailsPage page = (IDetailsPage) rec.page;
- page.dispose();
- rec.dispose();
- }
-
- protected IWorkbenchPart getBootstrapPart() {
- IWorkbenchPage page = getSite().getPage();
- if (page != null) {
- return page.getActiveEditor();
- }
- return null;
- }
-
- public ISelection getSelection() {
- return getSelectionProvider().getSelection();
- }
-
- protected boolean isImportant(IWorkbenchPart part) {
- return (part instanceof IEditorPart);
- }
-
- public void partBroughtToTop(IWorkbenchPart part) {
- partActivated(part);
- }
-
- public void removeSelectionChangedListener(
- ISelectionChangedListener listener) {
- getSelectionProvider().removeSelectionChangedListener(listener);
- }
-
- public void selectionChanged(SelectionChangedEvent event) {
- getSelectionProvider().selectionChanged(event);
- }
-
- public void setSelection(ISelection selection) {
- getSelectionProvider().setSelection(selection);
- }
-
- protected void showPageRec(PageRec pageRec) {
- IPageSite pageSite = getPageSite(pageRec.page);
- ISelectionProvider provider = pageSite.getSelectionProvider();
- if (provider == null && (pageRec.page instanceof IDetailsPage)) {
- // This means that the page did not set a provider during its initialization
- // so for backward compatibility we will set the page itself as the
provider.
- pageSite.setSelectionProvider((IDetailsPage) pageRec.page);
- }
- super.showPageRec(pageRec);
- }
-
- @SuppressWarnings("unchecked")
- public Object getAdapter(Class adapter) {
- if (adapter == IPropertySheetPage.class && getCurrentContributingPart() !=
null)
- return getCurrentContributingPart().getAdapter(adapter);
- return super.getAdapter(adapter);
- }
-
-
-}
Copied:
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/view/DetailsView.java
(from rev 16386,
trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/view/DetailsView.java)
===================================================================
---
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/view/DetailsView.java
(rev 0)
+++
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/view/DetailsView.java 2009-11-11
20:54:30 UTC (rev 18625)
@@ -0,0 +1,125 @@
+package org.jboss.tools.flow.jpdl4.view;
+
+import org.eclipse.jface.action.GroupMarker;
+import org.eclipse.jface.action.MenuManager;
+import org.eclipse.jface.viewers.ISelection;
+import org.eclipse.jface.viewers.ISelectionChangedListener;
+import org.eclipse.jface.viewers.ISelectionProvider;
+import org.eclipse.jface.viewers.SelectionChangedEvent;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Menu;
+import org.eclipse.ui.IEditorPart;
+import org.eclipse.ui.IWorkbenchActionConstants;
+import org.eclipse.ui.IWorkbenchPage;
+import org.eclipse.ui.IWorkbenchPart;
+import org.eclipse.ui.part.IPage;
+import org.eclipse.ui.part.IPageBookViewPage;
+import org.eclipse.ui.part.IPageSite;
+import org.eclipse.ui.part.MessagePage;
+import org.eclipse.ui.part.PageBook;
+import org.eclipse.ui.part.PageBookView;
+import org.eclipse.ui.views.properties.IPropertySheetPage;
+
+public class DetailsView extends PageBookView implements ISelectionProvider,
+ ISelectionChangedListener {
+
+ private MenuManager menuManager;
+
+ public void createPartControl(Composite parent) {
+ createContextMenu();
+ super.createPartControl(parent);
+ }
+
+ protected void createContextMenu() {
+ menuManager = new MenuManager();
+ menuManager.add(new GroupMarker(IWorkbenchActionConstants.MB_ADDITIONS));
+ getSite().registerContextMenu("org.jboss.tools.flow.jpdl4.details",
menuManager, getSelectionProvider());
+ }
+
+
+ public void addSelectionChangedListener(ISelectionChangedListener listener) {
+ getSelectionProvider().addSelectionChangedListener(listener);
+ }
+
+ protected IPage createDefaultPage(PageBook book) {
+ MessagePage page = new MessagePage();
+ initPage(page);
+ page.createControl(book);
+ page.setMessage("Details are not available.");
+ return page;
+ }
+
+ protected PageRec doCreatePage(IWorkbenchPart part) {
+ Object obj = part.getAdapter(IDetailsPage.class);
+ if (obj instanceof IDetailsPage) {
+ IDetailsPage page = (IDetailsPage)obj;
+ if (page instanceof IPageBookViewPage) {
+ initPage((IPageBookViewPage)page);
+ }
+ page.createControl(getPageBook());
+ Menu menu = menuManager.createContextMenu(getPageBook());
+ page.getControl().setMenu(menu);
+ return new PageRec(part, page);
+ }
+ return null;
+ }
+
+ protected void doDestroyPage(IWorkbenchPart part, PageRec rec) {
+ IDetailsPage page = (IDetailsPage) rec.page;
+ page.dispose();
+ rec.dispose();
+ }
+
+ protected IWorkbenchPart getBootstrapPart() {
+ IWorkbenchPage page = getSite().getPage();
+ if (page != null) {
+ return page.getActiveEditor();
+ }
+ return null;
+ }
+
+ public ISelection getSelection() {
+ return getSelectionProvider().getSelection();
+ }
+
+ protected boolean isImportant(IWorkbenchPart part) {
+ return (part instanceof IEditorPart);
+ }
+
+ public void partBroughtToTop(IWorkbenchPart part) {
+ partActivated(part);
+ }
+
+ public void removeSelectionChangedListener(
+ ISelectionChangedListener listener) {
+ getSelectionProvider().removeSelectionChangedListener(listener);
+ }
+
+ public void selectionChanged(SelectionChangedEvent event) {
+ getSelectionProvider().selectionChanged(event);
+ }
+
+ public void setSelection(ISelection selection) {
+ getSelectionProvider().setSelection(selection);
+ }
+
+ protected void showPageRec(PageRec pageRec) {
+ IPageSite pageSite = getPageSite(pageRec.page);
+ ISelectionProvider provider = pageSite.getSelectionProvider();
+ if (provider == null && (pageRec.page instanceof IDetailsPage)) {
+ // This means that the page did not set a provider during its initialization
+ // so for backward compatibility we will set the page itself as the
provider.
+ pageSite.setSelectionProvider((IDetailsPage) pageRec.page);
+ }
+ super.showPageRec(pageRec);
+ }
+
+ @SuppressWarnings("unchecked")
+ public Object getAdapter(Class adapter) {
+ if (adapter == IPropertySheetPage.class && getCurrentPage() != null
&& getCurrentPage() instanceof DetailsPage)
+ return
((DetailsPage)getCurrentPage()).getContributingEditor().getAdapter(adapter);
+ return super.getAdapter(adapter);
+ }
+
+
+}
Copied:
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/wizard/AddJpdl4SupportWizard.java
(from rev 16814,
trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/wizard/AddJpdl4SupportWizard.java)
===================================================================
---
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/wizard/AddJpdl4SupportWizard.java
(rev 0)
+++
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/wizard/AddJpdl4SupportWizard.java 2009-11-11
20:54:30 UTC (rev 18625)
@@ -0,0 +1,482 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt 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.tools.flow.jpdl4.wizard;
+
+import org.eclipse.jface.viewers.IStructuredSelection;
+import org.eclipse.jface.wizard.Wizard;
+import org.eclipse.ui.INewWizard;
+import org.eclipse.ui.IWorkbench;
+
+public class AddJpdl4SupportWizard extends Wizard implements INewWizard {
+
+ @Override
+ public boolean performFinish() {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ public void init(IWorkbench workbench, IStructuredSelection selection) {
+ // TODO Auto-generated method stub
+
+ }
+
+// private WizardNewProjectCreationPage mainPage;
+// private ConfigureJpdl4RuntimePage configureRuntimePage;
+// private ChooseJpdl4RuntimePage coreJbpmPage;
+// private IProject newProject;
+// private IWorkbench workbench;
+//
+//// public boolean canFinish() {
+//// return super.canFinish() && coreJbpmPage.combo.getItemCount() > 0
&& coreJbpmPage.combo.getSelectionIndex() != -1;
+//// }
+//
+// public void init(IWorkbench w, IStructuredSelection currentSelection) {
+// this.workbench = w;
+// setNeedsProgressMonitor(true);
+// setWindowTitle("Add jPDL 4 Support");
+// }
+//
+// public void addPages() {
+//// addMainPage();
+// if (!isRuntimeAvailable()) {
+// addConfigureRuntimePage();
+// }
+// addChooseRuntimePage();
+// }
+//
+// private boolean isRuntimeAvailable() {
+// return !PreferencesManager.INSTANCE.getJbpmInstallationMap().isEmpty();
+// }
+//
+// private void addConfigureRuntimePage() {
+// configureRuntimePage = new ConfigureJpdl4RuntimePage();
+// addPage(configureRuntimePage);
+// }
+//
+// private void addChooseRuntimePage() {
+// coreJbpmPage = new ChooseJpdl4RuntimePage();
+// addPage(coreJbpmPage);
+// }
+//
+// private void addMainPage() {
+// super.addPages();
+// setWindowTitle("New Process Project");
+// mainPage = new WizardNewProjectCreationPage("basicNewProjectPage");
+// mainPage.setTitle("Process Project");
+// mainPage.setDescription("Create a new process project.");
+// addPage(mainPage);
+// }
+//
+// private IProject createNewProject() {
+// final IProject newProjectHandle = mainPage.getProjectHandle();
+// final IProjectDescription description = createProjectDescription(newProjectHandle);
+// WorkspaceModifyOperation op = new WorkspaceModifyOperation() {
+// protected void execute(IProgressMonitor monitor)
+// throws CoreException {
+// createProject(description, newProjectHandle, monitor);
+// }
+// };
+// runProjectCreationOperation(op, newProjectHandle);
+// return newProjectHandle;
+// }
+//
+// private void addJRELibraries(IJavaProject javaProject) throws JavaModelException {
+// ArrayList entries = new ArrayList();
+// entries.addAll(Arrays.asList(javaProject.getRawClasspath()));
+// entries.addAll(Arrays.asList(PreferenceConstants.getDefaultJRELibrary()));
+// javaProject.setRawClasspath((IClasspathEntry[])entries.toArray(new
IClasspathEntry[entries.size()]), null);
+// }
+//
+// private void addSourceFolders(IJavaProject javaProject) throws JavaModelException,
CoreException {
+// ArrayList entries = new ArrayList();
+// entries.addAll(Arrays.asList(javaProject.getRawClasspath()));
+// addSourceFolder(javaProject, entries, "src/main/java");
+// addSourceFolder(javaProject, entries, "src/main/config");
+// addSourceFolder(javaProject, entries, "src/main/jpdl");
+// addSourceFolder(javaProject, entries, "src/test/java");
+// javaProject.setRawClasspath((IClasspathEntry[])entries.toArray(new
IClasspathEntry[entries.size()]), null);
+// }
+//
+// private void addSourceFolder(IJavaProject javaProject, ArrayList entries, String path)
throws CoreException {
+// IFolder folder = javaProject.getProject().getFolder(path);
+// createFolder(folder);
+// IPackageFragmentRoot root = javaProject.getPackageFragmentRoot(folder);
+// entries.add(JavaCore.newSourceEntry(root.getPath()));
+// }
+//
+// private void createFolder(IFolder folder) throws CoreException {
+// IContainer parent = folder.getParent();
+// if (parent != null && !parent.exists() && parent instanceof IFolder)
{
+// createFolder((IFolder)parent);
+// }
+// folder.create(true, true, null);
+// }
+//
+// private JbpmInstallation getJbpmInstallation() {
+// return PreferencesManager.INSTANCE.getJbpmInstallation(getCoreJbpmName());
+// }
+//
+// private void createJbpmLibraryContainer(IJavaProject javaProject) throws
JavaModelException {
+// JavaCore.setClasspathContainer(
+// new Path("JBPM/" + getJbpmInstallation().name),
+// new IJavaProject[] { javaProject },
+// new IClasspathContainer[] { new JbpmClasspathContainer(javaProject,
getJbpmInstallation()) },
+// null);
+// }
+//
+// private String getCoreJbpmName() {
+// return coreJbpmPage.getCoreJbpmName();
+// }
+//
+// private void addJbpmLibraries(IJavaProject javaProject) throws JavaModelException {
+// createJbpmLibraryContainer(javaProject);
+// ArrayList entries = new ArrayList();
+// entries.addAll(Arrays.asList(javaProject.getRawClasspath()));
+// entries.add(JavaCore.newContainerEntry(new Path("JBPM/" +
getJbpmInstallation().name)));
+// javaProject.setRawClasspath((IClasspathEntry[])entries.toArray(new
IClasspathEntry[entries.size()]), null);
+// }
+//
+// private void createOutputLocation(IJavaProject javaProject) throws JavaModelException,
CoreException {
+// IFolder binFolder = javaProject.getProject().getFolder("bin");
+// createFolder(binFolder);
+// IPath outputLocation = binFolder.getFullPath();
+// javaProject.setOutputLocation(outputLocation, null);
+// }
+//
+// private void addJavaBuilder(IJavaProject javaProject) throws CoreException {
+// IProjectDescription desc = javaProject.getProject().getDescription();
+// ICommand command = desc.newCommand();
+// command.setBuilderName(JavaCore.BUILDER_ID);
+// desc.setBuildSpec(new ICommand[] { command });
+// javaProject.getProject().setDescription(desc, null);
+// }
+//
+// private void createJavaProject() {
+// try {
+// newProject = createNewProject();
+// newProject.setPersistentProperty(new QualifiedName("",
"jbpmName"), getCoreJbpmName());
+// IJavaProject javaProject = JavaCore.create(newProject);
+// createOutputLocation(javaProject);
+// addJavaBuilder(javaProject);
+// setClasspath(javaProject);
+// createInitialContent(javaProject);
+// newProject.build(IncrementalProjectBuilder.FULL_BUILD, null);
+// } catch (JavaModelException e) {
+// ErrorDialog.openError(getShell(), "Problem creating java project", null,
e.getStatus());
+// } catch (CoreException e) {
+// ErrorDialog.openError(getShell(), "Problem creating java project", null,
e.getStatus());
+// } catch (IOException e) {
+// ErrorDialog.openError(getShell(), "Problem creating java project", null,
null);
+// }
+// }
+//
+// private void createInitialContent(IJavaProject javaProject) throws CoreException,
JavaModelException, IOException {
+// if (coreJbpmPage.checkbox.getSelection()) {
+// createMessageActionHandler(javaProject);
+// createSimpleProcessTest(javaProject);
+// createSimpleProcessDefinition(javaProject);
+// }
+// copyJbpmResources(javaProject);
+// }
+//
+// private void createSimpleProcessDefinition(IJavaProject javaProject) throws
CoreException, JavaModelException, IOException {
+// JbpmInstallation jbpmInstallation =
PreferencesManager.INSTANCE.getJbpmInstallation(getCoreJbpmName());
+// if (jbpmInstallation == null) return;
+//// IFolder processesFolder =
javaProject.getProject().getFolder("processes");
+//// if (!processesFolder.exists()) {
+//// processesFolder.create(true, true, null);
+//// }
+// IFolder folder =
javaProject.getProject().getFolder("src/main/jpdl/simple");
+// if (!folder.exists()) {
+// folder.create(true, true, null);
+// }
+// String location =
VariablesPlugin.getDefault().getStringVariableManager().performStringSubstitution(jbpmInstallation.location);
+// String fromPath = getLocation("examples", location);
+// if (fromPath == null) {
+// fromPath = "/src/process.examples/simple.par";
+// } else {
+// fromPath = fromPath + "/simple/src/main/jpdl";
+// }
+// fromPath = new Path(location).append(fromPath).toOSString();
+// File fromDir = new File(fromPath);
+// if (!fromDir.exists()) return;
+// File[] files = fromDir.listFiles();
+// for (int i = 0; i < files.length; i++) {
+// copyJbpmResource(files[i], folder);
+// }
+// }
+//
+// private void createSimpleProcessTest(IJavaProject javaProject) throws
JavaModelException, IOException {
+// String resourceName =
"org/jbpm/gd/jpdl/resource/SimpleProcessTest.java.template";
+// IFolder folder = javaProject.getProject().getFolder("src/test/java");
+// IPackageFragmentRoot root = javaProject.getPackageFragmentRoot(folder);
+// IPackageFragment pack = root.createPackageFragment("com.sample", true,
null);
+// InputStream stream = getClass().getClassLoader().getResourceAsStream(resourceName);
+// byte[] content = readStream(stream);
+// pack.createCompilationUnit("SimpleProcessTest.java", new String(content),
true, null);
+// }
+//
+// private void createMessageActionHandler(IJavaProject javaProject) throws
JavaModelException, IOException {
+// String resourceName =
"org/jbpm/gd/jpdl/resource/MessageActionHandler.java.template";
+// IFolder folder = javaProject.getProject().getFolder("src/main/java");
+// IPackageFragmentRoot root = javaProject.getPackageFragmentRoot(folder);
+// IPackageFragment pack = root.createPackageFragment("com.sample.action",
true, null);
+// InputStream stream = getClass().getClassLoader().getResourceAsStream(resourceName);
+// byte[] content = readStream(stream);
+// pack.createCompilationUnit("MessageActionHandler.java", new
String(content), true, null);
+// }
+//
+// private void copyJbpmResources(IJavaProject javaProject) throws CoreException {
+// JbpmInstallation jbpmInstallation =
PreferencesManager.INSTANCE.getJbpmInstallation(getCoreJbpmName());
+// if (jbpmInstallation == null) return;
+// String location =
VariablesPlugin.getDefault().getStringVariableManager().performStringSubstitution(jbpmInstallation.location);
+// IFolder folder = javaProject.getProject().getFolder("src/main/config");
+// String fromPath = getLocation("config", location);
+// if (fromPath == null) {
+// fromPath = "/src/config.files";
+// }
+// fromPath = new Path(location).append(fromPath).toOSString();
+// File fromDir = new File(fromPath);
+// if (!fromDir.exists()) return;
+// File[] files = fromDir.listFiles();
+// for (int i = 0; i < files.length; i++) {
+// if (!files[i].isDirectory()) {
+// copyJbpmResource(files[i], folder);
+// }
+// }
+// }
+//
+// private String getLocation(String selector, String baseLocation) {
+// String result = null;
+// try {
+// IPath locationPath = new Path(baseLocation);
+// Document document = new
SAXReader().read(locationPath.append("src/resources/gpd/version.info.xml").toFile());
+// XPath xpath = document.createXPath("/jbpm-version-info/" + selector);
+// List list = xpath.selectNodes(document);
+// if (!list.isEmpty()) {
+// result = (String)((Element)list.get(0)).attribute("path").getData();
+// }
+// }
+// catch (MalformedURLException e) { }
+// catch (DocumentException e) { }
+// return result;
+// }
+//
+// private void copyJbpmResource(File source, IFolder destination) throws CoreException
{
+// try {
+// IFile file = destination.getFile(source.getName());
+// file.create(new FileInputStream(source), true, null);
+// } catch (FileNotFoundException e) {
+// e.printStackTrace();
+// }
+// }
+//
+// private void setClasspath(IJavaProject javaProject) throws JavaModelException,
CoreException {
+// javaProject.setRawClasspath(new IClasspathEntry[0], null);
+// addSourceFolders(javaProject);
+// addJRELibraries(javaProject);
+// addJbpmLibraries(javaProject);
+// // Hack to overcome the problems of the classpath container not being created in the
classpath.
+// javaProject.getRawClasspath();
+// }
+//
+// private IProjectDescription createProjectDescription(
+// IProject newProjectHandle) {
+// IPath newPath = null;
+// if (!mainPage.useDefaults())
+// newPath = mainPage.getLocationPath();
+// IWorkspace workspace = ResourcesPlugin.getWorkspace();
+// IProjectDescription description = workspace
+// .newProjectDescription(newProjectHandle.getName());
+// description.setLocation(newPath);
+// addJavaNature(description);
+// return description;
+// }
+//
+// private void addJavaNature(IProjectDescription description) {
+// ArrayList natures = new ArrayList();
+// natures.addAll(Arrays.asList(description.getNatureIds()));
+// natures.add(JavaCore.NATURE_ID);
+// description.setNatureIds((String[])natures.toArray(new String[natures.size()]));
+// }
+//
+// private void runProjectCreationOperation(WorkspaceModifyOperation op,
+// IProject newProjectHandle) {
+// try {
+// getContainer().run(false, true, op);
+// } catch (InterruptedException e) {
+// Logger.logError("InterruptedException while creating project", e);
+// } catch (InvocationTargetException e) {
+// Throwable t = e.getTargetException();
+// if (t instanceof CoreException) {
+// handleCoreException(newProjectHandle, (CoreException) t);
+// } else {
+// handleOtherProblem(t);
+// }
+// }
+// }
+//
+// private void handleOtherProblem(Throwable t) {
+// MessageDialog.openError(getShell(), "Creation Problems",
+// "Internal error: " + t.getMessage());
+// }
+//
+// private void handleCoreException(final IProject newProjectHandle,
+// CoreException e) {
+// if (e.getStatus().getCode() == IResourceStatus.CASE_VARIANT_EXISTS) {
+// MessageDialog
+// .openError(
+// getShell(),
+// "Creation Problems",
+// "The underlying file system is case insensitive. There is an existing
project which conflicts with '"
+// + newProjectHandle.getName() + "'.");
+// } else {
+// ErrorDialog.openError(getShell(), "Creation Problems", null, e
+// .getStatus());
+// }
+// }
+//
+// void createProject(IProjectDescription description, IProject projectHandle,
+// IProgressMonitor monitor) throws CoreException,
+// OperationCanceledException {
+// try {
+// monitor.beginTask("", 2000);
+// projectHandle.create(description, new SubProgressMonitor(monitor,
+// 1000));
+// if (monitor.isCanceled()) {
+// throw new OperationCanceledException();
+// }
+// projectHandle.open(IResource.BACKGROUND_REFRESH,
+// new SubProgressMonitor(monitor, 1000));
+// } finally {
+// monitor.done();
+// }
+// }
+//
+// public IProject getNewProject() {
+// return newProject;
+// }
+//
+// public boolean performFinish() {
+// if (!isRuntimeAvailable()) {
+// addNewJpdl4Runtime();
+// }
+// addJpdl4ClasspathContainer();
+// return true;
+// }
+//
+// private void addNewJpdl4Runtime() {
+//// String name = configureRuntimePage.nameText.getText();
+//// String location = configureRuntimePage.locationText.getText();
+//// String version = configureRuntimePage.versionText.getText();
+//// PreferencesManager.INSTANCE.initializeDefaultJbpmInstallation(name, location,
version);
+// }
+//
+// protected void updatePerspective() {
+// try {
+// IWorkbenchPage page =
PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
+// if (page.findView("org.eclipse.ui.views.PropertySheet") == null) {
+// page.showView("org.eclipse.ui.views.PropertySheet");
+// }
+// } catch (PartInitException e) {
+// e.printStackTrace();
+// }
+// }
+//
+// protected void selectAndReveal(IResource newResource) {
+// selectAndReveal(newResource, workbench.getActiveWorkbenchWindow());
+// }
+//
+// private void selectAndReveal(IResource resource,
+// IWorkbenchWindow window) {
+// if (!inputValid(resource, window)) return;
+// Iterator itr = getParts(window.getActivePage()).iterator();
+// while (itr.hasNext()) {
+// selectAndRevealTarget(
+// window,
+// new StructuredSelection(resource),
+// getTarget((IWorkbenchPart)itr.next()));
+// }
+// }
+//
+// private boolean inputValid(IResource resource, IWorkbenchWindow window) {
+// if (window == null || resource == null) return false;
+// else if (window.getActivePage() == null) return false;
+// else return true;
+// }
+//
+// private void selectAndRevealTarget(IWorkbenchWindow window, final ISelection
selection, ISetSelectionTarget target) {
+// if (target == null) return;
+// final ISetSelectionTarget finalTarget = target;
+// window.getShell().getDisplay().asyncExec(new Runnable() {
+// public void run() {
+// finalTarget.selectReveal(selection);
+// }
+// });
+// }
+//
+// private ISetSelectionTarget getTarget(IWorkbenchPart part) {
+// ISetSelectionTarget target = null;
+// if (part instanceof ISetSelectionTarget) {
+// target = (ISetSelectionTarget)part;
+// }
+// else {
+// target = (ISetSelectionTarget)part.getAdapter(ISetSelectionTarget.class);
+// }
+// return target;
+// }
+//
+// private List getParts(IWorkbenchPage page) {
+// List result = new ArrayList();
+// addParts(result, page.getViewReferences());
+// addParts(result, page.getEditorReferences());
+// return result;
+// }
+//
+// private void addParts(List parts, IWorkbenchPartReference[] refs) {
+// for (int i = 0; i < refs.length; i++) {
+// IWorkbenchPart part = refs[i].getPart(false);
+// if (part != null) {
+// parts.add(part);
+// }
+// }
+// }
+//
+// private byte[] readStream(InputStream in) throws IOException {
+// byte[] contents = null;
+// int fileSize = 0;
+// byte[] buffer = new byte[1024];
+// int bytesRead = in.read(buffer);
+// while (bytesRead != -1) {
+// byte[] newContents = new byte[fileSize + bytesRead];
+// if (fileSize > 0) {
+// System.arraycopy(contents, 0, newContents, 0, fileSize);
+// }
+// System.arraycopy(buffer, 0, newContents, fileSize, bytesRead);
+// contents = newContents;
+// fileSize += bytesRead;
+// bytesRead = in.read(buffer);
+// }
+// return contents;
+// }
+
+}
\ No newline at end of file
Copied:
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/wizard/ChooseJpdl4RuntimePage.java
(from rev 16814,
trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/wizard/ChooseJpdl4RuntimePage.java)
===================================================================
---
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/wizard/ChooseJpdl4RuntimePage.java
(rev 0)
+++
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/wizard/ChooseJpdl4RuntimePage.java 2009-11-11
20:54:30 UTC (rev 18625)
@@ -0,0 +1,119 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt 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.tools.flow.jpdl4.wizard;
+
+import java.util.Iterator;
+
+import org.eclipse.jface.wizard.WizardPage;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.events.SelectionAdapter;
+import org.eclipse.swt.events.SelectionEvent;
+import org.eclipse.swt.layout.GridData;
+import org.eclipse.swt.layout.GridLayout;
+import org.eclipse.swt.widgets.Button;
+import org.eclipse.swt.widgets.Combo;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Group;
+import org.jboss.tools.jbpm.preferences.PreferencesManager;
+
+public class ChooseJpdl4RuntimePage extends WizardPage {
+
+ Combo combo;
+ Button checkbox;
+
+ public ChooseJpdl4RuntimePage() {
+ super("Process Project Details");
+ setTitle("Choose Process Project Details");
+ setDescription("Choose Process Project Details");
+ }
+
+ public void createControl(Composite parent) {
+ Composite composite = createClientArea(parent);
+ createCoreVersionGroup(composite);
+ createGenerateTemplateGroup(composite);
+ setControl(composite);
+ }
+
+ private void createCoreVersionGroup(Composite composite) {
+ Group group = new Group(composite, SWT.NONE);
+ group.setText("Choose the Core jBPM Location for this project");
+ group.setLayout(new GridLayout());
+ group.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
+ createCombo(group);
+ }
+
+ private void createGenerateTemplateGroup(Composite composite) {
+ Group group = new Group(composite, SWT.NONE);
+ group.setText("Check to enable generation of sample files in the project");
+ group.setLayout(new GridLayout());
+ group.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
+ createCheckbox(group);
+ }
+
+ private void createCheckbox(Composite composite) {
+ checkbox = new Button(composite, SWT.CHECK);
+ checkbox.setText("Generate simple process definition, action handler and JUnit
test");
+ checkbox.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
+ checkbox.setSelection(true);
+ }
+
+ private void createCombo(Composite composite) {
+ combo = new Combo(composite, SWT.DROP_DOWN | SWT.READ_ONLY);
+ combo.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
+ fillComboWithPreferenceRuntimes();
+ combo.addSelectionListener(new SelectionAdapter() {
+ public void widgetSelected(SelectionEvent e) {
+ setPageComplete(combo.getSelectionIndex() != -1);
+ }
+
+ });
+ }
+
+ private void fillComboWithPreferenceRuntimes() {
+// Iterator iterator =
PreferencesManager.INSTANCE.getJbpmInstallationMap().keySet().iterator();
+// int counter = 0;
+// while (iterator.hasNext()) {
+// counter++;
+// String next = (String)iterator.next();
+// combo.add(next);
+// if (PreferencesManager.INSTANCE.getPreferredJbpmName().equals(next)) {
+// combo.select(counter - 1);
+// }
+// }
+ }
+
+ private Composite createClientArea(Composite parent) {
+ Composite composite= new Composite(parent, SWT.NONE);
+ GridLayout layout= new GridLayout();
+ layout.marginWidth= 0;
+ layout.marginHeight= 0;
+ layout.numColumns= 1;
+ composite.setLayout(layout);
+ return composite;
+ }
+
+ public String getCoreJbpmName() {
+ String result = combo.getItem(combo.getSelectionIndex());
+ return result;
+ }
+
+}
Copied:
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/wizard/ConfigureJpdl4RuntimePage.java
(from rev 16814,
trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/wizard/ConfigureJpdl4RuntimePage.java)
===================================================================
---
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/wizard/ConfigureJpdl4RuntimePage.java
(rev 0)
+++
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/wizard/ConfigureJpdl4RuntimePage.java 2009-11-11
20:54:30 UTC (rev 18625)
@@ -0,0 +1,243 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt 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.tools.flow.jpdl4.wizard;
+
+import java.io.File;
+import java.net.MalformedURLException;
+
+import org.eclipse.core.runtime.Path;
+import org.eclipse.jface.wizard.WizardPage;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.events.ModifyEvent;
+import org.eclipse.swt.events.ModifyListener;
+import org.eclipse.swt.events.SelectionAdapter;
+import org.eclipse.swt.events.SelectionEvent;
+import org.eclipse.swt.layout.GridData;
+import org.eclipse.swt.layout.GridLayout;
+import org.eclipse.swt.program.Program;
+import org.eclipse.swt.widgets.Button;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.DirectoryDialog;
+import org.eclipse.swt.widgets.Group;
+import org.eclipse.swt.widgets.Label;
+import org.eclipse.swt.widgets.Link;
+import org.eclipse.swt.widgets.Text;
+import org.w3c.dom.Document;
+
+public class ConfigureJpdl4RuntimePage extends WizardPage {
+
+ private static final String ENTER_NAME_MSG = "Choose a name for the JBoss jBPM
Runtime, e.g. 'jBPM jPDL 3.2.2'";
+ private static final String ENTER_LOCATION_MSG = "Enter or search a location for
the JBoss jBPM Runtime";
+ private static final String CONTINUE_MSG = "Press next to continue the project
creation";
+ private static final String UNEXISTING_LOCATION_MSG = "This location does not
exist";
+ private static final String INVALID_LOCATION_MSG = "This location does not contain
a valid JBoss jBPM runtime, please retry";
+
+ Text nameText, locationText, versionText;
+
+ public ConfigureJpdl4RuntimePage() {
+ super("Configure JBoss jBPM Runtime");
+ setTitle("Configure JBoss jBPM Runtime");
+ setMessage(ENTER_NAME_MSG);
+ }
+
+ public void createControl(Composite parent) {
+ Composite composite = createClientArea(parent);
+ createLocateJbpmRuntimeGroup(composite);
+ createSpace(composite);
+ createDownloadJbpmRuntimeLink(composite);
+ setControl(composite);
+ }
+
+ private void update() {
+ updateMessage();
+ updateVersion();
+ updatePages();
+ }
+
+ private void updatePages() {
+ setPageComplete(!isNameEmpty() && !isLocationEmpty() &&
!isVersionEmpty());
+ if (!isNameEmpty()) {
+ ChooseJpdl4RuntimePage page = (ChooseJpdl4RuntimePage)getNextPage();
+ page.combo.removeAll();
+ page.combo.add(nameText.getText());
+ page.combo.select(0);
+ }
+ }
+
+ private void createSpace(Composite composite) {
+ Label label = new Label(composite, SWT.NONE);
+ label.setLayoutData(new GridData(GridData.FILL_BOTH));
+ }
+
+ private void createDownloadJbpmRuntimeLink(Composite composite) {
+ Link link = new Link(composite, SWT.NONE);
+ link.setText("<a>Download the JBoss jBPM package if you have none available
yet.</a>");
+ GridData gridData = new GridData(GridData.FILL_HORIZONTAL);
+ gridData.horizontalAlignment = SWT.CENTER;
+ gridData.verticalIndent = 5;
+ link.setLayoutData(gridData);
+ link.addSelectionListener(new SelectionAdapter() {
+ public void widgetSelected(SelectionEvent e) {
+
Program.launch("http://labs.jboss.com/jbossjbpm/downloads/");
+ }
+ });
+ }
+
+ private void createLocateJbpmRuntimeGroup(Composite composite) {
+ Group group = new Group(composite, SWT.NONE);
+ group.setText("Locate a JBoss jBPM Runtime");
+ group.setLayout(new GridLayout(3, false));
+ GridData gridData = new GridData(GridData.FILL_HORIZONTAL);
+ gridData.verticalIndent = 5;
+ group.setLayoutData(gridData);
+ createJbpmRuntimeNameField(group);
+ createJbpmRuntimeLocationField(group);
+ createJbpmRuntimeVersionField(group);
+ }
+
+ private void createJbpmRuntimeVersionField(Composite composite) {
+ Label versionLabel = new Label(composite, SWT.NONE);
+ versionLabel.setText("Version :");
+ versionText = new Text(composite, SWT.BORDER);
+ versionText.setEditable(false);
+ versionText.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
+ }
+
+ private void createJbpmRuntimeNameField(Composite composite) {
+ Label nameLabel = new Label(composite, SWT.NONE);
+ nameLabel.setText("Name :");
+ nameText = new Text(composite, SWT.BORDER);
+ nameText.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
+ nameText.addModifyListener(new ModifyListener() {
+ public void modifyText(ModifyEvent e) {
+ update();
+ }
+ });
+ new Label(composite, SWT.NONE);
+ }
+
+ private void createJbpmRuntimeLocationField(Composite composite) {
+ Label locationLabel = new Label(composite, SWT.NONE);
+ locationLabel.setText("Location :");
+ locationText = new Text(composite, SWT.BORDER);
+ locationText.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
+ locationText.addModifyListener(new ModifyListener() {
+ public void modifyText(ModifyEvent e) {
+ update();
+ }
+ });
+ Button locationButton = new Button(composite, SWT.PUSH);
+ locationButton.setText("Browse...");
+ locationButton.addSelectionListener(new SelectionAdapter() {
+ public void widgetSelected(SelectionEvent e) {
+ searchLocation();
+ }
+ });
+ }
+
+ private void searchLocation() {
+ DirectoryDialog dialog = new DirectoryDialog(getShell(), SWT.OPEN);
+ String result = dialog.open();
+ if (result != null) {
+ locationText.setText(result);
+ }
+ }
+
+ private Composite createClientArea(Composite parent) {
+ Composite composite= new Composite(parent, SWT.NONE);
+ GridLayout layout= new GridLayout();
+ layout.marginWidth= 0;
+ layout.marginHeight= 0;
+ layout.numColumns= 1;
+ composite.setLayout(layout);
+ return composite;
+ }
+
+ private void updateMessage() {
+ setErrorMessage(null);
+ if (isNameEmpty() && isLocationEmpty()) {
+ setMessage(ENTER_NAME_MSG);
+ } else if (isLocationEmpty()) {
+ setMessage(ENTER_LOCATION_MSG);
+ } else if (!isLocationExisting()) {
+ setErrorMessage(UNEXISTING_LOCATION_MSG);
+ } else if (!isValidJbpmInstallation()) {
+ setErrorMessage(INVALID_LOCATION_MSG);
+ } else if (isNameEmpty()) {
+ setMessage(ENTER_NAME_MSG);
+ } else {
+ setMessage(CONTINUE_MSG);
+ }
+ }
+
+ private void updateVersion() {
+ String version = getVersion();
+ if (version != null) {
+ versionText.setText(version);
+ }
+ }
+
+ private String getVersion() {
+ String result = null;
+// File versionInfoFile;
+// if (!isLocationEmpty() && isLocationExisting() &&
isValidJbpmInstallation()) {
+// versionInfoFile = getJbpmVersionInfoFile();
+// if (versionInfoFile == null) return result;
+// try {
+// Document document = new SAXReader().read(versionInfoFile);
+// result = document.getRootElement().attribute("name").getValue();
+// }
+// catch (DocumentException e) {}
+// catch (MalformedURLException e) {}
+// }
+ return result;
+ }
+
+ private boolean isNameEmpty() {
+ String text = nameText.getText();
+ return text == null || "".equals(text);
+ }
+
+ private boolean isLocationEmpty() {
+ String text = locationText.getText();
+ return text == null || "".equals(text);
+ }
+
+ private boolean isVersionEmpty() {
+ String text = versionText.getText();
+ return text == null || "".equals(text);
+ }
+
+ private boolean isLocationExisting() {
+ return new Path(locationText.getText()).toFile().exists();
+ }
+
+ private boolean isValidJbpmInstallation() {
+ return getJbpmVersionInfoFile().exists();
+ }
+
+ private File getJbpmVersionInfoFile() {
+ return new
Path(locationText.getText()).append("/src/resources/gpd/version.info.xml").toFile();
+ }
+
+
+}
Deleted:
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/wizard/NewJpdl4FileWizard.java
===================================================================
---
trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/wizard/NewJpdl4FileWizard.java 2009-07-02
15:15:08 UTC (rev 16344)
+++
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/wizard/NewJpdl4FileWizard.java 2009-11-11
20:54:30 UTC (rev 18625)
@@ -1,64 +0,0 @@
-package org.jboss.tools.flow.jpdl4.wizard;
-
-import org.eclipse.core.resources.IFile;
-import org.eclipse.jface.viewers.IStructuredSelection;
-import org.eclipse.jface.wizard.Wizard;
-import org.eclipse.ui.IWorkbench;
-import org.eclipse.ui.IWorkbenchPage;
-import org.eclipse.ui.IWorkbenchWindow;
-import org.eclipse.ui.IWorkbenchWizard;
-import org.eclipse.ui.PartInitException;
-import org.eclipse.ui.PlatformUI;
-import org.eclipse.ui.ide.IDE;
-import org.eclipse.ui.wizards.newresource.BasicNewResourceWizard;
-import org.jboss.tools.flow.jpdl4.Logger;
-
-public class NewJpdl4FileWizard extends Wizard implements IWorkbenchWizard {
-
- private static String ID_PROP_SHEET = "org.eclipse.ui.views.PropertySheet";
-
- private IStructuredSelection selection;
- private NewJpdl4FileWizardPage newFileWizardPage;
-
- public NewJpdl4FileWizard() {
- setWindowTitle("New jPDL4 File");
- }
-
- @Override
- public void addPages() {
- newFileWizardPage = new NewJpdl4FileWizardPage(selection);
- addPage(newFileWizardPage);
- }
-
- private IWorkbenchWindow getActiveWindow() {
- IWorkbench workbench = PlatformUI.getWorkbench();
- return workbench == null ? null : workbench.getActiveWorkbenchWindow();
- }
-
- private IWorkbenchPage getActivePage() {
- IWorkbenchWindow window = getActiveWindow();
- return window == null ? null: window.getActivePage();
- }
-
- @Override
- public boolean performFinish() {
- IFile file = newFileWizardPage.createNewFile();
- IWorkbenchPage activePage = getActivePage();
- if (file != null && activePage != null) {
- try {
- IDE.openEditor(activePage, file);
- activePage.showView(ID_PROP_SHEET);
- BasicNewResourceWizard.selectAndReveal(file, getActiveWindow());
- return true;
- } catch (PartInitException e) {
- Logger.logError("Exception while opening jPDL 4 editor", e);
- }
- }
- return false;
- }
-
- public void init(IWorkbench workbench, IStructuredSelection selection) {
- this.selection = selection;
- }
-
-}
Copied:
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/wizard/NewJpdl4FileWizard.java
(from rev 16487,
trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/wizard/NewJpdl4FileWizard.java)
===================================================================
---
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/wizard/NewJpdl4FileWizard.java
(rev 0)
+++
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/wizard/NewJpdl4FileWizard.java 2009-11-11
20:54:30 UTC (rev 18625)
@@ -0,0 +1,65 @@
+package org.jboss.tools.flow.jpdl4.wizard;
+
+import org.eclipse.core.resources.IFile;
+import org.eclipse.jface.viewers.IStructuredSelection;
+import org.eclipse.jface.wizard.Wizard;
+import org.eclipse.ui.INewWizard;
+import org.eclipse.ui.IWorkbench;
+import org.eclipse.ui.IWorkbenchPage;
+import org.eclipse.ui.IWorkbenchWindow;
+import org.eclipse.ui.IWorkbenchWizard;
+import org.eclipse.ui.PartInitException;
+import org.eclipse.ui.PlatformUI;
+import org.eclipse.ui.ide.IDE;
+import org.eclipse.ui.wizards.newresource.BasicNewResourceWizard;
+import org.jboss.tools.flow.jpdl4.Logger;
+
+public class NewJpdl4FileWizard extends Wizard implements IWorkbenchWizard, INewWizard {
+
+ private static String ID_PROP_SHEET = "org.eclipse.ui.views.PropertySheet";
+
+ private IStructuredSelection selection;
+ private NewJpdl4FileWizardPage newFileWizardPage;
+
+ public NewJpdl4FileWizard() {
+ setWindowTitle("New jPDL4 File");
+ }
+
+ @Override
+ public void addPages() {
+ newFileWizardPage = new NewJpdl4FileWizardPage(selection);
+ addPage(newFileWizardPage);
+ }
+
+ private IWorkbenchWindow getActiveWindow() {
+ IWorkbench workbench = PlatformUI.getWorkbench();
+ return workbench == null ? null : workbench.getActiveWorkbenchWindow();
+ }
+
+ private IWorkbenchPage getActivePage() {
+ IWorkbenchWindow window = getActiveWindow();
+ return window == null ? null: window.getActivePage();
+ }
+
+ @Override
+ public boolean performFinish() {
+ IFile file = newFileWizardPage.createNewFile();
+ IWorkbenchPage activePage = getActivePage();
+ if (file != null && activePage != null) {
+ try {
+ IDE.openEditor(activePage, file);
+ activePage.showView(ID_PROP_SHEET);
+ BasicNewResourceWizard.selectAndReveal(file, getActiveWindow());
+ return true;
+ } catch (PartInitException e) {
+ Logger.logError("Exception while opening jPDL 4 editor", e);
+ }
+ }
+ return false;
+ }
+
+ public void init(IWorkbench workbench, IStructuredSelection selection) {
+ this.selection = selection;
+ }
+
+}