JBoss Tools SVN: r16798 - in tags/jbpm-jpdl-4.0.0: org.jboss.tools.flow.jpdl4.feature and 2 other directories.
by jbosstools-commits@lists.jboss.org
Author: koen.aers(a)jboss.com
Date: 2009-07-27 03:24:17 -0400 (Mon, 27 Jul 2009)
New Revision: 16798
Added:
tags/jbpm-jpdl-4.0.0/org.jboss.tools.flow.jpdl4.feature/
tags/jbpm-jpdl-4.0.0/org.jboss.tools.flow.jpdl4.feature/feature.properties
tags/jbpm-jpdl-4.0.0/org.jboss.tools.flow.jpdl4.feature/feature.xml
tags/jbpm-jpdl-4.0.0/org.jboss.tools.flow.jpdl4.feature/sourceTemplateFeature/feature.properties
tags/jbpm-jpdl-4.0.0/org.jboss.tools.flow.jpdl4.feature/sourceTemplatePlugin/about.properties
tags/jbpm-jpdl-4.0.0/org.jboss.tools.flow.jpdl4.feature/sourceTemplatePlugin/plugin.properties
Removed:
tags/jbpm-jpdl-4.0.0/org.jboss.tools.flow.jpdl4.feature/feature.properties
tags/jbpm-jpdl-4.0.0/org.jboss.tools.flow.jpdl4.feature/feature.xml
tags/jbpm-jpdl-4.0.0/org.jboss.tools.flow.jpdl4.feature/sourceTemplateFeature/feature.properties
tags/jbpm-jpdl-4.0.0/org.jboss.tools.flow.jpdl4.feature/sourceTemplatePlugin/about.properties
tags/jbpm-jpdl-4.0.0/org.jboss.tools.flow.jpdl4.feature/sourceTemplatePlugin/plugin.properties
Log:
Copied: tags/jbpm-jpdl-4.0.0/org.jboss.tools.flow.jpdl4.feature (from rev 16344, trunk/jbpm/features/org.jboss.tools.flow.jpdl4.feature)
Deleted: tags/jbpm-jpdl-4.0.0/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.0.0/org.jboss.tools.flow.jpdl4.feature/feature.properties 2009-07-27 07:24:17 UTC (rev 16798)
@@ -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.0.0/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.0.0/org.jboss.tools.flow.jpdl4.feature/feature.properties (rev 0)
+++ tags/jbpm-jpdl-4.0.0/org.jboss.tools.flow.jpdl4.feature/feature.properties 2009-07-27 07:24:17 UTC (rev 16798)
@@ -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.0.0/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.0.0/org.jboss.tools.flow.jpdl4.feature/feature.xml 2009-07-27 07:24:17 UTC (rev 16798)
@@ -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.0.0/org.jboss.tools.flow.jpdl4.feature/feature.xml (from rev 16435, trunk/jbpm/features/org.jboss.tools.flow.jpdl4.feature/feature.xml)
===================================================================
--- tags/jbpm-jpdl-4.0.0/org.jboss.tools.flow.jpdl4.feature/feature.xml (rev 0)
+++ tags/jbpm-jpdl-4.0.0/org.jboss.tools.flow.jpdl4.feature/feature.xml 2009-07-27 07:24:17 UTC (rev 16798)
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<feature
+ id="org.jboss.tools.flow.jpdl4.feature"
+ label="%featureName"
+ version="1.0.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.0.0/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.0.0/org.jboss.tools.flow.jpdl4.feature/sourceTemplateFeature/feature.properties 2009-07-27 07:24:17 UTC (rev 16798)
@@ -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.0.0/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.0.0/org.jboss.tools.flow.jpdl4.feature/sourceTemplateFeature/feature.properties (rev 0)
+++ tags/jbpm-jpdl-4.0.0/org.jboss.tools.flow.jpdl4.feature/sourceTemplateFeature/feature.properties 2009-07-27 07:24:17 UTC (rev 16798)
@@ -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.0.0/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.0.0/org.jboss.tools.flow.jpdl4.feature/sourceTemplatePlugin/about.properties 2009-07-27 07:24:17 UTC (rev 16798)
@@ -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.0.0/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.0.0/org.jboss.tools.flow.jpdl4.feature/sourceTemplatePlugin/about.properties (rev 0)
+++ tags/jbpm-jpdl-4.0.0/org.jboss.tools.flow.jpdl4.feature/sourceTemplatePlugin/about.properties 2009-07-27 07:24:17 UTC (rev 16798)
@@ -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.0.0/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.0.0/org.jboss.tools.flow.jpdl4.feature/sourceTemplatePlugin/plugin.properties 2009-07-27 07:24:17 UTC (rev 16798)
@@ -1,3 +0,0 @@
-pluginName = jPDL4 Graphical Editor Source
-providerName = JBoss by Red Hat
-
Copied: tags/jbpm-jpdl-4.0.0/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.0.0/org.jboss.tools.flow.jpdl4.feature/sourceTemplatePlugin/plugin.properties (rev 0)
+++ tags/jbpm-jpdl-4.0.0/org.jboss.tools.flow.jpdl4.feature/sourceTemplatePlugin/plugin.properties 2009-07-27 07:24:17 UTC (rev 16798)
@@ -0,0 +1,3 @@
+pluginName = jBPM 4 Graphical Editor and Tools Sources
+providerName = JBoss by Red Hat
+
16 years, 8 months
JBoss Tools SVN: r16797 - in tags/jbpm-jpdl-4.0.0: org.jboss.tools.flow.jpdl4 and 8 other directories.
by jbosstools-commits@lists.jboss.org
Author: koen.aers(a)jboss.com
Date: 2009-07-27 03:16:23 -0400 (Mon, 27 Jul 2009)
New Revision: 16797
Added:
tags/jbpm-jpdl-4.0.0/org.jboss.tools.flow.jpdl4/
tags/jbpm-jpdl-4.0.0/org.jboss.tools.flow.jpdl4/plugin.properties
tags/jbpm-jpdl-4.0.0/org.jboss.tools.flow.jpdl4/plugin.xml
tags/jbpm-jpdl-4.0.0/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/editor/JpdlEditor.java
tags/jbpm-jpdl-4.0.0/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/editpart/JpdlTreeEditPartFactory.java
tags/jbpm-jpdl-4.0.0/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/editpart/PrimitiveObjectTreeEditPart.java
tags/jbpm-jpdl-4.0.0/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/editpart/QueryTaskTreeRootEditPart.java
tags/jbpm-jpdl-4.0.0/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/handler/AddParameterHandler.java
tags/jbpm-jpdl-4.0.0/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/io/
tags/jbpm-jpdl-4.0.0/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/model/HqlTask.java
tags/jbpm-jpdl-4.0.0/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/model/QueryTask.java
tags/jbpm-jpdl-4.0.0/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/model/SqlTask.java
tags/jbpm-jpdl-4.0.0/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/properties/PrimitiveObjectValueSection.java
tags/jbpm-jpdl-4.0.0/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/properties/QueryTaskQuerySection.java
tags/jbpm-jpdl-4.0.0/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/properties/QueryTaskUniqueSection.java
tags/jbpm-jpdl-4.0.0/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/properties/QueryTaskVariableNameSection.java
tags/jbpm-jpdl-4.0.0/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/view/DetailsPage.java
tags/jbpm-jpdl-4.0.0/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/view/DetailsView.java
tags/jbpm-jpdl-4.0.0/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/wizard/NewJpdl4FileWizard.java
Removed:
tags/jbpm-jpdl-4.0.0/org.jboss.tools.flow.jpdl4/plugin.properties
tags/jbpm-jpdl-4.0.0/org.jboss.tools.flow.jpdl4/plugin.xml
tags/jbpm-jpdl-4.0.0/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/editor/JpdlEditor.java
tags/jbpm-jpdl-4.0.0/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/editpart/HqlTaskTreeRootEditPart.java
tags/jbpm-jpdl-4.0.0/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/editpart/JpdlTreeEditPartFactory.java
tags/jbpm-jpdl-4.0.0/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/editpart/WireObjectTreeEditPart.java
tags/jbpm-jpdl-4.0.0/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/handler/AddParameterHandler.java
tags/jbpm-jpdl-4.0.0/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/io/
tags/jbpm-jpdl-4.0.0/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/model/HqlTask.java
tags/jbpm-jpdl-4.0.0/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/model/SqlTask.java
tags/jbpm-jpdl-4.0.0/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/model/WireObject.java
tags/jbpm-jpdl-4.0.0/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/model/WireObjectContainer.java
tags/jbpm-jpdl-4.0.0/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/properties/HqlTaskQuerySection.java
tags/jbpm-jpdl-4.0.0/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/properties/HqlTaskUniqueSection.java
tags/jbpm-jpdl-4.0.0/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/properties/HqlTaskVariableNameSection.java
tags/jbpm-jpdl-4.0.0/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/view/DetailsPage.java
tags/jbpm-jpdl-4.0.0/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/view/DetailsView.java
tags/jbpm-jpdl-4.0.0/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/wizard/NewJpdl4FileWizard.java
Log:
Copied: tags/jbpm-jpdl-4.0.0/org.jboss.tools.flow.jpdl4 (from rev 16344, trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4)
Deleted: tags/jbpm-jpdl-4.0.0/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.0.0/org.jboss.tools.flow.jpdl4/plugin.properties 2009-07-27 07:16:23 UTC (rev 16797)
@@ -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.0.0/org.jboss.tools.flow.jpdl4/plugin.properties (from rev 16464, trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4/plugin.properties)
===================================================================
--- tags/jbpm-jpdl-4.0.0/org.jboss.tools.flow.jpdl4/plugin.properties (rev 0)
+++ tags/jbpm-jpdl-4.0.0/org.jboss.tools.flow.jpdl4/plugin.properties 2009-07-27 07:16:23 UTC (rev 16797)
@@ -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.0.0/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.0.0/org.jboss.tools.flow.jpdl4/plugin.xml 2009-07-27 07:16:23 UTC (rev 16797)
@@ -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.0.0/org.jboss.tools.flow.jpdl4/plugin.xml (from rev 16487, trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4/plugin.xml)
===================================================================
--- tags/jbpm-jpdl-4.0.0/org.jboss.tools.flow.jpdl4/plugin.xml (rev 0)
+++ tags/jbpm-jpdl-4.0.0/org.jboss.tools.flow.jpdl4/plugin.xml 2009-07-27 07:16:23 UTC (rev 16797)
@@ -0,0 +1,990 @@
+<?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.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.0.0/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.0.0/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/editor/JpdlEditor.java 2009-07-27 07:16:23 UTC (rev 16797)
@@ -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.0.0/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/editor/JpdlEditor.java (from rev 16487, trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/editor/JpdlEditor.java)
===================================================================
--- tags/jbpm-jpdl-4.0.0/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/editor/JpdlEditor.java (rev 0)
+++ tags/jbpm-jpdl-4.0.0/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/editor/JpdlEditor.java 2009-07-27 07:16:23 UTC (rev 16797)
@@ -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_JPEG);
+ 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.0.0/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.0.0/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/editpart/HqlTaskTreeRootEditPart.java 2009-07-27 07:16:23 UTC (rev 16797)
@@ -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.0.0/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.0.0/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/editpart/JpdlTreeEditPartFactory.java 2009-07-27 07:16:23 UTC (rev 16797)
@@ -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.0.0/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.0.0/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/editpart/JpdlTreeEditPartFactory.java (rev 0)
+++ tags/jbpm-jpdl-4.0.0/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/editpart/JpdlTreeEditPartFactory.java 2009-07-27 07:16:23 UTC (rev 16797)
@@ -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.0.0/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.0.0/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/editpart/PrimitiveObjectTreeEditPart.java (rev 0)
+++ tags/jbpm-jpdl-4.0.0/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/editpart/PrimitiveObjectTreeEditPart.java 2009-07-27 07:16:23 UTC (rev 16797)
@@ -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.0.0/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.0.0/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/editpart/QueryTaskTreeRootEditPart.java (rev 0)
+++ tags/jbpm-jpdl-4.0.0/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/editpart/QueryTaskTreeRootEditPart.java 2009-07-27 07:16:23 UTC (rev 16797)
@@ -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.0.0/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.0.0/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/editpart/WireObjectTreeEditPart.java 2009-07-27 07:16:23 UTC (rev 16797)
@@ -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.0.0/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.0.0/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/handler/AddParameterHandler.java 2009-07-27 07:16:23 UTC (rev 16797)
@@ -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.0.0/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.0.0/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/handler/AddParameterHandler.java (rev 0)
+++ tags/jbpm-jpdl-4.0.0/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/handler/AddParameterHandler.java 2009-07-27 07:16:23 UTC (rev 16797)
@@ -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.0.0/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.0.0/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.0.0/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/model/HqlTask.java 2009-07-27 07:16:23 UTC (rev 16797)
@@ -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.0.0/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.0.0/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/model/HqlTask.java (rev 0)
+++ tags/jbpm-jpdl-4.0.0/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/model/HqlTask.java 2009-07-27 07:16:23 UTC (rev 16797)
@@ -0,0 +1,7 @@
+package org.jboss.tools.flow.jpdl4.model;
+
+
+
+public class HqlTask extends QueryTask {
+
+}
Copied: tags/jbpm-jpdl-4.0.0/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.0.0/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/model/QueryTask.java (rev 0)
+++ tags/jbpm-jpdl-4.0.0/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/model/QueryTask.java 2009-07-27 07:16:23 UTC (rev 16797)
@@ -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.0.0/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.0.0/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/model/SqlTask.java 2009-07-27 07:16:23 UTC (rev 16797)
@@ -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.0.0/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.0.0/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/model/SqlTask.java (rev 0)
+++ tags/jbpm-jpdl-4.0.0/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/model/SqlTask.java 2009-07-27 07:16:23 UTC (rev 16797)
@@ -0,0 +1,6 @@
+package org.jboss.tools.flow.jpdl4.model;
+
+
+public class SqlTask extends QueryTask {
+
+}
Deleted: tags/jbpm-jpdl-4.0.0/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.0.0/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/model/WireObject.java 2009-07-27 07:16:23 UTC (rev 16797)
@@ -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.0.0/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.0.0/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/model/WireObjectContainer.java 2009-07-27 07:16:23 UTC (rev 16797)
@@ -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.0.0/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.0.0/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/properties/HqlTaskQuerySection.java 2009-07-27 07:16:23 UTC (rev 16797)
@@ -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.0.0/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.0.0/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/properties/HqlTaskUniqueSection.java 2009-07-27 07:16:23 UTC (rev 16797)
@@ -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.0.0/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.0.0/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/properties/HqlTaskVariableNameSection.java 2009-07-27 07:16:23 UTC (rev 16797)
@@ -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");
- }
-
-}
Copied: tags/jbpm-jpdl-4.0.0/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.0.0/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/properties/PrimitiveObjectValueSection.java (rev 0)
+++ tags/jbpm-jpdl-4.0.0/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/properties/PrimitiveObjectValueSection.java 2009-07-27 07:16:23 UTC (rev 16797)
@@ -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.0.0/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.0.0/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/properties/QueryTaskQuerySection.java (rev 0)
+++ tags/jbpm-jpdl-4.0.0/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/properties/QueryTaskQuerySection.java 2009-07-27 07:16:23 UTC (rev 16797)
@@ -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.0.0/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.0.0/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/properties/QueryTaskUniqueSection.java (rev 0)
+++ tags/jbpm-jpdl-4.0.0/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/properties/QueryTaskUniqueSection.java 2009-07-27 07:16:23 UTC (rev 16797)
@@ -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.0.0/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.0.0/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/properties/QueryTaskVariableNameSection.java (rev 0)
+++ tags/jbpm-jpdl-4.0.0/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/properties/QueryTaskVariableNameSection.java 2009-07-27 07:16:23 UTC (rev 16797)
@@ -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.0.0/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.0.0/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/view/DetailsPage.java 2009-07-27 07:16:23 UTC (rev 16797)
@@ -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.0.0/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.0.0/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/view/DetailsPage.java (rev 0)
+++ tags/jbpm-jpdl-4.0.0/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/view/DetailsPage.java 2009-07-27 07:16:23 UTC (rev 16797)
@@ -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.0.0/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.0.0/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/view/DetailsView.java 2009-07-27 07:16:23 UTC (rev 16797)
@@ -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.0.0/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.0.0/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/view/DetailsView.java (rev 0)
+++ tags/jbpm-jpdl-4.0.0/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/view/DetailsView.java 2009-07-27 07:16:23 UTC (rev 16797)
@@ -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);
+ }
+
+
+}
Deleted: tags/jbpm-jpdl-4.0.0/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.0.0/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/wizard/NewJpdl4FileWizard.java 2009-07-27 07:16:23 UTC (rev 16797)
@@ -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.0.0/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.0.0/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/wizard/NewJpdl4FileWizard.java (rev 0)
+++ tags/jbpm-jpdl-4.0.0/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/wizard/NewJpdl4FileWizard.java 2009-07-27 07:16:23 UTC (rev 16797)
@@ -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;
+ }
+
+}
16 years, 8 months
JBoss Tools SVN: r16796 - tags/jbpm-jpdl-4.0.0.
by jbosstools-commits@lists.jboss.org
Author: koen.aers(a)jboss.com
Date: 2009-07-27 03:12:00 -0400 (Mon, 27 Jul 2009)
New Revision: 16796
Added:
tags/jbpm-jpdl-4.0.0/org.jboss.tools.flow.common.test/
Log:
Copied: tags/jbpm-jpdl-4.0.0/org.jboss.tools.flow.common.test (from rev 16344, trunk/flow/tests/org.jboss.tools.flow.common.test)
16 years, 8 months
JBoss Tools SVN: r16795 - in tags/jbpm-jpdl-4.0.0: org.jboss.tools.flow.common.feature and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: koen.aers(a)jboss.com
Date: 2009-07-27 03:11:01 -0400 (Mon, 27 Jul 2009)
New Revision: 16795
Added:
tags/jbpm-jpdl-4.0.0/org.jboss.tools.flow.common.feature/
tags/jbpm-jpdl-4.0.0/org.jboss.tools.flow.common.feature/feature.properties
tags/jbpm-jpdl-4.0.0/org.jboss.tools.flow.common.feature/feature.xml
tags/jbpm-jpdl-4.0.0/org.jboss.tools.flow.common.feature/sourceTemplateFeature/
tags/jbpm-jpdl-4.0.0/org.jboss.tools.flow.common.feature/sourceTemplatePlugin/
Removed:
tags/jbpm-jpdl-4.0.0/org.jboss.tools.flow.common.feature/feature.properties
tags/jbpm-jpdl-4.0.0/org.jboss.tools.flow.common.feature/feature.xml
Log:
Copied: tags/jbpm-jpdl-4.0.0/org.jboss.tools.flow.common.feature (from rev 16344, trunk/flow/features/org.jboss.tools.flow.common.feature)
Deleted: tags/jbpm-jpdl-4.0.0/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.0.0/org.jboss.tools.flow.common.feature/feature.properties 2009-07-27 07:11:01 UTC (rev 16795)
@@ -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.0.0/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.0.0/org.jboss.tools.flow.common.feature/feature.properties (rev 0)
+++ tags/jbpm-jpdl-4.0.0/org.jboss.tools.flow.common.feature/feature.properties 2009-07-27 07:11:01 UTC (rev 16795)
@@ -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.0.0/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.0.0/org.jboss.tools.flow.common.feature/feature.xml 2009-07-27 07:11:01 UTC (rev 16795)
@@ -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.0.0/org.jboss.tools.flow.common.feature/feature.xml (from rev 16434, trunk/flow/features/org.jboss.tools.flow.common.feature/feature.xml)
===================================================================
--- tags/jbpm-jpdl-4.0.0/org.jboss.tools.flow.common.feature/feature.xml (rev 0)
+++ tags/jbpm-jpdl-4.0.0/org.jboss.tools.flow.common.feature/feature.xml 2009-07-27 07:11:01 UTC (rev 16795)
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<feature
+ id="org.jboss.tools.flow.common.feature"
+ label="%featureName"
+ version="1.0.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.0.0/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.0.0/org.jboss.tools.flow.common.feature/sourceTemplatePlugin (from rev 16474, trunk/flow/features/org.jboss.tools.flow.common.feature/sourceTemplatePlugin)
16 years, 8 months
JBoss Tools SVN: r16794 - in tags/jbpm-jpdl-4.0.0: org.jboss.tools.flow.common and 2 other directories.
by jbosstools-commits@lists.jboss.org
Author: koen.aers(a)jboss.com
Date: 2009-07-27 03:09:55 -0400 (Mon, 27 Jul 2009)
New Revision: 16794
Added:
tags/jbpm-jpdl-4.0.0/org.jboss.tools.flow.common/
tags/jbpm-jpdl-4.0.0/org.jboss.tools.flow.common/META-INF/MANIFEST.MF
tags/jbpm-jpdl-4.0.0/org.jboss.tools.flow.common/plugin.properties
tags/jbpm-jpdl-4.0.0/org.jboss.tools.flow.common/src/org/jboss/tools/flow/common/editor/GenericModelEditor.java
Removed:
tags/jbpm-jpdl-4.0.0/org.jboss.tools.flow.common/META-INF/MANIFEST.MF
tags/jbpm-jpdl-4.0.0/org.jboss.tools.flow.common/plugin.properties
tags/jbpm-jpdl-4.0.0/org.jboss.tools.flow.common/src/org/jboss/tools/flow/common/editor/GenericModelEditor.java
Log:
Copied: tags/jbpm-jpdl-4.0.0/org.jboss.tools.flow.common (from rev 16344, trunk/flow/plugins/org.jboss.tools.flow.common)
Deleted: tags/jbpm-jpdl-4.0.0/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.0.0/org.jboss.tools.flow.common/META-INF/MANIFEST.MF 2009-07-27 07:09:55 UTC (rev 16794)
@@ -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.0.0/org.jboss.tools.flow.common/META-INF/MANIFEST.MF (from rev 16473, trunk/flow/plugins/org.jboss.tools.flow.common/META-INF/MANIFEST.MF)
===================================================================
--- tags/jbpm-jpdl-4.0.0/org.jboss.tools.flow.common/META-INF/MANIFEST.MF (rev 0)
+++ tags/jbpm-jpdl-4.0.0/org.jboss.tools.flow.common/META-INF/MANIFEST.MF 2009-07-27 07:09:55 UTC (rev 16794)
@@ -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.0.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.0.0/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.0.0/org.jboss.tools.flow.common/plugin.properties 2009-07-27 07:09:55 UTC (rev 16794)
@@ -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.0.0/org.jboss.tools.flow.common/plugin.properties (from rev 16465, trunk/flow/plugins/org.jboss.tools.flow.common/plugin.properties)
===================================================================
--- tags/jbpm-jpdl-4.0.0/org.jboss.tools.flow.common/plugin.properties (rev 0)
+++ tags/jbpm-jpdl-4.0.0/org.jboss.tools.flow.common/plugin.properties 2009-07-27 07:09:55 UTC (rev 16794)
@@ -0,0 +1,3 @@
+#Properties file for org.jboss.tools.flow.common
+Bundle-Vendor.0 = JBoss
+Bundle-Name.0 = Flow Language Common Tools
\ No newline at end of file
Deleted: tags/jbpm-jpdl-4.0.0/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.0.0/org.jboss.tools.flow.common/src/org/jboss/tools/flow/common/editor/GenericModelEditor.java 2009-07-27 07:09:55 UTC (rev 16794)
@@ -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.0.0/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.0.0/org.jboss.tools.flow.common/src/org/jboss/tools/flow/common/editor/GenericModelEditor.java (rev 0)
+++ tags/jbpm-jpdl-4.0.0/org.jboss.tools.flow.common/src/org/jboss/tools/flow/common/editor/GenericModelEditor.java 2009-07-27 07:09:55 UTC (rev 16794)
@@ -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();
+ }
+ }
+ }
+}
16 years, 8 months
JBoss Tools SVN: r16793 - tags.
by jbosstools-commits@lists.jboss.org
Author: koen.aers(a)jboss.com
Date: 2009-07-27 03:09:25 -0400 (Mon, 27 Jul 2009)
New Revision: 16793
Added:
tags/jbpm-jpdl-4.0.0/
Log:
16 years, 8 months
JBoss Tools SVN: r16792 - trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.ui/src/org/jboss/tools/hibernate/jpt/ui/internal/mapping/details.
by jbosstools-commits@lists.jboss.org
Author: dgeraskov
Date: 2009-07-27 02:58:52 -0400 (Mon, 27 Jul 2009)
New Revision: 16792
Modified:
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.ui/src/org/jboss/tools/hibernate/jpt/ui/internal/mapping/details/GenericGeneratorsComposite.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-4607
Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.ui/src/org/jboss/tools/hibernate/jpt/ui/internal/mapping/details/GenericGeneratorsComposite.java
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.ui/src/org/jboss/tools/hibernate/jpt/ui/internal/mapping/details/GenericGeneratorsComposite.java 2009-07-27 06:42:43 UTC (rev 16791)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.ui/src/org/jboss/tools/hibernate/jpt/ui/internal/mapping/details/GenericGeneratorsComposite.java 2009-07-27 06:58:52 UTC (rev 16792)
@@ -19,10 +19,7 @@
import org.eclipse.jface.viewers.LabelProvider;
import org.eclipse.jface.window.Window;
import org.eclipse.jpt.core.context.Generator;
-import org.eclipse.jpt.core.context.IdMapping;
-import org.eclipse.jpt.core.context.SequenceGenerator;
import org.eclipse.jpt.ui.internal.mappings.db.SequenceCombo;
-import org.eclipse.jpt.ui.internal.mappings.details.GenerationComposite;
import org.eclipse.jpt.ui.internal.util.ControlEnabler;
import org.eclipse.jpt.ui.internal.widgets.AddRemoveListPane;
import org.eclipse.jpt.ui.internal.widgets.Pane;
@@ -70,9 +67,9 @@
* | ------------------------------------------------------------------------- |
* -----------------------------------------------------------------------------</pre>
*
- * @see IdMapping
- * @see SequenceGenerator
- * @see GenerationComposite - The parent container
+ * @see HibernateGeneratorsComposite
+ * @see GenericGenerator
+ * @see HibernateGenerationComposite - The parent container
* @see SequenceCombo
*
* @version 2.0
16 years, 8 months
JBoss Tools SVN: r16790 - in trunk/smooks/plugins: org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/smooks/provider and 3 other directories.
by jbosstools-commits@lists.jboss.org
Author: DartPeng
Date: 2009-07-27 01:45:04 -0400 (Mon, 27 Jul 2009)
New Revision: 16790
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/actions/
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/actions/AbstractSmooksActionGrouper.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/actions/Calc11ActionGrouper.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/actions/Database11ActionGrouper.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/actions/Datasources11ActionGrouper.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/actions/FragmentRouting11ActionGrouper.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/actions/FragmentRouting12ActionGrouper.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/actions/ISmooksActionGrouper.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/actions/JavaBean11ActionGrouper.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/actions/JavaBean12ActionGrouper.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/actions/PersistenceActionGrouper.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/actions/Reader11ActionGrouper.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/actions/Reader12ActionGrouper.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/actions/Scripting11ActionGrouper.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/actions/SeparatorActionGrouper.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/actions/Templating11ActionGrouper.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/actions/Validation10ActionGrouper.java
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.core/plugin.properties
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/smooks/provider/SmooksResourceListTypeItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/SmooksActionBarContributor.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/editor/AbstractSmooksFormEditor.java
Log:
JBIDE-4656
1.Add actions for adding smooks1.2 elements
2.Change the smooks 1.2 elements' text
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.core/plugin.properties
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/plugin.properties 2009-07-24 22:01:31 UTC (rev 16789)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/plugin.properties 2009-07-27 05:45:04 UTC (rev 16790)
@@ -180,7 +180,7 @@
_UI_InlineDirective_replace_literal = replace
_UI_InlineDirective_insertbefore_literal = insertbefore
_UI_InlineDirective_insertafter_literal = insertafter
-_UI_BindingsType_type = Bean
+_UI_BindingsType_type = Bean v1.1
_UI_DecodeParamType_type = Decode Param
_UI_ExpressionType_type = Expression Binding
_UI_ValueType_type = Value Binding
@@ -246,7 +246,7 @@
# CSV
_UI_CsvDocumentRoot_type = Document Root
-_UI_CsvReader_type = CSV Reader
+_UI_CsvReader_type = CSV Reader v1.1
_UI_CsvDocumentRoot_mixed_feature = Mixed
_UI_CsvDocumentRoot_xMLNSPrefixMap_feature = XMLNS Prefix Map
_UI_CsvDocumentRoot_xSISchemaLocation_feature = XSI Schema Location
@@ -306,7 +306,7 @@
_UI_HighWaterMark_type = High Water Mark
_UI_Jndi_type = Jndi
_UI_Message_type = Message
-_UI_JmsRouter_type = JMS Router
+_UI_JmsRouter_type = JMS Router v1.1
_UI_Session_type = Session
_UI_Connection_factory_feature = Factory
@@ -355,7 +355,7 @@
_UI_JsonDocumentRoot_type = Document Root
_UI_Key_type = Key
_UI_KeyMap_type = Key Map
-_UI_JsonReader_type =JSON Reader
+_UI_JsonReader_type =Json Reader v1.1
_UI_JsonDocumentRoot_mixed_feature = Mixed
_UI_JsonDocumentRoot_xMLNSPrefixMap_feature = XMLNS Prefix Map
@@ -376,7 +376,7 @@
# EDI Reader
_UI_EDIDocumentRoot_type = EDI Document Root
-_UI_EDIReader_type = EDI Reader
+_UI_EDIReader_type = EDI Reader v1.1
_UI_EDIDocumentRoot_mixed_feature = Mixed
_UI_EDIDocumentRoot_xMLNSPrefixMap_feature = XMLNS Prefix Map
_UI_EDIDocumentRoot_xSISchemaLocation_feature = XSI Schema Location
@@ -449,7 +449,7 @@
_UI_Binding_type = Binding
_UI_CSV12DocumentRoot_type = CSV12 Document Root
_UI_MapBinding_type = Map Binding
-_UI_CSV12Reader_type = CSV12 Reader
+_UI_CSV12Reader_type = CSV Reader v1.2
_UI_Binding_beanId_feature = Bean Id
_UI_Binding_class_feature = Class
_UI_CSV12DocumentRoot_mixed_feature = Mixed
@@ -471,7 +471,7 @@
# EDI version 1.2
_UI_EDI12DocumentRoot_type = EDI12 Document Root
-_UI_EDI12Reader_type = EDI12 Reader
+_UI_EDI12Reader_type = EDI Reader v1.2
_UI_EDI12DocumentRoot_mixed_feature = Mixed
_UI_EDI12DocumentRoot_xMLNSPrefixMap_feature = XMLNS Prefix Map
_UI_EDI12DocumentRoot_xSISchemaLocation_feature = XSI Schema Location
@@ -481,13 +481,13 @@
_UI_EDI12Reader_validate_feature = Validate
# JavaBean version 1.2
-_UI_BeanType_type = Bean Type
+_UI_BeanType_type = Bean v1.2
_UI_DecodeParamType_type = Decode Param Type
_UI_Javabean12DocumentRoot_type = Document Root
_UI_ExpressionType_type = Expression Type
_UI_ResultType_type = Result Type
-_UI_ValueType_type = Value Type
-_UI_WiringType_type = Wiring Type
+_UI_ValueType_type = Value Binding
+_UI_WiringType_type = Bean Binding
_UI_BeanType_group_feature = Group
_UI_BeanType_value_feature = Value
_UI_BeanType_wiring_feature = Wiring
@@ -535,7 +535,7 @@
_UI_HighWaterMark_type = High Water Mark
_UI_Jndi_type = Jndi
_UI_Message_type = Message
-_UI_Router_type = Router
+_UI_Router_type = JMS Router v1.2
_UI_Session_type = Session
_UI_Connection_factory_feature = Factory
_UI_Connection_securityCredential_feature = Security Credential
@@ -582,7 +582,7 @@
_UI_Json12DocumentRoot_type = Document Root
_UI_Key_type = Key
_UI_KeyMap_type = Key Map
-_UI_Json12Reader_type = Reader
+_UI_Json12Reader_type = Json Reader v1.2
_UI_Json12DocumentRoot_mixed_feature = Mixed
_UI_Json12DocumentRoot_xMLNSPrefixMap_feature = XMLNS Prefix Map
_UI_Json12DocumentRoot_xSISchemaLocation_feature = XSI Schema Location
@@ -687,7 +687,7 @@
# rules version 1.0
_UI_Rules10DocumentRoot_type = Document Root
_UI_RuleBase_type = Rule Base
-_UI_RuleBasesType_type = Rule Bases Type
+_UI_RuleBasesType_type = Rule Bases
_UI_Rules10DocumentRoot_mixed_feature = Mixed
_UI_Rules10DocumentRoot_xMLNSPrefixMap_feature = XMLNS Prefix Map
_UI_Rules10DocumentRoot_xSISchemaLocation_feature = XSI Schema Location
@@ -700,7 +700,7 @@
# validation version 1.0
_UI_Validation10DocumentRoot_type = Document Root
-_UI_RuleType_type = Rule Type
+_UI_RuleType_type = Rule
_UI_Validation10DocumentRoot_mixed_feature = Mixed
_UI_Validation10DocumentRoot_xMLNSPrefixMap_feature = XMLNS Prefix Map
_UI_Validation10DocumentRoot_xSISchemaLocation_feature = XSI Schema Location
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/smooks/provider/SmooksResourceListTypeItemProvider.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/smooks/provider/SmooksResourceListTypeItemProvider.java 2009-07-24 22:01:31 UTC (rev 16789)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/smooks/provider/SmooksResourceListTypeItemProvider.java 2009-07-27 05:45:04 UTC (rev 16790)
@@ -28,12 +28,16 @@
import org.jboss.tools.smooks.model.common.provider.AbstractAnyTypeItemProvider;
import org.jboss.tools.smooks.model.csv.CsvFactory;
import org.jboss.tools.smooks.model.csv.CsvPackage;
+import org.jboss.tools.smooks.model.csv12.Csv12Factory;
+import org.jboss.tools.smooks.model.csv12.Csv12Package;
import org.jboss.tools.smooks.model.datasource.DatasourceFactory;
import org.jboss.tools.smooks.model.datasource.DatasourcePackage;
import org.jboss.tools.smooks.model.dbrouting.DbroutingFactory;
import org.jboss.tools.smooks.model.dbrouting.DbroutingPackage;
import org.jboss.tools.smooks.model.edi.EdiFactory;
import org.jboss.tools.smooks.model.edi.EdiPackage;
+import org.jboss.tools.smooks.model.edi12.Edi12Factory;
+import org.jboss.tools.smooks.model.edi12.Edi12Package;
import org.jboss.tools.smooks.model.esbrouting.EsbroutingFactory;
import org.jboss.tools.smooks.model.esbrouting.EsbroutingPackage;
import org.jboss.tools.smooks.model.fileRouting.FileRoutingFactory;
@@ -46,13 +50,25 @@
import org.jboss.tools.smooks.model.iorouting.IoroutingPackage;
import org.jboss.tools.smooks.model.javabean.JavabeanFactory;
import org.jboss.tools.smooks.model.javabean.JavabeanPackage;
+import org.jboss.tools.smooks.model.javabean12.Javabean12Factory;
+import org.jboss.tools.smooks.model.javabean12.Javabean12Package;
import org.jboss.tools.smooks.model.jmsrouting.JmsroutingFactory;
import org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage;
+import org.jboss.tools.smooks.model.jmsrouting12.Jmsrouting12Factory;
+import org.jboss.tools.smooks.model.jmsrouting12.Jmsrouting12Package;
import org.jboss.tools.smooks.model.json.JsonFactory;
import org.jboss.tools.smooks.model.json.JsonPackage;
+import org.jboss.tools.smooks.model.json12.Json12Factory;
+import org.jboss.tools.smooks.model.json12.Json12Package;
+import org.jboss.tools.smooks.model.persistence12.Persistence12Factory;
+import org.jboss.tools.smooks.model.persistence12.Persistence12Package;
+import org.jboss.tools.smooks.model.rules10.Rules10Factory;
+import org.jboss.tools.smooks.model.rules10.Rules10Package;
import org.jboss.tools.smooks.model.smooks.SmooksFactory;
import org.jboss.tools.smooks.model.smooks.SmooksPackage;
import org.jboss.tools.smooks.model.smooks.SmooksResourceListType;
+import org.jboss.tools.smooks.model.validation10.Validation10Factory;
+import org.jboss.tools.smooks.model.validation10.Validation10Package;
import org.jboss.tools.smooks.model.xsl.XslFactory;
import org.jboss.tools.smooks.model.xsl.XslPackage;
import org.jboss.tools.smooks.model.xsl.provider.Xsl1EditPlugin;
@@ -63,8 +79,9 @@
*
* @generated
*/
-public class SmooksResourceListTypeItemProvider extends AbstractAnyTypeItemProvider implements IEditingDomainItemProvider,
- IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
+public class SmooksResourceListTypeItemProvider extends AbstractAnyTypeItemProvider implements
+ IEditingDomainItemProvider, IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider,
+ IItemPropertySource {
/**
* This constructs an instance from a factory and a notifier. <!--
* begin-user-doc --> <!-- end-user-doc -->
@@ -101,11 +118,13 @@
* @generated
*/
protected void addDefaultConditionRefPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
- getResourceLocator(), getString("_UI_SmooksResourceListType_defaultConditionRef_feature"), getString(
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory)
+ .getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_SmooksResourceListType_defaultConditionRef_feature"), getString(
"_UI_PropertyDescriptor_description", "_UI_SmooksResourceListType_defaultConditionRef_feature",
- "_UI_SmooksResourceListType_type"), SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__DEFAULT_CONDITION_REF, true, false,
- false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
+ "_UI_SmooksResourceListType_type"),
+ SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__DEFAULT_CONDITION_REF, true, false, false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
}
/**
@@ -115,10 +134,12 @@
* @generated
*/
protected void addDefaultSelectorPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
- getResourceLocator(), getString("_UI_SmooksResourceListType_defaultSelector_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_SmooksResourceListType_defaultSelector_feature",
- "_UI_SmooksResourceListType_type"), SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__DEFAULT_SELECTOR, true, false, false,
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory)
+ .getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_SmooksResourceListType_defaultSelector_feature"), getString(
+ "_UI_PropertyDescriptor_description", "_UI_SmooksResourceListType_defaultSelector_feature",
+ "_UI_SmooksResourceListType_type"),
+ SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__DEFAULT_SELECTOR, true, false, false,
ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
}
@@ -129,11 +150,14 @@
* @generated
*/
protected void addDefaultSelectorNamespacePropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
- getResourceLocator(), getString("_UI_SmooksResourceListType_defaultSelectorNamespace_feature"), getString(
- "_UI_PropertyDescriptor_description", "_UI_SmooksResourceListType_defaultSelectorNamespace_feature",
- "_UI_SmooksResourceListType_type"), SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__DEFAULT_SELECTOR_NAMESPACE, true,
- false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory)
+ .getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_SmooksResourceListType_defaultSelectorNamespace_feature"), getString(
+ "_UI_PropertyDescriptor_description",
+ "_UI_SmooksResourceListType_defaultSelectorNamespace_feature",
+ "_UI_SmooksResourceListType_type"),
+ SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__DEFAULT_SELECTOR_NAMESPACE, true, false, false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
}
/**
@@ -143,11 +167,13 @@
* @generated
*/
protected void addDefaultTargetProfilePropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
- getResourceLocator(), getString("_UI_SmooksResourceListType_defaultTargetProfile_feature"), getString(
- "_UI_PropertyDescriptor_description", "_UI_SmooksResourceListType_defaultTargetProfile_feature",
- "_UI_SmooksResourceListType_type"), SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__DEFAULT_TARGET_PROFILE, true, false,
- false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory)
+ .getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_SmooksResourceListType_defaultTargetProfile_feature"), getString(
+ "_UI_PropertyDescriptor_description",
+ "_UI_SmooksResourceListType_defaultTargetProfile_feature", "_UI_SmooksResourceListType_type"),
+ SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__DEFAULT_TARGET_PROFILE, true, false, false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
}
/**
@@ -207,8 +233,8 @@
@Override
public String getText(Object object) {
String label = ((SmooksResourceListType) object).getDefaultSelectorNamespace();
- return label == null || label.length() == 0 ? getString("_UI_SmooksResourceListType_type") : getString("_UI_SmooksResourceListType_type")
- + " " + label;
+ return label == null || label.length() == 0 ? getString("_UI_SmooksResourceListType_type")
+ : getString("_UI_SmooksResourceListType_type") + " " + label;
}
/**
@@ -252,87 +278,188 @@
protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
super.collectNewChildDescriptors(newChildDescriptors, object);
- newChildDescriptors.add(createChildParameter(SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__PARAMS, SmooksFactory.eINSTANCE
- .createParamsType()));
+ newChildDescriptors.add(createChildParameter(SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__PARAMS,
+ SmooksFactory.eINSTANCE.createParamsType()));
- newChildDescriptors.add(createChildParameter(SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__CONDITIONS, SmooksFactory.eINSTANCE
- .createConditionsType()));
+ newChildDescriptors.add(createChildParameter(SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__CONDITIONS,
+ SmooksFactory.eINSTANCE.createConditionsType()));
- newChildDescriptors.add(createChildParameter(SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__PROFILES, SmooksFactory.eINSTANCE
- .createProfilesType()));
+ newChildDescriptors.add(createChildParameter(SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__PROFILES,
+ SmooksFactory.eINSTANCE.createProfilesType()));
- newChildDescriptors.add(createChildParameter(SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_READER_GROUP, FeatureMapUtil
- .createEntry(SmooksPackage.Literals.DOCUMENT_ROOT__READER, SmooksFactory.eINSTANCE.createReaderType())));
+ newChildDescriptors.add(createChildParameter(
+ SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_READER_GROUP, FeatureMapUtil.createEntry(
+ SmooksPackage.Literals.DOCUMENT_ROOT__READER, SmooksFactory.eINSTANCE.createReaderType())));
- newChildDescriptors.add(createChildParameter(SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_RESOURCE_CONFIG_GROUP, FeatureMapUtil
- .createEntry(SmooksPackage.Literals.DOCUMENT_ROOT__IMPORT, SmooksFactory.eINSTANCE.createImportType())));
+ newChildDescriptors.add(createChildParameter(
+ SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_RESOURCE_CONFIG_GROUP, FeatureMapUtil
+ .createEntry(SmooksPackage.Literals.DOCUMENT_ROOT__IMPORT, SmooksFactory.eINSTANCE
+ .createImportType())));
- newChildDescriptors.add(createChildParameter(SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_RESOURCE_CONFIG_GROUP, FeatureMapUtil
- .createEntry(SmooksPackage.Literals.DOCUMENT_ROOT__RESOURCE_CONFIG, SmooksFactory.eINSTANCE.createResourceConfigType())));
+ newChildDescriptors.add(createChildParameter(
+ SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_RESOURCE_CONFIG_GROUP, FeatureMapUtil
+ .createEntry(SmooksPackage.Literals.DOCUMENT_ROOT__RESOURCE_CONFIG, SmooksFactory.eINSTANCE
+ .createResourceConfigType())));
/***********************************************/
// for CSV
- newChildDescriptors.add(createChildParameter(SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_READER_GROUP, FeatureMapUtil
- .createEntry(CsvPackage.Literals.CSV_DOCUMENT_ROOT__READER, CsvFactory.eINSTANCE.createCsvReader())));
+ newChildDescriptors.add(createChildParameter(
+ SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_READER_GROUP, FeatureMapUtil.createEntry(
+ CsvPackage.Literals.CSV_DOCUMENT_ROOT__READER, CsvFactory.eINSTANCE.createCsvReader())));
// for EDI
- newChildDescriptors.add(createChildParameter(SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_READER_GROUP, FeatureMapUtil
- .createEntry(EdiPackage.Literals.EDI_DOCUMENT_ROOT__READER, EdiFactory.eINSTANCE.createEDIReader())));
+ newChildDescriptors.add(createChildParameter(
+ SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_READER_GROUP, FeatureMapUtil.createEntry(
+ EdiPackage.Literals.EDI_DOCUMENT_ROOT__READER, EdiFactory.eINSTANCE.createEDIReader())));
// for JSON
- newChildDescriptors.add(createChildParameter(SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_READER_GROUP, FeatureMapUtil
- .createEntry(JsonPackage.Literals.JSON_DOCUMENT_ROOT__READER, JsonFactory.eINSTANCE.createJsonReader())));
+ newChildDescriptors.add(createChildParameter(
+ SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_READER_GROUP, FeatureMapUtil.createEntry(
+ JsonPackage.Literals.JSON_DOCUMENT_ROOT__READER, JsonFactory.eINSTANCE.createJsonReader())));
// for calc
- newChildDescriptors.add(createChildParameter(SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_RESOURCE_CONFIG_GROUP, FeatureMapUtil
- .createEntry(CalcPackage.Literals.CALC_DOCUMENT_ROOT__COUNTER, CalcFactory.eINSTANCE.createCounter())));
-
+ newChildDescriptors.add(createChildParameter(
+ SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_RESOURCE_CONFIG_GROUP, FeatureMapUtil
+ .createEntry(CalcPackage.Literals.CALC_DOCUMENT_ROOT__COUNTER, CalcFactory.eINSTANCE
+ .createCounter())));
+
// for groovy
-
- newChildDescriptors.add(createChildParameter(SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_RESOURCE_CONFIG_GROUP, FeatureMapUtil
- .createEntry(GroovyPackage.Literals.DOCUMENT_ROOT__GROOVY, GroovyFactory.eINSTANCE.createGroovy())));
+ newChildDescriptors.add(createChildParameter(
+ SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_RESOURCE_CONFIG_GROUP, FeatureMapUtil
+ .createEntry(GroovyPackage.Literals.DOCUMENT_ROOT__GROOVY, GroovyFactory.eINSTANCE
+ .createGroovy())));
+
// for datasource
- newChildDescriptors.add(createChildParameter(SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_RESOURCE_CONFIG_GROUP, FeatureMapUtil
- .createEntry(DatasourcePackage.Literals.DATA_SOURCE_DOCUMENT_ROOT__DIRECT, DatasourceFactory.eINSTANCE.createDirect())));
+ newChildDescriptors.add(createChildParameter(
+ SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_RESOURCE_CONFIG_GROUP, FeatureMapUtil
+ .createEntry(DatasourcePackage.Literals.DATA_SOURCE_DOCUMENT_ROOT__DIRECT,
+ DatasourceFactory.eINSTANCE.createDirect())));
- newChildDescriptors.add(createChildParameter(SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_RESOURCE_CONFIG_GROUP, FeatureMapUtil
- .createEntry(DatasourcePackage.Literals.DATA_SOURCE_DOCUMENT_ROOT__JNDI, DatasourceFactory.eINSTANCE.createDataSourceJndi())));
+ newChildDescriptors.add(createChildParameter(
+ SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_RESOURCE_CONFIG_GROUP, FeatureMapUtil
+ .createEntry(DatasourcePackage.Literals.DATA_SOURCE_DOCUMENT_ROOT__JNDI,
+ DatasourceFactory.eINSTANCE.createDataSourceJndi())));
// for javabean
- newChildDescriptors.add(createChildParameter(SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_RESOURCE_CONFIG_GROUP, FeatureMapUtil
- .createEntry(JavabeanPackage.Literals.DOCUMENT_ROOT__BINDINGS, JavabeanFactory.eINSTANCE.createBindingsType())));
+ newChildDescriptors.add(createChildParameter(
+ SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_RESOURCE_CONFIG_GROUP, FeatureMapUtil
+ .createEntry(JavabeanPackage.Literals.DOCUMENT_ROOT__BINDINGS, JavabeanFactory.eINSTANCE
+ .createBindingsType())));
// for xsl
- newChildDescriptors.add(createChildParameter(SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_RESOURCE_CONFIG_GROUP, FeatureMapUtil
- .createEntry(XslPackage.Literals.DOCUMENT_ROOT__XSL, XslFactory.eINSTANCE.createXsl())));
+ newChildDescriptors.add(createChildParameter(
+ SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_RESOURCE_CONFIG_GROUP, FeatureMapUtil
+ .createEntry(XslPackage.Literals.DOCUMENT_ROOT__XSL, XslFactory.eINSTANCE.createXsl())));
// for freemarker
- newChildDescriptors.add(createChildParameter(SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_RESOURCE_CONFIG_GROUP, FeatureMapUtil
- .createEntry(FreemarkerPackage.Literals.DOCUMENT_ROOT__FREEMARKER, FreemarkerFactory.eINSTANCE.createFreemarker())));
+ newChildDescriptors.add(createChildParameter(
+ SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_RESOURCE_CONFIG_GROUP, FeatureMapUtil
+ .createEntry(FreemarkerPackage.Literals.DOCUMENT_ROOT__FREEMARKER, FreemarkerFactory.eINSTANCE
+ .createFreemarker())));
// for DB routing
- newChildDescriptors.add(createChildParameter(SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_RESOURCE_CONFIG_GROUP, FeatureMapUtil
- .createEntry(DbroutingPackage.Literals.DOCUMENT_ROOT__EXECUTOR, DbroutingFactory.eINSTANCE.createExecutor())));
+ newChildDescriptors.add(createChildParameter(
+ SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_RESOURCE_CONFIG_GROUP, FeatureMapUtil
+ .createEntry(DbroutingPackage.Literals.DOCUMENT_ROOT__EXECUTOR, DbroutingFactory.eINSTANCE
+ .createExecutor())));
- newChildDescriptors.add(createChildParameter(SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_RESOURCE_CONFIG_GROUP, FeatureMapUtil
- .createEntry(DbroutingPackage.Literals.DOCUMENT_ROOT__RESULT_SET_ROW_SELECTOR, DbroutingFactory.eINSTANCE
- .createResultSetRowSelector())));
+ newChildDescriptors.add(createChildParameter(
+ SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_RESOURCE_CONFIG_GROUP, FeatureMapUtil
+ .createEntry(DbroutingPackage.Literals.DOCUMENT_ROOT__RESULT_SET_ROW_SELECTOR,
+ DbroutingFactory.eINSTANCE.createResultSetRowSelector())));
// for IO routing
- newChildDescriptors.add(createChildParameter(SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_RESOURCE_CONFIG_GROUP, FeatureMapUtil
- .createEntry(IoroutingPackage.Literals.IO_DOCUMENT_ROOT__ROUTER, IoroutingFactory.eINSTANCE.createIORouter())));
+ newChildDescriptors.add(createChildParameter(
+ SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_RESOURCE_CONFIG_GROUP, FeatureMapUtil
+ .createEntry(IoroutingPackage.Literals.IO_DOCUMENT_ROOT__ROUTER, IoroutingFactory.eINSTANCE
+ .createIORouter())));
// for JMS routing
- newChildDescriptors.add(createChildParameter(SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_RESOURCE_CONFIG_GROUP, FeatureMapUtil
- .createEntry(JmsroutingPackage.Literals.JMS_DOCUMENT_ROOT__ROUTER, JmsroutingFactory.eINSTANCE.createJmsRouter())));
+ newChildDescriptors.add(createChildParameter(
+ SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_RESOURCE_CONFIG_GROUP, FeatureMapUtil
+ .createEntry(JmsroutingPackage.Literals.JMS_DOCUMENT_ROOT__ROUTER, JmsroutingFactory.eINSTANCE
+ .createJmsRouter())));
// for File routing
- newChildDescriptors.add(createChildParameter(SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_RESOURCE_CONFIG_GROUP, FeatureMapUtil
- .createEntry(FileRoutingPackage.Literals.DOCUMENT_ROOT__OUTPUT_STREAM, FileRoutingFactory.eINSTANCE.createOutputStream())));
-
+ newChildDescriptors.add(createChildParameter(
+ SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_RESOURCE_CONFIG_GROUP, FeatureMapUtil
+ .createEntry(FileRoutingPackage.Literals.DOCUMENT_ROOT__OUTPUT_STREAM,
+ FileRoutingFactory.eINSTANCE.createOutputStream())));
+
// for ESB routing
- newChildDescriptors.add(createChildParameter(SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_RESOURCE_CONFIG_GROUP, FeatureMapUtil
- .createEntry(EsbroutingPackage.Literals.ESB_ROUTING_DOCUMENT_ROOT__ROUTE_BEAN, EsbroutingFactory.eINSTANCE.createRouteBean())));
+ newChildDescriptors.add(createChildParameter(
+ SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_RESOURCE_CONFIG_GROUP, FeatureMapUtil
+ .createEntry(EsbroutingPackage.Literals.ESB_ROUTING_DOCUMENT_ROOT__ROUTE_BEAN,
+ EsbroutingFactory.eINSTANCE.createRouteBean())));
+ /***********************************************/
- /***********************************************/
+ /****************** Add Smooks 1.2 items ********/
+ // for Rules 1.0
+ newChildDescriptors.add(createChildParameter(
+ SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_RESOURCE_CONFIG_GROUP, FeatureMapUtil
+ .createEntry(Rules10Package.Literals.RULES10_DOCUMENT_ROOT__RULE_BASES,
+ Rules10Factory.eINSTANCE.createRuleBasesType())));
+
+ // for Persistence 1.2
+ newChildDescriptors.add(createChildParameter(
+ SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_RESOURCE_CONFIG_GROUP, FeatureMapUtil
+ .createEntry(Persistence12Package.Literals.PERSISTENCE12_DOCUMENT_ROOT__DELETER,
+ Persistence12Factory.eINSTANCE.createDeleter())));
+
+ newChildDescriptors.add(createChildParameter(
+ SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_RESOURCE_CONFIG_GROUP, FeatureMapUtil
+ .createEntry(Persistence12Package.Literals.PERSISTENCE12_DOCUMENT_ROOT__FLUSHER,
+ Persistence12Factory.eINSTANCE.createFlusher())));
+
+ newChildDescriptors.add(createChildParameter(
+ SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_RESOURCE_CONFIG_GROUP, FeatureMapUtil
+ .createEntry(Persistence12Package.Literals.PERSISTENCE12_DOCUMENT_ROOT__INSERTER,
+ Persistence12Factory.eINSTANCE.createInserter())));
+
+ newChildDescriptors.add(createChildParameter(
+ SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_RESOURCE_CONFIG_GROUP, FeatureMapUtil
+ .createEntry(Persistence12Package.Literals.PERSISTENCE12_DOCUMENT_ROOT__LOCATOR,
+ Persistence12Factory.eINSTANCE.createLocator())));
+
+ newChildDescriptors.add(createChildParameter(
+ SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_RESOURCE_CONFIG_GROUP, FeatureMapUtil
+ .createEntry(Persistence12Package.Literals.PERSISTENCE12_DOCUMENT_ROOT__UPDATER,
+ Persistence12Factory.eINSTANCE.createUpdater())));
+
+ // for Validation 1.0
+ newChildDescriptors.add(createChildParameter(
+ SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_RESOURCE_CONFIG_GROUP, FeatureMapUtil
+ .createEntry(Validation10Package.Literals.VALIDATION10_DOCUMENT_ROOT__RULE,
+ Validation10Factory.eINSTANCE.createRuleType())));
+
+ // for CSV 1.2
+ newChildDescriptors
+ .add(createChildParameter(SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_READER_GROUP,
+ FeatureMapUtil.createEntry(Csv12Package.Literals.CSV12_DOCUMENT_ROOT__READER,
+ Csv12Factory.eINSTANCE.createCSV12Reader())));
+
+ // for EDI 1.2
+ newChildDescriptors
+ .add(createChildParameter(SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_READER_GROUP,
+ FeatureMapUtil.createEntry(Edi12Package.Literals.EDI12_DOCUMENT_ROOT__READER,
+ Edi12Factory.eINSTANCE.createEDI12Reader())));
+
+ // for JSON 1.2
+ newChildDescriptors.add(createChildParameter(
+ SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_READER_GROUP, FeatureMapUtil.createEntry(
+ Json12Package.Literals.JSON12_DOCUMENT_ROOT__READER, Json12Factory.eINSTANCE
+ .createJson12Reader())));
+
+ // for JavaBean 1.2
+ newChildDescriptors.add(createChildParameter(
+ SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_RESOURCE_CONFIG_GROUP, FeatureMapUtil
+ .createEntry(Javabean12Package.Literals.JAVABEAN12_DOCUMENT_ROOT__BEAN,
+ Javabean12Factory.eINSTANCE.createBeanType())));
+
+ // for JMS Router 1.2
+ newChildDescriptors.add(createChildParameter(
+ SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_RESOURCE_CONFIG_GROUP, FeatureMapUtil
+ .createEntry(Jmsrouting12Package.Literals.JMS_ROUTING12_DOCUMENT_ROOT__ROUTER,
+ Jmsrouting12Factory.eINSTANCE.createRouter())));
+
}
/**
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/SmooksActionBarContributor.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/SmooksActionBarContributor.java 2009-07-24 22:01:31 UTC (rev 16789)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/SmooksActionBarContributor.java 2009-07-27 05:45:04 UTC (rev 16790)
@@ -8,7 +8,10 @@
import java.util.ArrayList;
import java.util.Collection;
+import java.util.HashMap;
import java.util.Iterator;
+import java.util.List;
+import java.util.Map;
import org.eclipse.emf.common.command.Command;
import org.eclipse.emf.common.ui.viewer.IViewerProvider;
@@ -56,27 +59,28 @@
import org.jboss.tools.smooks.configuration.SmooksConfigurationActivator;
import org.jboss.tools.smooks.configuration.actions.AddSmooksResourceAction;
import org.jboss.tools.smooks.configuration.actions.ValidateSmooksAction;
-import org.jboss.tools.smooks.model.calc.Counter;
-import org.jboss.tools.smooks.model.datasource.DataSourceJndi;
-import org.jboss.tools.smooks.model.datasource.Direct;
-import org.jboss.tools.smooks.model.dbrouting.Executor;
-import org.jboss.tools.smooks.model.dbrouting.ResultSetRowSelector;
-import org.jboss.tools.smooks.model.esbrouting.RouteBean;
-import org.jboss.tools.smooks.model.fileRouting.OutputStream;
-import org.jboss.tools.smooks.model.freemarker.Freemarker;
-import org.jboss.tools.smooks.model.groovy.Groovy;
-import org.jboss.tools.smooks.model.javabean.BindingsType;
-import org.jboss.tools.smooks.model.jmsrouting.JmsRouter;
+import org.jboss.tools.smooks.configuration.editors.actions.Calc11ActionGrouper;
+import org.jboss.tools.smooks.configuration.editors.actions.Database11ActionGrouper;
+import org.jboss.tools.smooks.configuration.editors.actions.Datasources11ActionGrouper;
+import org.jboss.tools.smooks.configuration.editors.actions.FragmentRouting11ActionGrouper;
+import org.jboss.tools.smooks.configuration.editors.actions.FragmentRouting12ActionGrouper;
+import org.jboss.tools.smooks.configuration.editors.actions.ISmooksActionGrouper;
+import org.jboss.tools.smooks.configuration.editors.actions.JavaBean11ActionGrouper;
+import org.jboss.tools.smooks.configuration.editors.actions.JavaBean12ActionGrouper;
+import org.jboss.tools.smooks.configuration.editors.actions.PersistenceActionGrouper;
+import org.jboss.tools.smooks.configuration.editors.actions.Reader11ActionGrouper;
+import org.jboss.tools.smooks.configuration.editors.actions.Reader12ActionGrouper;
+import org.jboss.tools.smooks.configuration.editors.actions.Scripting11ActionGrouper;
+import org.jboss.tools.smooks.configuration.editors.actions.SeparatorActionGrouper;
+import org.jboss.tools.smooks.configuration.editors.actions.Templating11ActionGrouper;
+import org.jboss.tools.smooks.configuration.editors.actions.Validation10ActionGrouper;
import org.jboss.tools.smooks.model.medi.EdiMap;
import org.jboss.tools.smooks.model.medi.MEdiFactory;
import org.jboss.tools.smooks.model.medi.MEdiPackage;
-import org.jboss.tools.smooks.model.smooks.AbstractReader;
import org.jboss.tools.smooks.model.smooks.DocumentRoot;
-import org.jboss.tools.smooks.model.smooks.ReaderType;
import org.jboss.tools.smooks.model.smooks.SmooksFactory;
import org.jboss.tools.smooks.model.smooks.SmooksPackage;
import org.jboss.tools.smooks.model.smooks.SmooksResourceListType;
-import org.jboss.tools.smooks.model.xsl.Xsl;
/**
* This is the action bar contributor for the Smooks model editor. <!--
@@ -371,7 +375,9 @@
super.runWithEvent(event);
}
- /* (non-Javadoc)
+ /*
+ * (non-Javadoc)
+ *
* @see org.eclipse.jface.action.Action#isEnabled()
*/
@Override
@@ -669,256 +675,79 @@
return false;
}
- protected void groupActions(MenuManager manager, Collection<?> createChildActions) {
- MenuManager readerMenu = new MenuManager("Reader");
- manager.add(readerMenu);
+ private List<ISmooksActionGrouper> getSmooksActionGrouper() {
+ List<ISmooksActionGrouper> grouperList = new ArrayList<ISmooksActionGrouper>();
- MenuManager templatingMenu = new MenuManager("Templating");
- manager.add(templatingMenu);
+ grouperList.add(new JavaBean11ActionGrouper());
+ grouperList.add(new Reader11ActionGrouper());
+ grouperList.add(new Calc11ActionGrouper());
+ grouperList.add(new Database11ActionGrouper());
+ grouperList.add(new Datasources11ActionGrouper());
+ grouperList.add(new FragmentRouting11ActionGrouper());
+ grouperList.add(new Scripting11ActionGrouper());
+ grouperList.add(new Templating11ActionGrouper());
+ grouperList.add(new SeparatorActionGrouper("V1.1-V1.2"));
+ grouperList.add(new JavaBean12ActionGrouper());
+ grouperList.add(new Reader12ActionGrouper());
+ grouperList.add(new FragmentRouting12ActionGrouper());
+ grouperList.add(new PersistenceActionGrouper());
+ grouperList.add(new Validation10ActionGrouper());
+ grouperList.add(new SeparatorActionGrouper("No Group actions"));
+ return grouperList;
+ }
- MenuManager jbindingMenu = new MenuManager("Java Binding");
- manager.add(jbindingMenu);
+ protected void groupActions(MenuManager manager, Collection<?> createChildActions) {
- MenuManager datasourcesMenu = new MenuManager("Datasources");
- manager.add(datasourcesMenu);
+ Map<Object, Object> map = new HashMap<Object, Object>();
- MenuManager scriptingMenu = new MenuManager("Scripting");
- manager.add(scriptingMenu);
+ List<ISmooksActionGrouper> grouperList = getSmooksActionGrouper();
+ for (Iterator<?> iterator1 = grouperList.iterator(); iterator1.hasNext();) {
+ ISmooksActionGrouper grouper = (ISmooksActionGrouper) iterator1.next();
+ if (grouper.isSeparator()) {
+ String name = grouper.getGroupName();
+ if(name == null) name = "";
+ Separator s = new Separator(name);
+ manager.add(s);
+ continue;
+ } else {
+ String name = grouper.getGroupName();
+ if (name != null) {
+ MenuManager newMenu = new MenuManager(name);
+ manager.add(newMenu);
+ map.put(newMenu, grouper);
+ }
+ }
+ }
- MenuManager fragmentRoutingMenu = new MenuManager("Fragment Routing");
- manager.add(fragmentRoutingMenu);
-
- MenuManager databaseMenu = new MenuManager("Database");
- manager.add(databaseMenu);
-
- MenuManager calcMenu = new MenuManager("Calc");
- manager.add(calcMenu);
-
for (Iterator<?> iterator = createChildActions.iterator(); iterator.hasNext();) {
boolean added = false;
AddSmooksResourceAction action = (AddSmooksResourceAction) iterator.next();
Object descriptor = action.getDescriptor();
- if (isCalcDescriptor(descriptor)) {
- calcMenu.add(action);
- added = true;
+ Iterator<?> menuIterator = map.keySet().iterator();
+ while (menuIterator.hasNext()) {
+ MenuManager newMenu = (MenuManager) menuIterator.next();
+ ISmooksActionGrouper grouper = (ISmooksActionGrouper) map.get(newMenu);
+ if (grouper.belongsToGroup(descriptor)) {
+ newMenu.add(action);
+ added = true;
+ break;
+ }
}
-
- if (isReaderDescriptor(descriptor)) {
- readerMenu.add(action);
- added = true;
- }
- if (isTemplateDescriptor(descriptor)) {
- templatingMenu.add(action);
- added = true;
- }
- if (isJavaBindingDescriptor(descriptor)) {
- jbindingMenu.add(action);
- added = true;
- }
- if (isDatasourcesDescriptor(descriptor)) {
- datasourcesMenu.add(action);
- added = true;
- }
-
- if(isDatabaseDescriptor(descriptor)){
- databaseMenu.add(action);
- added = true;
- }
- if (isScriptingDescriptor(descriptor)) {
- scriptingMenu.add(action);
- added = true;
- }
- if (isFragmentRoutingDescriptor(descriptor)) {
- fragmentRoutingMenu.add(action);
- added = true;
- }
+
if (!added) {
manager.add(action);
}
}
- orderReaderAction(readerMenu);
- orderTemplateAction(templatingMenu);
- orderJBindingAction(jbindingMenu);
- orderDatasourceAction(datasourcesMenu);
- orderScriptAction(scriptingMenu);
- orderFragmentAction(fragmentRoutingMenu);
- orderDatabaseAction(databaseMenu);
- orderCalcAction(calcMenu);
- }
-
- protected void orderCalcAction(MenuManager database) {
- // TODO Auto-generated method stub
-
- }
-
- protected void orderDatabaseAction(MenuManager database) {
- // TODO Auto-generated method stub
-
- }
-
- protected void orderScriptAction(MenuManager scripting) {
- // TODO Auto-generated method stub
-
- }
-
- protected void orderFragmentAction(MenuManager fragmentRouting) {
- // TODO Auto-generated method stub
-
- }
-
- protected void orderDatasourceAction(MenuManager datasources) {
- // TODO Auto-generated method stub
-
- }
-
- protected void orderJBindingAction(MenuManager jbinding) {
- // TODO Auto-generated method stub
-
- }
-
- protected void orderTemplateAction(MenuManager templating) {
- // TODO Auto-generated method stub
-
- }
-
- protected void orderReaderAction(MenuManager readers) {
- IContributionItem[] items = readers.getItems();
- for (int i = 0; i < items.length; i++) {
- IContributionItem item = items[i];
- if (item instanceof ActionContributionItem) {
- IAction action = ((ActionContributionItem) item).getAction();
- if (action instanceof AddSmooksResourceAction) {
- AddSmooksResourceAction action1 = (AddSmooksResourceAction) action;
- Object descriptor = action1.getDescriptor();
- if (descriptor instanceof CommandParameter) {
- CommandParameter parameter = (CommandParameter) descriptor;
- if (parameter.getValue() != null) {
- Object value = AdapterFactoryEditingDomain.unwrap(parameter.getValue());
- if (value instanceof ReaderType) {
- int index = items.length - 1;
- readers.remove(item);
- readers.insert(index, item);
- return;
- }
- }
- }
- }
- }
+ Iterator<?> menuIterator = map.keySet().iterator();
+ while (menuIterator.hasNext()) {
+ MenuManager newMenu = (MenuManager) menuIterator.next();
+ ISmooksActionGrouper grouper = (ISmooksActionGrouper) map.get(newMenu);
+ grouper.orderActions(newMenu);
}
- }
-
- protected boolean isCalcDescriptor(Object descriptor) {
- if (descriptor instanceof CommandParameter) {
- CommandParameter parameter = (CommandParameter) descriptor;
- if (parameter.getValue() != null) {
- if (AdapterFactoryEditingDomain.unwrap(parameter.getValue()) instanceof Counter) {
- return true;
- }
- }
- }
- return false;
- }
- private boolean isDatabaseDescriptor(Object descriptor) {
- if (descriptor instanceof CommandParameter) {
- CommandParameter parameter = (CommandParameter) descriptor;
- if (parameter.getValue() != null) {
- if (AdapterFactoryEditingDomain.unwrap(parameter.getValue()) instanceof ResultSetRowSelector) {
- return true;
- }
- }
- }
- return false;
}
-
- private boolean isFragmentRoutingDescriptor(Object descriptor) {
- if (descriptor instanceof CommandParameter) {
- CommandParameter parameter = (CommandParameter) descriptor;
- if (parameter.getValue() != null) {
- if (AdapterFactoryEditingDomain.unwrap(parameter.getValue()) instanceof JmsRouter) {
- return true;
- }
- if (AdapterFactoryEditingDomain.unwrap(parameter.getValue()) instanceof OutputStream) {
- return true;
- }
- if (AdapterFactoryEditingDomain.unwrap(parameter.getValue()) instanceof Executor) {
- return true;
- }
- if (AdapterFactoryEditingDomain.unwrap(parameter.getValue()) instanceof RouteBean) {
- return true;
- }
- }
- }
- return false;
- }
- private boolean isScriptingDescriptor(Object descriptor) {
- if (descriptor instanceof CommandParameter) {
- CommandParameter parameter = (CommandParameter) descriptor;
- if (parameter.getValue() != null) {
- if (AdapterFactoryEditingDomain.unwrap(parameter.getValue()) instanceof Groovy) {
- return true;
- }
- }
- }
- return false;
- }
-
- private boolean isDatasourcesDescriptor(Object descriptor) {
- if (descriptor instanceof CommandParameter) {
- CommandParameter parameter = (CommandParameter) descriptor;
- if (parameter.getValue() != null) {
- if (AdapterFactoryEditingDomain.unwrap(parameter.getValue()) instanceof DataSourceJndi) {
- return true;
- }
- if (AdapterFactoryEditingDomain.unwrap(parameter.getValue()) instanceof Direct) {
- return true;
- }
- }
- }
- return false;
- }
-
- private boolean isJavaBindingDescriptor(Object descriptor) {
- if (descriptor instanceof CommandParameter) {
- CommandParameter parameter = (CommandParameter) descriptor;
- if (parameter.getValue() != null) {
- if (AdapterFactoryEditingDomain.unwrap(parameter.getValue()) instanceof BindingsType) {
- return true;
- }
- }
- }
- return false;
- }
-
- private boolean isTemplateDescriptor(Object descriptor) {
- if (descriptor instanceof CommandParameter) {
- CommandParameter parameter = (CommandParameter) descriptor;
- if (parameter.getValue() != null) {
- if (AdapterFactoryEditingDomain.unwrap(parameter.getValue()) instanceof Freemarker) {
- return true;
- }
- if (AdapterFactoryEditingDomain.unwrap(parameter.getValue()) instanceof Xsl) {
- return true;
- }
- }
- }
- return false;
- }
-
- private boolean isReaderDescriptor(Object descriptor) {
- if (descriptor instanceof CommandParameter) {
- CommandParameter parameter = (CommandParameter) descriptor;
- if (parameter.getValue() != null) {
- if (AdapterFactoryEditingDomain.unwrap(parameter.getValue()) instanceof AbstractReader) {
- return true;
- }
- }
- }
- return false;
- }
-
protected void updateRootElementAddAction() {
addSmooks11ResourceListAction.setEnabled(false);
addMap10ResourceListAction.setEnabled(false);
Added: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/actions/AbstractSmooksActionGrouper.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/actions/AbstractSmooksActionGrouper.java (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/actions/AbstractSmooksActionGrouper.java 2009-07-27 05:45:04 UTC (rev 16790)
@@ -0,0 +1,29 @@
+package org.jboss.tools.smooks.configuration.editors.actions;
+
+import org.eclipse.emf.edit.command.CommandParameter;
+import org.eclipse.emf.edit.domain.AdapterFactoryEditingDomain;
+import org.eclipse.jface.action.MenuManager;
+
+public abstract class AbstractSmooksActionGrouper implements ISmooksActionGrouper {
+
+ public boolean belongsToGroup(Object descriptor) {
+ if (descriptor instanceof CommandParameter) {
+ CommandParameter parameter = (CommandParameter) descriptor;
+ if (parameter.getValue() != null) {
+ return canAdd(AdapterFactoryEditingDomain.unwrap(parameter.getValue()));
+ }
+ }
+ return false;
+ }
+
+ abstract protected boolean canAdd(Object value);
+
+ public void orderActions(MenuManager menuManager) {
+
+ }
+
+ public boolean isSeparator() {
+ return false;
+ }
+
+}
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/actions/AbstractSmooksActionGrouper.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/actions/Calc11ActionGrouper.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/actions/Calc11ActionGrouper.java (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/actions/Calc11ActionGrouper.java 2009-07-27 05:45:04 UTC (rev 16790)
@@ -0,0 +1,19 @@
+package org.jboss.tools.smooks.configuration.editors.actions;
+
+import org.jboss.tools.smooks.model.calc.Counter;
+
+public class Calc11ActionGrouper extends AbstractSmooksActionGrouper {
+
+ @Override
+ protected boolean canAdd(Object value) {
+ if (value instanceof Counter) {
+ return true;
+ }
+ return false;
+ }
+
+ public String getGroupName() {
+ return "Calc";
+ }
+
+}
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/actions/Calc11ActionGrouper.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/actions/Database11ActionGrouper.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/actions/Database11ActionGrouper.java (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/actions/Database11ActionGrouper.java 2009-07-27 05:45:04 UTC (rev 16790)
@@ -0,0 +1,19 @@
+package org.jboss.tools.smooks.configuration.editors.actions;
+
+import org.jboss.tools.smooks.model.dbrouting.ResultSetRowSelector;
+
+public class Database11ActionGrouper extends AbstractSmooksActionGrouper {
+
+ @Override
+ protected boolean canAdd(Object value) {
+ if (value instanceof ResultSetRowSelector) {
+ return true;
+ }
+ return false;
+ }
+
+ public String getGroupName() {
+ return "Database";
+ }
+
+}
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/actions/Database11ActionGrouper.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/actions/Datasources11ActionGrouper.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/actions/Datasources11ActionGrouper.java (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/actions/Datasources11ActionGrouper.java 2009-07-27 05:45:04 UTC (rev 16790)
@@ -0,0 +1,23 @@
+package org.jboss.tools.smooks.configuration.editors.actions;
+
+import org.jboss.tools.smooks.model.datasource.DataSourceJndi;
+import org.jboss.tools.smooks.model.datasource.Direct;
+
+public class Datasources11ActionGrouper extends AbstractSmooksActionGrouper {
+
+ @Override
+ protected boolean canAdd(Object value) {
+ if (value instanceof DataSourceJndi) {
+ return true;
+ }
+ if (value instanceof Direct) {
+ return true;
+ }
+ return false;
+ }
+
+ public String getGroupName() {
+ return "Datasources";
+ }
+
+}
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/actions/Datasources11ActionGrouper.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/actions/FragmentRouting11ActionGrouper.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/actions/FragmentRouting11ActionGrouper.java (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/actions/FragmentRouting11ActionGrouper.java 2009-07-27 05:45:04 UTC (rev 16790)
@@ -0,0 +1,31 @@
+package org.jboss.tools.smooks.configuration.editors.actions;
+
+import org.jboss.tools.smooks.model.dbrouting.Executor;
+import org.jboss.tools.smooks.model.esbrouting.RouteBean;
+import org.jboss.tools.smooks.model.fileRouting.OutputStream;
+import org.jboss.tools.smooks.model.jmsrouting.JmsRouter;
+
+public class FragmentRouting11ActionGrouper extends AbstractSmooksActionGrouper {
+
+ @Override
+ protected boolean canAdd(Object value) {
+ if (value instanceof JmsRouter) {
+ return true;
+ }
+ if (value instanceof OutputStream) {
+ return true;
+ }
+ if (value instanceof Executor) {
+ return true;
+ }
+ if (value instanceof RouteBean) {
+ return true;
+ }
+ return false;
+ }
+
+ public String getGroupName() {
+ return "Fragment Routing v1.1";
+ }
+
+}
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/actions/FragmentRouting11ActionGrouper.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/actions/FragmentRouting12ActionGrouper.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/actions/FragmentRouting12ActionGrouper.java (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/actions/FragmentRouting12ActionGrouper.java 2009-07-27 05:45:04 UTC (rev 16790)
@@ -0,0 +1,19 @@
+package org.jboss.tools.smooks.configuration.editors.actions;
+
+import org.jboss.tools.smooks.model.jmsrouting12.Router;
+
+public class FragmentRouting12ActionGrouper extends AbstractSmooksActionGrouper {
+
+ @Override
+ protected boolean canAdd(Object value) {
+ if (value instanceof Router) {
+ return true;
+ }
+ return false;
+ }
+
+ public String getGroupName() {
+ return "Fragment Routing v1.2";
+ }
+
+}
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/actions/FragmentRouting12ActionGrouper.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/actions/ISmooksActionGrouper.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/actions/ISmooksActionGrouper.java (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/actions/ISmooksActionGrouper.java 2009-07-27 05:45:04 UTC (rev 16790)
@@ -0,0 +1,28 @@
+/*******************************************************************************
+ * Copyright (c) 2008 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is 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:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.smooks.configuration.editors.actions;
+
+import org.eclipse.jface.action.MenuManager;
+
+/**
+ * @author Dart
+ *
+ */
+public interface ISmooksActionGrouper {
+
+ public boolean isSeparator();
+
+ public String getGroupName();
+
+ public void orderActions(MenuManager calcMenu);
+
+ public boolean belongsToGroup(Object descriptor);
+}
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/actions/ISmooksActionGrouper.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/actions/JavaBean11ActionGrouper.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/actions/JavaBean11ActionGrouper.java (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/actions/JavaBean11ActionGrouper.java 2009-07-27 05:45:04 UTC (rev 16790)
@@ -0,0 +1,19 @@
+package org.jboss.tools.smooks.configuration.editors.actions;
+
+import org.jboss.tools.smooks.model.javabean.BindingsType;
+
+public class JavaBean11ActionGrouper extends AbstractSmooksActionGrouper {
+
+ @Override
+ protected boolean canAdd(Object value) {
+ if (value instanceof BindingsType) {
+ return true;
+ }
+ return false;
+ }
+
+ public String getGroupName() {
+ return "Java Binding v1.1";
+ }
+
+}
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/actions/JavaBean11ActionGrouper.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/actions/JavaBean12ActionGrouper.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/actions/JavaBean12ActionGrouper.java (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/actions/JavaBean12ActionGrouper.java 2009-07-27 05:45:04 UTC (rev 16790)
@@ -0,0 +1,19 @@
+package org.jboss.tools.smooks.configuration.editors.actions;
+
+import org.jboss.tools.smooks.model.javabean12.BeanType;
+
+public class JavaBean12ActionGrouper extends AbstractSmooksActionGrouper {
+
+ @Override
+ protected boolean canAdd(Object value) {
+ if (value instanceof BeanType) {
+ return true;
+ }
+ return false;
+ }
+
+ public String getGroupName() {
+ return "Java Binding v1.2";
+ }
+
+}
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/actions/JavaBean12ActionGrouper.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/actions/PersistenceActionGrouper.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/actions/PersistenceActionGrouper.java (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/actions/PersistenceActionGrouper.java 2009-07-27 05:45:04 UTC (rev 16790)
@@ -0,0 +1,57 @@
+/*******************************************************************************
+ * Copyright (c) 2008 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is 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:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.smooks.configuration.editors.actions;
+
+import org.eclipse.emf.edit.domain.AdapterFactoryEditingDomain;
+import org.jboss.tools.smooks.model.persistence12.Deleter;
+import org.jboss.tools.smooks.model.persistence12.Flusher;
+import org.jboss.tools.smooks.model.persistence12.Inserter;
+import org.jboss.tools.smooks.model.persistence12.Locator;
+import org.jboss.tools.smooks.model.persistence12.Updater;
+
+/**
+ * @author Dart
+ *
+ */
+public class PersistenceActionGrouper extends AbstractSmooksActionGrouper {
+
+ public static final String NAME = "Persistence";
+
+
+
+ @Override
+ protected boolean canAdd(Object value) {
+ if (AdapterFactoryEditingDomain.unwrap(value) instanceof Inserter) {
+ return true;
+ }
+ if (AdapterFactoryEditingDomain.unwrap(value) instanceof Updater) {
+ return true;
+ }
+ if (AdapterFactoryEditingDomain.unwrap(value) instanceof Deleter) {
+ return true;
+ }
+ if (AdapterFactoryEditingDomain.unwrap(value) instanceof Locator) {
+ return true;
+ }
+ if (AdapterFactoryEditingDomain.unwrap(value) instanceof Flusher) {
+ return true;
+ }
+ return false;
+ }
+
+ /* (non-Javadoc)
+ * @see org.jboss.tools.smooks.configuration.editors.actions.ISmooksActionGrouper#getGroupName()
+ */
+ public String getGroupName() {
+ return NAME;
+ }
+
+}
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/actions/PersistenceActionGrouper.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/actions/Reader11ActionGrouper.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/actions/Reader11ActionGrouper.java (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/actions/Reader11ActionGrouper.java 2009-07-27 05:45:04 UTC (rev 16790)
@@ -0,0 +1,67 @@
+package org.jboss.tools.smooks.configuration.editors.actions;
+
+import org.eclipse.emf.edit.command.CommandParameter;
+import org.eclipse.emf.edit.domain.AdapterFactoryEditingDomain;
+import org.eclipse.jface.action.ActionContributionItem;
+import org.eclipse.jface.action.IAction;
+import org.eclipse.jface.action.IContributionItem;
+import org.eclipse.jface.action.MenuManager;
+import org.jboss.tools.smooks.configuration.actions.AddSmooksResourceAction;
+import org.jboss.tools.smooks.model.csv.CsvReader;
+import org.jboss.tools.smooks.model.edi.EDIReader;
+import org.jboss.tools.smooks.model.json.JsonReader;
+import org.jboss.tools.smooks.model.smooks.ReaderType;
+
+public class Reader11ActionGrouper extends AbstractSmooksActionGrouper {
+
+ @Override
+ protected boolean canAdd(Object value) {
+ if (value instanceof CsvReader) {
+ return true;
+ }
+ if (value instanceof EDIReader) {
+ return true;
+ }
+ if (value instanceof JsonReader) {
+ return true;
+ }
+ if (value instanceof ReaderType) {
+ return true;
+ }
+ return false;
+ }
+
+ public String getGroupName() {
+ return "Reader v1.1";
+ }
+
+ @Override
+ public void orderActions(MenuManager menuManager) {
+ IContributionItem[] items = menuManager.getItems();
+ for (int i = 0; i < items.length; i++) {
+ IContributionItem item = items[i];
+ if (item instanceof ActionContributionItem) {
+ IAction action = ((ActionContributionItem) item).getAction();
+ if (action instanceof AddSmooksResourceAction) {
+ AddSmooksResourceAction action1 = (AddSmooksResourceAction) action;
+ Object descriptor = action1.getDescriptor();
+ if (descriptor instanceof CommandParameter) {
+ CommandParameter parameter = (CommandParameter) descriptor;
+ if (parameter.getValue() != null) {
+ Object value = AdapterFactoryEditingDomain.unwrap(parameter.getValue());
+ if (value instanceof ReaderType) {
+ int index = items.length - 1;
+ menuManager.remove(item);
+ menuManager.insert(index, item);
+ return;
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+
+
+
+}
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/actions/Reader11ActionGrouper.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/actions/Reader12ActionGrouper.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/actions/Reader12ActionGrouper.java (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/actions/Reader12ActionGrouper.java 2009-07-27 05:45:04 UTC (rev 16790)
@@ -0,0 +1,57 @@
+package org.jboss.tools.smooks.configuration.editors.actions;
+
+import org.eclipse.jface.action.MenuManager;
+import org.jboss.tools.smooks.model.csv12.CSV12Reader;
+import org.jboss.tools.smooks.model.edi12.EDI12Reader;
+import org.jboss.tools.smooks.model.json12.Json12Reader;
+
+public class Reader12ActionGrouper extends AbstractSmooksActionGrouper {
+
+ @Override
+ protected boolean canAdd(Object value) {
+ if (value instanceof CSV12Reader) {
+ return true;
+ }
+ if (value instanceof EDI12Reader) {
+ return true;
+ }
+ if (value instanceof Json12Reader) {
+ return true;
+ }
+ return false;
+ }
+
+ public String getGroupName() {
+ return "Reader v1.2";
+ }
+
+ @Override
+ public void orderActions(MenuManager menuManager) {
+// IContributionItem[] items = menuManager.getItems();
+// for (int i = 0; i < items.length; i++) {
+// IContributionItem item = items[i];
+// if (item instanceof ActionContributionItem) {
+// IAction action = ((ActionContributionItem) item).getAction();
+// if (action instanceof AddSmooksResourceAction) {
+// AddSmooksResourceAction action1 = (AddSmooksResourceAction) action;
+// Object descriptor = action1.getDescriptor();
+// if (descriptor instanceof CommandParameter) {
+// CommandParameter parameter = (CommandParameter) descriptor;
+// if (parameter.getValue() != null) {
+// Object value = AdapterFactoryEditingDomain.unwrap(parameter.getValue());
+// if (value instanceof ReaderType) {
+// int index = items.length - 1;
+// menuManager.remove(item);
+// menuManager.insert(index, item);
+// return;
+// }
+// }
+// }
+// }
+// }
+// }
+ }
+
+
+
+}
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/actions/Reader12ActionGrouper.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/actions/Scripting11ActionGrouper.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/actions/Scripting11ActionGrouper.java (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/actions/Scripting11ActionGrouper.java 2009-07-27 05:45:04 UTC (rev 16790)
@@ -0,0 +1,19 @@
+package org.jboss.tools.smooks.configuration.editors.actions;
+
+import org.jboss.tools.smooks.model.groovy.Groovy;
+
+public class Scripting11ActionGrouper extends AbstractSmooksActionGrouper {
+
+ @Override
+ protected boolean canAdd(Object value) {
+ if (value instanceof Groovy) {
+ return true;
+ }
+ return false;
+ }
+
+ public String getGroupName() {
+ return "Scripting";
+ }
+
+}
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/actions/Scripting11ActionGrouper.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/actions/SeparatorActionGrouper.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/actions/SeparatorActionGrouper.java (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/actions/SeparatorActionGrouper.java 2009-07-27 05:45:04 UTC (rev 16790)
@@ -0,0 +1,57 @@
+/*******************************************************************************
+ * Copyright (c) 2008 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is 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:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.smooks.configuration.editors.actions;
+
+/**
+ * @author Dart
+ *
+ */
+public class SeparatorActionGrouper extends AbstractSmooksActionGrouper {
+
+ private String groupName = null;
+
+ public SeparatorActionGrouper(){
+ super();
+ }
+
+ public SeparatorActionGrouper(String groupName){
+ super();
+ setGroupName(groupName);
+ }
+
+ public void setGroupName(String groupName) {
+ this.groupName = groupName;
+ }
+
+ /* (non-Javadoc)
+ * @see org.jboss.tools.smooks.configuration.editors.actions.AbstractSmooksActionGrouper#canAdd(java.lang.Object)
+ */
+ @Override
+ protected boolean canAdd(Object value) {
+ return false;
+ }
+
+ /* (non-Javadoc)
+ * @see org.jboss.tools.smooks.configuration.editors.actions.ISmooksActionGrouper#getGroupName()
+ */
+ public String getGroupName() {
+ // TODO Auto-generated method stub
+ return groupName;
+ }
+
+ @Override
+ public boolean isSeparator() {
+ return true;
+ }
+
+
+
+}
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/actions/SeparatorActionGrouper.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/actions/Templating11ActionGrouper.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/actions/Templating11ActionGrouper.java (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/actions/Templating11ActionGrouper.java 2009-07-27 05:45:04 UTC (rev 16790)
@@ -0,0 +1,23 @@
+package org.jboss.tools.smooks.configuration.editors.actions;
+
+import org.jboss.tools.smooks.model.freemarker.Freemarker;
+import org.jboss.tools.smooks.model.xsl.Xsl;
+
+public class Templating11ActionGrouper extends AbstractSmooksActionGrouper {
+
+ @Override
+ protected boolean canAdd(Object value) {
+ if (value instanceof Freemarker) {
+ return true;
+ }
+ if (value instanceof Xsl) {
+ return true;
+ }
+ return false;
+ }
+
+ public String getGroupName() {
+ return "Templating";
+ }
+
+}
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/actions/Templating11ActionGrouper.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/actions/Validation10ActionGrouper.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/actions/Validation10ActionGrouper.java (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/actions/Validation10ActionGrouper.java 2009-07-27 05:45:04 UTC (rev 16790)
@@ -0,0 +1,23 @@
+package org.jboss.tools.smooks.configuration.editors.actions;
+
+import org.jboss.tools.smooks.model.rules10.RuleBasesType;
+import org.jboss.tools.smooks.model.validation10.RuleType;
+
+public class Validation10ActionGrouper extends AbstractSmooksActionGrouper {
+
+ @Override
+ protected boolean canAdd(Object value) {
+ if (value instanceof RuleType) {
+ return true;
+ }
+ if (value instanceof RuleBasesType) {
+ return true;
+ }
+ return false;
+ }
+
+ public String getGroupName() {
+ return "Validation";
+ }
+
+}
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/actions/Validation10ActionGrouper.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/editor/AbstractSmooksFormEditor.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/editor/AbstractSmooksFormEditor.java 2009-07-24 22:01:31 UTC (rev 16789)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/editor/AbstractSmooksFormEditor.java 2009-07-27 05:45:04 UTC (rev 16790)
@@ -59,9 +59,11 @@
import org.jboss.tools.smooks.model.calc.provider.CalcItemProviderAdapterFactory;
import org.jboss.tools.smooks.model.common.provider.CommonItemProviderAdapterFactory;
import org.jboss.tools.smooks.model.csv.provider.CsvItemProviderAdapterFactory;
+import org.jboss.tools.smooks.model.csv12.provider.Csv12ItemProviderAdapterFactory;
import org.jboss.tools.smooks.model.datasource.provider.DatasourceItemProviderAdapterFactory;
import org.jboss.tools.smooks.model.dbrouting.provider.DbroutingItemProviderAdapterFactory;
import org.jboss.tools.smooks.model.edi.provider.EdiItemProviderAdapterFactory;
+import org.jboss.tools.smooks.model.edi12.provider.Edi12ItemProviderAdapterFactory;
import org.jboss.tools.smooks.model.esbrouting.provider.EsbroutingItemProviderAdapterFactory;
import org.jboss.tools.smooks.model.fileRouting.provider.FileRoutingItemProviderAdapterFactory;
import org.jboss.tools.smooks.model.freemarker.provider.FreemarkerItemProviderAdapterFactory;
@@ -69,10 +71,16 @@
import org.jboss.tools.smooks.model.groovy.provider.GroovyItemProviderAdapterFactory;
import org.jboss.tools.smooks.model.iorouting.provider.IoroutingItemProviderAdapterFactory;
import org.jboss.tools.smooks.model.javabean.provider.JavabeanItemProviderAdapterFactory;
+import org.jboss.tools.smooks.model.javabean12.provider.Javabean12ItemProviderAdapterFactory;
import org.jboss.tools.smooks.model.jmsrouting.provider.JmsroutingItemProviderAdapterFactory;
+import org.jboss.tools.smooks.model.jmsrouting12.provider.Jmsrouting12ItemProviderAdapterFactory;
import org.jboss.tools.smooks.model.json.provider.JsonItemProviderAdapterFactory;
+import org.jboss.tools.smooks.model.json12.provider.Json12ItemProviderAdapterFactory;
import org.jboss.tools.smooks.model.medi.provider.MEdiItemProviderAdapterFactory;
+import org.jboss.tools.smooks.model.persistence12.provider.Persistence12ItemProviderAdapterFactory;
+import org.jboss.tools.smooks.model.rules10.provider.Rules10ItemProviderAdapterFactory;
import org.jboss.tools.smooks.model.smooks.provider.SmooksItemProviderAdapterFactory;
+import org.jboss.tools.smooks.model.validation10.provider.Validation10ItemProviderAdapterFactory;
import org.jboss.tools.smooks.model.xsl.provider.XslItemProviderAdapterFactory;
import org.jboss.tools.smooks10.model.smooks.util.SmooksResourceFactoryImpl;
@@ -191,9 +199,10 @@
}
}
- private void initEditingDomain() {
+ protected void initEditingDomain() {
adapterFactory = new ComposedAdapterFactory(ComposedAdapterFactory.Descriptor.Registry.INSTANCE);
-
+
+ // add smooks 1.1.2 EMF item provider model
adapterFactory.addAdapterFactory(new ResourceItemProviderAdapterFactory());
adapterFactory.addAdapterFactory(new XslItemProviderAdapterFactory());
adapterFactory.addAdapterFactory(new FreemarkerItemProviderAdapterFactory());
@@ -213,6 +222,17 @@
adapterFactory.addAdapterFactory(new FileRoutingItemProviderAdapterFactory());
adapterFactory.addAdapterFactory(new ReflectiveItemProviderAdapterFactory());
adapterFactory.addAdapterFactory(new EsbroutingItemProviderAdapterFactory());
+
+ // add smooks 1.2 EMF itemprovider
+ adapterFactory.addAdapterFactory(new Json12ItemProviderAdapterFactory());
+ adapterFactory.addAdapterFactory(new Edi12ItemProviderAdapterFactory());
+ adapterFactory.addAdapterFactory(new Javabean12ItemProviderAdapterFactory());
+ adapterFactory.addAdapterFactory(new Csv12ItemProviderAdapterFactory());
+ adapterFactory.addAdapterFactory(new Rules10ItemProviderAdapterFactory());
+ adapterFactory.addAdapterFactory(new Validation10ItemProviderAdapterFactory());
+ adapterFactory.addAdapterFactory(new Jmsrouting12ItemProviderAdapterFactory());
+ adapterFactory.addAdapterFactory(new Persistence12ItemProviderAdapterFactory());
+
BasicCommandStack commandStack = new BasicCommandStack();
handleCommandStack(commandStack);
editingDomain = new AdapterFactoryEditingDomain(adapterFactory, commandStack, new HashMap<Resource, Boolean>());
16 years, 8 months
JBoss Tools SVN: r16789 - in trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.override.ui: src/org/jboss/ide/eclipse/as/wtp/override/ui/propertypage and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: rob.stryker(a)jboss.com
Date: 2009-07-24 18:01:31 -0400 (Fri, 24 Jul 2009)
New Revision: 16789
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.override.ui/plugin.xml
trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.override.ui/src/org/jboss/ide/eclipse/as/wtp/override/ui/propertypage/AddModuleDependenciesPropertiesPage.java
Log:
JBIDE-4320 - more work on the properties page
Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.override.ui/plugin.xml
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.override.ui/plugin.xml 2009-07-24 21:54:30 UTC (rev 16788)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.override.ui/plugin.xml 2009-07-24 22:01:31 UTC (rev 16789)
@@ -10,7 +10,7 @@
<page
adaptable="true"
objectClass="org.eclipse.core.resources.IProject"
- name="Module Dependencies (JBT)"
+ name="Module Assembly"
class="org.jboss.ide.eclipse.as.wtp.override.ui.propertypage.ModuleAssemblyRootPage"
id="org.jboss.ide.eclipse.as.wtp.override.ui.J2EEDependenciesPage">
<enabledWhen>
Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.override.ui/src/org/jboss/ide/eclipse/as/wtp/override/ui/propertypage/AddModuleDependenciesPropertiesPage.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.override.ui/src/org/jboss/ide/eclipse/as/wtp/override/ui/propertypage/AddModuleDependenciesPropertiesPage.java 2009-07-24 21:54:30 UTC (rev 16788)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.override.ui/src/org/jboss/ide/eclipse/as/wtp/override/ui/propertypage/AddModuleDependenciesPropertiesPage.java 2009-07-24 22:01:31 UTC (rev 16789)
@@ -190,7 +190,7 @@
}
protected void createPushButtons() {
- addMappingButton = createPushButton("Add Resource Mapping...");
+ addMappingButton = createPushButton("Add Folder...");
addReferenceButton = createPushButton("Add Reference...");
removeButton = createPushButton("Remove selected");
}
16 years, 8 months
JBoss Tools SVN: r16788 - in trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.override.ui: src/org/jboss/ide/eclipse/as/wtp/override/ui and 2 other directories.
by jbosstools-commits@lists.jboss.org
Author: rob.stryker(a)jboss.com
Date: 2009-07-24 17:54:30 -0400 (Fri, 24 Jul 2009)
New Revision: 16788
Added:
trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.override.ui/src/org/jboss/ide/eclipse/as/wtp/override/ui/propertypage/AddFolderDialog.java
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.override.ui/META-INF/MANIFEST.MF
trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.override.ui/src/org/jboss/ide/eclipse/as/wtp/override/ui/WTPOveridePlugin.java
trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.override.ui/src/org/jboss/ide/eclipse/as/wtp/override/ui/propertypage/AddModuleDependenciesPropertiesPage.java
trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.override.ui/src/org/jboss/ide/eclipse/as/wtp/override/ui/propertypage/ComponentDependencyContentProvider.java
trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.override.ui/src/org/jboss/ide/eclipse/as/wtp/override/ui/propertypage/ModuleAssemblyRootPage.java
trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.override.ui/src/org/jboss/ide/eclipse/as/wtp/override/ui/propertypage/impl/EarModuleDependenciesPropertyPage.java
Log:
JBIDE-4320 - more work on the properties page
Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.override.ui/META-INF/MANIFEST.MF
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.override.ui/META-INF/MANIFEST.MF 2009-07-24 19:47:01 UTC (rev 16787)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.override.ui/META-INF/MANIFEST.MF 2009-07-24 21:54:30 UTC (rev 16788)
@@ -24,7 +24,8 @@
org.jboss.ide.eclipse.as.wtp.override.core;bundle-version="1.0.0",
org.eclipse.wst.server.ui;bundle-version="1.1.102",
org.eclipse.wst.server.core;bundle-version="1.1.101",
- org.eclipse.wst.common.emfworkbench.integration;bundle-version="1.1.300"
+ org.eclipse.wst.common.emfworkbench.integration;bundle-version="1.1.300",
+ org.eclipse.emf.ecore;bundle-version="2.5.0"
Bundle-ActivationPolicy: lazy
Bundle-RequiredExecutionEnvironment: J2SE-1.5
Bundle-Vendor: JBoss by Red Hat
Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.override.ui/src/org/jboss/ide/eclipse/as/wtp/override/ui/WTPOveridePlugin.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.override.ui/src/org/jboss/ide/eclipse/as/wtp/override/ui/WTPOveridePlugin.java 2009-07-24 19:47:01 UTC (rev 16787)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.override.ui/src/org/jboss/ide/eclipse/as/wtp/override/ui/WTPOveridePlugin.java 2009-07-24 21:54:30 UTC (rev 16788)
@@ -1,6 +1,8 @@
package org.jboss.ide.eclipse.as.wtp.override.ui;
+import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.Platform;
import org.eclipse.core.runtime.Status;
import org.eclipse.ui.plugin.AbstractUIPlugin;
import org.osgi.framework.BundleContext;
@@ -57,5 +59,29 @@
IStatus status = new Status(IStatus.ERROR, PLUGIN_ID, message, e);
getDefault().getLog().log(status);
}
+ public static IStatus createStatus(int severity, int aCode,
+ String aMessage, Throwable exception) {
+ return new Status(severity, PLUGIN_ID, aCode,
+ aMessage != null ? aMessage : "No message.", exception); //$NON-NLS-1$
+ }
+ public static IStatus createErrorStatus(int aCode, String aMessage,
+ Throwable exception) {
+ return createStatus(IStatus.ERROR, aCode, aMessage, exception);
+ }
+ public static IStatus createStatus(int severity, String message, Throwable exception) {
+ return new Status(severity, PLUGIN_ID, message, exception);
+ }
+
+ public static IStatus createStatus(int severity, String message) {
+ return createStatus(severity, message, null);
+ }
+ public static void logError(Throwable exception) {
+ Platform.getLog(Platform.getBundle(PLUGIN_ID)).log( createStatus(IStatus.ERROR, exception.getMessage(), exception));
+ }
+
+ public static void logError(CoreException exception) {
+ Platform.getLog(Platform.getBundle(PLUGIN_ID)).log( exception.getStatus() );
+ }
+
}
Added: trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.override.ui/src/org/jboss/ide/eclipse/as/wtp/override/ui/propertypage/AddFolderDialog.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.override.ui/src/org/jboss/ide/eclipse/as/wtp/override/ui/propertypage/AddFolderDialog.java (rev 0)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.override.ui/src/org/jboss/ide/eclipse/as/wtp/override/ui/propertypage/AddFolderDialog.java 2009-07-24 21:54:30 UTC (rev 16788)
@@ -0,0 +1,133 @@
+package org.jboss.ide.eclipse.as.wtp.override.ui.propertypage;
+
+import org.eclipse.core.resources.IContainer;
+import org.eclipse.core.resources.IProject;
+import org.eclipse.core.resources.IResource;
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.jface.dialogs.TitleAreaDialog;
+import org.eclipse.jface.viewers.ISelectionChangedListener;
+import org.eclipse.jface.viewers.IStructuredSelection;
+import org.eclipse.jface.viewers.ITreeContentProvider;
+import org.eclipse.jface.viewers.LabelProvider;
+import org.eclipse.jface.viewers.SelectionChangedEvent;
+import org.eclipse.jface.viewers.TreeViewer;
+import org.eclipse.jface.viewers.Viewer;
+import org.eclipse.jface.viewers.ViewerFilter;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.swt.layout.GridData;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Control;
+import org.eclipse.swt.widgets.Shell;
+import org.eclipse.ui.ISharedImages;
+import org.eclipse.ui.PlatformUI;
+
+public class AddFolderDialog extends TitleAreaDialog {
+ private IProject project;
+ private TreeViewer viewer;
+ private IContainer selected = null;
+ public AddFolderDialog(Shell parentShell, IProject project) {
+ super(parentShell);
+ this.project = project;
+ }
+
+ protected void configureShell(Shell shell) {
+ super.configureShell(shell);
+ shell.setText("Add Folder");
+ shell.setBounds(shell.getLocation().x, shell.getLocation().y, 400,300);
+ }
+
+ protected Control createDialogArea(Composite parent) {
+ Composite c = (Composite)super.createDialogArea(parent);
+ this.viewer = new TreeViewer(c, SWT.SINGLE | SWT.H_SCROLL | SWT.V_SCROLL | SWT.BORDER);
+ viewer.setContentProvider(getContentProvider());
+ viewer.setLabelProvider(getLabelProvider());
+ viewer.addFilter(getFilter());
+ viewer.setInput(project);
+ viewer.getTree().setLayoutData(new GridData(GridData.FILL_BOTH));
+ viewer.addSelectionChangedListener(getListener());
+ return c;
+ }
+
+ protected ISelectionChangedListener getListener() {
+ return new ISelectionChangedListener() {
+ public void selectionChanged(SelectionChangedEvent event) {
+ IStructuredSelection sel = (IStructuredSelection)viewer.getSelection();
+ Object first = sel.getFirstElement();
+ if( first instanceof IContainer)
+ selected = (IContainer)first;
+ }
+ };
+ }
+
+ public IContainer getSelected() {
+ return selected;
+ }
+
+ protected ViewerFilter getFilter() {
+ return new ViewerFilter() {
+ public boolean select(Viewer viewer, Object parentElement,
+ Object element) {
+ return element instanceof IContainer;
+ }
+ };
+ }
+
+ protected ITreeContentProvider getContentProvider() {
+ return new ITreeContentProvider() {
+
+ public void inputChanged(Viewer viewer, Object oldInput, Object newInput) {
+ }
+
+ public void dispose() {
+ }
+
+ public Object[] getElements(Object inputElement) {
+ try {
+ return project.members();
+ } catch( CoreException ce ) {
+ return new Object[]{};
+ }
+ }
+
+ public boolean hasChildren(Object element) {
+ if( element instanceof IContainer) {
+ try {
+ return ((IContainer)element).members().length > 0;
+ } catch( CoreException ce ) {
+ }
+ }
+ return false;
+ }
+
+ public Object getParent(Object element) {
+ if( element instanceof IResource)
+ return ((IResource)element).getParent();
+ return null;
+ }
+
+ public Object[] getChildren(Object parentElement) {
+ if( parentElement instanceof IContainer) {
+ try {
+ return ((IContainer)parentElement).members();
+ } catch( CoreException ce ) {
+ }
+ }
+ return new Object[]{};
+ }
+ };
+ }
+
+ protected LabelProvider getLabelProvider() {
+ return new LabelProvider() {
+ public Image getImage(Object element) {
+ return PlatformUI.getWorkbench().getSharedImages().getImage(ISharedImages.IMG_OBJ_FOLDER);
+ }
+ public String getText(Object element) {
+ if( element instanceof IResource)
+ return ((IResource)element).getName();
+ return element.toString();
+ }
+ };
+ }
+}
Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.override.ui/src/org/jboss/ide/eclipse/as/wtp/override/ui/propertypage/AddModuleDependenciesPropertiesPage.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.override.ui/src/org/jboss/ide/eclipse/as/wtp/override/ui/propertypage/AddModuleDependenciesPropertiesPage.java 2009-07-24 19:47:01 UTC (rev 16787)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.override.ui/src/org/jboss/ide/eclipse/as/wtp/override/ui/propertypage/AddModuleDependenciesPropertiesPage.java 2009-07-24 21:54:30 UTC (rev 16788)
@@ -20,6 +20,7 @@
import java.util.Map;
import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.resources.IContainer;
import org.eclipse.core.resources.IProject;
import org.eclipse.core.resources.IWorkspaceRoot;
import org.eclipse.core.resources.IWorkspaceRunnable;
@@ -44,7 +45,6 @@
import org.eclipse.jface.window.Window;
import org.eclipse.jface.wizard.WizardDialog;
import org.eclipse.jst.j2ee.internal.plugin.J2EEUIMessages;
-import org.eclipse.jst.j2ee.internal.plugin.J2EEUIPlugin;
import org.eclipse.swt.SWT;
import org.eclipse.swt.graphics.Point;
import org.eclipse.swt.graphics.Rectangle;
@@ -66,10 +66,14 @@
import org.eclipse.ui.PlatformUI;
import org.eclipse.wst.common.componentcore.ComponentCore;
import org.eclipse.wst.common.componentcore.datamodel.properties.ICreateReferenceComponentsDataModelProperties;
+import org.eclipse.wst.common.componentcore.internal.ComponentResource;
+import org.eclipse.wst.common.componentcore.internal.StructureEdit;
+import org.eclipse.wst.common.componentcore.internal.WorkbenchComponent;
import org.eclipse.wst.common.componentcore.internal.operation.CreateReferenceComponentsDataModelProvider;
import org.eclipse.wst.common.componentcore.internal.operation.RemoveReferenceComponentsDataModelProvider;
import org.eclipse.wst.common.componentcore.internal.resources.VirtualArchiveComponent;
import org.eclipse.wst.common.componentcore.resources.IVirtualComponent;
+import org.eclipse.wst.common.componentcore.resources.IVirtualFolder;
import org.eclipse.wst.common.componentcore.resources.IVirtualReference;
import org.eclipse.wst.common.frameworks.datamodel.DataModelFactory;
import org.eclipse.wst.common.frameworks.datamodel.IDataModel;
@@ -77,6 +81,7 @@
import org.eclipse.wst.common.frameworks.datamodel.IDataModelProvider;
import org.jboss.ide.eclipse.as.wtp.override.core.vcf.ComponentUtils;
import org.jboss.ide.eclipse.as.wtp.override.ui.Messages;
+import org.jboss.ide.eclipse.as.wtp.override.ui.WTPOveridePlugin;
public class AddModuleDependenciesPropertiesPage implements Listener,
IModuleDependenciesControl {
@@ -99,14 +104,19 @@
protected Listener tableListener;
protected Listener labelListener;
+ // Mappings that existed when the page was opened (or last saved)
protected HashMap<IVirtualComponent, String> oldComponentToRuntimePath = new HashMap<IVirtualComponent, String>();
- // This should keep a list of all elements currently in the list (not removed)
+ // Mappings that are current
protected HashMap<IVirtualComponent, String> objectToRuntimePath = new HashMap<IVirtualComponent, String>();
- protected HashMap<Object, Object> oldResourceMappings = new HashMap<Object, Object>();
- protected HashMap<Object, Object> newResourceMappings = new HashMap<Object, Object>();
+ // A single list of wb-resource mappings. If there's any change,
+ // all old will be removed and new ones added
+ protected ArrayList<ComponentResourceProxy> resourceMappings = new ArrayList<ComponentResourceProxy>();
+ // keeps track if a change has occurred in wb-resource mappings
+ protected boolean resourceMappingsChanged = false;
+
/**
* Constructor for AddModulestoEARPropertiesControl.
*/
@@ -150,7 +160,7 @@
availableModules = new Label(listGroup, SWT.NONE);
gData = new GridData(GridData.HORIZONTAL_ALIGN_FILL
| GridData.VERTICAL_ALIGN_FILL);
- availableModules.setText("Available dependent modules"); //$NON-NLS-1$
+ availableModules.setText("Module Assembly"); //$NON-NLS-1$
availableModules.setLayoutData(gData);
createTableComposite(listGroup);
}
@@ -219,6 +229,7 @@
ComponentDependencyContentProvider provider = createProvider();
provider.setRuntimePaths(objectToRuntimePath);
+ provider.setResourceMappings(resourceMappings);
availableComponentsViewer.setContentProvider(provider);
availableComponentsViewer.setLabelProvider(provider);
addTableListeners();
@@ -383,14 +394,26 @@
}
public Object getValue(Object element, String property) {
- return objectToRuntimePath.get(element) == null ? new Path("/") //$NON-NLS-1$
- .toString() : objectToRuntimePath.get(element);
+ Object data = element; //((TableItem)element).getData();
+ if( data instanceof IVirtualComponent ) {
+ return objectToRuntimePath.get(element) == null ? new Path("/") //$NON-NLS-1$
+ .toString() : objectToRuntimePath.get(element);
+ } else if( data instanceof ComponentResourceProxy) {
+ return ((ComponentResourceProxy)data).runtimePath.toString();
+ }
+ return new Path("/");
}
public void modify(Object element, String property, Object value) {
if (property.equals(DEPLOY_PATH_PROPERTY)) {
TableItem item = (TableItem) element;
- objectToRuntimePath.put((IVirtualComponent)item.getData(), (String) value);
+ if( item.getData() instanceof IVirtualComponent) {
+ objectToRuntimePath.put((IVirtualComponent)item.getData(), (String) value);
+ } else if( item.getData() instanceof ComponentResourceProxy) {
+ ComponentResourceProxy c = ((ComponentResourceProxy)item.getData());
+ c.runtimePath = new Path((String)value);
+ resourceMappingsChanged = true;
+ }
refresh();
}
}
@@ -407,7 +430,16 @@
}
protected void handleAddMappingButton() {
-
+ AddFolderDialog afd = new AddFolderDialog(addMappingButton.getShell(), project);
+ if( afd.open() == Window.OK) {
+ IContainer c = afd.getSelected();
+ if( c != null ) {
+ IPath p = c.getProjectRelativePath();
+ ComponentResourceProxy proxy = new ComponentResourceProxy(p, new Path("/"));
+ resourceMappings.add(proxy);
+ refresh();
+ }
+ }
}
protected void handleAddReferenceButton() {
@@ -437,7 +469,10 @@
ISelection sel = availableComponentsViewer.getSelection();
if( sel instanceof IStructuredSelection ) {
Object o = ((IStructuredSelection)sel).getFirstElement();
- objectToRuntimePath.remove(o);
+ if( o instanceof IVirtualComponent)
+ objectToRuntimePath.remove(o);
+ else if( o instanceof ComponentResourceProxy)
+ resourceMappings.remove(o);
refresh();
}
}
@@ -518,9 +553,41 @@
objectToRuntimePath.put(comp, val);
oldComponentToRuntimePath.put((IVirtualComponent) comp, val);
}
+
+ ComponentResource[] allMappings = findAllMappings();
+ for( int i = 0; i < allMappings.length; i++ ) {
+ resourceMappings.add(new ComponentResourceProxy(
+ allMappings[i].getSourcePath(), allMappings[i].getRuntimePath()
+ ));
+ }
hasInitialized = true;
}
+ protected ComponentResource[] findAllMappings() {
+ StructureEdit structureEdit = null;
+ try {
+ structureEdit = StructureEdit.getStructureEditForRead(project);
+ WorkbenchComponent component = structureEdit.getComponent();
+ Object[] arr = component.getResources().toArray();
+ ComponentResource[] result = new ComponentResource[arr.length];
+ for( int i = 0; i < arr.length; i++ )
+ result[i] = (ComponentResource)arr[i];
+ return result;
+ } catch(Exception e) {
+ } finally {
+ structureEdit.dispose();
+ }
+ return new ComponentResource[]{};
+ }
+
+ public class ComponentResourceProxy {
+ public IPath source, runtimePath;
+ public ComponentResourceProxy(IPath source, IPath runtimePath) {
+ this.source = source;
+ this.runtimePath = runtimePath;
+ }
+ }
+
/*
* Clean-up methods are below. These include performCancel, performDefaults,
* performOK, and any other methods that are called *only* by this one.
@@ -563,12 +630,46 @@
}
public boolean performOk() {
- // grab what's checked
- ArrayList<IVirtualComponent> checked = new ArrayList<IVirtualComponent>();
- TableItem[] items = availableComponentsViewer.getTable().getItems();
- for (int i = 0; i < items.length; i++)
- checked.add((IVirtualComponent)items[i].getData());
-
+ boolean result = true;
+ result &= saveResourceChanges();
+ result &= saveReferenceChanges();
+ return result;
+ }
+
+ protected boolean saveResourceChanges() {
+ removeAllResourceMappings();
+ addNewResourceMappings();
+ return true;
+ }
+ protected boolean addNewResourceMappings() {
+ ComponentResourceProxy[] proxies = (ComponentResourceProxy[]) resourceMappings.toArray(new ComponentResourceProxy[resourceMappings.size()]);
+ IVirtualFolder rootFolder = rootComponent.getRootFolder();
+ for( int i = 0; i < proxies.length; i++ ) {
+ try {
+ rootFolder.getFolder(proxies[i].runtimePath).createLink(proxies[i].source, 0, null);
+ } catch( CoreException ce ) {
+ }
+ }
+ resourceMappingsChanged = false;
+ return true;
+ }
+
+ protected boolean removeAllResourceMappings() {
+ StructureEdit moduleCore = null;
+ try {
+ moduleCore = StructureEdit.getStructureEditForWrite(project);
+ moduleCore.getComponent().getResources().clear();
+ }
+ finally {
+ if (moduleCore != null) {
+ moduleCore.saveIfNecessary(new NullProgressMonitor());
+ moduleCore.dispose();
+ }
+ }
+ return true;
+ }
+
+ protected boolean saveReferenceChanges() {
// Fill our delta lists
ArrayList<IVirtualComponent> added = new ArrayList<IVirtualComponent>();
ArrayList<IVirtualComponent> removed = new ArrayList<IVirtualComponent>();
@@ -623,7 +724,8 @@
added2.addAll(added);
added2.addAll(changed);
- // meld the changed into the added / removed
+ // meld the changed into the added / removed for less efficiency ;)
+ // basically we lack "change" operations and only have add / remove
handleRemoved(removed2);
handleAdded(added2);
}
@@ -637,7 +739,7 @@
IDataModelOperation operation = getRemoveComponentOperation(component);
operation.execute(null, null);
} catch( ExecutionException e) {
- J2EEUIPlugin.logError(e);
+ WTPOveridePlugin.logError(e);
}
}
}
@@ -693,9 +795,9 @@
}
};
try {
- J2EEUIPlugin.getWorkspace().run(runnable, new NullProgressMonitor());
+ ResourcesPlugin.getWorkspace().run(runnable, new NullProgressMonitor());
} catch( CoreException e ) {
- J2EEUIPlugin.logError(e);
+ WTPOveridePlugin.logError(e);
}
}
@@ -733,7 +835,7 @@
try {
dm.getDefaultOperation().execute(new NullProgressMonitor(), null);
} catch (ExecutionException e) {
- J2EEUIPlugin.logError(e);
+ WTPOveridePlugin.logError(e);
}
}
/**
Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.override.ui/src/org/jboss/ide/eclipse/as/wtp/override/ui/propertypage/ComponentDependencyContentProvider.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.override.ui/src/org/jboss/ide/eclipse/as/wtp/override/ui/propertypage/ComponentDependencyContentProvider.java 2009-07-24 19:47:01 UTC (rev 16787)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.override.ui/src/org/jboss/ide/eclipse/as/wtp/override/ui/propertypage/ComponentDependencyContentProvider.java 2009-07-24 21:54:30 UTC (rev 16788)
@@ -11,6 +11,7 @@
*******************************************************************************/
package org.jboss.ide.eclipse.as.wtp.override.ui.propertypage;
+import java.util.ArrayList;
import java.util.HashMap;
import org.eclipse.core.resources.IProject;
@@ -22,8 +23,10 @@
import org.eclipse.jface.viewers.LabelProvider;
import org.eclipse.jface.viewers.Viewer;
import org.eclipse.swt.graphics.Image;
+import org.eclipse.wst.common.componentcore.internal.ComponentResource;
import org.eclipse.wst.common.componentcore.internal.resources.VirtualArchiveComponent;
import org.eclipse.wst.common.componentcore.resources.IVirtualComponent;
+import org.jboss.ide.eclipse.as.wtp.override.ui.propertypage.AddModuleDependenciesPropertiesPage.ComponentResourceProxy;
/*
@@ -39,7 +42,7 @@
final static String PATH_SEPARATOR = String.valueOf(IPath.SEPARATOR);
private HashMap<IVirtualComponent, String> runtimePaths;
-
+ private ArrayList<ComponentResourceProxy> resourceMappings;
public ComponentDependencyContentProvider() {
super();
}
@@ -47,12 +50,19 @@
public void setRuntimePaths(HashMap<IVirtualComponent, String> paths) {
this.runtimePaths = paths;
}
+
+ public void setResourceMappings(ArrayList<ComponentResourceProxy> mappings) {
+ this.resourceMappings = mappings;
+ }
public Object[] getElements(Object inputElement) {
Object[] empty = new Object[0];
if( !(inputElement instanceof IWorkspaceRoot))
return empty;
- return runtimePaths.keySet().toArray();
+ ArrayList<Object> list = new ArrayList<Object>();
+ list.addAll(resourceMappings);
+ list.addAll(runtimePaths.keySet());
+ return list.toArray();
}
public Image getColumnImage(Object element, int columnIndex) {
@@ -60,6 +70,12 @@
}
public String getColumnText(Object element, int columnIndex) {
+ if( element instanceof ComponentResourceProxy) {
+ if( columnIndex == 0 )
+ return ((ComponentResourceProxy)element).runtimePath.toString();
+ else if( columnIndex == 1 )
+ return ((ComponentResourceProxy)element).source.toString();
+ }
if (element instanceof IVirtualComponent) {
IVirtualComponent comp = (IVirtualComponent)element;
if (columnIndex == 0) {
Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.override.ui/src/org/jboss/ide/eclipse/as/wtp/override/ui/propertypage/ModuleAssemblyRootPage.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.override.ui/src/org/jboss/ide/eclipse/as/wtp/override/ui/propertypage/ModuleAssemblyRootPage.java 2009-07-24 19:47:01 UTC (rev 16787)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.override.ui/src/org/jboss/ide/eclipse/as/wtp/override/ui/propertypage/ModuleAssemblyRootPage.java 2009-07-24 21:54:30 UTC (rev 16788)
@@ -26,29 +26,12 @@
import org.eclipse.wst.common.componentcore.ComponentCore;
import org.eclipse.wst.common.project.facet.core.IFacetedProject;
import org.eclipse.wst.common.project.facet.core.ProjectFacetsManager;
-import org.jboss.ide.eclipse.as.wtp.override.ui.Messages;
-import org.jboss.ide.eclipse.as.wtp.override.ui.propertypage.impl.EarModuleDependenciesPropertyPage;
-
-/*
- * The only change in this file between here and upstream is
- * the method createEARContent
- *
- * We'd obviously prefer to remove the extension of the superclass here
- * but elements in the web ui demand we be a part of that tree for right now
- * Also we'd switch to depending on IModuleDependenciesControl (local)
- */
-
/**
- * Primary project property page for J2EE dependencies; content is dynamically
- * generated based on the project facets and will be comprised by a
- * set of IJ2EEDependenciesControl implementations.
- *
+ * Primary project property page for Module dependencies;
*/
public class ModuleAssemblyRootPage extends PropertyPage {
- public String DESCRIPTION = Messages.J2EEDependenciesPage_Description;
-
private IProject project;
private IModuleDependenciesControl[] controls = new IModuleDependenciesControl[0];
@@ -57,15 +40,13 @@
}
private Composite getFacetErrorComposite(final Composite parent) {
- final String errorCheckingFacet = Messages.J2EEDependenciesPage_ErrorCheckingFacets;
+ final String errorCheckingFacet = "Error Checking Project Facets";
setErrorMessage(errorCheckingFacet);
- setValid(false);
return getErrorComposite(parent, errorCheckingFacet);
}
private Composite getVirtCompErrorComposite(final Composite parent) {
final String errorCheckingFacet = "The given project is not a virtual component project";
setErrorMessage(errorCheckingFacet);
- setValid(false);
return getErrorComposite(parent, errorCheckingFacet);
}
Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.override.ui/src/org/jboss/ide/eclipse/as/wtp/override/ui/propertypage/impl/EarModuleDependenciesPropertyPage.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.override.ui/src/org/jboss/ide/eclipse/as/wtp/override/ui/propertypage/impl/EarModuleDependenciesPropertyPage.java 2009-07-24 19:47:01 UTC (rev 16787)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.override.ui/src/org/jboss/ide/eclipse/as/wtp/override/ui/propertypage/impl/EarModuleDependenciesPropertyPage.java 2009-07-24 21:54:30 UTC (rev 16788)
@@ -1,136 +1,29 @@
package org.jboss.ide.eclipse.as.wtp.override.ui.propertypage.impl;
import java.util.ArrayList;
-import java.util.Set;
-import org.eclipse.core.commands.ExecutionException;
import org.eclipse.core.resources.IProject;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.NullProgressMonitor;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.jface.dialogs.Dialog;
-import org.eclipse.jface.dialogs.MessageDialog;
import org.eclipse.jst.j2ee.application.internal.operations.AddComponentToEnterpriseApplicationDataModelProvider;
import org.eclipse.jst.j2ee.application.internal.operations.RemoveComponentFromEnterpriseApplicationDataModelProvider;
-import org.eclipse.jst.j2ee.internal.J2EEConstants;
-import org.eclipse.jst.j2ee.internal.J2EEVersionConstants;
import org.eclipse.jst.j2ee.internal.common.classpath.J2EEComponentClasspathUpdater;
-import org.eclipse.jst.j2ee.internal.dialogs.ChangeLibDirDialog;
-import org.eclipse.jst.j2ee.internal.plugin.J2EEUIMessages;
-import org.eclipse.jst.j2ee.internal.plugin.J2EEUIPlugin;
-import org.eclipse.jst.j2ee.model.IEARModelProvider;
-import org.eclipse.jst.j2ee.model.ModelProviderManager;
-import org.eclipse.jst.j2ee.project.EarUtilities;
-import org.eclipse.jst.j2ee.project.JavaEEProjectUtilities;
-import org.eclipse.jst.j2ee.project.facet.EarFacetRuntimeHandler;
-import org.eclipse.jst.javaee.application.Application;
import org.eclipse.jst.jee.project.facet.EarCreateDeploymentFilesDataModelProvider;
import org.eclipse.jst.jee.project.facet.ICreateDeploymentFilesDataModelProperties;
-import org.eclipse.swt.widgets.Button;
-import org.eclipse.swt.widgets.Event;
-import org.eclipse.ui.PlatformUI;
import org.eclipse.wst.common.componentcore.resources.IVirtualComponent;
-import org.eclipse.wst.common.componentcore.resources.IVirtualFile;
import org.eclipse.wst.common.frameworks.datamodel.DataModelFactory;
import org.eclipse.wst.common.frameworks.datamodel.IDataModel;
import org.eclipse.wst.common.frameworks.datamodel.IDataModelOperation;
import org.eclipse.wst.common.frameworks.datamodel.IDataModelProvider;
-import org.eclipse.wst.common.project.facet.core.IFacetedProject;
-import org.eclipse.wst.common.project.facet.core.IProjectFacetVersion;
-import org.eclipse.wst.common.project.facet.core.ProjectFacetsManager;
import org.jboss.ide.eclipse.as.wtp.override.ui.propertypage.AddModuleDependenciesPropertiesPage;
import org.jboss.ide.eclipse.as.wtp.override.ui.propertypage.ModuleAssemblyRootPage;
public class EarModuleDependenciesPropertyPage extends
AddModuleDependenciesPropertiesPage {
- protected Button changeLibPathButton;
- protected String libDir = null;
- protected String oldLibDir;
- protected boolean isVersion5;
public EarModuleDependenciesPropertyPage(IProject project,
ModuleAssemblyRootPage page) {
super(project, page);
- initMemberVariables();
}
- protected void initMemberVariables() {
- boolean hasEE5Facet = false;
- try {
- IFacetedProject facetedProject = ProjectFacetsManager.create(project);
- if(facetedProject != null){
- IProjectFacetVersion facetVersion = facetedProject.getProjectFacetVersion(EarUtilities.ENTERPRISE_APPLICATION_FACET);
- if(facetVersion.equals(EarUtilities.ENTERPRISE_APPLICATION_50)){
- hasEE5Facet = true;
- }
- }
- } catch (CoreException e) {
- J2EEUIPlugin.logError(e);
- }
-
- if(hasEE5Facet){
- String earDDVersion = JavaEEProjectUtilities.getJ2EEDDProjectVersion(project);
- if (earDDVersion.equals(J2EEVersionConstants.VERSION_5_0_TEXT)) {
- isVersion5 = true;
- Application app = (Application)ModelProviderManager.getModelProvider(project).getModelObject();
- if (app != null)
- oldLibDir = app.getLibraryDirectory();
- if (oldLibDir == null) oldLibDir = J2EEConstants.EAR_DEFAULT_LIB_DIR;
- libDir = oldLibDir;
- }
- }
- }
-
- protected void createPushButtons() {
- super.createPushButtons();
- if (isVersion5)
- changeLibPathButton = createPushButton(J2EEUIMessages.getResourceString(J2EEUIMessages.CHANGE_LIB_DIR));
-
- }
-
- public void handleEvent(Event event) {
- if( event.widget == changeLibPathButton)
- handleChangeLibDirButton(true);
- else
- super.handleEvent(event);
- }
-
-
- private void handleChangeLibDirButton(boolean warnBlank) {
- IVirtualFile vFile = rootComponent.getRootFolder().getFile(new Path(J2EEConstants.APPLICATION_DD_URI));
- if (!vFile.exists()) {
- if (!MessageDialog.openQuestion(null,
- J2EEUIMessages.getResourceString(J2EEUIMessages.NO_DD_MSG_TITLE),
- J2EEUIMessages.getResourceString(J2EEUIMessages.GEN_DD_QUESTION))) return;
- createDD(new NullProgressMonitor());
- }
- Application app = (Application)ModelProviderManager.getModelProvider(project).getModelObject();
- if (libDir == null) {
- libDir = app.getLibraryDirectory();
- if (libDir == null) libDir = J2EEConstants.EAR_DEFAULT_LIB_DIR;
- }
-
- ChangeLibDirDialog dlg = new ChangeLibDirDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow()
- .getShell(), libDir, warnBlank);
- if (dlg.open() == Dialog.CANCEL) return;
- libDir = dlg.getValue().trim();
- if (libDir.length() > 0) {
- if (!libDir.startsWith(J2EEConstants.EAR_ROOT_DIR)) libDir = IPath.SEPARATOR + libDir;
- }
- }
-
- protected void createDD(IProgressMonitor monitor) {
- if( rootComponent != null ){
- IDataModelOperation op = generateEARDDOperation();
- try {
- op.execute(monitor, null);
- } catch (ExecutionException e) {
- J2EEUIPlugin.logError(e);
- }
- }
- }
-
protected IDataModelOperation generateEARDDOperation() {
IDataModel model = DataModelFactory.createDataModel(new EarCreateDeploymentFilesDataModelProvider());
model.setProperty(ICreateDeploymentFilesDataModelProperties.GENERATE_DD, rootComponent);
@@ -138,47 +31,10 @@
return model.getDefaultOperation();
}
- private void updateLibDir(IProgressMonitor monitor) {
- if (libDir.equals(oldLibDir)) return;
- final IEARModelProvider earModel = (IEARModelProvider)ModelProviderManager.getModelProvider(project);
- final Application app = (Application)ModelProviderManager.getModelProvider(project).getModelObject();
- oldLibDir = app.getLibraryDirectory();
- if (oldLibDir == null) oldLibDir = J2EEConstants.EAR_DEFAULT_LIB_DIR;
- earModel.modify(new Runnable() {
- public void run() {
- app.setLibraryDirectory(libDir);
- }}, null);
- }
-
public boolean postHandleChanges(IProgressMonitor monitor) {
return true;
}
- public boolean preHandleChanges(IProgressMonitor monitor) {
- if (isVersion5) {
- if (libDir.length() == 0) {
-
- MessageDialog dlg = new MessageDialog(null,
- J2EEUIMessages.getResourceString(J2EEUIMessages.BLANK_LIB_DIR),
- null, J2EEUIMessages.getResourceString(J2EEUIMessages.BLANK_LIB_DIR_WARN_QUESTION),
- MessageDialog.QUESTION, new String[] {J2EEUIMessages.YES_BUTTON,
- J2EEUIMessages.NO_BUTTON,
- J2EEUIMessages.CANCEL_BUTTON}, 1);
- switch (dlg.open()) {
- case 0: break;
- case 1: {
- handleChangeLibDirButton(false);
- return false;
- }
- case 2: return false;
- default: return false;
- }
- }
- updateLibDir(monitor);
- }
- return true;
- }
-
protected void handleRemoved(ArrayList<IVirtualComponent> removed) {
super.handleRemoved(removed);
J2EEComponentClasspathUpdater.getInstance().queueUpdateEAR(rootComponent.getProject());
16 years, 8 months