JBoss Tools SVN: r18626 - in tags/jbpm-jpdl-4.2: org.jboss.tools.flow.jpdl4.feature and 2 other directories.
by jbosstools-commits@lists.jboss.org
Author: koen.aers(a)jboss.com
Date: 2009-11-11 15:55:29 -0500 (Wed, 11 Nov 2009)
New Revision: 18626
Added:
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4.feature/
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4.feature/feature.properties
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4.feature/feature.xml
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4.feature/sourceTemplateFeature/feature.properties
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4.feature/sourceTemplatePlugin/about.properties
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4.feature/sourceTemplatePlugin/plugin.properties
Removed:
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4.feature/feature.properties
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4.feature/feature.xml
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4.feature/sourceTemplateFeature/feature.properties
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4.feature/sourceTemplatePlugin/about.properties
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4.feature/sourceTemplatePlugin/plugin.properties
Log:
Copied: tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4.feature (from rev 16344, trunk/jbpm/features/org.jboss.tools.flow.jpdl4.feature)
Deleted: tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4.feature/feature.properties
===================================================================
--- trunk/jbpm/features/org.jboss.tools.flow.jpdl4.feature/feature.properties 2009-07-02 15:15:08 UTC (rev 16344)
+++ tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4.feature/feature.properties 2009-11-11 20:55:29 UTC (rev 18626)
@@ -1,29 +0,0 @@
-###############################################################################
-# Copyright (c) 2009 JBoss by Red Hat and others.
-# All rights reserved. This program and the accompanying materials
-# are made available under the terms of the Eclipse Public License v1.0
-# which accompanies this distribution, and is available at
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Contributors:
-# JBoss by Red Hat - Initial implementation.
-##############################################################################
-# feature.properties
-# contains externalized strings for feature.xml
-# "%foo" in feature.xml corresponds to the key "foo" in this file
-# java.io.Properties file (ISO 8859-1 with "\" escapes)
-# This file should be translated.
-
-# "featureName" property - name of the feature
-featureName=jPDL4 Graphical Editor
-
-# "providerName" property - name of the company that provides the feature
-providerName=JBoss by Red Hat
-
-# "updateSiteName" property - label for the update site
-updateSiteName=JBossTools Update Site
-
-devUpdateSiteName=JBossTools Development Update Site
-
-# "description" property - description of the feature
-description=
\ No newline at end of file
Copied: tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4.feature/feature.properties (from rev 16467, trunk/jbpm/features/org.jboss.tools.flow.jpdl4.feature/feature.properties)
===================================================================
--- tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4.feature/feature.properties (rev 0)
+++ tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4.feature/feature.properties 2009-11-11 20:55:29 UTC (rev 18626)
@@ -0,0 +1,90 @@
+featureName=jBPM 4 Graphical Editor and Tools
+featureProvider=JBoss by Red Hat
+description=This feature includes tools for jBPM 4.
+copyright=Copyright 2009 Red Hat, Inc.
+licenseURL=http://www.eclipse.org/legal/epl-v10.html
+license= Eclipse Public License - v 1.0\n\
+\n\
+THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS ECLIPSE PUBLIC LICENSE ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT.\n\
+\n\
+\n\
+1. DEFINITIONS\n\
+\n\
+"Contribution" means:\n\
+a) in the case of the initial Contributor, the initial code and documentation distributed under this Agreement, and\n\
+b) in the case of each subsequent Contributor:\n\
+ i) changes to the Program, and\n\
+ ii) additions to the Program;\n\
+where such changes and/or additions to the Program originate from and are distributed by that particular Contributor. A Contribution 'originates' from a Contributor if it was added to the Program by such Contributor itself or anyone acting on such Contributor's behalf. Contributions do not include additions to the Program\n\
+which: (i) are separate modules of software distributed in conjunction with the Program under their own license agreement, and (ii) are not derivative works of the Program.\n\
+\n\
+"Contributor" means any person or entity that distributes the Program.\n\
+\n\
+"Licensed Patents " mean patent claims licensable by a Contributor which are necessarily infringed by the use or sale of its Contribution alone or when combined with the Program.\n\
+\n\
+"Program" means the Contributions distributed in accordance with this Agreement.\n\
+\n\
+"Recipient" means anyone who receives the Program under this Agreement, including all Contributors.\n\
+\n\
+\n\
+2. GRANT OF RIGHTS\n\
+\n\
+a) Subject to the terms of this Agreement, each Contributor hereby grants Recipient a non-exclusive, worldwide, royalty-free copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, distribute and sublicense the Contribution of such Contributor, if any, and such derivative works, in source\n\
+code and object code form.\n\
+\n\
+b) Subject to the terms of this Agreement, each Contributor hereby grants Recipient a non-exclusive, worldwide, royalty-free patent license under Licensed Patents to make, use, sell, offer to sell, import and otherwise transfer the Contribution of such Contributor, if any, in source code and object code form. This patent license shall apply to the combination of the Contribution and the Program if, at the time the Contribution is added by the Contributor,\n\
+such addition of the Contribution causes such combination to be covered by the Licensed Patents. The patent license shall not apply to any other combinations which include the Contribution. No hardware per se is licensed hereunder.\n\
+\n\
+c) Recipient understands that although each Contributor grants the licenses to its Contributions set forth herein, no assurances are provided by any Contributor that the Program does not infringe the patent or other intellectual property rights of any other entity. Each Contributor disclaims any liability to Recipient for claims brought by any other entity based on infringement of intellectual property rights or otherwise. As a condition to exercising the rights and licenses granted hereunder, each Recipient hereby assumes sole responsibility to secure any other\n\
+intellectual property rights needed, if any. For example, if a third party patent license is required to allow Recipient to distribute the Program, it is Recipient's responsibility to acquire that license before distributing the Program.\n\
+\n\
+d) Each Contributor represents that to its knowledge it has sufficient copyright rights in its Contribution, if any, to grant the copyright license set forth in this Agreement.\n\
+\n\
+\n\
+3. REQUIREMENTS\n\
+\n\
+A Contributor may choose to distribute the Program in object code form under its own license agreement, provided that:\n\
+a) it complies with the terms and conditions of this Agreement; and\n\
+b) its license agreement:\n\
+i) effectively disclaims on behalf of all Contributors all warranties and conditions, express and implied, including warranties or conditions of title and non-infringement, and implied warranties or conditions of merchantability and fitness for a particular purpose;\n\
+ii) effectively excludes on behalf of all Contributors all liability for damages, including direct, indirect, special, incidental and consequential damages, such as lost profits;\n\
+iii) states that any provisions which differ from this Agreement are offered by that Contributor alone and not by any other party; and\n\
+iv) states that source code for the Program is available from such Contributor, and informs licensees how to obtain it in a reasonable manner on or through a medium customarily used for software exchange.\n\
+\n\
+When the Program is made available in source code form:\n\
+a) it must be made available under this Agreement; and\n\
+b) a copy of this Agreement must be included with each copy of the Program.\n\
+\n\
+Contributors may not remove or alter any copyright notices contained within the Program.\n\
+\n\
+Each Contributor must identify itself as the originator of its Contribution, if any, in a manner that reasonably allows subsequent Recipients to identify the originator of the Contribution.\n\
+\n\
+\n\
+4. COMMERCIAL DISTRIBUTION\n\
+\n\
+Commercial distributors of software may accept certain responsibilities with respect to end users, business partners and the like. While this license is intended to facilitate the commercial use of the Program, the Contributor who includes the Program in a commercial product offering should do so in a manner which does not create\n\
+potential liability for other Contributors. Therefore, if a Contributor includes the Program in a commercial product offering, such Contributor ("Commercial Contributor") hereby agrees to defend and indemnify every other Contributor ("Indemnified Contributor") against any losses, damages and costs (collectively "Losses") arising from\n\
+claims, lawsuits and other legal actions brought by a third party against the Indemnified Contributor to the extent caused by the acts or omissions of such Commercial Contributor in connection with its distribution of the Program in a commercial product offering. The obligations in this section do not apply to any claims or Losses relating to any actual or alleged intellectual property infringement. In order to qualify, an Indemnified Contributor must: a) promptly notify the Commercial Contributor in writing of such claim, and b) allow the Commercial Contributor to control,and cooperate with the Commercial Contributor in, the defense and any related settlement negotiations. The Indemnified Contributor may participate in any such claim at its own expense. For example, a Contributor might include the Program in a commercial product offering, Product X. That Contributor is then a Commercial Contributor. If that Commercial Contributor then makes performance claims, or offers wa!
rranties related to Product X, those performance claims and warranties are such Commercial Contributor's responsibility alone. Under this section, the Commercial Contributor would have to defend claims against the other Contributors related to those performance claims and warranties, and if a court requires any other Contributor to pay any damages as a result, the Commercial\n\
+Contributor must pay those damages.\n\
+\n\
+\n\
+5. NO WARRANTY\n\
+\n\
+EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, THE PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is solely responsible for determining the appropriateness of using and distributing the Program and assumes all risks associated with\n\
+its exercise of rights under this Agreement , including but not limited to the risks and costs of program errors, compliance with applicable laws, damage to or loss of data, programs or equipment, and unavailability or interruption of operations.\n\
+\n\
+\n\
+6. DISCLAIMER OF LIABILITY\n\
+\n\
+EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, NEITHER RECIPIENT NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OR DISTRIBUTION OF THE PROGRAM OR THE EXERCISE\n\
+OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.\n\
+\n\
+\n\
+7. GENERAL\n\
+\n\
+If any provision of this Agreement is invalid or unenforceable under applicable law, it shall not affect the validity or enforceability of the remainder of the terms of this Agreement, and without further action by the parties hereto, such provision shall be reformed to the minimum extent necessary to make such provision\n\
+valid and enforceable. If Recipient institutes patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Program itself (excluding combinations of the Program with other software or hardware) infringes such Recipient's patent(s), then such Recipient's rights granted under Section 2(b) shall terminate as of the date such litigation is filed. All Recipient's rights under this Agreement shall terminate if it fails to comply with any of the material terms or conditions of this Agreement and does not cure such failure in a reasonable period of time after becoming aware of such noncompliance. If all Recipient's rights under this Agreement terminate, Recipient agrees to cease use and distribution of the Program as soon as reasonably practicable. However, Recipient's obligations under this Agreement and any licenses granted by Recipient relating to the Program shall continue and survive. Everyone is permit!
ted to copy and distribute copies of this Agreement,\n\
+but in order to avoid inconsistency the Agreement is copyrighted and may only be modified in the following manner. The Agreement Steward reserves the right to publish new versions (including revisions) of this Agreement from time to time. No one other than the Agreement Steward has the right to modify this Agreement. The Eclipse Foundation is the initial Agreement Steward. The Eclipse Foundation may assign the responsibility to serve as the Agreement Steward to a suitable separate entity. Each new version of the Agreement will be given a distinguishing version\n\
+number. The Program (including Contributions) may always be distributed subject to the version of the Agreement under which it was received. In addition, after a new version of the Agreement is published, Contributor may elect to distribute the Program (including its Contributions) under the new version. Except as expressly stated in Sections 2(a) and 2(b) above, Recipient receives no rights or licenses to the intellectual property of any Contributor under this Agreement, whether expressly, by implication, estoppel or otherwise. All rights in the Program not expressly granted under this Agreement are reserved. This Agreement is governed by the laws of the State of New York and the intellectual property laws of the United States of America. No party to this Agreement will bring a legal action under this Agreement more than one year after the cause of action arose. Each party waives its rights to a jury trial in any resulting litigation.\n\
+\n\
+\n\
\ No newline at end of file
Deleted: tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4.feature/feature.xml
===================================================================
--- trunk/jbpm/features/org.jboss.tools.flow.jpdl4.feature/feature.xml 2009-07-02 15:15:08 UTC (rev 16344)
+++ tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4.feature/feature.xml 2009-11-11 20:55:29 UTC (rev 18626)
@@ -1,112 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<feature
- id="org.jboss.tools.flow.jpdl4.feature"
- label="%featureName"
- version="1.0.0.qualifier"
- provider-name="%providerName">
-
- <description>
- This feature includes the jPDL 4 graphical editor.
- </description>
-
- <license url="http://www.eclipse.org/legal/epl-v10.html">
- Eclipse Public License - v 1.0
-
-THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS ECLIPSE PUBLIC LICENSE ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT.
-
-
-1. DEFINITIONS
-
-"Contribution" means:
-a) in the case of the initial Contributor, the initial code and documentation distributed under this Agreement, and
-b) in the case of each subsequent Contributor:
- i) changes to the Program, and
- ii) additions to the Program;
-where such changes and/or additions to the Program originate from and are distributed by that particular Contributor. A Contribution 'originates' from a Contributor if it was added to the Program by such Contributor itself or anyone acting on such Contributor's behalf. Contributions do not include additions to the Program
-which: (i) are separate modules of software distributed in conjunction with the Program under their own license agreement, and (ii) are not derivative works of the Program.
-
-"Contributor" means any person or entity that distributes the Program.
-
-"Licensed Patents " mean patent claims licensable by a Contributor which are necessarily infringed by the use or sale of its Contribution alone or when combined with the Program.
-
-"Program" means the Contributions distributed in accordance with this Agreement.
-
-"Recipient" means anyone who receives the Program under this Agreement, including all Contributors.
-
-
-2. GRANT OF RIGHTS
-
-a) Subject to the terms of this Agreement, each Contributor hereby grants Recipient a non-exclusive, worldwide, royalty-free copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, distribute and sublicense the Contribution of such Contributor, if any, and such derivative works, in source
-code and object code form.
-
-b) Subject to the terms of this Agreement, each Contributor hereby grants Recipient a non-exclusive, worldwide, royalty-free patent license under Licensed Patents to make, use, sell, offer to sell, import and otherwise transfer the Contribution of such Contributor, if any, in source code and object code form. This patent license shall apply to the combination of the Contribution and the Program if, at the time the Contribution is added by the Contributor,
-such addition of the Contribution causes such combination to be covered by the Licensed Patents. The patent license shall not apply to any other combinations which include the Contribution. No hardware per se is licensed hereunder.
-
-c) Recipient understands that although each Contributor grants the licenses to its Contributions set forth herein, no assurances are provided by any Contributor that the Program does not infringe the patent or other intellectual property rights of any other entity. Each Contributor disclaims any liability to Recipient for claims brought by any other entity based on infringement of intellectual property rights or otherwise. As a condition to exercising the rights and licenses granted hereunder, each Recipient hereby assumes sole responsibility to secure any other
-intellectual property rights needed, if any. For example, if a third party patent license is required to allow Recipient to distribute the Program, it is Recipient's responsibility to acquire that license before distributing the Program.
-
-d) Each Contributor represents that to its knowledge it has sufficient copyright rights in its Contribution, if any, to grant the copyright license set forth in this Agreement.
-
-
-3. REQUIREMENTS
-
-A Contributor may choose to distribute the Program in object code form under its own license agreement, provided that:
-a) it complies with the terms and conditions of this Agreement; and
-b) its license agreement:
-i) effectively disclaims on behalf of all Contributors all warranties and conditions, express and implied, including warranties or conditions of title and non-infringement, and implied warranties or conditions of merchantability and fitness for a particular purpose;
-ii) effectively excludes on behalf of all Contributors all liability for damages, including direct, indirect, special, incidental and consequential damages, such as lost profits;
-iii) states that any provisions which differ from this Agreement are offered by that Contributor alone and not by any other party; and
-iv) states that source code for the Program is available from such Contributor, and informs licensees how to obtain it in a reasonable manner on or through a medium customarily used for software exchange.
-
-When the Program is made available in source code form:
-a) it must be made available under this Agreement; and
-b) a copy of this Agreement must be included with each copy of the Program.
-
-Contributors may not remove or alter any copyright notices contained within the Program.
-
-Each Contributor must identify itself as the originator of its Contribution, if any, in a manner that reasonably allows subsequent Recipients to identify the originator of the Contribution.
-
-
-4. COMMERCIAL DISTRIBUTION
-
-Commercial distributors of software may accept certain responsibilities with respect to end users, business partners and the like. While this license is intended to facilitate the commercial use of the Program, the Contributor who includes the Program in a commercial product offering should do so in a manner which does not create
-potential liability for other Contributors. Therefore, if a Contributor includes the Program in a commercial product offering, such Contributor ("Commercial Contributor") hereby agrees to defend and indemnify every other Contributor ("Indemnified Contributor") against any losses, damages and costs (collectively "Losses") arising from
-claims, lawsuits and other legal actions brought by a third party against the Indemnified Contributor to the extent caused by the acts or omissions of such Commercial Contributor in connection with its distribution of the Program in a commercial product offering. The obligations in this section do not apply to any claims or Losses relating to any actual or alleged intellectual property infringement. In order to qualify, an Indemnified Contributor must: a) promptly notify the Commercial Contributor in writing of such claim, and b) allow the Commercial Contributor to control,and cooperate with the Commercial Contributor in, the defense and any related settlement negotiations. The Indemnified Contributor may participate in any such claim at its own expense. For example, a Contributor might include the Program in a commercial product offering, Product X. That Contributor is then a Commercial Contributor. If that Commercial Contributor then makes performance claims, or offers wa!
rranties related to Product X, those performance claims and warranties are such Commercial Contributor's responsibility alone. Under this section, the Commercial Contributor would have to defend claims against the other Contributors related to those performance claims and warranties, and if a court requires any other Contributor to pay any damages as a result, the Commercial
-Contributor must pay those damages.
-
-
-5. NO WARRANTY
-
-EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, THE PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is solely responsible for determining the appropriateness of using and distributing the Program and assumes all risks associated with
-its exercise of rights under this Agreement , including but not limited to the risks and costs of program errors, compliance with applicable laws, damage to or loss of data, programs or equipment, and unavailability or interruption of operations.
-
-
-6. DISCLAIMER OF LIABILITY
-
-EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, NEITHER RECIPIENT NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OR DISTRIBUTION OF THE PROGRAM OR THE EXERCISE
-OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
-
-
-7. GENERAL
-
-If any provision of this Agreement is invalid or unenforceable under applicable law, it shall not affect the validity or enforceability of the remainder of the terms of this Agreement, and without further action by the parties hereto, such provision shall be reformed to the minimum extent necessary to make such provision
-valid and enforceable. If Recipient institutes patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Program itself (excluding combinations of the Program with other software or hardware) infringes such Recipient's patent(s), then such Recipient's rights granted under Section 2(b) shall terminate as of the date such litigation is filed. All Recipient's rights under this Agreement shall terminate if it fails to comply with any of the material terms or conditions of this Agreement and does not cure such failure in a reasonable period of time after becoming aware of such noncompliance. If all Recipient's rights under this Agreement terminate, Recipient agrees to cease use and distribution of the Program as soon as reasonably practicable. However, Recipient's obligations under this Agreement and any licenses granted by Recipient relating to the Program shall continue and survive. Everyone is permit!
ted to copy and distribute copies of this Agreement,
-but in order to avoid inconsistency the Agreement is copyrighted and may only be modified in the following manner. The Agreement Steward reserves the right to publish new versions (including revisions) of this Agreement from time to time. No one other than the Agreement Steward has the right to modify this Agreement. The Eclipse Foundation is the initial Agreement Steward. The Eclipse Foundation may assign the responsibility to serve as the Agreement Steward to a suitable separate entity. Each new version of the Agreement will be given a distinguishing version
-number. The Program (including Contributions) may always be distributed subject to the version of the Agreement under which it was received. In addition, after a new version of the Agreement is published, Contributor may elect to distribute the Program (including its Contributions) under the new version. Except as expressly stated in Sections 2(a) and 2(b) above, Recipient receives no rights or licenses to the intellectual property of any Contributor under this Agreement, whether expressly, by implication, estoppel or otherwise. All rights in the Program not expressly granted under this Agreement are reserved. This Agreement is governed by the laws of the State of New York and the intellectual property laws of the United States of America. No party to this Agreement will bring a legal action under this Agreement more than one year after the cause of action arose. Each party waives its rights to a jury trial in any resulting litigation.
- </license>
-
- <plugin
- id="org.jboss.tools.flow.jpdl4"
- download-size="0"
- install-size="0"
- version="0.0.0"
- unpack="false"/>
-
- <plugin
- id="org.jboss.tools.flow.jpdl4.multipage"
- download-size="0"
- install-size="0"
- version="0.0.0"
- unpack="false"/>
-
-</feature>
Copied: tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4.feature/feature.xml (from rev 18322, trunk/jbpm/features/org.jboss.tools.flow.jpdl4.feature/feature.xml)
===================================================================
--- tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4.feature/feature.xml (rev 0)
+++ tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4.feature/feature.xml 2009-11-11 20:55:29 UTC (rev 18626)
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<feature
+ id="org.jboss.tools.flow.jpdl4.feature"
+ label="%featureName"
+ version="1.2.0.qualifier"
+ provider-name="%featureProvider">
+
+ <description>
+ %description
+ </description>
+
+ <copyright>
+ %copyright
+ </copyright>
+
+ <license url="%licenseURL">
+ %license
+ </license>
+
+ <plugin
+ id="org.jboss.tools.flow.jpdl4"
+ download-size="0"
+ install-size="0"
+ version="0.0.0"
+ unpack="false"/>
+
+ <plugin
+ id="org.jboss.tools.flow.jpdl4.multipage"
+ download-size="0"
+ install-size="0"
+ version="0.0.0"
+ unpack="false"/>
+
+</feature>
Deleted: tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4.feature/sourceTemplateFeature/feature.properties
===================================================================
--- trunk/jbpm/features/org.jboss.tools.flow.jpdl4.feature/sourceTemplateFeature/feature.properties 2009-07-02 15:15:08 UTC (rev 16344)
+++ tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4.feature/sourceTemplateFeature/feature.properties 2009-11-11 20:55:29 UTC (rev 18626)
@@ -1,21 +0,0 @@
-# properties file for org.jboss.tools.jmx.source
-featureName=jPDL4 Graphical Editor Source
-featureProvider=JBoss by Red Hat
-
-# "updateSiteName" property - label for the update site
-updateSiteName=JBossTools Update Site
-
-# "description" property - description of the feature
-description=jPDL4 Graphical Editor Source
-
-# "licenseURL" property - URL of the "Feature License"
-# do not translate value - just change to point to a locale-specific HTML page
-licenseURL=license.html
-
-# START NON-TRANSLATABLE
-# "license" property - text of the "Feature Update License"
-# should be plain text version of license agreement pointed to be "licenseURL"
-license=ECLIPSE FOUNDATION SOFTWARE USER AGREEMENT\nMarch 17, 2005\n\nUsage Of Content\n\nTHE ECLIPSE FOUNDATION MAKES AVAILABLE SOFTWARE, DOCUMENTATION, INFORMATION AND/OR\nOTHER MATERIALS FOR OPEN SOURCE PROJECTS (COLLECTIVELY "CONTENT").\nUSE OF THE CONTENT IS GOVERNED BY THE TERMS AND CONDITIONS OF THIS\nAGREEMENT AND/OR THE TERMS AND CONDITIONS OF LICENSE AGREEMENTS OR\nNOTICES INDICATED OR REFERENCED BELOW. BY USING THE CONTENT, YOU\nAGREE THAT YOUR USE OF THE CONTENT IS GOVERNED BY THIS AGREEMENT\nAND/OR THE TERMS AND CONDITIONS OF ANY APPLICABLE LICENSE AGREEMENTS\nOR NOTICES INDICATED OR REFERENCED BELOW. IF YOU DO NOT AGREE TO THE\nTERMS AND CONDITIONS OF THIS AGREEMENT AND THE TERMS AND CONDITIONS\nOF ANY APPLICABLE LICENSE AGREEMENTS OR NOTICES INDICATED OR REFERENCED\nBELOW, THEN YOU MAY NOT USE THE CONTENT.\n\nApplicable Licenses\n\nUnless otherwise indicated, all Content made available by the Eclipse Foundation\nis provided to you under the terms and conditio!
ns of the Eclipse Public\nLicense Version 1.0 ("EPL"). A copy of the EPL is provided with this\nContent and is also available at http\://www.eclipse.org/legal/epl-v10.html.\nFor purposes of the EPL, "Program" will mean the Content.\n\nContent includes, but is not limited to, source code, object code,\ndocumentation and other files maintained in the Eclipse.org CVS\nrepository ("Repository") in CVS modules ("Modules") and made available\nas downloadable archives ("Downloads").\n\n- Content may be structured and packaged into modules to facilitate delivering,\nextending, and upgrading the Content. Typical modules may include plug-ins ("Plug-ins"),\nplug-in fragments ("Fragments"), and features ("Features").\n- Each Plug-in or Fragment may be packaged as a sub-directory or JAR (Java? ARchive)\nin a directory named "plugins".\n- A Feature is a bundle of one or more Plug-ins and/or Fragments and associated material.\nEach Feature may be packaged as a sub-directory in a directory!
named "features".\nWithin a Feature, files named "feature.xml!
" may co
ntain a list of the names and version\nnumbers of the Plug-ins and/or Fragments associated with that Feature.\n- Features may also include other Features ("Included Features"). Within a Feature, files\nnamed "feature.xml" may contain a list of the names and version numbers of Included Features.\n\nFeatures may also include other Features ("Included Features"). Files named\n"feature.xml" may contain a list of the names and version numbers of\nIncluded Features.\n\nThe terms and conditions governing Plug-ins and Fragments should be\ncontained in files named "about.html" ("Abouts"). The terms and\nconditions governing Features and Included Features should be contained\nin files named "license.html" ("Feature Licenses"). Abouts and Feature\nLicenses may be located in any directory of a Download or Module\nincluding, but not limited to the following locations\:\n\n- The top-level (root) directory\n- Plug-in and Fragment directories\n- Inside Plug-ins and Fragments packaged as JAR!
s\n- Sub-directories of the directory named "src" of certain Plug-ins\n- Feature directories\n\nNote\: if a Feature made available by the Eclipse Foundation is installed using the\nEclipse Update Manager, you must agree to a license ("Feature Update\nLicense") during the installation process. If the Feature contains\nIncluded Features, the Feature Update License should either provide you\nwith the terms and conditions governing the Included Features or inform\nyou where you can locate them. Feature Update Licenses may be found in\nthe "license" property of files named "feature.properties". Such Abouts,\nFeature Licenses and Feature Update Licenses contain the terms and\nconditions (or references to such terms and conditions) that govern your\nuse of the associated Content in that directory.\n\nTHE ABOUTS, FEATURE LICENSES AND FEATURE UPDATE LICENSES MAY REFER\nTO THE EPL OR OTHER LICENSE AGREEMENTS, NOTICES OR TERMS AND CONDITIONS.\nSOME OF THESE OTHER LICENSE AGREEMENTS MA!
Y INCLUDE (BUT ARE NOT LIMITED TO)\:\n\n- Common Public Licens!
e Versio
n 1.0 (available at http\://www.eclipse.org/legal/cpl-v10.html)\n- Apache Software License 1.1 (available at http\://www.apache.org/licenses/LICENSE)\n- Apache Software License 2.0 (available at http\://www.apache.org/licenses/LICENSE-2.0)\n- IBM Public License 1.0 (available at http\://oss.software.ibm.com/developerworks/opensource/license10.html)\n- Metro Link Public License 1.00 (available at http\://www.opengroup.org/openmotif/supporters/metrolink/license.html)\n- Mozilla Public License Version 1.1 (available at http\://www.mozilla.org/MPL/MPL-1.1.html)\n\nIT IS YOUR OBLIGATION TO READ AND ACCEPT ALL SUCH TERMS AND CONDITIONS PRIOR\nTO USE OF THE CONTENT. If no About, Feature License or Feature Update License\nis provided, please contact the Eclipse Foundation to determine what terms and conditions\ngovern that particular Content.\n\nCryptography\n\nContent may contain encryption software. The country in which you are\ncurrently may have restrictions on the import, posse!
ssion, and use,\nand/or re-export to another country, of encryption software. BEFORE\nusing any encryption software, please check the country's laws,\nregulations and policies concerning the import, possession, or use,\nand re-export of encryption software, to see if this is permitted.\n\nJava and all Java-based trademarks are trademarks of Sun Microsystems, Inc. in the United States, other countries, or both.\n
-# END NON-TRANSLATABLE
-########### end of license property ##########################################
-
\ No newline at end of file
Copied: tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4.feature/sourceTemplateFeature/feature.properties (from rev 16471, trunk/jbpm/features/org.jboss.tools.flow.jpdl4.feature/sourceTemplateFeature/feature.properties)
===================================================================
--- tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4.feature/sourceTemplateFeature/feature.properties (rev 0)
+++ tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4.feature/sourceTemplateFeature/feature.properties 2009-11-11 20:55:29 UTC (rev 18626)
@@ -0,0 +1,21 @@
+# properties file for org.jboss.tools.jmx.source
+featureName=jBPM 4 Graphical Editor and Tools Sources
+featureProvider=JBoss by Red Hat
+
+# "updateSiteName" property - label for the update site
+updateSiteName=JBossTools Update Site
+
+# "description" property - description of the feature
+description=jPDL4 Graphical Editor Source
+
+# "licenseURL" property - URL of the "Feature License"
+# do not translate value - just change to point to a locale-specific HTML page
+licenseURL=license.html
+
+# START NON-TRANSLATABLE
+# "license" property - text of the "Feature Update License"
+# should be plain text version of license agreement pointed to be "licenseURL"
+license=ECLIPSE FOUNDATION SOFTWARE USER AGREEMENT\nMarch 17, 2005\n\nUsage Of Content\n\nTHE ECLIPSE FOUNDATION MAKES AVAILABLE SOFTWARE, DOCUMENTATION, INFORMATION AND/OR\nOTHER MATERIALS FOR OPEN SOURCE PROJECTS (COLLECTIVELY "CONTENT").\nUSE OF THE CONTENT IS GOVERNED BY THE TERMS AND CONDITIONS OF THIS\nAGREEMENT AND/OR THE TERMS AND CONDITIONS OF LICENSE AGREEMENTS OR\nNOTICES INDICATED OR REFERENCED BELOW. BY USING THE CONTENT, YOU\nAGREE THAT YOUR USE OF THE CONTENT IS GOVERNED BY THIS AGREEMENT\nAND/OR THE TERMS AND CONDITIONS OF ANY APPLICABLE LICENSE AGREEMENTS\nOR NOTICES INDICATED OR REFERENCED BELOW. IF YOU DO NOT AGREE TO THE\nTERMS AND CONDITIONS OF THIS AGREEMENT AND THE TERMS AND CONDITIONS\nOF ANY APPLICABLE LICENSE AGREEMENTS OR NOTICES INDICATED OR REFERENCED\nBELOW, THEN YOU MAY NOT USE THE CONTENT.\n\nApplicable Licenses\n\nUnless otherwise indicated, all Content made available by the Eclipse Foundation\nis provided to you under the terms and conditio!
ns of the Eclipse Public\nLicense Version 1.0 ("EPL"). A copy of the EPL is provided with this\nContent and is also available at http\://www.eclipse.org/legal/epl-v10.html.\nFor purposes of the EPL, "Program" will mean the Content.\n\nContent includes, but is not limited to, source code, object code,\ndocumentation and other files maintained in the Eclipse.org CVS\nrepository ("Repository") in CVS modules ("Modules") and made available\nas downloadable archives ("Downloads").\n\n- Content may be structured and packaged into modules to facilitate delivering,\nextending, and upgrading the Content. Typical modules may include plug-ins ("Plug-ins"),\nplug-in fragments ("Fragments"), and features ("Features").\n- Each Plug-in or Fragment may be packaged as a sub-directory or JAR (Java? ARchive)\nin a directory named "plugins".\n- A Feature is a bundle of one or more Plug-ins and/or Fragments and associated material.\nEach Feature may be packaged as a sub-directory in a directory!
named "features".\nWithin a Feature, files named "feature.xml!
" may co
ntain a list of the names and version\nnumbers of the Plug-ins and/or Fragments associated with that Feature.\n- Features may also include other Features ("Included Features"). Within a Feature, files\nnamed "feature.xml" may contain a list of the names and version numbers of Included Features.\n\nFeatures may also include other Features ("Included Features"). Files named\n"feature.xml" may contain a list of the names and version numbers of\nIncluded Features.\n\nThe terms and conditions governing Plug-ins and Fragments should be\ncontained in files named "about.html" ("Abouts"). The terms and\nconditions governing Features and Included Features should be contained\nin files named "license.html" ("Feature Licenses"). Abouts and Feature\nLicenses may be located in any directory of a Download or Module\nincluding, but not limited to the following locations\:\n\n- The top-level (root) directory\n- Plug-in and Fragment directories\n- Inside Plug-ins and Fragments packaged as JAR!
s\n- Sub-directories of the directory named "src" of certain Plug-ins\n- Feature directories\n\nNote\: if a Feature made available by the Eclipse Foundation is installed using the\nEclipse Update Manager, you must agree to a license ("Feature Update\nLicense") during the installation process. If the Feature contains\nIncluded Features, the Feature Update License should either provide you\nwith the terms and conditions governing the Included Features or inform\nyou where you can locate them. Feature Update Licenses may be found in\nthe "license" property of files named "feature.properties". Such Abouts,\nFeature Licenses and Feature Update Licenses contain the terms and\nconditions (or references to such terms and conditions) that govern your\nuse of the associated Content in that directory.\n\nTHE ABOUTS, FEATURE LICENSES AND FEATURE UPDATE LICENSES MAY REFER\nTO THE EPL OR OTHER LICENSE AGREEMENTS, NOTICES OR TERMS AND CONDITIONS.\nSOME OF THESE OTHER LICENSE AGREEMENTS MA!
Y INCLUDE (BUT ARE NOT LIMITED TO)\:\n\n- Common Public Licens!
e Versio
n 1.0 (available at http\://www.eclipse.org/legal/cpl-v10.html)\n- Apache Software License 1.1 (available at http\://www.apache.org/licenses/LICENSE)\n- Apache Software License 2.0 (available at http\://www.apache.org/licenses/LICENSE-2.0)\n- IBM Public License 1.0 (available at http\://oss.software.ibm.com/developerworks/opensource/license10.html)\n- Metro Link Public License 1.00 (available at http\://www.opengroup.org/openmotif/supporters/metrolink/license.html)\n- Mozilla Public License Version 1.1 (available at http\://www.mozilla.org/MPL/MPL-1.1.html)\n\nIT IS YOUR OBLIGATION TO READ AND ACCEPT ALL SUCH TERMS AND CONDITIONS PRIOR\nTO USE OF THE CONTENT. If no About, Feature License or Feature Update License\nis provided, please contact the Eclipse Foundation to determine what terms and conditions\ngovern that particular Content.\n\nCryptography\n\nContent may contain encryption software. The country in which you are\ncurrently may have restrictions on the import, posse!
ssion, and use,\nand/or re-export to another country, of encryption software. BEFORE\nusing any encryption software, please check the country's laws,\nregulations and policies concerning the import, possession, or use,\nand re-export of encryption software, to see if this is permitted.\n\nJava and all Java-based trademarks are trademarks of Sun Microsystems, Inc. in the United States, other countries, or both.\n
+# END NON-TRANSLATABLE
+########### end of license property ##########################################
+
\ No newline at end of file
Deleted: tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4.feature/sourceTemplatePlugin/about.properties
===================================================================
--- trunk/jbpm/features/org.jboss.tools.flow.jpdl4.feature/sourceTemplatePlugin/about.properties 2009-07-02 15:15:08 UTC (rev 16344)
+++ tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4.feature/sourceTemplatePlugin/about.properties 2009-11-11 20:55:29 UTC (rev 18626)
@@ -1,7 +0,0 @@
-blurb=jPDL4 Graphical Editor Source\n\
-\n\
-Version: {featureVersion}\n\
-Build id: {0}\n\
-\n\
-(c) Copyright Red Hat contributors and others, 2009. All rights reserved.\n\
-Visit http://www.jboss.org/tools
Copied: tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4.feature/sourceTemplatePlugin/about.properties (from rev 16471, trunk/jbpm/features/org.jboss.tools.flow.jpdl4.feature/sourceTemplatePlugin/about.properties)
===================================================================
--- tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4.feature/sourceTemplatePlugin/about.properties (rev 0)
+++ tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4.feature/sourceTemplatePlugin/about.properties 2009-11-11 20:55:29 UTC (rev 18626)
@@ -0,0 +1,7 @@
+blurb=jBPM 4 Graphical Editor and Tools Sources\n\
+\n\
+Version: {featureVersion}\n\
+Build id: {0}\n\
+\n\
+(c) Copyright Red Hat contributors and others, 2009. All rights reserved.\n\
+Visit http://www.jboss.org/tools
Deleted: tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4.feature/sourceTemplatePlugin/plugin.properties
===================================================================
--- trunk/jbpm/features/org.jboss.tools.flow.jpdl4.feature/sourceTemplatePlugin/plugin.properties 2009-07-02 15:15:08 UTC (rev 16344)
+++ tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4.feature/sourceTemplatePlugin/plugin.properties 2009-11-11 20:55:29 UTC (rev 18626)
@@ -1,3 +0,0 @@
-pluginName = jPDL4 Graphical Editor Source
-providerName = JBoss by Red Hat
-
Copied: tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4.feature/sourceTemplatePlugin/plugin.properties (from rev 16471, trunk/jbpm/features/org.jboss.tools.flow.jpdl4.feature/sourceTemplatePlugin/plugin.properties)
===================================================================
--- tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4.feature/sourceTemplatePlugin/plugin.properties (rev 0)
+++ tags/jbpm-jpdl-4.2/org.jboss.tools.flow.jpdl4.feature/sourceTemplatePlugin/plugin.properties 2009-11-11 20:55:29 UTC (rev 18626)
@@ -0,0 +1,3 @@
+pluginName = jBPM 4 Graphical Editor and Tools Sources
+providerName = JBoss by Red Hat
+
15 years, 1 month
JBoss Tools SVN: r18625 - in tags/jbpm-jpdl-4.2: org.jboss.tools.flow.jpdl4 and 10 other directories.
by jbosstools-commits@lists.jboss.org
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;
+ }
+
+}
15 years, 1 month
JBoss Tools SVN: r18624 - in tags/jbpm-jpdl-4.2: org.jboss.tools.flow.common.test/META-INF and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: koen.aers(a)jboss.com
Date: 2009-11-11 15:52:36 -0500 (Wed, 11 Nov 2009)
New Revision: 18624
Added:
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.common.test/
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.common.test/META-INF/MANIFEST.MF
Removed:
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.common.test/META-INF/MANIFEST.MF
Log:
Copied: tags/jbpm-jpdl-4.2/org.jboss.tools.flow.common.test (from rev 16344, trunk/flow/tests/org.jboss.tools.flow.common.test)
Deleted: tags/jbpm-jpdl-4.2/org.jboss.tools.flow.common.test/META-INF/MANIFEST.MF
===================================================================
--- trunk/flow/tests/org.jboss.tools.flow.common.test/META-INF/MANIFEST.MF 2009-07-02 15:15:08 UTC (rev 16344)
+++ tags/jbpm-jpdl-4.2/org.jboss.tools.flow.common.test/META-INF/MANIFEST.MF 2009-11-11 20:52:36 UTC (rev 18624)
@@ -1,7 +0,0 @@
-Manifest-Version: 1.0
-Bundle-ManifestVersion: 2
-Bundle-Name: %pluginName
-Bundle-SymbolicName: org.jboss.tools.flow.common.test
-Bundle-Version: 1.0.0
-Bundle-Vendor: %pluginProvider
-Bundle-RequiredExecutionEnvironment: J2SE-1.5
Copied: tags/jbpm-jpdl-4.2/org.jboss.tools.flow.common.test/META-INF/MANIFEST.MF (from rev 18324, trunk/flow/tests/org.jboss.tools.flow.common.test/META-INF/MANIFEST.MF)
===================================================================
--- tags/jbpm-jpdl-4.2/org.jboss.tools.flow.common.test/META-INF/MANIFEST.MF (rev 0)
+++ tags/jbpm-jpdl-4.2/org.jboss.tools.flow.common.test/META-INF/MANIFEST.MF 2009-11-11 20:52:36 UTC (rev 18624)
@@ -0,0 +1,7 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: %pluginName
+Bundle-SymbolicName: org.jboss.tools.flow.common.test
+Bundle-Version: 1.2.0.qualifier
+Bundle-Vendor: %pluginProvider
+Bundle-RequiredExecutionEnvironment: J2SE-1.5
15 years, 1 month
JBoss Tools SVN: r18623 - in tags/jbpm-jpdl-4.2: org.jboss.tools.flow.common.feature and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: koen.aers(a)jboss.com
Date: 2009-11-11 15:51:45 -0500 (Wed, 11 Nov 2009)
New Revision: 18623
Added:
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.common.feature/
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.common.feature/feature.properties
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.common.feature/feature.xml
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.common.feature/sourceTemplateFeature/
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.common.feature/sourceTemplatePlugin/
Removed:
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.common.feature/feature.properties
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.common.feature/feature.xml
Log:
Copied: tags/jbpm-jpdl-4.2/org.jboss.tools.flow.common.feature (from rev 16344, trunk/flow/features/org.jboss.tools.flow.common.feature)
Deleted: tags/jbpm-jpdl-4.2/org.jboss.tools.flow.common.feature/feature.properties
===================================================================
--- trunk/flow/features/org.jboss.tools.flow.common.feature/feature.properties 2009-07-02 15:15:08 UTC (rev 16344)
+++ tags/jbpm-jpdl-4.2/org.jboss.tools.flow.common.feature/feature.properties 2009-11-11 20:51:45 UTC (rev 18623)
@@ -1,29 +0,0 @@
-###############################################################################
-# Copyright (c) 2009 JBoss by Red Hat and others.
-# All rights reserved. This program and the accompanying materials
-# are made available under the terms of the Eclipse Public License v1.0
-# which accompanies this distribution, and is available at
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Contributors:
-# JBoss by Red Hat - Initial implementation.
-##############################################################################
-# feature.properties
-# contains externalized strings for feature.xml
-# "%foo" in feature.xml corresponds to the key "foo" in this file
-# java.io.Properties file (ISO 8859-1 with "\" escapes)
-# This file should be translated.
-
-# "featureName" property - name of the feature
-featureName=Flow Common Feature
-
-# "providerName" property - name of the company that provides the feature
-providerName=JBoss by Red Hat
-
-# "updateSiteName" property - label for the update site
-updateSiteName=JBossTools Update Site
-
-devUpdateSiteName=JBossTools Development Update Site
-
-# "description" property - description of the feature
-description=
\ No newline at end of file
Copied: tags/jbpm-jpdl-4.2/org.jboss.tools.flow.common.feature/feature.properties (from rev 16466, trunk/flow/features/org.jboss.tools.flow.common.feature/feature.properties)
===================================================================
--- tags/jbpm-jpdl-4.2/org.jboss.tools.flow.common.feature/feature.properties (rev 0)
+++ tags/jbpm-jpdl-4.2/org.jboss.tools.flow.common.feature/feature.properties 2009-11-11 20:51:45 UTC (rev 18623)
@@ -0,0 +1,90 @@
+featureName=Flow Languages Common Tools
+featureProvider=JBoss by Red Hat
+description=This feature includes common tools for flow languages.
+copyright=Copyright 2009 Red Hat, Inc.
+licenseURL=http://www.eclipse.org/legal/epl-v10.html
+license= Eclipse Public License - v 1.0\n\
+\n\
+THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS ECLIPSE PUBLIC LICENSE ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT.\n\
+\n\
+\n\
+1. DEFINITIONS\n\
+\n\
+"Contribution" means:\n\
+a) in the case of the initial Contributor, the initial code and documentation distributed under this Agreement, and\n\
+b) in the case of each subsequent Contributor:\n\
+ i) changes to the Program, and\n\
+ ii) additions to the Program;\n\
+where such changes and/or additions to the Program originate from and are distributed by that particular Contributor. A Contribution 'originates' from a Contributor if it was added to the Program by such Contributor itself or anyone acting on such Contributor's behalf. Contributions do not include additions to the Program\n\
+which: (i) are separate modules of software distributed in conjunction with the Program under their own license agreement, and (ii) are not derivative works of the Program.\n\
+\n\
+"Contributor" means any person or entity that distributes the Program.\n\
+\n\
+"Licensed Patents " mean patent claims licensable by a Contributor which are necessarily infringed by the use or sale of its Contribution alone or when combined with the Program.\n\
+\n\
+"Program" means the Contributions distributed in accordance with this Agreement.\n\
+\n\
+"Recipient" means anyone who receives the Program under this Agreement, including all Contributors.\n\
+\n\
+\n\
+2. GRANT OF RIGHTS\n\
+\n\
+a) Subject to the terms of this Agreement, each Contributor hereby grants Recipient a non-exclusive, worldwide, royalty-free copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, distribute and sublicense the Contribution of such Contributor, if any, and such derivative works, in source\n\
+code and object code form.\n\
+\n\
+b) Subject to the terms of this Agreement, each Contributor hereby grants Recipient a non-exclusive, worldwide, royalty-free patent license under Licensed Patents to make, use, sell, offer to sell, import and otherwise transfer the Contribution of such Contributor, if any, in source code and object code form. This patent license shall apply to the combination of the Contribution and the Program if, at the time the Contribution is added by the Contributor,\n\
+such addition of the Contribution causes such combination to be covered by the Licensed Patents. The patent license shall not apply to any other combinations which include the Contribution. No hardware per se is licensed hereunder.\n\
+\n\
+c) Recipient understands that although each Contributor grants the licenses to its Contributions set forth herein, no assurances are provided by any Contributor that the Program does not infringe the patent or other intellectual property rights of any other entity. Each Contributor disclaims any liability to Recipient for claims brought by any other entity based on infringement of intellectual property rights or otherwise. As a condition to exercising the rights and licenses granted hereunder, each Recipient hereby assumes sole responsibility to secure any other\n\
+intellectual property rights needed, if any. For example, if a third party patent license is required to allow Recipient to distribute the Program, it is Recipient's responsibility to acquire that license before distributing the Program.\n\
+\n\
+d) Each Contributor represents that to its knowledge it has sufficient copyright rights in its Contribution, if any, to grant the copyright license set forth in this Agreement.\n\
+\n\
+\n\
+3. REQUIREMENTS\n\
+\n\
+A Contributor may choose to distribute the Program in object code form under its own license agreement, provided that:\n\
+a) it complies with the terms and conditions of this Agreement; and\n\
+b) its license agreement:\n\
+i) effectively disclaims on behalf of all Contributors all warranties and conditions, express and implied, including warranties or conditions of title and non-infringement, and implied warranties or conditions of merchantability and fitness for a particular purpose;\n\
+ii) effectively excludes on behalf of all Contributors all liability for damages, including direct, indirect, special, incidental and consequential damages, such as lost profits;\n\
+iii) states that any provisions which differ from this Agreement are offered by that Contributor alone and not by any other party; and\n\
+iv) states that source code for the Program is available from such Contributor, and informs licensees how to obtain it in a reasonable manner on or through a medium customarily used for software exchange.\n\
+\n\
+When the Program is made available in source code form:\n\
+a) it must be made available under this Agreement; and\n\
+b) a copy of this Agreement must be included with each copy of the Program.\n\
+\n\
+Contributors may not remove or alter any copyright notices contained within the Program.\n\
+\n\
+Each Contributor must identify itself as the originator of its Contribution, if any, in a manner that reasonably allows subsequent Recipients to identify the originator of the Contribution.\n\
+\n\
+\n\
+4. COMMERCIAL DISTRIBUTION\n\
+\n\
+Commercial distributors of software may accept certain responsibilities with respect to end users, business partners and the like. While this license is intended to facilitate the commercial use of the Program, the Contributor who includes the Program in a commercial product offering should do so in a manner which does not create\n\
+potential liability for other Contributors. Therefore, if a Contributor includes the Program in a commercial product offering, such Contributor ("Commercial Contributor") hereby agrees to defend and indemnify every other Contributor ("Indemnified Contributor") against any losses, damages and costs (collectively "Losses") arising from\n\
+claims, lawsuits and other legal actions brought by a third party against the Indemnified Contributor to the extent caused by the acts or omissions of such Commercial Contributor in connection with its distribution of the Program in a commercial product offering. The obligations in this section do not apply to any claims or Losses relating to any actual or alleged intellectual property infringement. In order to qualify, an Indemnified Contributor must: a) promptly notify the Commercial Contributor in writing of such claim, and b) allow the Commercial Contributor to control,and cooperate with the Commercial Contributor in, the defense and any related settlement negotiations. The Indemnified Contributor may participate in any such claim at its own expense. For example, a Contributor might include the Program in a commercial product offering, Product X. That Contributor is then a Commercial Contributor. If that Commercial Contributor then makes performance claims, or offers wa!
rranties related to Product X, those performance claims and warranties are such Commercial Contributor's responsibility alone. Under this section, the Commercial Contributor would have to defend claims against the other Contributors related to those performance claims and warranties, and if a court requires any other Contributor to pay any damages as a result, the Commercial\n\
+Contributor must pay those damages.\n\
+\n\
+\n\
+5. NO WARRANTY\n\
+\n\
+EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, THE PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is solely responsible for determining the appropriateness of using and distributing the Program and assumes all risks associated with\n\
+its exercise of rights under this Agreement , including but not limited to the risks and costs of program errors, compliance with applicable laws, damage to or loss of data, programs or equipment, and unavailability or interruption of operations.\n\
+\n\
+\n\
+6. DISCLAIMER OF LIABILITY\n\
+\n\
+EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, NEITHER RECIPIENT NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OR DISTRIBUTION OF THE PROGRAM OR THE EXERCISE\n\
+OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.\n\
+\n\
+\n\
+7. GENERAL\n\
+\n\
+If any provision of this Agreement is invalid or unenforceable under applicable law, it shall not affect the validity or enforceability of the remainder of the terms of this Agreement, and without further action by the parties hereto, such provision shall be reformed to the minimum extent necessary to make such provision\n\
+valid and enforceable. If Recipient institutes patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Program itself (excluding combinations of the Program with other software or hardware) infringes such Recipient's patent(s), then such Recipient's rights granted under Section 2(b) shall terminate as of the date such litigation is filed. All Recipient's rights under this Agreement shall terminate if it fails to comply with any of the material terms or conditions of this Agreement and does not cure such failure in a reasonable period of time after becoming aware of such noncompliance. If all Recipient's rights under this Agreement terminate, Recipient agrees to cease use and distribution of the Program as soon as reasonably practicable. However, Recipient's obligations under this Agreement and any licenses granted by Recipient relating to the Program shall continue and survive. Everyone is permit!
ted to copy and distribute copies of this Agreement,\n\
+but in order to avoid inconsistency the Agreement is copyrighted and may only be modified in the following manner. The Agreement Steward reserves the right to publish new versions (including revisions) of this Agreement from time to time. No one other than the Agreement Steward has the right to modify this Agreement. The Eclipse Foundation is the initial Agreement Steward. The Eclipse Foundation may assign the responsibility to serve as the Agreement Steward to a suitable separate entity. Each new version of the Agreement will be given a distinguishing version\n\
+number. The Program (including Contributions) may always be distributed subject to the version of the Agreement under which it was received. In addition, after a new version of the Agreement is published, Contributor may elect to distribute the Program (including its Contributions) under the new version. Except as expressly stated in Sections 2(a) and 2(b) above, Recipient receives no rights or licenses to the intellectual property of any Contributor under this Agreement, whether expressly, by implication, estoppel or otherwise. All rights in the Program not expressly granted under this Agreement are reserved. This Agreement is governed by the laws of the State of New York and the intellectual property laws of the United States of America. No party to this Agreement will bring a legal action under this Agreement more than one year after the cause of action arose. Each party waives its rights to a jury trial in any resulting litigation.\n\
+\n\
+\n\
\ No newline at end of file
Deleted: tags/jbpm-jpdl-4.2/org.jboss.tools.flow.common.feature/feature.xml
===================================================================
--- trunk/flow/features/org.jboss.tools.flow.common.feature/feature.xml 2009-07-02 15:15:08 UTC (rev 16344)
+++ tags/jbpm-jpdl-4.2/org.jboss.tools.flow.common.feature/feature.xml 2009-11-11 20:51:45 UTC (rev 18623)
@@ -1,105 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<feature
- id="org.jboss.tools.flow.common.feature"
- label="%featureName"
- version="1.0.0.CR1"
- provider-name="%providerName">
-
- <description>
- This feature provides plugins that implement a common base for graphical flow editors
- </description>
-
- <license url="http://www.eclipse.org/legal/epl-v10.html">
- Eclipse Public License - v 1.0
-
-THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS ECLIPSE PUBLIC LICENSE ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT.
-
-
-1. DEFINITIONS
-
-"Contribution" means:
-a) in the case of the initial Contributor, the initial code and documentation distributed under this Agreement, and
-b) in the case of each subsequent Contributor:
- i) changes to the Program, and
- ii) additions to the Program;
-where such changes and/or additions to the Program originate from and are distributed by that particular Contributor. A Contribution 'originates' from a Contributor if it was added to the Program by such Contributor itself or anyone acting on such Contributor's behalf. Contributions do not include additions to the Program
-which: (i) are separate modules of software distributed in conjunction with the Program under their own license agreement, and (ii) are not derivative works of the Program.
-
-"Contributor" means any person or entity that distributes the Program.
-
-"Licensed Patents " mean patent claims licensable by a Contributor which are necessarily infringed by the use or sale of its Contribution alone or when combined with the Program.
-
-"Program" means the Contributions distributed in accordance with this Agreement.
-
-"Recipient" means anyone who receives the Program under this Agreement, including all Contributors.
-
-
-2. GRANT OF RIGHTS
-
-a) Subject to the terms of this Agreement, each Contributor hereby grants Recipient a non-exclusive, worldwide, royalty-free copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, distribute and sublicense the Contribution of such Contributor, if any, and such derivative works, in source
-code and object code form.
-
-b) Subject to the terms of this Agreement, each Contributor hereby grants Recipient a non-exclusive, worldwide, royalty-free patent license under Licensed Patents to make, use, sell, offer to sell, import and otherwise transfer the Contribution of such Contributor, if any, in source code and object code form. This patent license shall apply to the combination of the Contribution and the Program if, at the time the Contribution is added by the Contributor,
-such addition of the Contribution causes such combination to be covered by the Licensed Patents. The patent license shall not apply to any other combinations which include the Contribution. No hardware per se is licensed hereunder.
-
-c) Recipient understands that although each Contributor grants the licenses to its Contributions set forth herein, no assurances are provided by any Contributor that the Program does not infringe the patent or other intellectual property rights of any other entity. Each Contributor disclaims any liability to Recipient for claims brought by any other entity based on infringement of intellectual property rights or otherwise. As a condition to exercising the rights and licenses granted hereunder, each Recipient hereby assumes sole responsibility to secure any other
-intellectual property rights needed, if any. For example, if a third party patent license is required to allow Recipient to distribute the Program, it is Recipient's responsibility to acquire that license before distributing the Program.
-
-d) Each Contributor represents that to its knowledge it has sufficient copyright rights in its Contribution, if any, to grant the copyright license set forth in this Agreement.
-
-
-3. REQUIREMENTS
-
-A Contributor may choose to distribute the Program in object code form under its own license agreement, provided that:
-a) it complies with the terms and conditions of this Agreement; and
-b) its license agreement:
-i) effectively disclaims on behalf of all Contributors all warranties and conditions, express and implied, including warranties or conditions of title and non-infringement, and implied warranties or conditions of merchantability and fitness for a particular purpose;
-ii) effectively excludes on behalf of all Contributors all liability for damages, including direct, indirect, special, incidental and consequential damages, such as lost profits;
-iii) states that any provisions which differ from this Agreement are offered by that Contributor alone and not by any other party; and
-iv) states that source code for the Program is available from such Contributor, and informs licensees how to obtain it in a reasonable manner on or through a medium customarily used for software exchange.
-
-When the Program is made available in source code form:
-a) it must be made available under this Agreement; and
-b) a copy of this Agreement must be included with each copy of the Program.
-
-Contributors may not remove or alter any copyright notices contained within the Program.
-
-Each Contributor must identify itself as the originator of its Contribution, if any, in a manner that reasonably allows subsequent Recipients to identify the originator of the Contribution.
-
-
-4. COMMERCIAL DISTRIBUTION
-
-Commercial distributors of software may accept certain responsibilities with respect to end users, business partners and the like. While this license is intended to facilitate the commercial use of the Program, the Contributor who includes the Program in a commercial product offering should do so in a manner which does not create
-potential liability for other Contributors. Therefore, if a Contributor includes the Program in a commercial product offering, such Contributor ("Commercial Contributor") hereby agrees to defend and indemnify every other Contributor ("Indemnified Contributor") against any losses, damages and costs (collectively "Losses") arising from
-claims, lawsuits and other legal actions brought by a third party against the Indemnified Contributor to the extent caused by the acts or omissions of such Commercial Contributor in connection with its distribution of the Program in a commercial product offering. The obligations in this section do not apply to any claims or Losses relating to any actual or alleged intellectual property infringement. In order to qualify, an Indemnified Contributor must: a) promptly notify the Commercial Contributor in writing of such claim, and b) allow the Commercial Contributor to control,and cooperate with the Commercial Contributor in, the defense and any related settlement negotiations. The Indemnified Contributor may participate in any such claim at its own expense. For example, a Contributor might include the Program in a commercial product offering, Product X. That Contributor is then a Commercial Contributor. If that Commercial Contributor then makes performance claims, or offers wa!
rranties related to Product X, those performance claims and warranties are such Commercial Contributor's responsibility alone. Under this section, the Commercial Contributor would have to defend claims against the other Contributors related to those performance claims and warranties, and if a court requires any other Contributor to pay any damages as a result, the Commercial
-Contributor must pay those damages.
-
-
-5. NO WARRANTY
-
-EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, THE PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is solely responsible for determining the appropriateness of using and distributing the Program and assumes all risks associated with
-its exercise of rights under this Agreement , including but not limited to the risks and costs of program errors, compliance with applicable laws, damage to or loss of data, programs or equipment, and unavailability or interruption of operations.
-
-
-6. DISCLAIMER OF LIABILITY
-
-EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, NEITHER RECIPIENT NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OR DISTRIBUTION OF THE PROGRAM OR THE EXERCISE
-OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
-
-
-7. GENERAL
-
-If any provision of this Agreement is invalid or unenforceable under applicable law, it shall not affect the validity or enforceability of the remainder of the terms of this Agreement, and without further action by the parties hereto, such provision shall be reformed to the minimum extent necessary to make such provision
-valid and enforceable. If Recipient institutes patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Program itself (excluding combinations of the Program with other software or hardware) infringes such Recipient's patent(s), then such Recipient's rights granted under Section 2(b) shall terminate as of the date such litigation is filed. All Recipient's rights under this Agreement shall terminate if it fails to comply with any of the material terms or conditions of this Agreement and does not cure such failure in a reasonable period of time after becoming aware of such noncompliance. If all Recipient's rights under this Agreement terminate, Recipient agrees to cease use and distribution of the Program as soon as reasonably practicable. However, Recipient's obligations under this Agreement and any licenses granted by Recipient relating to the Program shall continue and survive. Everyone is permit!
ted to copy and distribute copies of this Agreement,
-but in order to avoid inconsistency the Agreement is copyrighted and may only be modified in the following manner. The Agreement Steward reserves the right to publish new versions (including revisions) of this Agreement from time to time. No one other than the Agreement Steward has the right to modify this Agreement. The Eclipse Foundation is the initial Agreement Steward. The Eclipse Foundation may assign the responsibility to serve as the Agreement Steward to a suitable separate entity. Each new version of the Agreement will be given a distinguishing version
-number. The Program (including Contributions) may always be distributed subject to the version of the Agreement under which it was received. In addition, after a new version of the Agreement is published, Contributor may elect to distribute the Program (including its Contributions) under the new version. Except as expressly stated in Sections 2(a) and 2(b) above, Recipient receives no rights or licenses to the intellectual property of any Contributor under this Agreement, whether expressly, by implication, estoppel or otherwise. All rights in the Program not expressly granted under this Agreement are reserved. This Agreement is governed by the laws of the State of New York and the intellectual property laws of the United States of America. No party to this Agreement will bring a legal action under this Agreement more than one year after the cause of action arose. Each party waives its rights to a jury trial in any resulting litigation.
- </license>
-
- <plugin
- id="org.jboss.tools.flow.common"
- download-size="0"
- install-size="0"
- version="0.0.0"
- unpack="false"/>
-
-</feature>
Copied: tags/jbpm-jpdl-4.2/org.jboss.tools.flow.common.feature/feature.xml (from rev 18325, trunk/flow/features/org.jboss.tools.flow.common.feature/feature.xml)
===================================================================
--- tags/jbpm-jpdl-4.2/org.jboss.tools.flow.common.feature/feature.xml (rev 0)
+++ tags/jbpm-jpdl-4.2/org.jboss.tools.flow.common.feature/feature.xml 2009-11-11 20:51:45 UTC (rev 18623)
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<feature
+ id="org.jboss.tools.flow.common.feature"
+ label="%featureName"
+ version="1.2.0.qualifier"
+ provider-name="%featureProvider">
+
+ <description>
+ %description
+ </description>
+
+ <copyright>
+ %copyright
+ </copyright>
+
+ <license url="%licenseURL">
+ %license
+ </license>
+
+ <plugin
+ id="org.jboss.tools.flow.common"
+ download-size="0"
+ install-size="0"
+ version="0.0.0"
+ unpack="false"/>
+
+</feature>
Copied: tags/jbpm-jpdl-4.2/org.jboss.tools.flow.common.feature/sourceTemplateFeature (from rev 16474, trunk/flow/features/org.jboss.tools.flow.common.feature/sourceTemplateFeature)
Copied: tags/jbpm-jpdl-4.2/org.jboss.tools.flow.common.feature/sourceTemplatePlugin (from rev 16474, trunk/flow/features/org.jboss.tools.flow.common.feature/sourceTemplatePlugin)
15 years, 1 month
JBoss Tools SVN: r18622 - in tags/jbpm-jpdl-4.2: org.jboss.tools.flow.common and 4 other directories.
by jbosstools-commits@lists.jboss.org
Author: koen.aers(a)jboss.com
Date: 2009-11-11 15:50:49 -0500 (Wed, 11 Nov 2009)
New Revision: 18622
Added:
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.common/
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.common/META-INF/MANIFEST.MF
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.common/plugin.properties
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.common/src/org/jboss/tools/flow/common/editor/GenericModelEditor.java
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.common/src/org/jboss/tools/flow/common/editpart/LabelEditPart.java
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.common/src/org/jboss/tools/flow/common/wrapper/Wrapper.java
Removed:
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.common/META-INF/MANIFEST.MF
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.common/plugin.properties
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.common/src/org/jboss/tools/flow/common/editor/GenericModelEditor.java
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.common/src/org/jboss/tools/flow/common/editpart/LabelEditPart.java
tags/jbpm-jpdl-4.2/org.jboss.tools.flow.common/src/org/jboss/tools/flow/common/wrapper/Wrapper.java
Log:
Copied: tags/jbpm-jpdl-4.2/org.jboss.tools.flow.common (from rev 16344, trunk/flow/plugins/org.jboss.tools.flow.common)
Deleted: tags/jbpm-jpdl-4.2/org.jboss.tools.flow.common/META-INF/MANIFEST.MF
===================================================================
--- trunk/flow/plugins/org.jboss.tools.flow.common/META-INF/MANIFEST.MF 2009-07-02 15:15:08 UTC (rev 16344)
+++ tags/jbpm-jpdl-4.2/org.jboss.tools.flow.common/META-INF/MANIFEST.MF 2009-11-11 20:50:49 UTC (rev 18622)
@@ -1,32 +0,0 @@
-Manifest-Version: 1.0
-Bundle-ManifestVersion: 2
-Bundle-Name: %Bundle-Name.0
-Bundle-SymbolicName: org.jboss.tools.flow.common;singleton:=true
-Bundle-Version: 1.0.0.CR1
-Bundle-Activator: org.jboss.tools.flow.common.Activator
-Bundle-Vendor: %Bundle-Vendor.0
-Require-Bundle:
- org.eclipse.ui.views,
- org.eclipse.draw2d,
- org.eclipse.gef,
- org.eclipse.jface,
- org.eclipse.core.runtime,
- org.eclipse.ui,
- org.eclipse.core.resources,
- org.eclipse.ui.ide
-Bundle-ActivationPolicy: lazy
-Export-Package: org.jboss.tools.flow.common;uses:="org.eclipse.core.runtime,org.eclipse.ui.plugin,org.osgi.framework",
- org.jboss.tools.flow.common.action,
- org.jboss.tools.flow.common.command,
- org.jboss.tools.flow.common.editor,
- org.jboss.tools.flow.common.editpart,
- org.jboss.tools.flow.common.figure,
- org.jboss.tools.flow.common.model,
- org.jboss.tools.flow.common.policy,
- org.jboss.tools.flow.common.properties,
- org.jboss.tools.flow.common.registry,
- org.jboss.tools.flow.common.strategy,
- org.jboss.tools.flow.common.wrapper
-Bundle-ClassPath: .
-Bundle-RequiredExecutionEnvironment: J2SE-1.5
-Bundle-Localization: plugin
Copied: tags/jbpm-jpdl-4.2/org.jboss.tools.flow.common/META-INF/MANIFEST.MF (from rev 18326, trunk/flow/plugins/org.jboss.tools.flow.common/META-INF/MANIFEST.MF)
===================================================================
--- tags/jbpm-jpdl-4.2/org.jboss.tools.flow.common/META-INF/MANIFEST.MF (rev 0)
+++ tags/jbpm-jpdl-4.2/org.jboss.tools.flow.common/META-INF/MANIFEST.MF 2009-11-11 20:50:49 UTC (rev 18622)
@@ -0,0 +1,32 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: %Bundle-Name.0
+Bundle-SymbolicName: org.jboss.tools.flow.common;singleton:=true
+Bundle-Version: 1.2.0.qualifier
+Bundle-Activator: org.jboss.tools.flow.common.Activator
+Bundle-Vendor: %Bundle-Vendor.0
+Require-Bundle:
+ org.eclipse.ui.views,
+ org.eclipse.draw2d,
+ org.eclipse.gef,
+ org.eclipse.jface,
+ org.eclipse.core.runtime,
+ org.eclipse.ui,
+ org.eclipse.core.resources,
+ org.eclipse.ui.ide
+Bundle-ActivationPolicy: lazy
+Export-Package: org.jboss.tools.flow.common;uses:="org.eclipse.core.runtime,org.eclipse.ui.plugin,org.osgi.framework",
+ org.jboss.tools.flow.common.action,
+ org.jboss.tools.flow.common.command,
+ org.jboss.tools.flow.common.editor,
+ org.jboss.tools.flow.common.editpart,
+ org.jboss.tools.flow.common.figure,
+ org.jboss.tools.flow.common.model,
+ org.jboss.tools.flow.common.policy,
+ org.jboss.tools.flow.common.properties,
+ org.jboss.tools.flow.common.registry,
+ org.jboss.tools.flow.common.strategy,
+ org.jboss.tools.flow.common.wrapper
+Bundle-ClassPath: .
+Bundle-RequiredExecutionEnvironment: J2SE-1.5
+Bundle-Localization: plugin
Deleted: tags/jbpm-jpdl-4.2/org.jboss.tools.flow.common/plugin.properties
===================================================================
--- trunk/flow/plugins/org.jboss.tools.flow.common/plugin.properties 2009-07-02 15:15:08 UTC (rev 16344)
+++ tags/jbpm-jpdl-4.2/org.jboss.tools.flow.common/plugin.properties 2009-11-11 20:50:49 UTC (rev 18622)
@@ -1,3 +0,0 @@
-#Properties file for org.jboss.tools.flow.common
-Bundle-Vendor.0 = JBoss
-Bundle-Name.0 = JBoss Tools Process Plug-in
\ No newline at end of file
Copied: tags/jbpm-jpdl-4.2/org.jboss.tools.flow.common/plugin.properties (from rev 17988, trunk/flow/plugins/org.jboss.tools.flow.common/plugin.properties)
===================================================================
--- tags/jbpm-jpdl-4.2/org.jboss.tools.flow.common/plugin.properties (rev 0)
+++ tags/jbpm-jpdl-4.2/org.jboss.tools.flow.common/plugin.properties 2009-11-11 20:50:49 UTC (rev 18622)
@@ -0,0 +1,3 @@
+#Properties file for org.jboss.tools.flow.common
+Bundle-Vendor.0 = JBoss by Red Hat
+Bundle-Name.0 = Flow Language Common Tools
\ No newline at end of file
Deleted: tags/jbpm-jpdl-4.2/org.jboss.tools.flow.common/src/org/jboss/tools/flow/common/editor/GenericModelEditor.java
===================================================================
--- trunk/flow/plugins/org.jboss.tools.flow.common/src/org/jboss/tools/flow/common/editor/GenericModelEditor.java 2009-07-02 15:15:08 UTC (rev 16344)
+++ tags/jbpm-jpdl-4.2/org.jboss.tools.flow.common/src/org/jboss/tools/flow/common/editor/GenericModelEditor.java 2009-11-11 20:50:49 UTC (rev 18622)
@@ -1,403 +0,0 @@
-package org.jboss.tools.flow.common.editor;
-
-/*
- * Copyright 2005 JBoss Inc
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-import java.io.ByteArrayInputStream;
-import java.io.ByteArrayOutputStream;
-import java.io.IOException;
-import java.io.InputStream;
-import java.io.OutputStream;
-import java.util.EventObject;
-
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.resources.IWorkspace;
-import org.eclipse.core.resources.ResourcesPlugin;
-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.PositionConstants;
-import org.eclipse.draw2d.SWTGraphics;
-import org.eclipse.draw2d.geometry.Rectangle;
-import org.eclipse.gef.ContextMenuProvider;
-import org.eclipse.gef.DefaultEditDomain;
-import org.eclipse.gef.KeyHandler;
-import org.eclipse.gef.KeyStroke;
-import org.eclipse.gef.LayerConstants;
-import org.eclipse.gef.editparts.LayerManager;
-import org.eclipse.gef.editparts.ScalableRootEditPart;
-import org.eclipse.gef.editparts.ZoomManager;
-import org.eclipse.gef.palette.PaletteRoot;
-import org.eclipse.gef.ui.actions.ActionRegistry;
-import org.eclipse.gef.ui.actions.AlignmentAction;
-import org.eclipse.gef.ui.actions.DirectEditAction;
-import org.eclipse.gef.ui.actions.GEFActionConstants;
-import org.eclipse.gef.ui.actions.ToggleGridAction;
-import org.eclipse.gef.ui.parts.GraphicalEditorWithPalette;
-import org.eclipse.gef.ui.parts.GraphicalViewerKeyHandler;
-import org.eclipse.jface.action.IAction;
-import org.eclipse.jface.dialogs.ProgressMonitorDialog;
-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.IEditorPart;
-import org.eclipse.ui.IEditorSite;
-import org.eclipse.ui.IFileEditorInput;
-import org.eclipse.ui.IWorkbenchPart;
-import org.eclipse.ui.PartInitException;
-import org.eclipse.ui.actions.ActionFactory;
-import org.eclipse.ui.actions.WorkspaceModifyOperation;
-import org.eclipse.ui.dialogs.SaveAsDialog;
-import org.eclipse.ui.part.FileEditorInput;
-import org.eclipse.ui.views.contentoutline.IContentOutlinePage;
-import org.jboss.tools.flow.common.Activator;
-import org.jboss.tools.flow.common.action.HorizontalAutoLayoutAction;
-import org.jboss.tools.flow.common.action.VerticalAutoLayoutAction;
-import org.jboss.tools.flow.common.editpart.EditPartFactory;
-import org.jboss.tools.flow.common.registry.LanguageRegistry;
-
-/**
- * Abstract implementation of a graphical editor.
- *
- * @author <a href="mailto:kris_verlaenen@hotmail.com">Kris Verlaenen</a>
- */
-public abstract class GenericModelEditor extends GraphicalEditorWithPalette {
-
- private Object model;
- private boolean savePreviouslyNeeded = false;
- private KeyHandler sharedKeyHandler;
- private PaletteRoot root;
- private OverviewOutlinePage overviewOutlinePage;
-
- private String language;
-
- public GenericModelEditor() {
- setEditDomain(new DefaultEditDomain(this));
- }
-
- protected void setModel(Object model) {
- this.model = model;
- }
-
- public Object getModel() {
- return model;
- }
-
- public void init(IEditorSite site, IEditorInput input)
- throws PartInitException {
- super.init(site, input);
- initializeEditDomain();
- initializeLanguage();
- }
-
- protected void initializeEditDomain() {
- setEditDomain(new DefaultEditDomain(this));
- getCommandStack().addCommandStackListener(this);
- }
-
- protected void initializeLanguage() {
- language = LanguageRegistry.getLanguageRegisteredFor(getSite().getId());
- }
-
- public String getLanguage() {
- return language;
- }
-
- @SuppressWarnings("unchecked")
- protected void createActions() {
- super.createActions();
- ActionRegistry registry = getActionRegistry();
-
- IAction action = new DirectEditAction((IWorkbenchPart) this);
- registry.registerAction(action);
- getSelectionActions().add(action.getId());
-
- action = new AlignmentAction((IWorkbenchPart) this,
- PositionConstants.LEFT);
- registry.registerAction(action);
- getSelectionActions().add(action.getId());
-
- action = new AlignmentAction((IWorkbenchPart) this,
- PositionConstants.CENTER);
- registry.registerAction(action);
- getSelectionActions().add(action.getId());
-
- action = new AlignmentAction((IWorkbenchPart) this,
- PositionConstants.RIGHT);
- registry.registerAction(action);
- getSelectionActions().add(action.getId());
-
- action = new AlignmentAction((IWorkbenchPart) this,
- PositionConstants.TOP);
- registry.registerAction(action);
- getSelectionActions().add(action.getId());
-
- action = new AlignmentAction((IWorkbenchPart) this,
- PositionConstants.MIDDLE);
- registry.registerAction(action);
- getSelectionActions().add(action.getId());
-
- action = new AlignmentAction((IWorkbenchPart) this,
- PositionConstants.BOTTOM);
- registry.registerAction(action);
- getSelectionActions().add(action.getId());
- }
-
- public void commandStackChanged(EventObject event) {
- if (isDirty()) {
- if (!savePreviouslyNeeded()) {
- setSavePreviouslyNeeded(true);
- firePropertyChange(IEditorPart.PROP_DIRTY);
- }
- } else {
- setSavePreviouslyNeeded(false);
- firePropertyChange(IEditorPart.PROP_DIRTY);
- }
- super.commandStackChanged(event);
- }
-
- protected abstract void writeModel(OutputStream os) throws IOException;
-
- protected void configureGraphicalViewer() {
- super.configureGraphicalViewer();
- getGraphicalViewer().setRootEditPart(new ScalableRootEditPart());
- getGraphicalViewer().setEditPartFactory(createEditPartFactory());
- getGraphicalViewer().setKeyHandler(
- new GraphicalViewerKeyHandler(getGraphicalViewer())
- .setParent(getCommonKeyHandler()));
-
- IAction showGrid = new ToggleGridAction(getGraphicalViewer());
- getActionRegistry().registerAction(showGrid);
-
- IAction layoutVertically = new VerticalAutoLayoutAction(
- getGraphicalViewer());
- getActionRegistry().registerAction(layoutVertically);
- IAction layoutHorizontally = new HorizontalAutoLayoutAction(
- getGraphicalViewer());
- getActionRegistry().registerAction(layoutHorizontally);
-
- ContextMenuProvider provider = new GenericContextMenuProvider(
- getGraphicalViewer(), getActionRegistry());
- getGraphicalViewer().setContextMenu(provider);
- getSite().registerContextMenu(
- "org.jboss.tools.flow.editor.contextmenu", provider,
- getGraphicalViewer());
- }
-
- protected org.eclipse.gef.EditPartFactory createEditPartFactory() {
- return new EditPartFactory();
- }
-
- protected void initializeGraphicalViewer() {
- getGraphicalViewer().setContents(model);
- }
-
- public void doSave(IProgressMonitor monitor) {
- try {
- ByteArrayOutputStream out = new ByteArrayOutputStream();
- writeModel(out);
- IFile file = ((IFileEditorInput) getEditorInput()).getFile();
- file.setContents(new ByteArrayInputStream(out.toByteArray()), true,
- false, monitor);
- out.close();
- getCommandStack().markSaveLocation();
- } catch (Exception e) {
- e.printStackTrace();
- }
- }
-
- public void doSaveAs() {
- SaveAsDialog dialog = new SaveAsDialog(getSite().getWorkbenchWindow()
- .getShell());
- dialog.setOriginalFile(((IFileEditorInput) getEditorInput()).getFile());
- dialog.open();
- IPath path = dialog.getResult();
-
- if (path == null) {
- return;
- }
-
- IWorkspace workspace = ResourcesPlugin.getWorkspace();
- final IFile file = workspace.getRoot().getFile(path);
-
- WorkspaceModifyOperation op = new WorkspaceModifyOperation() {
- public void execute(final IProgressMonitor monitor)
- throws CoreException {
- try {
- ByteArrayOutputStream out = new ByteArrayOutputStream();
- writeModel(out);
- file.create(new ByteArrayInputStream(out.toByteArray()),
- true, monitor);
- out.close();
- } catch (Exception e) {
- e.printStackTrace();
- }
- }
- };
-
- try {
- new ProgressMonitorDialog(getSite().getWorkbenchWindow().getShell())
- .run(false, true, op);
- setInput(new FileEditorInput(file));
- getCommandStack().markSaveLocation();
- } catch (Exception e) {
- e.printStackTrace();
- }
- }
-
- protected KeyHandler getCommonKeyHandler() {
- if (sharedKeyHandler == null) {
- sharedKeyHandler = new KeyHandler();
- sharedKeyHandler
- .put(KeyStroke.getPressed(SWT.DEL, 127, 0),
- getActionRegistry().getAction(
- ActionFactory.DELETE.getId()));
- sharedKeyHandler.put(KeyStroke.getPressed(SWT.F2, 0),
- getActionRegistry().getAction(
- GEFActionConstants.DIRECT_EDIT));
- }
- return sharedKeyHandler;
- }
-
- public boolean isDirty() {
- return isSaveOnCloseNeeded();
- }
-
- public boolean isSaveAsAllowed() {
- return true;
- }
-
- public boolean isSaveOnCloseNeeded() {
- return getCommandStack().isDirty();
- }
-
- private boolean savePreviouslyNeeded() {
- return savePreviouslyNeeded;
- }
-
- private void setSavePreviouslyNeeded(boolean value) {
- savePreviouslyNeeded = value;
- }
-
- protected PaletteRoot getPaletteRoot() {
- if (root == null) {
- root = createPalette();
- }
- return root;
- }
-
- protected abstract PaletteRoot createPalette();
-
- protected void setInput(IEditorInput input) {
- super.setInput(input);
-
- IFile file = getFile();
- setPartName(file.getName());
- try {
- InputStream is = file.getContents(false);
- createModel(is);
- } catch (Throwable t) {
- Activator.log(t);
- }
- if (getGraphicalViewer() != null) {
- initializeGraphicalViewer();
- }
- }
-
- public IFile getFile() {
- return ((IFileEditorInput) getEditorInput()).getFile();
- }
-
- public IProject getProject() {
- IFile file = getFile();
- if (file != null) {
- return file.getProject();
- }
- return null;
- }
-
- protected abstract void createModel(InputStream is);
-
- @SuppressWarnings("unchecked")
- public Object getAdapter(Class type) {
- if (type == IContentOutlinePage.class) {
- return getOverviewOutlinePage();
- }
- if (type == ZoomManager.class) {
- return ((ScalableRootEditPart) getGraphicalViewer()
- .getRootEditPart()).getZoomManager();
- }
- return super.getAdapter(type);
- }
-
- protected OverviewOutlinePage getOverviewOutlinePage() {
- if (null == overviewOutlinePage && null != getGraphicalViewer()) {
- ScalableRootEditPart rootEditPart = (ScalableRootEditPart) getGraphicalViewer()
- .getRootEditPart();
- overviewOutlinePage = new OverviewOutlinePage(rootEditPart);
- }
- return overviewOutlinePage;
- }
-
-// public String getContributorId() {
-// return getSite().getId();
-// }
-
- /**
- * Writes the content of this editor to the given stream. Possible formats
- * are for example SWT.IMAGE_BMP, IMAGE_GIF, IMAGE_JPEG, IMAGE_PNG.
- *
- * @param stream
- * @param format
- */
- public void createImage(OutputStream stream, int format) {
- SWTGraphics g = null;
- GC gc = null;
- Image image = null;
- LayerManager layerManager = (LayerManager) getGraphicalViewer()
- .getEditPartRegistry().get(LayerManager.ID);
- IFigure figure = layerManager.getLayer(LayerConstants.PRINTABLE_LAYERS);
- Rectangle r = figure.getBounds();
- try {
- 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(stream, format);
- } catch (Throwable t) {
- Activator.log(t);
- } finally {
- if (g != null) {
- g.dispose();
- }
- if (gc != null) {
- gc.dispose();
- }
- if (image != null) {
- image.dispose();
- }
- }
- }
-}
Copied: tags/jbpm-jpdl-4.2/org.jboss.tools.flow.common/src/org/jboss/tools/flow/common/editor/GenericModelEditor.java (from rev 16364, trunk/flow/plugins/org.jboss.tools.flow.common/src/org/jboss/tools/flow/common/editor/GenericModelEditor.java)
===================================================================
--- tags/jbpm-jpdl-4.2/org.jboss.tools.flow.common/src/org/jboss/tools/flow/common/editor/GenericModelEditor.java (rev 0)
+++ tags/jbpm-jpdl-4.2/org.jboss.tools.flow.common/src/org/jboss/tools/flow/common/editor/GenericModelEditor.java 2009-11-11 20:50:49 UTC (rev 18622)
@@ -0,0 +1,402 @@
+package org.jboss.tools.flow.common.editor;
+
+/*
+ * Copyright 2005 JBoss Inc
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import java.io.ByteArrayInputStream;
+import java.io.ByteArrayOutputStream;
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.OutputStream;
+import java.util.EventObject;
+
+import org.eclipse.core.resources.IFile;
+import org.eclipse.core.resources.IProject;
+import org.eclipse.core.resources.IWorkspace;
+import org.eclipse.core.resources.ResourcesPlugin;
+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.PositionConstants;
+import org.eclipse.draw2d.SWTGraphics;
+import org.eclipse.draw2d.geometry.Rectangle;
+import org.eclipse.gef.ContextMenuProvider;
+import org.eclipse.gef.DefaultEditDomain;
+import org.eclipse.gef.KeyHandler;
+import org.eclipse.gef.KeyStroke;
+import org.eclipse.gef.LayerConstants;
+import org.eclipse.gef.editparts.LayerManager;
+import org.eclipse.gef.editparts.ScalableRootEditPart;
+import org.eclipse.gef.editparts.ZoomManager;
+import org.eclipse.gef.palette.PaletteRoot;
+import org.eclipse.gef.ui.actions.ActionRegistry;
+import org.eclipse.gef.ui.actions.AlignmentAction;
+import org.eclipse.gef.ui.actions.DirectEditAction;
+import org.eclipse.gef.ui.actions.GEFActionConstants;
+import org.eclipse.gef.ui.actions.ToggleGridAction;
+import org.eclipse.gef.ui.parts.GraphicalEditorWithPalette;
+import org.eclipse.gef.ui.parts.GraphicalViewerKeyHandler;
+import org.eclipse.jface.action.IAction;
+import org.eclipse.jface.dialogs.ProgressMonitorDialog;
+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.IEditorPart;
+import org.eclipse.ui.IEditorSite;
+import org.eclipse.ui.IFileEditorInput;
+import org.eclipse.ui.IWorkbenchPart;
+import org.eclipse.ui.PartInitException;
+import org.eclipse.ui.actions.ActionFactory;
+import org.eclipse.ui.actions.WorkspaceModifyOperation;
+import org.eclipse.ui.dialogs.SaveAsDialog;
+import org.eclipse.ui.part.FileEditorInput;
+import org.eclipse.ui.views.contentoutline.IContentOutlinePage;
+import org.jboss.tools.flow.common.Activator;
+import org.jboss.tools.flow.common.action.HorizontalAutoLayoutAction;
+import org.jboss.tools.flow.common.action.VerticalAutoLayoutAction;
+import org.jboss.tools.flow.common.editpart.EditPartFactory;
+import org.jboss.tools.flow.common.registry.LanguageRegistry;
+
+/**
+ * Abstract implementation of a graphical editor.
+ *
+ * @author <a href="mailto:kris_verlaenen@hotmail.com">Kris Verlaenen</a>
+ */
+public abstract class GenericModelEditor extends GraphicalEditorWithPalette {
+
+ private Object model;
+ private boolean savePreviouslyNeeded = false;
+ private KeyHandler sharedKeyHandler;
+ private PaletteRoot root;
+ private OverviewOutlinePage overviewOutlinePage;
+
+ private String language;
+
+ public GenericModelEditor() {
+ setEditDomain(new DefaultEditDomain(this));
+ }
+
+ protected void setModel(Object model) {
+ this.model = model;
+ }
+
+ public Object getModel() {
+ return model;
+ }
+
+ public void init(IEditorSite site, IEditorInput input)
+ throws PartInitException {
+ super.init(site, input);
+ initializeLanguage();
+ }
+
+ protected void initializeEditDomain() {
+ setEditDomain(new DefaultEditDomain(this));
+ getCommandStack().addCommandStackListener(this);
+ }
+
+ protected void initializeLanguage() {
+ language = LanguageRegistry.getLanguageRegisteredFor(getSite().getId());
+ }
+
+ public String getLanguage() {
+ return language;
+ }
+
+ @SuppressWarnings("unchecked")
+ protected void createActions() {
+ super.createActions();
+ ActionRegistry registry = getActionRegistry();
+
+ IAction action = new DirectEditAction((IWorkbenchPart) this);
+ registry.registerAction(action);
+ getSelectionActions().add(action.getId());
+
+ action = new AlignmentAction((IWorkbenchPart) this,
+ PositionConstants.LEFT);
+ registry.registerAction(action);
+ getSelectionActions().add(action.getId());
+
+ action = new AlignmentAction((IWorkbenchPart) this,
+ PositionConstants.CENTER);
+ registry.registerAction(action);
+ getSelectionActions().add(action.getId());
+
+ action = new AlignmentAction((IWorkbenchPart) this,
+ PositionConstants.RIGHT);
+ registry.registerAction(action);
+ getSelectionActions().add(action.getId());
+
+ action = new AlignmentAction((IWorkbenchPart) this,
+ PositionConstants.TOP);
+ registry.registerAction(action);
+ getSelectionActions().add(action.getId());
+
+ action = new AlignmentAction((IWorkbenchPart) this,
+ PositionConstants.MIDDLE);
+ registry.registerAction(action);
+ getSelectionActions().add(action.getId());
+
+ action = new AlignmentAction((IWorkbenchPart) this,
+ PositionConstants.BOTTOM);
+ registry.registerAction(action);
+ getSelectionActions().add(action.getId());
+ }
+
+ public void commandStackChanged(EventObject event) {
+ if (isDirty()) {
+ if (!savePreviouslyNeeded()) {
+ setSavePreviouslyNeeded(true);
+ firePropertyChange(IEditorPart.PROP_DIRTY);
+ }
+ } else {
+ setSavePreviouslyNeeded(false);
+ firePropertyChange(IEditorPart.PROP_DIRTY);
+ }
+ super.commandStackChanged(event);
+ }
+
+ protected abstract void writeModel(OutputStream os) throws IOException;
+
+ protected void configureGraphicalViewer() {
+ super.configureGraphicalViewer();
+ getGraphicalViewer().setRootEditPart(new ScalableRootEditPart());
+ getGraphicalViewer().setEditPartFactory(createEditPartFactory());
+ getGraphicalViewer().setKeyHandler(
+ new GraphicalViewerKeyHandler(getGraphicalViewer())
+ .setParent(getCommonKeyHandler()));
+
+ IAction showGrid = new ToggleGridAction(getGraphicalViewer());
+ getActionRegistry().registerAction(showGrid);
+
+ IAction layoutVertically = new VerticalAutoLayoutAction(
+ getGraphicalViewer());
+ getActionRegistry().registerAction(layoutVertically);
+ IAction layoutHorizontally = new HorizontalAutoLayoutAction(
+ getGraphicalViewer());
+ getActionRegistry().registerAction(layoutHorizontally);
+
+ ContextMenuProvider provider = new GenericContextMenuProvider(
+ getGraphicalViewer(), getActionRegistry());
+ getGraphicalViewer().setContextMenu(provider);
+ getSite().registerContextMenu(
+ "org.jboss.tools.flow.editor.contextmenu", provider,
+ getGraphicalViewer());
+ }
+
+ protected org.eclipse.gef.EditPartFactory createEditPartFactory() {
+ return new EditPartFactory();
+ }
+
+ protected void initializeGraphicalViewer() {
+ getGraphicalViewer().setContents(model);
+ }
+
+ public void doSave(IProgressMonitor monitor) {
+ try {
+ ByteArrayOutputStream out = new ByteArrayOutputStream();
+ writeModel(out);
+ IFile file = ((IFileEditorInput) getEditorInput()).getFile();
+ file.setContents(new ByteArrayInputStream(out.toByteArray()), true,
+ false, monitor);
+ out.close();
+ getCommandStack().markSaveLocation();
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ }
+
+ public void doSaveAs() {
+ SaveAsDialog dialog = new SaveAsDialog(getSite().getWorkbenchWindow()
+ .getShell());
+ dialog.setOriginalFile(((IFileEditorInput) getEditorInput()).getFile());
+ dialog.open();
+ IPath path = dialog.getResult();
+
+ if (path == null) {
+ return;
+ }
+
+ IWorkspace workspace = ResourcesPlugin.getWorkspace();
+ final IFile file = workspace.getRoot().getFile(path);
+
+ WorkspaceModifyOperation op = new WorkspaceModifyOperation() {
+ public void execute(final IProgressMonitor monitor)
+ throws CoreException {
+ try {
+ ByteArrayOutputStream out = new ByteArrayOutputStream();
+ writeModel(out);
+ file.create(new ByteArrayInputStream(out.toByteArray()),
+ true, monitor);
+ out.close();
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ }
+ };
+
+ try {
+ new ProgressMonitorDialog(getSite().getWorkbenchWindow().getShell())
+ .run(false, true, op);
+ setInput(new FileEditorInput(file));
+ getCommandStack().markSaveLocation();
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ }
+
+ protected KeyHandler getCommonKeyHandler() {
+ if (sharedKeyHandler == null) {
+ sharedKeyHandler = new KeyHandler();
+ sharedKeyHandler
+ .put(KeyStroke.getPressed(SWT.DEL, 127, 0),
+ getActionRegistry().getAction(
+ ActionFactory.DELETE.getId()));
+ sharedKeyHandler.put(KeyStroke.getPressed(SWT.F2, 0),
+ getActionRegistry().getAction(
+ GEFActionConstants.DIRECT_EDIT));
+ }
+ return sharedKeyHandler;
+ }
+
+ public boolean isDirty() {
+ return isSaveOnCloseNeeded();
+ }
+
+ public boolean isSaveAsAllowed() {
+ return true;
+ }
+
+ public boolean isSaveOnCloseNeeded() {
+ return getCommandStack().isDirty();
+ }
+
+ private boolean savePreviouslyNeeded() {
+ return savePreviouslyNeeded;
+ }
+
+ private void setSavePreviouslyNeeded(boolean value) {
+ savePreviouslyNeeded = value;
+ }
+
+ protected PaletteRoot getPaletteRoot() {
+ if (root == null) {
+ root = createPalette();
+ }
+ return root;
+ }
+
+ protected abstract PaletteRoot createPalette();
+
+ protected void setInput(IEditorInput input) {
+ super.setInput(input);
+
+ IFile file = getFile();
+ setPartName(file.getName());
+ try {
+ InputStream is = file.getContents(false);
+ createModel(is);
+ } catch (Throwable t) {
+ Activator.log(t);
+ }
+ if (getGraphicalViewer() != null) {
+ initializeGraphicalViewer();
+ }
+ }
+
+ public IFile getFile() {
+ return ((IFileEditorInput) getEditorInput()).getFile();
+ }
+
+ public IProject getProject() {
+ IFile file = getFile();
+ if (file != null) {
+ return file.getProject();
+ }
+ return null;
+ }
+
+ protected abstract void createModel(InputStream is);
+
+ @SuppressWarnings("unchecked")
+ public Object getAdapter(Class type) {
+ if (type == IContentOutlinePage.class) {
+ return getOverviewOutlinePage();
+ }
+ if (type == ZoomManager.class) {
+ return ((ScalableRootEditPart) getGraphicalViewer()
+ .getRootEditPart()).getZoomManager();
+ }
+ return super.getAdapter(type);
+ }
+
+ protected OverviewOutlinePage getOverviewOutlinePage() {
+ if (null == overviewOutlinePage && null != getGraphicalViewer()) {
+ ScalableRootEditPart rootEditPart = (ScalableRootEditPart) getGraphicalViewer()
+ .getRootEditPart();
+ overviewOutlinePage = new OverviewOutlinePage(rootEditPart);
+ }
+ return overviewOutlinePage;
+ }
+
+// public String getContributorId() {
+// return getSite().getId();
+// }
+
+ /**
+ * Writes the content of this editor to the given stream. Possible formats
+ * are for example SWT.IMAGE_BMP, IMAGE_GIF, IMAGE_JPEG, IMAGE_PNG.
+ *
+ * @param stream
+ * @param format
+ */
+ public void createImage(OutputStream stream, int format) {
+ SWTGraphics g = null;
+ GC gc = null;
+ Image image = null;
+ LayerManager layerManager = (LayerManager) getGraphicalViewer()
+ .getEditPartRegistry().get(LayerManager.ID);
+ IFigure figure = layerManager.getLayer(LayerConstants.PRINTABLE_LAYERS);
+ Rectangle r = figure.getBounds();
+ try {
+ 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(stream, format);
+ } catch (Throwable t) {
+ Activator.log(t);
+ } finally {
+ if (g != null) {
+ g.dispose();
+ }
+ if (gc != null) {
+ gc.dispose();
+ }
+ if (image != null) {
+ image.dispose();
+ }
+ }
+ }
+}
Deleted: tags/jbpm-jpdl-4.2/org.jboss.tools.flow.common/src/org/jboss/tools/flow/common/editpart/LabelEditPart.java
===================================================================
--- trunk/flow/plugins/org.jboss.tools.flow.common/src/org/jboss/tools/flow/common/editpart/LabelEditPart.java 2009-07-02 15:15:08 UTC (rev 16344)
+++ tags/jbpm-jpdl-4.2/org.jboss.tools.flow.common/src/org/jboss/tools/flow/common/editpart/LabelEditPart.java 2009-11-11 20:50:49 UTC (rev 18622)
@@ -1,134 +0,0 @@
-package org.jboss.tools.flow.common.editpart;
-
-import org.eclipse.draw2d.FigureUtilities;
-import org.eclipse.draw2d.IFigure;
-import org.eclipse.draw2d.Label;
-import org.eclipse.draw2d.Locator;
-import org.eclipse.draw2d.Polyline;
-import org.eclipse.draw2d.geometry.Dimension;
-import org.eclipse.draw2d.geometry.Point;
-import org.eclipse.gef.DragTracker;
-import org.eclipse.gef.EditPart;
-import org.eclipse.gef.EditPolicy;
-import org.eclipse.gef.GraphicalEditPart;
-import org.eclipse.gef.Request;
-import org.eclipse.gef.RequestConstants;
-import org.eclipse.gef.editparts.AbstractGraphicalEditPart;
-import org.eclipse.gef.tools.DirectEditManager;
-import org.eclipse.gef.tools.DragEditPartsTracker;
-import org.jboss.tools.flow.common.policy.ElementDirectEditManager;
-import org.jboss.tools.flow.common.policy.ElementDirectEditPolicy;
-import org.jboss.tools.flow.common.policy.LabelGraphicalNodeEditPolicy;
-import org.jboss.tools.flow.common.wrapper.LabelWrapper;
-import org.jboss.tools.flow.common.wrapper.ModelEvent;
-import org.jboss.tools.flow.common.wrapper.ModelListener;
-import org.jboss.tools.flow.common.wrapper.Wrapper;
-
-public class LabelEditPart extends AbstractGraphicalEditPart implements ModelListener {
-
- private DirectEditManager manager;
-
- @Override
- protected IFigure createFigure() {
- return new Label();
- }
-
- @Override
- protected void createEditPolicies() {
- installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new LabelGraphicalNodeEditPolicy());
- installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new ElementDirectEditPolicy());
- }
-
- protected void refreshVisuals() {
- String text = getLabelWrapper().getText();
- Polyline polyline = (Polyline)((ConnectionEditPart)getParent()).getConnectionFigure();
- Point location = ((LabelWrapper)getModel()).getLocation();
- if (location == null) {
- location = calculateInitialLocation(polyline, text);
- ((LabelWrapper)getModel()).setLocation(location);
- }
- Label label = (Label)getFigure();
- label.setText(text);
- LabelConstraint constraint = new LabelConstraint(text, location, polyline);
- ((GraphicalEditPart)getParent()).setLayoutConstraint(this, getFigure(), constraint);
- }
-
- private Point calculateInitialLocation(Polyline polyline, String text) {
- Dimension textDimension = FigureUtilities.getTextExtents(text, figure.getFont());
- return new Point(- (textDimension.width +5) , -(textDimension.height + 5));
- }
-
- public void performRequest(Request request) {
- if (request.getType() == RequestConstants.REQ_DIRECT_EDIT) {
- performDirectEdit();
- } else {
- super.performRequest(request);
- }
- }
-
- protected void performDirectEdit() {
- Label label = (Label) getFigure();
- if (label == null) {
- return;
- }
- if (manager == null) {
- manager = new ElementDirectEditManager(this, new CellEditorLocator(label));
- }
- manager.show();
- }
-
- public LabelWrapper getLabelWrapper() {
- return (LabelWrapper)getModel();
- }
-
- public DragTracker getDragTracker(Request request) {
- return new DragEditPartsTracker(this) {
- protected EditPart getTargetEditPart() {
- return getParent();
- }
- };
- }
-
- public void activate() {
- super.activate();
- getLabelWrapper().addListener(this);
- if (getParent().getModel() instanceof Wrapper) {
- ((Wrapper)getParent().getModel()).addListener(this);
- }
- }
-
- public void deactivate() {
- if (getParent().getModel() instanceof Wrapper) {
- ((Wrapper)getParent().getModel()).removeListener(this);
- }
- getLabelWrapper().removeListener(this);
- super.deactivate();
- }
-
- public void modelChanged(ModelEvent event) {
- if (event.getChangeType() == Wrapper.CHANGE_PROPERTY || event.getChangeType() == Wrapper.CHANGE_VISUAL) {
- refreshVisuals();
- }
- }
-
- private class LabelConstraint implements Locator {
- String text;
- Point relativeLocation;
- Polyline polyline;
- public LabelConstraint(String text, Point location, Polyline polyline) {
- this.text = text;
- this.relativeLocation = location;
- this.polyline = polyline;
- }
- public void relocate(IFigure figure) {
- Dimension minimum = FigureUtilities.getTextExtents(text, figure.getFont());
- figure.setSize(minimum);
- Point midPoint = polyline.getPoints().getMidpoint();
- Point newLocation = relativeLocation.getCopy();
- newLocation.translate(midPoint);
- figure.setLocation(newLocation);
- }
- }
-
-
-}
Copied: tags/jbpm-jpdl-4.2/org.jboss.tools.flow.common/src/org/jboss/tools/flow/common/editpart/LabelEditPart.java (from rev 17079, trunk/flow/plugins/org.jboss.tools.flow.common/src/org/jboss/tools/flow/common/editpart/LabelEditPart.java)
===================================================================
--- tags/jbpm-jpdl-4.2/org.jboss.tools.flow.common/src/org/jboss/tools/flow/common/editpart/LabelEditPart.java (rev 0)
+++ tags/jbpm-jpdl-4.2/org.jboss.tools.flow.common/src/org/jboss/tools/flow/common/editpart/LabelEditPart.java 2009-11-11 20:50:49 UTC (rev 18622)
@@ -0,0 +1,134 @@
+package org.jboss.tools.flow.common.editpart;
+
+import org.eclipse.draw2d.FigureUtilities;
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.Locator;
+import org.eclipse.draw2d.Polyline;
+import org.eclipse.draw2d.geometry.Dimension;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.gef.DragTracker;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.GraphicalEditPart;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.RequestConstants;
+import org.eclipse.gef.editparts.AbstractGraphicalEditPart;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gef.tools.DragEditPartsTracker;
+import org.jboss.tools.flow.common.policy.ElementDirectEditManager;
+import org.jboss.tools.flow.common.policy.ElementDirectEditPolicy;
+import org.jboss.tools.flow.common.policy.LabelGraphicalNodeEditPolicy;
+import org.jboss.tools.flow.common.wrapper.LabelWrapper;
+import org.jboss.tools.flow.common.wrapper.ModelEvent;
+import org.jboss.tools.flow.common.wrapper.ModelListener;
+import org.jboss.tools.flow.common.wrapper.Wrapper;
+
+public class LabelEditPart extends AbstractGraphicalEditPart implements ModelListener {
+
+ private DirectEditManager manager;
+
+ @Override
+ protected IFigure createFigure() {
+ return new Label();
+ }
+
+ @Override
+ protected void createEditPolicies() {
+ installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new LabelGraphicalNodeEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new ElementDirectEditPolicy());
+ }
+
+ protected void refreshVisuals() {
+ String text = getLabelWrapper().getText();
+ Polyline polyline = (Polyline)((ConnectionEditPart)getParent()).getConnectionFigure();
+ Point location = ((LabelWrapper)getModel()).getLocation();
+ if (location == null) {
+ location = calculateInitialLocation(polyline, text);
+ ((LabelWrapper)getModel()).setLocation(location);
+ }
+ Label label = (Label)getFigure();
+ label.setText(text == null ? "" : text);
+ LabelConstraint constraint = new LabelConstraint(text, location, polyline);
+ ((GraphicalEditPart)getParent()).setLayoutConstraint(this, getFigure(), constraint);
+ }
+
+ private Point calculateInitialLocation(Polyline polyline, String text) {
+ Dimension textDimension = FigureUtilities.getTextExtents(text, figure.getFont());
+ return new Point(- (textDimension.width +5) , -(textDimension.height + 5));
+ }
+
+ public void performRequest(Request request) {
+ if (request.getType() == RequestConstants.REQ_DIRECT_EDIT) {
+ performDirectEdit();
+ } else {
+ super.performRequest(request);
+ }
+ }
+
+ protected void performDirectEdit() {
+ Label label = (Label) getFigure();
+ if (label == null) {
+ return;
+ }
+ if (manager == null) {
+ manager = new ElementDirectEditManager(this, new CellEditorLocator(label));
+ }
+ manager.show();
+ }
+
+ public LabelWrapper getLabelWrapper() {
+ return (LabelWrapper)getModel();
+ }
+
+ public DragTracker getDragTracker(Request request) {
+ return new DragEditPartsTracker(this) {
+ protected EditPart getTargetEditPart() {
+ return getParent();
+ }
+ };
+ }
+
+ public void activate() {
+ super.activate();
+ getLabelWrapper().addListener(this);
+ if (getParent().getModel() instanceof Wrapper) {
+ ((Wrapper)getParent().getModel()).addListener(this);
+ }
+ }
+
+ public void deactivate() {
+ if (getParent().getModel() instanceof Wrapper) {
+ ((Wrapper)getParent().getModel()).removeListener(this);
+ }
+ getLabelWrapper().removeListener(this);
+ super.deactivate();
+ }
+
+ public void modelChanged(ModelEvent event) {
+ if (event.getChangeType() == Wrapper.CHANGE_PROPERTY || event.getChangeType() == Wrapper.CHANGE_VISUAL) {
+ refreshVisuals();
+ }
+ }
+
+ private class LabelConstraint implements Locator {
+ String text;
+ Point relativeLocation;
+ Polyline polyline;
+ public LabelConstraint(String text, Point location, Polyline polyline) {
+ this.text = text;
+ this.relativeLocation = location;
+ this.polyline = polyline;
+ }
+ public void relocate(IFigure figure) {
+ Dimension minimum = FigureUtilities.getTextExtents(text, figure.getFont());
+ figure.setSize(minimum);
+ Point midPoint = polyline.getPoints().getMidpoint();
+ Point newLocation = relativeLocation.getCopy();
+ newLocation.translate(midPoint);
+ figure.setLocation(newLocation);
+ }
+ }
+
+
+}
Deleted: tags/jbpm-jpdl-4.2/org.jboss.tools.flow.common/src/org/jboss/tools/flow/common/wrapper/Wrapper.java
===================================================================
--- trunk/flow/plugins/org.jboss.tools.flow.common/src/org/jboss/tools/flow/common/wrapper/Wrapper.java 2009-07-02 15:15:08 UTC (rev 16344)
+++ tags/jbpm-jpdl-4.2/org.jboss.tools.flow.common/src/org/jboss/tools/flow/common/wrapper/Wrapper.java 2009-11-11 20:50:49 UTC (rev 18622)
@@ -1,34 +0,0 @@
-package org.jboss.tools.flow.common.wrapper;
-
-import java.util.List;
-
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.ui.views.properties.IPropertySource;
-import org.jboss.tools.flow.common.model.Element;
-
-
-public interface Wrapper extends IAdaptable, IPropertySource, Element {
-
-// int ADD_INCOMING_CONNECTION = 1;
-// int REMOVE_INCOMING_CONNECTION = 2;
-// int ADD_OUTGOING_CONNECTION = 3;
-// int REMOVE_OUTGOING_CONNECTION = 4;
- int CHANGE_VISUAL = 5;
- int ADD_ELEMENT = 6;
- int REMOVE_ELEMENT = 7;
- int CHANGE_PROPERTY = 8;
-
-
-
- void setElement(Element element);
- Element getElement();
-
- void addChild(Object type, Element element);
- void removeChild(Object type, Element element);
- List<Element> getChildren(Object type);
-
- void addListener(ModelListener listener);
- void removeListener(ModelListener listener);
- void notifyListeners(int changeId, Object changeDiscriminator, Object changedObject, Object oldValue, Object newValue);
-
-}
Copied: tags/jbpm-jpdl-4.2/org.jboss.tools.flow.common/src/org/jboss/tools/flow/common/wrapper/Wrapper.java (from rev 17043, trunk/flow/plugins/org.jboss.tools.flow.common/src/org/jboss/tools/flow/common/wrapper/Wrapper.java)
===================================================================
--- tags/jbpm-jpdl-4.2/org.jboss.tools.flow.common/src/org/jboss/tools/flow/common/wrapper/Wrapper.java (rev 0)
+++ tags/jbpm-jpdl-4.2/org.jboss.tools.flow.common/src/org/jboss/tools/flow/common/wrapper/Wrapper.java 2009-11-11 20:50:49 UTC (rev 18622)
@@ -0,0 +1,30 @@
+package org.jboss.tools.flow.common.wrapper;
+
+import java.util.List;
+
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.ui.views.properties.IPropertySource;
+import org.jboss.tools.flow.common.model.Element;
+
+
+public interface Wrapper extends IAdaptable, IPropertySource, Element {
+
+ int CHANGE_VISUAL = 5;
+ int ADD_ELEMENT = 6;
+ int REMOVE_ELEMENT = 7;
+ int CHANGE_PROPERTY = 8;
+
+
+
+ void setElement(Element element);
+ Element getElement();
+
+ void addChild(Object type, Element element);
+ void removeChild(Object type, Element element);
+ List<Element> getChildren(Object type);
+
+ void addListener(ModelListener listener);
+ void removeListener(ModelListener listener);
+ void notifyListeners(int changeId, Object changeDiscriminator, Object changedObject, Object oldValue, Object newValue);
+
+}
15 years, 1 month
JBoss Tools SVN: r18621 - tags.
by jbosstools-commits@lists.jboss.org
Author: koen.aers(a)jboss.com
Date: 2009-11-11 15:50:29 -0500 (Wed, 11 Nov 2009)
New Revision: 18621
Added:
tags/jbpm-jpdl-4.2/
Log:
15 years, 1 month
JBoss Tools SVN: r18620 - workspace/mareshkau/xulrunner-1.9.1.2/org.mozilla.xpcom/META-INF.
by jbosstools-commits@lists.jboss.org
Author: mareshkau
Date: 2009-11-11 11:46:57 -0500 (Wed, 11 Nov 2009)
New Revision: 18620
Modified:
workspace/mareshkau/xulrunner-1.9.1.2/org.mozilla.xpcom/META-INF/MANIFEST.MF
Log:
Eclipse-BuddyPolicy: registered,singleton=true declaration has been added
Modified: workspace/mareshkau/xulrunner-1.9.1.2/org.mozilla.xpcom/META-INF/MANIFEST.MF
===================================================================
--- workspace/mareshkau/xulrunner-1.9.1.2/org.mozilla.xpcom/META-INF/MANIFEST.MF 2009-11-11 16:16:01 UTC (rev 18619)
+++ workspace/mareshkau/xulrunner-1.9.1.2/org.mozilla.xpcom/META-INF/MANIFEST.MF 2009-11-11 16:46:57 UTC (rev 18620)
@@ -1,11 +1,12 @@
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Mozilla XPCOM Eclipse plugin
-Bundle-SymbolicName: org.mozilla.xpcom
+Bundle-SymbolicName: org.mozilla.xpcom;singleton:=true
Bundle-Version: 1.9.1.2
Bundle-ClassPath: MozillaGlue.jar,
MozillaInterfaces.jar
Export-Package: org.mozilla.interfaces,
org.mozilla.xpcom
Bundle-Vendor: mozilla.org
+Eclipse-BuddyPolicy: registered
Bundle-RequiredExecutionEnvironment: J2SE-1.5
15 years, 1 month
JBoss Tools SVN: r18619 - in trunk: jsf/plugins/org.jboss.tools.jsf.vpe.facelets/META-INF and 19 other directories.
by jbosstools-commits@lists.jboss.org
Author: mareshkau
Date: 2009-11-11 11:16:01 -0500 (Wed, 11 Nov 2009)
New Revision: 18619
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.ajax4jsf/META-INF/MANIFEST.MF
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.facelets/META-INF/MANIFEST.MF
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/META-INF/MANIFEST.MF
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jstl/META-INF/MANIFEST.MF
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.myfaces/META-INF/MANIFEST.MF
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/META-INF/MANIFEST.MF
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.seam/META-INF/MANIFEST.MF
trunk/jsf/tests/org.jboss.tools.jsf.vpe.ajax4jsf.test/META-INF/MANIFEST.MF
trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/META-INF/MANIFEST.MF
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/META-INF/MANIFEST.MF
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/META-INF/MANIFEST.MF
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/META-INF/MANIFEST.MF
trunk/vpe/plugins/org.jboss.tools.vpe.html/META-INF/MANIFEST.MF
trunk/vpe/plugins/org.jboss.tools.vpe.jsp/META-INF/MANIFEST.MF
trunk/vpe/plugins/org.jboss.tools.vpe.xulrunner/META-INF/MANIFEST.MF
trunk/vpe/plugins/org.jboss.tools.vpe/META-INF/MANIFEST.MF
trunk/vpe/tests/org.jboss.tools.vpe.html.test/META-INF/MANIFEST.MF
trunk/vpe/tests/org.jboss.tools.vpe.jsp.test/META-INF/MANIFEST.MF
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/META-INF/MANIFEST.MF
trunk/vpe/tests/org.jboss.tools.vpe.ui.test/META-INF/MANIFEST.MF
trunk/vpe/tests/org.jboss.tools.vpe.xulrunner.test/META-INF/MANIFEST.MF
Log:
https://jira.jboss.org/jira/browse/JBIDE-5080
Modified: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.ajax4jsf/META-INF/MANIFEST.MF
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.ajax4jsf/META-INF/MANIFEST.MF 2009-11-11 16:07:05 UTC (rev 18618)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.ajax4jsf/META-INF/MANIFEST.MF 2009-11-11 16:16:01 UTC (rev 18619)
@@ -9,7 +9,7 @@
org.eclipse.ui,
org.eclipse.core.runtime,
org.jboss.tools.jst.jsp,
- org.mozilla.xpcom,
+ org.mozilla.xpcom;bundle-version="1.9.1",
org.jboss.tools.jsf.vpe.richfaces;bundle-version="2.1.0",
org.jboss.tools.jsf.vpe.jsf;bundle-version="2.1.0",
org.eclipse.jface.text;bundle-version="3.5.0"
Modified: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.facelets/META-INF/MANIFEST.MF
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.facelets/META-INF/MANIFEST.MF 2009-11-11 16:07:05 UTC (rev 18618)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.facelets/META-INF/MANIFEST.MF 2009-11-11 16:16:01 UTC (rev 18619)
@@ -13,7 +13,7 @@
org.jboss.tools.vpe,
org.eclipse.core.resources,
org.jboss.tools.jst.jsp,
- org.mozilla.xpcom,
+ org.mozilla.xpcom;bundle-version="1.9.1",
org.eclipse.jface.text;bundle-version="3.5.0"
Export-Package: org.jboss.tools.jsf.vpe.facelets,
org.jboss.tools.jsf.vpe.facelets.template
Modified: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/META-INF/MANIFEST.MF
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/META-INF/MANIFEST.MF 2009-11-11 16:07:05 UTC (rev 18618)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/META-INF/MANIFEST.MF 2009-11-11 16:16:01 UTC (rev 18619)
@@ -9,7 +9,7 @@
org.eclipse.core.runtime,
org.jboss.tools.common,
org.jboss.tools.vpe,
- org.mozilla.xpcom,
+ org.mozilla.xpcom;bundle-version="1.9.1",
org.jboss.tools.jst.web,
org.jboss.tools.jst.jsp,
org.eclipse.wst.sse.core,
Modified: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jstl/META-INF/MANIFEST.MF
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jstl/META-INF/MANIFEST.MF 2009-11-11 16:07:05 UTC (rev 18618)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jstl/META-INF/MANIFEST.MF 2009-11-11 16:16:01 UTC (rev 18619)
@@ -9,7 +9,7 @@
org.eclipse.core.runtime,
org.jboss.tools.common,
org.jboss.tools.vpe,
- org.mozilla.xpcom,
+ org.mozilla.xpcom;bundle-version="1.9.1",
org.jboss.tools.jst.jsp,
org.eclipse.wst.sse.core,
org.eclipse.jst.jsp.core,
Modified: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.myfaces/META-INF/MANIFEST.MF
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.myfaces/META-INF/MANIFEST.MF 2009-11-11 16:07:05 UTC (rev 18618)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.myfaces/META-INF/MANIFEST.MF 2009-11-11 16:16:01 UTC (rev 18619)
@@ -9,7 +9,7 @@
org.eclipse.core.runtime,
org.jboss.tools.common,
org.jboss.tools.vpe,
- org.mozilla.xpcom,
+ org.mozilla.xpcom;bundle-version="1.9.1",
org.jboss.tools.jst.jsp,
org.eclipse.jface.text;bundle-version="3.5.0"
Bundle-ActivationPolicy: lazy
Modified: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/META-INF/MANIFEST.MF
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/META-INF/MANIFEST.MF 2009-11-11 16:07:05 UTC (rev 18618)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/META-INF/MANIFEST.MF 2009-11-11 16:16:01 UTC (rev 18619)
@@ -13,7 +13,7 @@
org.eclipse.wst.sse.ui,
org.eclipse.ui.workbench.texteditor,
org.eclipse.ui.ide,
- org.mozilla.xpcom,
+ org.mozilla.xpcom;bundle-version="1.9.1",
org.eclipse.wst.sse.core,
org.jboss.tools.vpe.xulrunner
Bundle-ActivationPolicy: lazy
Modified: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.seam/META-INF/MANIFEST.MF
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.seam/META-INF/MANIFEST.MF 2009-11-11 16:07:05 UTC (rev 18618)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.seam/META-INF/MANIFEST.MF 2009-11-11 16:16:01 UTC (rev 18619)
@@ -13,7 +13,7 @@
org.eclipse.wst.sse.ui,
org.eclipse.ui.workbench.texteditor,
org.eclipse.ui.ide,
- org.mozilla.xpcom,
+ org.mozilla.xpcom;bundle-version="1.9.1",
org.jboss.tools.jsf.vpe.jsf;bundle-version="2.1.0",
org.eclipse.jface.text;bundle-version="3.5.0"
Bundle-Vendor: %Bundle-Vendor.0
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.ajax4jsf.test/META-INF/MANIFEST.MF
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.ajax4jsf.test/META-INF/MANIFEST.MF 2009-11-11 16:07:05 UTC (rev 18618)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.ajax4jsf.test/META-INF/MANIFEST.MF 2009-11-11 16:16:01 UTC (rev 18619)
@@ -17,7 +17,7 @@
org.jboss.tools.common.model,
org.jboss.tools.vpe.xulrunner,
org.jboss.tools.jsf.vpe.ajax4jsf,
- org.mozilla.xpcom,
+ org.mozilla.xpcom;bundle-version="1.9.1",
org.jboss.tools.vpe.ui.test,
org.jboss.tools.vpe.resref;bundle-version="2.0.0",
org.jboss.tools.common.el.ui;bundle-version="1.0.0",
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/META-INF/MANIFEST.MF
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/META-INF/MANIFEST.MF 2009-11-11 16:07:05 UTC (rev 18618)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/META-INF/MANIFEST.MF 2009-11-11 16:16:01 UTC (rev 18619)
@@ -16,7 +16,7 @@
org.jboss.tools.jst.jsp,
org.jboss.tools.jst.web,
org.jboss.tools.vpe.xulrunner,
- org.mozilla.xpcom
+ org.mozilla.xpcom;bundle-version="1.9.1"
Bundle-ActivationPolicy: lazy
Export-Package: org.jboss.tools.jsf.vpe.facelets.test
Bundle-ClassPath: facelets-tests.jar
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/META-INF/MANIFEST.MF
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/META-INF/MANIFEST.MF 2009-11-11 16:07:05 UTC (rev 18618)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/META-INF/MANIFEST.MF 2009-11-11 16:16:01 UTC (rev 18619)
@@ -15,7 +15,7 @@
org.jboss.tools.common.text.ext,
org.jboss.tools.common.model,
org.jboss.tools.vpe.xulrunner,
- org.mozilla.xpcom,
+ org.mozilla.xpcom;bundle-version="1.9.1",
org.jboss.tools.vpe.ui.test;visibility:=reexport,
org.eclipse.jface.text,
org.jboss.tools.jsf.vpe.jsf,
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/META-INF/MANIFEST.MF
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/META-INF/MANIFEST.MF 2009-11-11 16:07:05 UTC (rev 18618)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/META-INF/MANIFEST.MF 2009-11-11 16:16:01 UTC (rev 18619)
@@ -18,7 +18,7 @@
org.jboss.tools.common.model,
org.jboss.tools.vpe.xulrunner,
org.jboss.tools.jsf.vpe.richfaces,
- org.mozilla.xpcom,
+ org.mozilla.xpcom;bundle-version="1.9.1",
org.jboss.tools.vpe.ui.test,
org.jboss.tools.vpe.resref;bundle-version="2.0.0",
org.jboss.tools.common.el.ui;bundle-version="1.0.0",
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/META-INF/MANIFEST.MF
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/META-INF/MANIFEST.MF 2009-11-11 16:07:05 UTC (rev 18618)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/META-INF/MANIFEST.MF 2009-11-11 16:16:01 UTC (rev 18619)
@@ -14,7 +14,7 @@
org.jboss.tools.vpe.ui.test,
org.jboss.tools.jst.jsp,
org.jboss.tools.vpe.xulrunner,
- org.mozilla.xpcom
+ org.mozilla.xpcom;bundle-version="1.9.1"
Bundle-ActivationPolicy: lazy
Bundle-ClassPath: vpe-seam-test.jar
Export-Package: org.jboss.tools.jsf.vpe.seam.test
Modified: trunk/vpe/plugins/org.jboss.tools.vpe/META-INF/MANIFEST.MF
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe/META-INF/MANIFEST.MF 2009-11-11 16:07:05 UTC (rev 18618)
+++ trunk/vpe/plugins/org.jboss.tools.vpe/META-INF/MANIFEST.MF 2009-11-11 16:16:01 UTC (rev 18619)
@@ -49,7 +49,7 @@
org.eclipse.ui.views,
org.eclipse.ui.ide,
org.jboss.tools.vpe.xulrunner,
- org.mozilla.xpcom,
+ org.mozilla.xpcom;bundle-version="1.9.1",
org.eclipse.draw2d,
org.jboss.tools.jst.web;visibility:=reexport,
org.jboss.tools.vpe.resref,
Modified: trunk/vpe/plugins/org.jboss.tools.vpe.html/META-INF/MANIFEST.MF
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe.html/META-INF/MANIFEST.MF 2009-11-11 16:07:05 UTC (rev 18618)
+++ trunk/vpe/plugins/org.jboss.tools.vpe.html/META-INF/MANIFEST.MF 2009-11-11 16:16:01 UTC (rev 18619)
@@ -8,7 +8,7 @@
Require-Bundle: org.eclipse.ui,
org.eclipse.core.runtime,
org.jboss.tools.vpe,
- org.mozilla.xpcom,
+ org.mozilla.xpcom;bundle-version="1.9.1",
org.jboss.tools.jst.jsp,
org.jboss.tools.common,
org.eclipse.jface.text;bundle-version="3.5.0"
Modified: trunk/vpe/plugins/org.jboss.tools.vpe.jsp/META-INF/MANIFEST.MF
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe.jsp/META-INF/MANIFEST.MF 2009-11-11 16:07:05 UTC (rev 18618)
+++ trunk/vpe/plugins/org.jboss.tools.vpe.jsp/META-INF/MANIFEST.MF 2009-11-11 16:16:01 UTC (rev 18619)
@@ -8,7 +8,7 @@
Require-Bundle: org.eclipse.ui,
org.eclipse.core.runtime,
org.jboss.tools.vpe,
- org.mozilla.xpcom,
+ org.mozilla.xpcom;bundle-version="1.9.1",
org.eclipse.core.resources,
org.jboss.tools.jst.jsp,
org.jboss.tools.common
Modified: trunk/vpe/plugins/org.jboss.tools.vpe.xulrunner/META-INF/MANIFEST.MF
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe.xulrunner/META-INF/MANIFEST.MF 2009-11-11 16:07:05 UTC (rev 18618)
+++ trunk/vpe/plugins/org.jboss.tools.vpe.xulrunner/META-INF/MANIFEST.MF 2009-11-11 16:16:01 UTC (rev 18619)
@@ -6,7 +6,7 @@
Bundle-Activator: org.jboss.tools.vpe.xulrunner.BrowserPlugin
Require-Bundle: org.eclipse.ui,
org.eclipse.core.runtime,
- org.mozilla.xpcom,
+ org.mozilla.xpcom;bundle-version="1.9.1",
org.jboss.tools.common
Bundle-ActivationPolicy: lazy
Export-Package: org.jboss.tools.vpe.xulrunner;uses:="org.eclipse.jface.resource,org.eclipse.ui.plugin,org.osgi.framework",
Modified: trunk/vpe/tests/org.jboss.tools.vpe.html.test/META-INF/MANIFEST.MF
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.html.test/META-INF/MANIFEST.MF 2009-11-11 16:07:05 UTC (rev 18618)
+++ trunk/vpe/tests/org.jboss.tools.vpe.html.test/META-INF/MANIFEST.MF 2009-11-11 16:16:01 UTC (rev 18619)
@@ -16,7 +16,7 @@
org.jboss.tools.common.text.ext,
org.jboss.tools.common.model,
org.jboss.tools.vpe.xulrunner,
- org.mozilla.xpcom,
+ org.mozilla.xpcom;bundle-version="1.9.1",
org.jboss.tools.vpe.ui.test
Bundle-ActivationPolicy: lazy
Bundle-ClassPath: html-test.jar
Modified: trunk/vpe/tests/org.jboss.tools.vpe.jsp.test/META-INF/MANIFEST.MF
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.jsp.test/META-INF/MANIFEST.MF 2009-11-11 16:07:05 UTC (rev 18618)
+++ trunk/vpe/tests/org.jboss.tools.vpe.jsp.test/META-INF/MANIFEST.MF 2009-11-11 16:16:01 UTC (rev 18619)
@@ -14,7 +14,7 @@
org.jboss.tools.vpe.ui.test,
org.jboss.tools.jst.jsp,
org.jboss.tools.vpe.xulrunner,
- org.mozilla.xpcom
+ org.mozilla.xpcom;bundle-version="1.9.1"
Bundle-ActivationPolicy: lazy
Export-Package: org.jboss.tools.vpe.jsp.test
Bundle-ClassPath: jsp-tests.jar
Modified: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/META-INF/MANIFEST.MF
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/META-INF/MANIFEST.MF 2009-11-11 16:07:05 UTC (rev 18618)
+++ trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/META-INF/MANIFEST.MF 2009-11-11 16:16:01 UTC (rev 18619)
@@ -19,7 +19,7 @@
org.jboss.tools.common.text.ext;bundle-version="2.0.0",
org.jboss.tools.jst.web;bundle-version="2.0.0",
org.hamcrest;bundle-version="1.1.0",
- org.mozilla.xpcom;bundle-version="1.8.1",
+ org.mozilla.xpcom;bundle-version="1.9.1",
org.jboss.tools.vpe.xulrunner;bundle-version="2.1.0",
org.eclipse.jface.text;bundle-version="3.5.0",
org.jboss.tools.jst.jsp;bundle-version="2.0.0",
Modified: trunk/vpe/tests/org.jboss.tools.vpe.ui.test/META-INF/MANIFEST.MF
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.ui.test/META-INF/MANIFEST.MF 2009-11-11 16:07:05 UTC (rev 18618)
+++ trunk/vpe/tests/org.jboss.tools.vpe.ui.test/META-INF/MANIFEST.MF 2009-11-11 16:16:01 UTC (rev 18619)
@@ -16,7 +16,7 @@
org.jboss.tools.common.text.ext,
org.jboss.tools.common.model,
org.jboss.tools.vpe.xulrunner,
- org.mozilla.xpcom,
+ org.mozilla.xpcom;bundle-version="1.9.1",
org.jboss.tools.jst.firstrun,
org.eclipse.wst.server.core,
org.eclipse.jface.text,
Modified: trunk/vpe/tests/org.jboss.tools.vpe.xulrunner.test/META-INF/MANIFEST.MF
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.xulrunner.test/META-INF/MANIFEST.MF 2009-11-11 16:07:05 UTC (rev 18618)
+++ trunk/vpe/tests/org.jboss.tools.vpe.xulrunner.test/META-INF/MANIFEST.MF 2009-11-11 16:16:01 UTC (rev 18619)
@@ -10,7 +10,7 @@
org.junit,
org.jboss.tools.common,
org.jboss.tools.vpe.xulrunner,
- org.mozilla.xpcom
+ org.mozilla.xpcom;bundle-version="1.9.1"
Bundle-ActivationPolicy: lazy
Export-Package: org.jboss.tools.vpe.xulrunner.test,
org.jboss.tools.vpe.xulrunner.view
15 years, 1 month
JBoss Tools SVN: r18618 - in trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test: resources/jsfTest/WebContent/pages/JBIDE/3810 and 2 other directories.
by jbosstools-commits@lists.jboss.org
Author: yzhishko
Date: 2009-11-11 11:07:05 -0500 (Wed, 11 Nov 2009)
New Revision: 18618
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebContent/pages/JBIDE/3810/
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebContent/pages/JBIDE/3810/JBIDE3810.jsp
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE3810Test.java
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/JsfAllTests.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-3810 junit was written
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebContent/pages/JBIDE/3810/JBIDE3810.jsp
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebContent/pages/JBIDE/3810/JBIDE3810.jsp (rev 0)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebContent/pages/JBIDE/3810/JBIDE3810.jsp 2009-11-11 16:07:05 UTC (rev 18618)
@@ -0,0 +1,10 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
+<title>Insert title here</title>
+</head>
+<body>
+ a<>
+</body>
+</html>
\ No newline at end of file
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/JsfAllTests.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/JsfAllTests.java 2009-11-11 15:14:54 UTC (rev 18617)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/JsfAllTests.java 2009-11-11 16:07:05 UTC (rev 18618)
@@ -58,6 +58,7 @@
import org.jboss.tools.jsf.vpe.jsf.test.jbide.JBIDE3632Test;
import org.jboss.tools.jsf.vpe.jsf.test.jbide.JBIDE3650Test;
import org.jboss.tools.jsf.vpe.jsf.test.jbide.JBIDE3734Test;
+import org.jboss.tools.jsf.vpe.jsf.test.jbide.JBIDE3810Test;
import org.jboss.tools.jsf.vpe.jsf.test.jbide.JBIDE3969Test;
import org.jboss.tools.jsf.vpe.jsf.test.jbide.JBIDE4037Test;
import org.jboss.tools.jsf.vpe.jsf.test.jbide.JBIDE4179Test;
@@ -174,6 +175,7 @@
suite.addTestSuite(OpenOnCssClassTest_JBIDE4775.class);
suite.addTestSuite(VPERefreshTest.class);
suite.addTestSuite(OpenOnInsideJspRoot_JBIDE4852.class);
+ suite.addTestSuite(JBIDE3810Test.class);
// $JUnit-END$
// added by Max Areshkau
// add here projects which should be imported for junit tests
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE3810Test.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE3810Test.java (rev 0)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE3810Test.java 2009-11-11 16:07:05 UTC (rev 18618)
@@ -0,0 +1,97 @@
+package org.jboss.tools.jsf.vpe.jsf.test.jbide;
+
+import org.eclipse.core.resources.IFile;
+import org.eclipse.ui.IEditorInput;
+import org.eclipse.ui.part.FileEditorInput;
+import org.eclipse.wst.sse.core.internal.provisional.IStructuredModel;
+import org.eclipse.wst.xml.core.internal.provisional.document.IDOMDocument;
+import org.eclipse.wst.xml.core.internal.provisional.document.IDOMModel;
+import org.jboss.tools.jsf.vpe.jsf.test.JsfAllTests;
+import org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageEditor;
+import org.jboss.tools.vpe.editor.VpeController;
+import org.jboss.tools.vpe.editor.VpeEditorPart;
+import org.jboss.tools.vpe.ui.test.TestUtil;
+import org.jboss.tools.vpe.ui.test.VpeTest;
+import org.mozilla.interfaces.nsIDOMAbstractView;
+import org.mozilla.interfaces.nsIDOMDocument;
+import org.mozilla.interfaces.nsIDOMDocumentEvent;
+import org.mozilla.interfaces.nsIDOMDocumentView;
+import org.mozilla.interfaces.nsIDOMElement;
+import org.mozilla.interfaces.nsIDOMEvent;
+import org.mozilla.interfaces.nsIDOMEventTarget;
+import org.mozilla.interfaces.nsIDOMKeyEvent;
+import org.mozilla.interfaces.nsIDOMNSEvent;
+import org.mozilla.interfaces.nsIDOMNode;
+import org.mozilla.interfaces.nsIDOMNodeList;
+import org.mozilla.interfaces.nsIDOMWindowUtils;
+import org.mozilla.interfaces.nsIInterfaceRequestor;
+import org.w3c.dom.Node;
+import org.w3c.dom.Text;
+
+@SuppressWarnings("restriction")
+public class JBIDE3810Test extends VpeTest {
+
+ private final static int clientX = 20;
+ private final static int clientY = 10;
+
+ public JBIDE3810Test(String name) {
+ super(name);
+ }
+
+ @SuppressWarnings("deprecation")
+ public void testJBIDE3810() throws Exception {
+ setException(null);
+ IFile file = (IFile) TestUtil.getComponentPath("JBIDE/3810/JBIDE3810.jsp", //$NON-NLS-1$
+ JsfAllTests.IMPORT_PROJECT_NAME);
+ IEditorInput editorInput = new FileEditorInput(file);
+ JSPMultiPageEditor part = openEditor(editorInput);
+ TestUtil.waitForIdle();
+ TestUtil.delay(5000);
+ VpeController controller = TestUtil.getVpeController(part);
+ nsIDOMDocument idomDocument = controller.getXulRunnerEditor().getDOMDocument();
+ nsIDOMDocumentView documentView = (nsIDOMDocumentView) idomDocument.queryInterface(nsIDOMDocumentView.NS_IDOMDOCUMENTVIEW_IID);
+ nsIDOMAbstractView abstractView = documentView.getDefaultView();
+ nsIInterfaceRequestor requestor = (nsIInterfaceRequestor) abstractView.queryInterface(nsIInterfaceRequestor.NS_IINTERFACEREQUESTOR_IID);
+ nsIDOMWindowUtils windowUtils = (nsIDOMWindowUtils) requestor.getInterface(nsIDOMWindowUtils.NS_IDOMWINDOWUTILS_IID);
+ windowUtils.sendMouseEvent("mousedown", clientX, clientY, 0, 1, nsIDOMNSEvent.MOUSEDOWN, true);
+ windowUtils.sendMouseEvent("mouseup", clientX, clientY, 0, 1, nsIDOMNSEvent.MOUSEUP, true);
+ TestUtil.delay(1000);
+ nsIDOMDocumentEvent documentEvent = (nsIDOMDocumentEvent) idomDocument.queryInterface(nsIDOMDocumentEvent.NS_IDOMDOCUMENTEVENT_IID);
+ nsIDOMEventTarget eventTarget = (nsIDOMEventTarget) idomDocument.queryInterface(nsIDOMEventTarget.NS_IDOMEVENTTARGET_IID);
+ nsIDOMEvent delEvent = documentEvent.createEvent("KeyboardEvent");
+ nsIDOMKeyEvent delKeyEvent = (nsIDOMKeyEvent) delEvent.queryInterface(nsIDOMKeyEvent.NS_IDOMKEYEVENT_IID);
+ delKeyEvent.initKeyEvent("keypress", true, true, documentView.getDefaultView(), false, false, false, false, nsIDOMKeyEvent.DOM_VK_DELETE, 0);
+ eventTarget.dispatchEvent(delKeyEvent);
+ TestUtil.delay(1000);
+ nsIDOMEvent bsEvent = documentEvent.createEvent("KeyboardEvent");
+ nsIDOMKeyEvent bsKeyEvent = (nsIDOMKeyEvent) bsEvent.queryInterface(nsIDOMKeyEvent.NS_IDOMKEYEVENT_IID);
+ bsKeyEvent.initKeyEvent("keypress", true, true, documentView.getDefaultView(), false, false, false, false, nsIDOMKeyEvent.DOM_VK_BACK_SPACE, 0);
+ eventTarget.dispatchEvent(bsKeyEvent);
+ TestUtil.delay(1000);
+ nsIDOMEvent leftArrowEvent = documentEvent.createEvent("KeyboardEvent");
+ nsIDOMKeyEvent leftArrowKeyEvent = (nsIDOMKeyEvent) leftArrowEvent.queryInterface(nsIDOMKeyEvent.NS_IDOMKEYEVENT_IID);
+ leftArrowKeyEvent.initKeyEvent("keypress", true, true, documentView.getDefaultView(), false, false, false, false, nsIDOMKeyEvent.DOM_VK_LEFT, 0);
+ eventTarget.dispatchEvent(leftArrowKeyEvent);
+ TestUtil.delay(1000);
+ bsEvent = documentEvent.createEvent("KeyboardEvent");
+ bsKeyEvent = (nsIDOMKeyEvent) bsEvent.queryInterface(nsIDOMKeyEvent.NS_IDOMKEYEVENT_IID);
+ bsKeyEvent.initKeyEvent("keypress", true, true, documentView.getDefaultView(), false, false, false, false, nsIDOMKeyEvent.DOM_VK_BACK_SPACE, 0);
+ eventTarget.dispatchEvent(bsKeyEvent);
+ TestUtil.delay(1000);
+ nsIDOMElement headElement = ((VpeEditorPart) part.getVisualEditor()).getVisualEditor().getContentArea();
+ nsIDOMNodeList nodeList = headElement.getElementsByTagName("SPAN");
+ nsIDOMNode node = nodeList.item(0).getChildNodes().item(0);
+ String valueToCompare = node.getNodeValue();
+ assertEquals("\na\n", valueToCompare);
+ IStructuredModel model = part.getSourceEditor().getModel();
+ IDOMModel sourceModel = (IDOMModel) model;
+ IDOMDocument sourceDocument = null;
+ if (sourceModel != null) {
+ sourceDocument = sourceModel.getDocument();
+ }
+ Node domNode = sourceDocument.getElementsByTagName("body").item(0);
+ String sourceValueToCompare = ((Text)domNode.getChildNodes().item(0)).getNodeValue();
+ assertEquals("\r\na\r\n", sourceValueToCompare);
+ }
+
+}
15 years, 1 month
JBoss Tools SVN: r18617 - in workspace/snjeza/archetypes: org/jboss/portletbridge/archetypes/seam-basic and 1 other directories.
by jbosstools-commits@lists.jboss.org
Author: snjeza
Date: 2009-11-11 10:14:54 -0500 (Wed, 11 Nov 2009)
New Revision: 18617
Removed:
workspace/snjeza/archetypes/archetype-catalog.xml
Modified:
workspace/snjeza/archetypes/org/jboss/portletbridge/archetypes/seam-basic/2.0.0.BETA/seam-basic-2.0.0.BETA.jar
workspace/snjeza/archetypes/org/jboss/portletbridge/archetypes/seam-basic/2.0.0.BETA/seam-basic-2.0.0.BETA.jar.md5
workspace/snjeza/archetypes/org/jboss/portletbridge/archetypes/seam-basic/2.0.0.BETA/seam-basic-2.0.0.BETA.jar.sha1
workspace/snjeza/archetypes/org/jboss/portletbridge/archetypes/seam-basic/maven-metadata.xml
workspace/snjeza/archetypes/org/jboss/portletbridge/archetypes/seam-basic/maven-metadata.xml.md5
workspace/snjeza/archetypes/org/jboss/portletbridge/archetypes/seam-basic/maven-metadata.xml.sha1
Log:
https://jira.jboss.org/jira/browse/JBIDE-4922 Create portletbridge archetypes to work with JBoss Tools and m2eclipse
Deleted: workspace/snjeza/archetypes/archetype-catalog.xml
===================================================================
--- workspace/snjeza/archetypes/archetype-catalog.xml 2009-11-11 14:06:35 UTC (rev 18616)
+++ workspace/snjeza/archetypes/archetype-catalog.xml 2009-11-11 15:14:54 UTC (rev 18617)
@@ -1,11 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<archetype-catalog>
- <archetypes>
- <archetype>
- <groupId>org.jboss.portletbridge.archetypes</groupId>
- <artifactId>seam-basic</artifactId>
- <version>2.0.0.BETA</version>
- <repository>http://anonsvn.jboss.org/repos/jbosstools/workspace/snjeza/archetypes</repository>
- </archetype>
- </archetypes>
-</archetype-catalog>
Modified: workspace/snjeza/archetypes/org/jboss/portletbridge/archetypes/seam-basic/2.0.0.BETA/seam-basic-2.0.0.BETA.jar
===================================================================
(Binary files differ)
Modified: workspace/snjeza/archetypes/org/jboss/portletbridge/archetypes/seam-basic/2.0.0.BETA/seam-basic-2.0.0.BETA.jar.md5
===================================================================
--- workspace/snjeza/archetypes/org/jboss/portletbridge/archetypes/seam-basic/2.0.0.BETA/seam-basic-2.0.0.BETA.jar.md5 2009-11-11 14:06:35 UTC (rev 18616)
+++ workspace/snjeza/archetypes/org/jboss/portletbridge/archetypes/seam-basic/2.0.0.BETA/seam-basic-2.0.0.BETA.jar.md5 2009-11-11 15:14:54 UTC (rev 18617)
@@ -1 +1 @@
-7a50a47e40b59b6b423a2eea530a65d0
\ No newline at end of file
+6754c9e1778e6a47118536cdfd964388
\ No newline at end of file
Modified: workspace/snjeza/archetypes/org/jboss/portletbridge/archetypes/seam-basic/2.0.0.BETA/seam-basic-2.0.0.BETA.jar.sha1
===================================================================
--- workspace/snjeza/archetypes/org/jboss/portletbridge/archetypes/seam-basic/2.0.0.BETA/seam-basic-2.0.0.BETA.jar.sha1 2009-11-11 14:06:35 UTC (rev 18616)
+++ workspace/snjeza/archetypes/org/jboss/portletbridge/archetypes/seam-basic/2.0.0.BETA/seam-basic-2.0.0.BETA.jar.sha1 2009-11-11 15:14:54 UTC (rev 18617)
@@ -1 +1 @@
-c941489c443988fbbedc06f26f64c27449afbd85
\ No newline at end of file
+a16761428b9242c0daac3044480dc9c367cb6957
\ No newline at end of file
Modified: workspace/snjeza/archetypes/org/jboss/portletbridge/archetypes/seam-basic/maven-metadata.xml
===================================================================
--- workspace/snjeza/archetypes/org/jboss/portletbridge/archetypes/seam-basic/maven-metadata.xml 2009-11-11 14:06:35 UTC (rev 18616)
+++ workspace/snjeza/archetypes/org/jboss/portletbridge/archetypes/seam-basic/maven-metadata.xml 2009-11-11 15:14:54 UTC (rev 18617)
@@ -7,6 +7,6 @@
<versions>
<version>2.0.0.BETA</version>
</versions>
- <lastUpdated>20091110234353</lastUpdated>
+ <lastUpdated>20091111151325</lastUpdated>
</versioning>
</metadata>
\ No newline at end of file
Modified: workspace/snjeza/archetypes/org/jboss/portletbridge/archetypes/seam-basic/maven-metadata.xml.md5
===================================================================
--- workspace/snjeza/archetypes/org/jboss/portletbridge/archetypes/seam-basic/maven-metadata.xml.md5 2009-11-11 14:06:35 UTC (rev 18616)
+++ workspace/snjeza/archetypes/org/jboss/portletbridge/archetypes/seam-basic/maven-metadata.xml.md5 2009-11-11 15:14:54 UTC (rev 18617)
@@ -1 +1 @@
-69af887f8c62e7feea94b1e9c7da6d50
\ No newline at end of file
+72dee3ddb9610e4297a72f7274f53414
\ No newline at end of file
Modified: workspace/snjeza/archetypes/org/jboss/portletbridge/archetypes/seam-basic/maven-metadata.xml.sha1
===================================================================
--- workspace/snjeza/archetypes/org/jboss/portletbridge/archetypes/seam-basic/maven-metadata.xml.sha1 2009-11-11 14:06:35 UTC (rev 18616)
+++ workspace/snjeza/archetypes/org/jboss/portletbridge/archetypes/seam-basic/maven-metadata.xml.sha1 2009-11-11 15:14:54 UTC (rev 18617)
@@ -1 +1 @@
-e0f42a5bb713528425d802773789be3f978402d1
\ No newline at end of file
+991c2c38f3d70ab1bbfcc6ce7c80bbc92af4d2dc
\ No newline at end of file
15 years, 1 month