JBoss Tools SVN: r12160 - in trunk: as/features/org.jboss.ide.eclipse.as.feature and 20 other directories.
by jbosstools-commits@lists.jboss.org
Author: max.andersen(a)jboss.com
Date: 2008-12-01 05:33:36 -0500 (Mon, 01 Dec 2008)
New Revision: 12160
Modified:
trunk/archives/features/org.jboss.ide.eclipse.archives.feature/feature.xml
trunk/as/features/org.jboss.ide.eclipse.as.feature/feature.xml
trunk/as/features/org.jboss.ide.eclipse.as.test.feature/feature.xml
trunk/common/features/org.jboss.tools.common.core.feature/feature.xml
trunk/common/features/org.jboss.tools.common.feature/feature.xml
trunk/common/features/org.jboss.tools.common.text.ext.feature/feature.xml
trunk/common/features/org.jboss.tools.common.ui.feature/feature.xml
trunk/common/features/org.jboss.tools.common.verification.feature/feature.xml
trunk/esb/features/org.jboss.tools.esb.feature/feature.xml
trunk/freemarker/features/org.jboss.ide.eclipse.freemarker.feature/feature.xml
trunk/hibernatetools/features/org.hibernate.eclipse.test.feature/feature.xml
trunk/jbpm/features/org.jboss.tools.jbpm.convert.feature/feature.xml
trunk/jsf/features/org.jboss.tools.jsf.feature/feature.xml
trunk/jsf/features/org.jboss.tools.richfaces.feature/feature.xml
trunk/jst/features/org.jboss.tools.jst.feature/feature.xml
trunk/jst/features/org.jboss.tools.jst.web.tiles.feature/feature.xml
trunk/seam/features/org.jboss.ide.eclipse.seam.feature/feature.xml
trunk/seam/features/org.jboss.tools.seam.feature/feature.xml
trunk/struts/features/org.jboss.tools.struts.feature/feature.xml
trunk/vpe/features/org.jboss.tools.vpe.feature/feature.xml
trunk/vpe/features/org.jboss.tools.xulrunner.feature/feature.xml
trunk/ws/features/org.jboss.tools.ws.feature/feature.xml
Log:
JBIDE-3317 removing redundant Feature text
Modified: trunk/archives/features/org.jboss.ide.eclipse.archives.feature/feature.xml
===================================================================
--- trunk/archives/features/org.jboss.ide.eclipse.archives.feature/feature.xml 2008-12-01 10:17:33 UTC (rev 12159)
+++ trunk/archives/features/org.jboss.ide.eclipse.archives.feature/feature.xml 2008-12-01 10:33:36 UTC (rev 12160)
@@ -7,7 +7,8 @@
plugin="org.jboss.ide.eclipse.archives.ui">
<description url="http://www.jboss.org/tools">
- JBoss Tools Archives Feature
+ Project Archives provides a way to define archives based on include/exclude filesets which then
+ gets incrementally updated allowing for fluent deployment for any type of Eclipse project.
</description>
<copyright>
Modified: trunk/as/features/org.jboss.ide.eclipse.as.feature/feature.xml
===================================================================
--- trunk/as/features/org.jboss.ide.eclipse.as.feature/feature.xml 2008-12-01 10:17:33 UTC (rev 12159)
+++ trunk/as/features/org.jboss.ide.eclipse.as.feature/feature.xml 2008-12-01 10:33:36 UTC (rev 12160)
@@ -7,7 +7,7 @@
plugin="org.jboss.ide.eclipse.as.ui">
<description url="http://www.jboss.org/tools">
- JBossAS Tools Feature
+ Provides a WTP adapter for JBoss AS 4.x and 5.x. Supports incremental and exploded deployment.
</description>
<copyright>
Modified: trunk/as/features/org.jboss.ide.eclipse.as.test.feature/feature.xml
===================================================================
--- trunk/as/features/org.jboss.ide.eclipse.as.test.feature/feature.xml 2008-12-01 10:17:33 UTC (rev 12159)
+++ trunk/as/features/org.jboss.ide.eclipse.as.test.feature/feature.xml 2008-12-01 10:33:36 UTC (rev 12160)
@@ -1,12 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<feature
id="org.jboss.ide.eclipse.as.test.feature"
- label="JBossTools Test Feature"
+ label="JBossTools Test"
version="1.0.0"
provider-name="JBoss, a division of Red Hat">
<description url="http://www.jboss.org/tools">
- JBossAS Test Feature
+ JBossAS Test
</description>
<copyright>
Modified: trunk/common/features/org.jboss.tools.common.core.feature/feature.xml
===================================================================
--- trunk/common/features/org.jboss.tools.common.core.feature/feature.xml 2008-12-01 10:17:33 UTC (rev 12159)
+++ trunk/common/features/org.jboss.tools.common.core.feature/feature.xml 2008-12-01 10:33:36 UTC (rev 12160)
@@ -1,12 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<feature
id="org.jboss.tools.common.core.feature"
- label="Common Core Feature"
+ label="JBoss Tools Common Core"
version="2.0.0"
provider-name="JBoss, a division of Red Hat">
<description url="http://www.jboss.org/tools">
- JBossTools Common Core plugins
+ JBoss Tools Common Core plugins
</description>
<copyright>
Modified: trunk/common/features/org.jboss.tools.common.feature/feature.xml
===================================================================
--- trunk/common/features/org.jboss.tools.common.feature/feature.xml 2008-12-01 10:17:33 UTC (rev 12159)
+++ trunk/common/features/org.jboss.tools.common.feature/feature.xml 2008-12-01 10:33:36 UTC (rev 12160)
@@ -1,12 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<feature
id="org.jboss.tools.common.feature"
- label="Common Feature"
+ label="JBoss Tools Common"
version="2.0.0"
provider-name="JBoss, a division of Red Hat">
<description url="http://www.jboss.org/tools">
- JBossTools Common Feature
+ JBoss Tools Common
</description>
<copyright>
Modified: trunk/common/features/org.jboss.tools.common.text.ext.feature/feature.xml
===================================================================
--- trunk/common/features/org.jboss.tools.common.text.ext.feature/feature.xml 2008-12-01 10:17:33 UTC (rev 12159)
+++ trunk/common/features/org.jboss.tools.common.text.ext.feature/feature.xml 2008-12-01 10:33:36 UTC (rev 12160)
@@ -1,12 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<feature
id="org.jboss.tools.common.text.ext.feature"
- label="Ext Feature"
+ label="JBoss Tools Common Text editing extensions"
version="2.0.0"
provider-name="JBoss, a division of Red Hat">
<description url="http://www.jboss.org/tools">
- JBossTools Common Text Extension Feature
+ JBoss Tools Common Text editing extensions
</description>
<copyright>
Modified: trunk/common/features/org.jboss.tools.common.ui.feature/feature.xml
===================================================================
--- trunk/common/features/org.jboss.tools.common.ui.feature/feature.xml 2008-12-01 10:17:33 UTC (rev 12159)
+++ trunk/common/features/org.jboss.tools.common.ui.feature/feature.xml 2008-12-01 10:33:36 UTC (rev 12160)
@@ -1,12 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<feature
id="org.jboss.tools.common.ui.feature"
- label="Common UI Feature"
+ label="JBoss Tools Common UI"
version="2.0.0"
provider-name="JBoss, a division of Red Hat">
<description url="http://www.jboss.org/tools">
- JBossTools Common UI Feature
+ JBoss Tools Common UI
</description>
<copyright>
Modified: trunk/common/features/org.jboss.tools.common.verification.feature/feature.xml
===================================================================
--- trunk/common/features/org.jboss.tools.common.verification.feature/feature.xml 2008-12-01 10:17:33 UTC (rev 12159)
+++ trunk/common/features/org.jboss.tools.common.verification.feature/feature.xml 2008-12-01 10:33:36 UTC (rev 12160)
@@ -1,12 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<feature
id="org.jboss.tools.common.verification.feature"
- label="Verification Feature"
+ label="JBoss Tools Verification"
version="2.0.0"
provider-name="JBoss, a division of Red Hat">
<description url="http://www.jboss.org/tools">
- JBossTools Common Verification Feature
+ JBoss Tools Verification
</description>
<copyright>
Modified: trunk/esb/features/org.jboss.tools.esb.feature/feature.xml
===================================================================
--- trunk/esb/features/org.jboss.tools.esb.feature/feature.xml 2008-12-01 10:17:33 UTC (rev 12159)
+++ trunk/esb/features/org.jboss.tools.esb.feature/feature.xml 2008-12-01 10:33:36 UTC (rev 12160)
@@ -1,12 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<feature
id="org.jboss.tools.esb.feature"
- label="ESBTools Feature"
+ label="JBoss ESB Tools"
version="1.0.0"
provider-name="RedHat, Inc.">
<description url="http://www.jboss.org/tools">
- JBossTools ESB Feature
+ JBoss ESB Tools
</description>
<copyright>
Modified: trunk/freemarker/features/org.jboss.ide.eclipse.freemarker.feature/feature.xml
===================================================================
--- trunk/freemarker/features/org.jboss.ide.eclipse.freemarker.feature/feature.xml 2008-12-01 10:17:33 UTC (rev 12159)
+++ trunk/freemarker/features/org.jboss.ide.eclipse.freemarker.feature/feature.xml 2008-12-01 10:33:36 UTC (rev 12160)
@@ -1,12 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<feature
id="org.jboss.ide.eclipse.freemarker.feature"
- label="FreeMarkerIDE Feature"
+ label="FreeMarkerIDE"
version="1.0.0"
provider-name="JBoss, a division of Red Hat">
<description url="http://www.jboss.org/tools">
- FreemarkerIDE Feature
+ FreeMarkerIDE provides editor for FreeMarker templates
</description>
<copyright>
Modified: trunk/hibernatetools/features/org.hibernate.eclipse.test.feature/feature.xml
===================================================================
--- trunk/hibernatetools/features/org.hibernate.eclipse.test.feature/feature.xml 2008-12-01 10:17:33 UTC (rev 12159)
+++ trunk/hibernatetools/features/org.hibernate.eclipse.test.feature/feature.xml 2008-12-01 10:33:36 UTC (rev 12160)
@@ -1,12 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<feature
id="org.hibernate.eclipse.test.feature"
- label="org.hibernate.eclipse.test.feature"
+ label="Hibernate Tests"
version="3.1.0.beta7"
provider-name="Hibernate Team">
<description url="http://www.example.com/description">
- [Enter Feature Description here.]
+ hibernate test
</description>
<copyright url="http://www.example.com/copyright">
Modified: trunk/jbpm/features/org.jboss.tools.jbpm.convert.feature/feature.xml
===================================================================
--- trunk/jbpm/features/org.jboss.tools.jbpm.convert.feature/feature.xml 2008-12-01 10:17:33 UTC (rev 12159)
+++ trunk/jbpm/features/org.jboss.tools.jbpm.convert.feature/feature.xml 2008-12-01 10:33:36 UTC (rev 12160)
@@ -1,22 +1,224 @@
<?xml version="1.0" encoding="UTF-8"?>
<feature
id="org.jboss.tools.jbpm.convert.feature"
- label="jBPM Conbvert Feature"
+ label="jBPM Convert"
version="1.0.0"
provider-name="JBoss, a division of Red Hat">
- <description url="http://www.example.com/description">
- [Enter Feature Description here.]
+ <description url="http://www.jboss.org/tools">
+ Conversion of bpmn files to jBPM syntax.
</description>
- <copyright url="http://www.example.com/copyright">
- [Enter Copyright Description here.]
+ <copyright>
+ Copyright (c) 2007 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
</copyright>
- <license url="http://www.example.com/license">
- [Enter License Description here.]
+ <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 warranties 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 permitted 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.jbpm.convert"
download-size="0"
Modified: trunk/jsf/features/org.jboss.tools.jsf.feature/feature.xml
===================================================================
--- trunk/jsf/features/org.jboss.tools.jsf.feature/feature.xml 2008-12-01 10:17:33 UTC (rev 12159)
+++ trunk/jsf/features/org.jboss.tools.jsf.feature/feature.xml 2008-12-01 10:33:36 UTC (rev 12160)
@@ -1,13 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<feature
id="org.jboss.tools.jsf_feature"
- label="org.jboss.tools.jsf"
+ label="JBoss Tools JSF"
version="2.0.0"
provider-name="JBoss"
image="jsf.jpg">
<description url="http://www.jboss.org/tools">
- JBossTools JSF Feature
+ JBoss Tools JSF
</description>
<copyright>
Modified: trunk/jsf/features/org.jboss.tools.richfaces.feature/feature.xml
===================================================================
--- trunk/jsf/features/org.jboss.tools.richfaces.feature/feature.xml 2008-12-01 10:17:33 UTC (rev 12159)
+++ trunk/jsf/features/org.jboss.tools.richfaces.feature/feature.xml 2008-12-01 10:33:36 UTC (rev 12160)
@@ -1,13 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<feature
id="org.jboss.tools.richfaces.feature"
- label="RichFaces VPE Feature"
+ label="JBoss Tools RichFaces"
version="2.0.0"
provider-name="JBoss, a division of Red Hat"
plugin="org.jboss.tools.vpe">
<description url="http://www.jboss.org/tools">
- JBossTools RichFaces feature
+
</description>
<copyright>
Modified: trunk/jst/features/org.jboss.tools.jst.feature/feature.xml
===================================================================
--- trunk/jst/features/org.jboss.tools.jst.feature/feature.xml 2008-12-01 10:17:33 UTC (rev 12159)
+++ trunk/jst/features/org.jboss.tools.jst.feature/feature.xml 2008-12-01 10:33:36 UTC (rev 12160)
@@ -1,11 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<feature
id="org.jboss.tools.jst_feature"
- label="Jst Feature"
+ label="JBoss Tools Java Standard Tools"
version="2.0.0">
<description url="http://www.jboss.org/tools">
- JBossTools JST Feature
+ JBoss Tools Java Standard Tools
</description>
<copyright>
Modified: trunk/jst/features/org.jboss.tools.jst.web.tiles.feature/feature.xml
===================================================================
--- trunk/jst/features/org.jboss.tools.jst.web.tiles.feature/feature.xml 2008-12-01 10:17:33 UTC (rev 12159)
+++ trunk/jst/features/org.jboss.tools.jst.web.tiles.feature/feature.xml 2008-12-01 10:33:36 UTC (rev 12160)
@@ -1,19 +1,220 @@
<?xml version="1.0" encoding="UTF-8"?>
<feature
id="org.jboss.tools.jst.web.tiles_feature"
- label="Tiles Feature"
+ label="JBoss Tools Tiles"
version="2.0.0">
- <description url="http://www.example.com/description">
- [Enter Feature Description here.]
+ <description url="http://www.jboss.org/tools">
+ JBoss Tools Tiles Support
</description>
- <copyright url="http://www.example.com/copyright">
- [Enter Copyright Description here.]
+ <copyright>
+ Copyright (c) 2007 Exadel, Inc and 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:
+Exadel, Inc. and Red Hat, Inc. - initial API and implementation
</copyright>
- <license url="http://www.example.com/license">
- [Enter License Description here.]
+ <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 warranties 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 permitted 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
Modified: trunk/seam/features/org.jboss.ide.eclipse.seam.feature/feature.xml
===================================================================
--- trunk/seam/features/org.jboss.ide.eclipse.seam.feature/feature.xml 2008-12-01 10:17:33 UTC (rev 12159)
+++ trunk/seam/features/org.jboss.ide.eclipse.seam.feature/feature.xml 2008-12-01 10:33:36 UTC (rev 12160)
@@ -1,21 +1,223 @@
<?xml version="1.0" encoding="UTF-8"?>
<feature
id="org.jboss.ide.eclipse.seam.feature"
- label="Seam Feature"
+ label="Seam Tools"
version="1.0.0">
- <description url="http://www.example.com/description">
- [Enter Feature Description here.]
+ <description url="http://www.jboss.org/tools">
+ Provides tooling support for JBoss Seam.
</description>
- <copyright url="http://www.example.com/copyright">
- [Enter Copyright Description here.]
+ <copyright>
+ Copyright (c) 2007 Exadel, Inc and 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:
+Exadel, Inc. and Red Hat, Inc. - initial API and implementation
</copyright>
- <license url="http://www.example.com/license">
- [Enter License Description here.]
+ <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 warranties 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 permitted 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.ide.seam.gen"
download-size="0"
Modified: trunk/seam/features/org.jboss.tools.seam.feature/feature.xml
===================================================================
--- trunk/seam/features/org.jboss.tools.seam.feature/feature.xml 2008-12-01 10:17:33 UTC (rev 12159)
+++ trunk/seam/features/org.jboss.tools.seam.feature/feature.xml 2008-12-01 10:33:36 UTC (rev 12160)
@@ -1,13 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<feature
id="org.jboss.tools.seam.feature"
- label="SeamTools Feature"
+ label="Seam Tools"
version="1.0.0"
provider-name="RedHat, Inc."
plugin="org.jboss.tools.seam.core">
<description url="http://www.jboss.org/tools">
- JBossTools Seam Feature
+ Provides tooling for JBoss Seam.
</description>
<copyright>
Modified: trunk/struts/features/org.jboss.tools.struts.feature/feature.xml
===================================================================
--- trunk/struts/features/org.jboss.tools.struts.feature/feature.xml 2008-12-01 10:17:33 UTC (rev 12159)
+++ trunk/struts/features/org.jboss.tools.struts.feature/feature.xml 2008-12-01 10:33:36 UTC (rev 12160)
@@ -1,11 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<feature
id="org.jboss.tools.struts_feature"
- label="StrutsTools"
+ label="JBoss Tools Struts Tools"
version="2.0.0">
<description url="http://www.jboss.org/tools">
- StrutsTools Feature
+ JBoss Tools Struts Tools
</description>
<copyright>
Modified: trunk/vpe/features/org.jboss.tools.vpe.feature/feature.xml
===================================================================
--- trunk/vpe/features/org.jboss.tools.vpe.feature/feature.xml 2008-12-01 10:17:33 UTC (rev 12159)
+++ trunk/vpe/features/org.jboss.tools.vpe.feature/feature.xml 2008-12-01 10:33:36 UTC (rev 12160)
@@ -1,11 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<feature
id="org.jboss.tools.vpe_feature"
- label="Vpe_feature Feature"
+ label="JBoss Tools Visual Page Editor"
version="2.0.0">
<description url="http://www.jboss.org/tools">
- JBossTools Visual Page Editor Feature
+ Provides a visual page editor for xml based documents. Specific support for xhtml with HTML and JSF/Facelets support.
</description>
<copyright>
Modified: trunk/vpe/features/org.jboss.tools.xulrunner.feature/feature.xml
===================================================================
--- trunk/vpe/features/org.jboss.tools.xulrunner.feature/feature.xml 2008-12-01 10:17:33 UTC (rev 12159)
+++ trunk/vpe/features/org.jboss.tools.xulrunner.feature/feature.xml 2008-12-01 10:33:36 UTC (rev 12160)
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<feature
id="org.jboss.tools.xulrunner.feature"
- label="XULRunner Feature"
+ label="XULRunner"
version="1.8.1.3-20070904"
provider-name="JBoss, a division of Red Hat">
Modified: trunk/ws/features/org.jboss.tools.ws.feature/feature.xml
===================================================================
--- trunk/ws/features/org.jboss.tools.ws.feature/feature.xml 2008-12-01 10:17:33 UTC (rev 12159)
+++ trunk/ws/features/org.jboss.tools.ws.feature/feature.xml 2008-12-01 10:33:36 UTC (rev 12160)
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<feature
id="org.jboss.tools.ws.feature"
- label="WebServices Tools Feature"
+ label="JBoss WebServices Tools"
version="1.0.0"
provider-name="JBoss, a division of Red Hat">
16 years
JBoss Tools SVN: r12159 - trunk/ws/plugins/org.jboss.tools.ws.creation.core/src/org/jboss/tools/ws/creation/core/messages.
by jbosstools-commits@lists.jboss.org
Author: Grid.Qian
Date: 2008-12-01 05:17:33 -0500 (Mon, 01 Dec 2008)
New Revision: 12159
Modified:
trunk/ws/plugins/org.jboss.tools.ws.creation.core/src/org/jboss/tools/ws/creation/core/messages/JBossWSCreationCore.properties
Log:
JBIDE-3295: correct the mis-spell for generate wsdl file
Modified: trunk/ws/plugins/org.jboss.tools.ws.creation.core/src/org/jboss/tools/ws/creation/core/messages/JBossWSCreationCore.properties
===================================================================
--- trunk/ws/plugins/org.jboss.tools.ws.creation.core/src/org/jboss/tools/ws/creation/core/messages/JBossWSCreationCore.properties 2008-12-01 10:07:49 UTC (rev 12158)
+++ trunk/ws/plugins/org.jboss.tools.ws.creation.core/src/org/jboss/tools/ws/creation/core/messages/JBossWSCreationCore.properties 2008-12-01 10:17:33 UTC (rev 12159)
@@ -2,7 +2,7 @@
Label_Catalog_File=Catalog file
Label_Button_Text_Seletion= &Add
Label_Generate_Impelemtation=Generate default Web Service Implementation classes
-Label_Generate_WSDL=Generete WSDL file
+Label_Generate_WSDL=Generate WSDL file
Label_Binding_File=Binding files
Label_JaxWS_Target=JAX-WS specification
Label_Update_Webxml=Update the default Web.xml
16 years
JBoss Tools SVN: r12158 - in trunk/smooks/plugins: org.jboss.tools.smooks.core/model and 9 other directories.
by jbosstools-commits@lists.jboss.org
Author: DartPeng
Date: 2008-12-01 05:07:49 -0500 (Mon, 01 Dec 2008)
New Revision: 12158
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/model/
trunk/smooks/plugins/org.jboss.tools.smooks.core/model/smooks.ecore
trunk/smooks/plugins/org.jboss.tools.smooks.core/model/smooks1_0.xsd
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/ResourceType.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/SmooksFactory.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/SmooksPackage.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/impl/ResourceTypeImpl.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/impl/SmooksFactoryImpl.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/impl/SmooksPackageImpl.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/provider/ResourceTypeItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/util/SmooksAdapterFactory.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/util/SmooksModelUtils.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/util/SmooksSwitch.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/analyzer/NormalSmooksModelBuilder.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/javabean/analyzer/JavaBeanAnalyzer.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/editors/AbstractSmooksModelDetailPage.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/editors/BeanPopulatorDetailPage.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/editors/DateTypeDetailPage.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/editors/DecoraterSelectionDialog.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/editors/DocumentResourceTypeDetailPage.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/editors/ResourceConfigWarrperFactory.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/editors/SmooksFormEditor.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/editors/SmooksGraphicalFormPage.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/editors/SmooksResourceConfigFormBlock.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/wizards/NewResourceConfigFactory.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/xml2java/analyzer/XML2JavaAnalyzer.java
Log:
JBIDE-3320
1.Modify the Smooks EMF model and generate new codes
2.Add new GUI for editing XSL external file path/inner file contents
Added: trunk/smooks/plugins/org.jboss.tools.smooks.core/model/smooks.ecore
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/model/smooks.ecore (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/model/smooks.ecore 2008-12-01 10:07:49 UTC (rev 12158)
@@ -0,0 +1,348 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ecore:EPackage xmi:version="2.0"
+ xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="smooks"
+ nsURI="http://www.milyn.org/xsd/smooks-1.0.xsd" nsPrefix="smooks">
+ <eClassifiers xsi:type="ecore:EClass" name="AbstractResourceConfig" abstract="true">
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="name" value="abstract-resource-config"/>
+ <details key="kind" value="empty"/>
+ </eAnnotations>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="ConditionType">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="Resource Targetting Condition"/>
+ </eAnnotations>
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="name" value="condition_._type"/>
+ <details key="kind" value="simple"/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="value" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="name" value=":0"/>
+ <details key="kind" value="simple"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="evaluator" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String"
+ defaultValueLiteral="org.milyn.javabean.expression.BeanMapExpressionEvaluator"
+ unsettable="true">
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="attribute"/>
+ <details key="name" value="evaluator"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="DocumentRoot">
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="name" value=""/>
+ <details key="kind" value="mixed"/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="mixed" unique="false" upperBound="-1"
+ eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EFeatureMapEntry">
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="elementWildcard"/>
+ <details key="name" value=":mixed"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="xMLNSPrefixMap" upperBound="-1"
+ eType="ecore:EClass http://www.eclipse.org/emf/2002/Ecore#//EStringToStringMapEntry"
+ transient="true" containment="true" resolveProxies="false">
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="attribute"/>
+ <details key="name" value="xmlns:prefix"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="xSISchemaLocation" upperBound="-1"
+ eType="ecore:EClass http://www.eclipse.org/emf/2002/Ecore#//EStringToStringMapEntry"
+ transient="true" containment="true" resolveProxies="false">
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="attribute"/>
+ <details key="name" value="xsi:schemaLocation"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="abstractResourceConfig"
+ upperBound="-2" eType="#//AbstractResourceConfig" changeable="false" volatile="true"
+ transient="true" derived="true" containment="true" resolveProxies="false">
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="element"/>
+ <details key="name" value="abstract-resource-config"/>
+ <details key="namespace" value="##targetNamespace"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="condition" upperBound="-2"
+ eType="#//ConditionType" volatile="true" transient="true" derived="true" containment="true"
+ resolveProxies="false">
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="element"/>
+ <details key="name" value="condition"/>
+ <details key="namespace" value="##targetNamespace"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="import" upperBound="-2"
+ eType="#//ImportType" volatile="true" transient="true" derived="true" containment="true"
+ resolveProxies="false">
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="element"/>
+ <details key="name" value="import"/>
+ <details key="namespace" value="##targetNamespace"/>
+ <details key="affiliation" value="abstract-resource-config"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="param" upperBound="-2"
+ eType="#//ParamType" volatile="true" transient="true" derived="true" containment="true"
+ resolveProxies="false">
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="element"/>
+ <details key="name" value="param"/>
+ <details key="namespace" value="##targetNamespace"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="profile" upperBound="-2"
+ eType="#//ProfileType" volatile="true" transient="true" derived="true" containment="true"
+ resolveProxies="false">
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="element"/>
+ <details key="name" value="profile"/>
+ <details key="namespace" value="##targetNamespace"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="profiles" upperBound="-2"
+ eType="#//ProfilesType" volatile="true" transient="true" derived="true" containment="true"
+ resolveProxies="false">
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="element"/>
+ <details key="name" value="profiles"/>
+ <details key="namespace" value="##targetNamespace"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="resource" upperBound="-2"
+ eType="#//ResourceType" volatile="true" transient="true" derived="true" containment="true"
+ resolveProxies="false">
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="element"/>
+ <details key="name" value="resource"/>
+ <details key="namespace" value="##targetNamespace"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="resourceConfig" upperBound="-2"
+ eType="#//ResourceConfigType" volatile="true" transient="true" derived="true"
+ containment="true" resolveProxies="false">
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="element"/>
+ <details key="name" value="resource-config"/>
+ <details key="namespace" value="##targetNamespace"/>
+ <details key="affiliation" value="abstract-resource-config"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="smooksResourceList" upperBound="-2"
+ eType="#//SmooksResourceListType" volatile="true" transient="true" derived="true"
+ containment="true" resolveProxies="false">
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="element"/>
+ <details key="name" value="smooks-resource-list"/>
+ <details key="namespace" value="##targetNamespace"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="ImportType" eSuperTypes="#//AbstractResourceConfig">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="Smooks Resource Configuration Import"/>
+ </eAnnotations>
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="name" value="import_._type"/>
+ <details key="kind" value="empty"/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="file" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//AnyURI">
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="attribute"/>
+ <details key="name" value="file"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="ParamType" eSuperTypes="http://www.eclipse.org/emf/2003/XMLType#//AnyType">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="Resource Parameter"/>
+ </eAnnotations>
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="name" value="param_._type"/>
+ <details key="kind" value="mixed"/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="attribute"/>
+ <details key="name" value="name"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="type" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="attribute"/>
+ <details key="name" value="type"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="ProfilesType">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="List of Profiles"/>
+ </eAnnotations>
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="name" value="profiles_._type"/>
+ <details key="kind" value="elementOnly"/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="profile" lowerBound="1"
+ upperBound="-1" eType="#//ProfileType" containment="true" resolveProxies="false">
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="element"/>
+ <details key="name" value="profile"/>
+ <details key="namespace" value="##targetNamespace"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="ProfileType">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="Profile Configuration. Basically allows you to specify the name of a
 base profile along with a list of its sub-profiles.
 "/>
+ </eAnnotations>
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="name" value="profile_._type"/>
+ <details key="kind" value="simple"/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="value" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="name" value=":0"/>
+ <details key="kind" value="simple"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="baseProfile" lowerBound="1"
+ eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="attribute"/>
+ <details key="name" value="base-profile"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="subProfiles" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="attribute"/>
+ <details key="name" value="sub-profiles"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="ResourceConfigType" eSuperTypes="#//AbstractResourceConfig">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="Smooks Resource Configuration"/>
+ </eAnnotations>
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="name" value="resource-config_._type"/>
+ <details key="kind" value="elementOnly"/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="resource" eType="#//ResourceType"
+ containment="true" resolveProxies="false">
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="element"/>
+ <details key="name" value="resource"/>
+ <details key="namespace" value="##targetNamespace"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="condition" eType="#//ConditionType"
+ containment="true" resolveProxies="false">
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="element"/>
+ <details key="name" value="condition"/>
+ <details key="namespace" value="##targetNamespace"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="param" upperBound="-1"
+ eType="#//ParamType" containment="true" resolveProxies="false">
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="element"/>
+ <details key="name" value="param"/>
+ <details key="namespace" value="##targetNamespace"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="selector" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="attribute"/>
+ <details key="name" value="selector"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="selectorNamespace" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//AnyURI">
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="attribute"/>
+ <details key="name" value="selector-namespace"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="targetProfile" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="attribute"/>
+ <details key="name" value="target-profile"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="ResourceType" eSuperTypes="http://www.eclipse.org/emf/2003/XMLType#//AnyType">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="Resource Configuration Resource Type (xsl, class etc)"/>
+ </eAnnotations>
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="name" value="resource_._type"/>
+ <details key="kind" value="mixed"/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="type" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="attribute"/>
+ <details key="name" value="type"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="SmooksResourceListType">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="List of Smooks Resource Configuration."/>
+ </eAnnotations>
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="name" value="smooks-resource-list_._type"/>
+ <details key="kind" value="elementOnly"/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="profiles" eType="#//ProfilesType"
+ containment="true" resolveProxies="false">
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="element"/>
+ <details key="name" value="profiles"/>
+ <details key="namespace" value="##targetNamespace"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="abstractResourceConfigGroup"
+ unique="false" lowerBound="1" upperBound="-1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EFeatureMapEntry">
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="group"/>
+ <details key="name" value="abstract-resource-config:group"/>
+ <details key="namespace" value="##targetNamespace"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="abstractResourceConfig"
+ lowerBound="1" upperBound="-1" eType="#//AbstractResourceConfig" changeable="false"
+ volatile="true" transient="true" derived="true" containment="true" resolveProxies="false">
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="element"/>
+ <details key="name" value="abstract-resource-config"/>
+ <details key="namespace" value="##targetNamespace"/>
+ <details key="group" value="abstract-resource-config:group"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="defaultSelector" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="attribute"/>
+ <details key="name" value="default-selector"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="defaultSelectorNamespace"
+ eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//AnyURI">
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="attribute"/>
+ <details key="name" value="default-selector-namespace"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="defaultTargetProfile" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="attribute"/>
+ <details key="name" value="default-target-profile"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ </eClassifiers>
+</ecore:EPackage>
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.core/model/smooks.ecore
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.smooks.core/model/smooks1_0.xsd
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/model/smooks1_0.xsd (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/model/smooks1_0.xsd 2008-12-01 10:07:49 UTC (rev 12158)
@@ -0,0 +1,121 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:smooks="http://www.milyn.org/xsd/smooks-1.0.xsd" targetNamespace="http://www.milyn.org/xsd/smooks-1.0.xsd" elementFormDefault="qualified">
+
+ <xs:element name="smooks-resource-list">
+ <xs:complexType>
+ <xs:annotation>
+ <xs:documentation xml:lang="en">List of Smooks Resource Configuration.</xs:documentation>
+ </xs:annotation>
+ <xs:sequence>
+ <xs:element minOccurs="0" maxOccurs="1" ref="smooks:profiles"/>
+ <xs:element minOccurs="1" maxOccurs="unbounded" ref="smooks:abstract-resource-config"/>
+ </xs:sequence>
+ <xs:attribute name="default-target-profile" type="xs:string"/>
+ <xs:attribute name="default-selector" type="xs:string"/>
+ <xs:attribute name="default-selector-namespace" type="xs:anyURI"/>
+ </xs:complexType>
+ </xs:element>
+
+ <xs:element name="profiles">
+ <xs:complexType>
+ <xs:annotation>
+ <xs:documentation xml:lang="en">List of Profiles</xs:documentation>
+ </xs:annotation>
+ <xs:sequence>
+ <xs:element minOccurs="1" maxOccurs="unbounded" ref="smooks:profile"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+
+ <xs:element name="profile">
+ <xs:complexType>
+ <xs:annotation>
+ <xs:documentation xml:lang="en">Profile Configuration. Basically allows you to specify the name of a
+ base profile along with a list of its sub-profiles.
+ </xs:documentation>
+ </xs:annotation>
+ <xs:simpleContent>
+ <xs:extension base="xs:string">
+ <xs:attribute name="base-profile" type="xs:string" use="required"/>
+ <xs:attribute name="sub-profiles" type="xs:string"/>
+ </xs:extension>
+ </xs:simpleContent>
+ </xs:complexType>
+ </xs:element>
+
+ <xs:complexType name="abstract-resource-config" abstract="true"/>
+ <xs:element name="abstract-resource-config" type="smooks:abstract-resource-config" abstract="true"/>
+
+ <xs:element name="import" substitutionGroup="smooks:abstract-resource-config">
+ <xs:complexType>
+ <xs:complexContent>
+ <xs:extension base="smooks:abstract-resource-config">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">Smooks Resource Configuration Import</xs:documentation>
+ </xs:annotation>
+ <xs:attribute name="file" use="required" type="xs:anyURI"/>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+ </xs:element>
+
+ <xs:element name="resource-config" substitutionGroup="smooks:abstract-resource-config">
+ <xs:complexType>
+ <xs:complexContent>
+ <xs:extension base="smooks:abstract-resource-config">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">Smooks Resource Configuration</xs:documentation>
+ </xs:annotation>
+ <xs:sequence>
+ <xs:element minOccurs="0" maxOccurs="1" ref="smooks:resource"/>
+ <xs:element minOccurs="0" maxOccurs="1" ref="smooks:condition"/>
+ <xs:element minOccurs="0" maxOccurs="unbounded" ref="smooks:param"/>
+ </xs:sequence>
+ <xs:attribute name="selector" type="xs:string"/>
+ <xs:attribute name="selector-namespace" type="xs:anyURI"/>
+ <xs:attribute name="target-profile" type="xs:string"/>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+ </xs:element>
+
+ <xs:element name="resource">
+ <xs:complexType>
+ <xs:annotation>
+ <xs:documentation xml:lang="en">Resource Configuration Resource Type (xsl, class etc)</xs:documentation>
+ </xs:annotation>
+ <xs:complexContent>
+ <xs:extension base="xs:anyType">
+ <xs:attribute name="type" type="xs:string"/>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+ </xs:element>
+
+ <xs:element name="condition">
+ <xs:complexType>
+ <xs:annotation>
+ <xs:documentation xml:lang="en">Resource Targetting Condition</xs:documentation>
+ </xs:annotation>
+ <xs:simpleContent>
+ <xs:extension base="xs:string">
+ <xs:attribute name="evaluator" type="xs:string" default="org.milyn.javabean.expression.BeanMapExpressionEvaluator"/>
+ </xs:extension>
+ </xs:simpleContent>
+ </xs:complexType>
+ </xs:element>
+
+ <xs:element name="param">
+ <xs:complexType>
+ <xs:annotation>
+ <xs:documentation xml:lang="en">Resource Parameter</xs:documentation>
+ </xs:annotation>
+ <xs:complexContent>
+ <xs:extension base="xs:anyType">
+ <xs:attribute name="name" type="xs:string" use="required"/>
+ <xs:attribute name="type" type="xs:string"/>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+ </xs:element>
+</xs:schema>
\ No newline at end of file
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.core/model/smooks1_0.xsd
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/ResourceType.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/ResourceType.java 2008-12-01 04:00:30 UTC (rev 12157)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/ResourceType.java 2008-12-01 10:07:49 UTC (rev 12158)
@@ -8,6 +8,8 @@
import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.xml.type.AnyType;
+
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Resource Type</b></em>'.
@@ -20,44 +22,16 @@
* <p>
* The following features are supported:
* <ul>
- * <li>{@link org.jboss.tools.smooks.model.ResourceType#getValue <em>Value</em>}</li>
- * <li>{@link org.jboss.tools.smooks.model.ResourceType#getType <em>Type</em>}</li>
+ * <li>{@link smooks.ResourceType#getType <em>Type</em>}</li>
* </ul>
* </p>
*
- * @see org.jboss.tools.smooks.model.SmooksPackage#getResourceType()
- * @model extendedMetaData="name='resource_._type' kind='simple'"
+ * @see smooks.SmooksPackage#getResourceType()
+ * @model extendedMetaData="name='resource_._type' kind='mixed'"
* @generated
*/
-public interface ResourceType extends EObject {
+public interface ResourceType extends EObject, AnyType {
/**
- * Returns the value of the '<em><b>Value</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Value</em>' attribute isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Value</em>' attribute.
- * @see #setValue(String)
- * @see org.jboss.tools.smooks.model.SmooksPackage#getResourceType_Value()
- * @model dataType="org.eclipse.emf.ecore.xml.type.String"
- * extendedMetaData="name=':0' kind='simple'"
- * @generated
- */
- String getValue();
-
- /**
- * Sets the value of the '{@link org.jboss.tools.smooks.model.ResourceType#getValue <em>Value</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Value</em>' attribute.
- * @see #getValue()
- * @generated
- */
- void setValue(String value);
-
- /**
* Returns the value of the '<em><b>Type</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
@@ -67,7 +41,7 @@
* <!-- end-user-doc -->
* @return the value of the '<em>Type</em>' attribute.
* @see #setType(String)
- * @see org.jboss.tools.smooks.model.SmooksPackage#getResourceType_Type()
+ * @see smooks.SmooksPackage#getResourceType_Type()
* @model dataType="org.eclipse.emf.ecore.xml.type.String"
* extendedMetaData="kind='attribute' name='type'"
* @generated
@@ -75,7 +49,7 @@
String getType();
/**
- * Sets the value of the '{@link org.jboss.tools.smooks.model.ResourceType#getType <em>Type</em>}' attribute.
+ * Sets the value of the '{@link smooks.ResourceType#getType <em>Type</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Type</em>' attribute.
@@ -83,5 +57,13 @@
* @generated
*/
void setType(String value);
+
+ String getStringValue();
+
+ void setStringValue(String value);
+
+ String getCDATAValue();
+
+ void setCDATAValue(String value);
} // ResourceType
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/SmooksFactory.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/SmooksFactory.java 2008-12-01 04:00:30 UTC (rev 12157)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/SmooksFactory.java 2008-12-01 10:07:49 UTC (rev 12158)
@@ -13,7 +13,7 @@
* The <b>Factory</b> for the model.
* It provides a create method for each non-abstract class of the model.
* <!-- end-user-doc -->
- * @see org.jboss.tools.smooks.model.SmooksPackage
+ * @see smooks.SmooksPackage
* @generated
*/
public interface SmooksFactory extends EFactory {
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/SmooksPackage.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/SmooksPackage.java 2008-12-01 04:00:30 UTC (rev 12157)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/SmooksPackage.java 2008-12-01 10:07:49 UTC (rev 12158)
@@ -24,7 +24,7 @@
* <li>and each data type</li>
* </ul>
* <!-- end-user-doc -->
- * @see org.jboss.tools.smooks.model.SmooksFactory
+ * @see smooks.SmooksFactory
* @model kind="package"
* @generated
*/
@@ -51,7 +51,7 @@
* <!-- end-user-doc -->
* @generated
*/
- String eNS_PREFIX = null;
+ String eNS_PREFIX = "smooks";
/**
* The singleton instance of the package.
@@ -62,11 +62,11 @@
SmooksPackage eINSTANCE = org.jboss.tools.smooks.model.impl.SmooksPackageImpl.init();
/**
- * The meta object id for the '{@link org.jboss.tools.smooks.model.impl.AbstractResourceConfigImpl <em>Abstract Resource Config</em>}' class.
+ * The meta object id for the '{@link smooks.impl.AbstractResourceConfigImpl <em>Abstract Resource Config</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @see org.jboss.tools.smooks.model.impl.AbstractResourceConfigImpl
- * @see org.jboss.tools.smooks.model.impl.SmooksPackageImpl#getAbstractResourceConfig()
+ * @see smooks.impl.AbstractResourceConfigImpl
+ * @see smooks.impl.SmooksPackageImpl#getAbstractResourceConfig()
* @generated
*/
int ABSTRACT_RESOURCE_CONFIG = 0;
@@ -81,11 +81,11 @@
int ABSTRACT_RESOURCE_CONFIG_FEATURE_COUNT = 0;
/**
- * The meta object id for the '{@link org.jboss.tools.smooks.model.impl.ConditionTypeImpl <em>Condition Type</em>}' class.
+ * The meta object id for the '{@link smooks.impl.ConditionTypeImpl <em>Condition Type</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @see org.jboss.tools.smooks.model.impl.ConditionTypeImpl
- * @see org.jboss.tools.smooks.model.impl.SmooksPackageImpl#getConditionType()
+ * @see smooks.impl.ConditionTypeImpl
+ * @see smooks.impl.SmooksPackageImpl#getConditionType()
* @generated
*/
int CONDITION_TYPE = 1;
@@ -118,11 +118,11 @@
int CONDITION_TYPE_FEATURE_COUNT = 2;
/**
- * The meta object id for the '{@link org.jboss.tools.smooks.model.impl.DocumentRootImpl <em>Document Root</em>}' class.
+ * The meta object id for the '{@link smooks.impl.DocumentRootImpl <em>Document Root</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @see org.jboss.tools.smooks.model.impl.DocumentRootImpl
- * @see org.jboss.tools.smooks.model.impl.SmooksPackageImpl#getDocumentRoot()
+ * @see smooks.impl.DocumentRootImpl
+ * @see smooks.impl.SmooksPackageImpl#getDocumentRoot()
* @generated
*/
int DOCUMENT_ROOT = 2;
@@ -245,11 +245,11 @@
int DOCUMENT_ROOT_FEATURE_COUNT = 12;
/**
- * The meta object id for the '{@link org.jboss.tools.smooks.model.impl.ImportTypeImpl <em>Import Type</em>}' class.
+ * The meta object id for the '{@link smooks.impl.ImportTypeImpl <em>Import Type</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @see org.jboss.tools.smooks.model.impl.ImportTypeImpl
- * @see org.jboss.tools.smooks.model.impl.SmooksPackageImpl#getImportType()
+ * @see smooks.impl.ImportTypeImpl
+ * @see smooks.impl.SmooksPackageImpl#getImportType()
* @generated
*/
int IMPORT_TYPE = 3;
@@ -273,11 +273,11 @@
int IMPORT_TYPE_FEATURE_COUNT = ABSTRACT_RESOURCE_CONFIG_FEATURE_COUNT + 1;
/**
- * The meta object id for the '{@link org.jboss.tools.smooks.model.impl.ParamTypeImpl <em>Param Type</em>}' class.
+ * The meta object id for the '{@link smooks.impl.ParamTypeImpl <em>Param Type</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @see org.jboss.tools.smooks.model.impl.ParamTypeImpl
- * @see org.jboss.tools.smooks.model.impl.SmooksPackageImpl#getParamType()
+ * @see smooks.impl.ParamTypeImpl
+ * @see smooks.impl.SmooksPackageImpl#getParamType()
* @generated
*/
int PARAM_TYPE = 4;
@@ -337,11 +337,11 @@
int PARAM_TYPE_FEATURE_COUNT = XMLTypePackage.ANY_TYPE_FEATURE_COUNT + 2;
/**
- * The meta object id for the '{@link org.jboss.tools.smooks.model.impl.ProfilesTypeImpl <em>Profiles Type</em>}' class.
+ * The meta object id for the '{@link smooks.impl.ProfilesTypeImpl <em>Profiles Type</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @see org.jboss.tools.smooks.model.impl.ProfilesTypeImpl
- * @see org.jboss.tools.smooks.model.impl.SmooksPackageImpl#getProfilesType()
+ * @see smooks.impl.ProfilesTypeImpl
+ * @see smooks.impl.SmooksPackageImpl#getProfilesType()
* @generated
*/
int PROFILES_TYPE = 5;
@@ -365,11 +365,11 @@
int PROFILES_TYPE_FEATURE_COUNT = 1;
/**
- * The meta object id for the '{@link org.jboss.tools.smooks.model.impl.ProfileTypeImpl <em>Profile Type</em>}' class.
+ * The meta object id for the '{@link smooks.impl.ProfileTypeImpl <em>Profile Type</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @see org.jboss.tools.smooks.model.impl.ProfileTypeImpl
- * @see org.jboss.tools.smooks.model.impl.SmooksPackageImpl#getProfileType()
+ * @see smooks.impl.ProfileTypeImpl
+ * @see smooks.impl.SmooksPackageImpl#getProfileType()
* @generated
*/
int PROFILE_TYPE = 6;
@@ -411,11 +411,11 @@
int PROFILE_TYPE_FEATURE_COUNT = 3;
/**
- * The meta object id for the '{@link org.jboss.tools.smooks.model.impl.ResourceConfigTypeImpl <em>Resource Config Type</em>}' class.
+ * The meta object id for the '{@link smooks.impl.ResourceConfigTypeImpl <em>Resource Config Type</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @see org.jboss.tools.smooks.model.impl.ResourceConfigTypeImpl
- * @see org.jboss.tools.smooks.model.impl.SmooksPackageImpl#getResourceConfigType()
+ * @see smooks.impl.ResourceConfigTypeImpl
+ * @see smooks.impl.SmooksPackageImpl#getResourceConfigType()
* @generated
*/
int RESOURCE_CONFIG_TYPE = 7;
@@ -484,32 +484,50 @@
int RESOURCE_CONFIG_TYPE_FEATURE_COUNT = ABSTRACT_RESOURCE_CONFIG_FEATURE_COUNT + 6;
/**
- * The meta object id for the '{@link org.jboss.tools.smooks.model.impl.ResourceTypeImpl <em>Resource Type</em>}' class.
+ * The meta object id for the '{@link smooks.impl.ResourceTypeImpl <em>Resource Type</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @see org.jboss.tools.smooks.model.impl.ResourceTypeImpl
- * @see org.jboss.tools.smooks.model.impl.SmooksPackageImpl#getResourceType()
+ * @see smooks.impl.ResourceTypeImpl
+ * @see smooks.impl.SmooksPackageImpl#getResourceType()
* @generated
*/
int RESOURCE_TYPE = 8;
/**
- * The feature id for the '<em><b>Value</b></em>' attribute.
+ * The feature id for the '<em><b>Mixed</b></em>' attribute list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- int RESOURCE_TYPE__VALUE = 0;
+ int RESOURCE_TYPE__MIXED = XMLTypePackage.ANY_TYPE__MIXED;
/**
+ * The feature id for the '<em><b>Any</b></em>' attribute list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int RESOURCE_TYPE__ANY = XMLTypePackage.ANY_TYPE__ANY;
+
+ /**
+ * The feature id for the '<em><b>Any Attribute</b></em>' attribute list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int RESOURCE_TYPE__ANY_ATTRIBUTE = XMLTypePackage.ANY_TYPE__ANY_ATTRIBUTE;
+
+ /**
* The feature id for the '<em><b>Type</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- int RESOURCE_TYPE__TYPE = 1;
+ int RESOURCE_TYPE__TYPE = XMLTypePackage.ANY_TYPE_FEATURE_COUNT + 0;
/**
* The number of structural features of the '<em>Resource Type</em>' class.
@@ -518,14 +536,14 @@
* @generated
* @ordered
*/
- int RESOURCE_TYPE_FEATURE_COUNT = 2;
+ int RESOURCE_TYPE_FEATURE_COUNT = XMLTypePackage.ANY_TYPE_FEATURE_COUNT + 1;
/**
- * The meta object id for the '{@link org.jboss.tools.smooks.model.impl.SmooksResourceListTypeImpl <em>Resource List Type</em>}' class.
+ * The meta object id for the '{@link smooks.impl.SmooksResourceListTypeImpl <em>Resource List Type</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @see org.jboss.tools.smooks.model.impl.SmooksResourceListTypeImpl
- * @see org.jboss.tools.smooks.model.impl.SmooksPackageImpl#getSmooksResourceListType()
+ * @see smooks.impl.SmooksResourceListTypeImpl
+ * @see smooks.impl.SmooksPackageImpl#getSmooksResourceListType()
* @generated
*/
int SMOOKS_RESOURCE_LIST_TYPE = 9;
@@ -595,485 +613,474 @@
/**
- * Returns the meta object for class '{@link org.jboss.tools.smooks.model.AbstractResourceConfig <em>Abstract Resource Config</em>}'.
+ * Returns the meta object for class '{@link smooks.AbstractResourceConfig <em>Abstract Resource Config</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Abstract Resource Config</em>'.
- * @see org.jboss.tools.smooks.model.AbstractResourceConfig
+ * @see smooks.AbstractResourceConfig
* @generated
*/
EClass getAbstractResourceConfig();
/**
- * Returns the meta object for class '{@link org.jboss.tools.smooks.model.ConditionType <em>Condition Type</em>}'.
+ * Returns the meta object for class '{@link smooks.ConditionType <em>Condition Type</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Condition Type</em>'.
- * @see org.jboss.tools.smooks.model.ConditionType
+ * @see smooks.ConditionType
* @generated
*/
EClass getConditionType();
/**
- * Returns the meta object for the attribute '{@link org.jboss.tools.smooks.model.ConditionType#getValue <em>Value</em>}'.
+ * Returns the meta object for the attribute '{@link smooks.ConditionType#getValue <em>Value</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Value</em>'.
- * @see org.jboss.tools.smooks.model.ConditionType#getValue()
+ * @see smooks.ConditionType#getStringValue()
* @see #getConditionType()
* @generated
*/
EAttribute getConditionType_Value();
/**
- * Returns the meta object for the attribute '{@link org.jboss.tools.smooks.model.ConditionType#getEvaluator <em>Evaluator</em>}'.
+ * Returns the meta object for the attribute '{@link smooks.ConditionType#getEvaluator <em>Evaluator</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Evaluator</em>'.
- * @see org.jboss.tools.smooks.model.ConditionType#getEvaluator()
+ * @see smooks.ConditionType#getEvaluator()
* @see #getConditionType()
* @generated
*/
EAttribute getConditionType_Evaluator();
/**
- * Returns the meta object for class '{@link org.jboss.tools.smooks.model.DocumentRoot <em>Document Root</em>}'.
+ * Returns the meta object for class '{@link smooks.DocumentRoot <em>Document Root</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Document Root</em>'.
- * @see org.jboss.tools.smooks.model.DocumentRoot
+ * @see smooks.DocumentRoot
* @generated
*/
EClass getDocumentRoot();
/**
- * Returns the meta object for the attribute list '{@link org.jboss.tools.smooks.model.DocumentRoot#getMixed <em>Mixed</em>}'.
+ * Returns the meta object for the attribute list '{@link smooks.DocumentRoot#getMixed <em>Mixed</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute list '<em>Mixed</em>'.
- * @see org.jboss.tools.smooks.model.DocumentRoot#getMixed()
+ * @see smooks.DocumentRoot#getMixed()
* @see #getDocumentRoot()
* @generated
*/
EAttribute getDocumentRoot_Mixed();
/**
- * Returns the meta object for the map '{@link org.jboss.tools.smooks.model.DocumentRoot#getXMLNSPrefixMap <em>XMLNS Prefix Map</em>}'.
+ * Returns the meta object for the map '{@link smooks.DocumentRoot#getXMLNSPrefixMap <em>XMLNS Prefix Map</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the map '<em>XMLNS Prefix Map</em>'.
- * @see org.jboss.tools.smooks.model.DocumentRoot#getXMLNSPrefixMap()
+ * @see smooks.DocumentRoot#getXMLNSPrefixMap()
* @see #getDocumentRoot()
* @generated
*/
EReference getDocumentRoot_XMLNSPrefixMap();
/**
- * Returns the meta object for the map '{@link org.jboss.tools.smooks.model.DocumentRoot#getXSISchemaLocation <em>XSI Schema Location</em>}'.
+ * Returns the meta object for the map '{@link smooks.DocumentRoot#getXSISchemaLocation <em>XSI Schema Location</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the map '<em>XSI Schema Location</em>'.
- * @see org.jboss.tools.smooks.model.DocumentRoot#getXSISchemaLocation()
+ * @see smooks.DocumentRoot#getXSISchemaLocation()
* @see #getDocumentRoot()
* @generated
*/
EReference getDocumentRoot_XSISchemaLocation();
/**
- * Returns the meta object for the containment reference '{@link org.jboss.tools.smooks.model.DocumentRoot#getAbstractResourceConfig <em>Abstract Resource Config</em>}'.
+ * Returns the meta object for the containment reference '{@link smooks.DocumentRoot#getAbstractResourceConfig <em>Abstract Resource Config</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the containment reference '<em>Abstract Resource Config</em>'.
- * @see org.jboss.tools.smooks.model.DocumentRoot#getAbstractResourceConfig()
+ * @see smooks.DocumentRoot#getAbstractResourceConfig()
* @see #getDocumentRoot()
* @generated
*/
EReference getDocumentRoot_AbstractResourceConfig();
/**
- * Returns the meta object for the containment reference '{@link org.jboss.tools.smooks.model.DocumentRoot#getCondition <em>Condition</em>}'.
+ * Returns the meta object for the containment reference '{@link smooks.DocumentRoot#getCondition <em>Condition</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the containment reference '<em>Condition</em>'.
- * @see org.jboss.tools.smooks.model.DocumentRoot#getCondition()
+ * @see smooks.DocumentRoot#getCondition()
* @see #getDocumentRoot()
* @generated
*/
EReference getDocumentRoot_Condition();
/**
- * Returns the meta object for the containment reference '{@link org.jboss.tools.smooks.model.DocumentRoot#getImport <em>Import</em>}'.
+ * Returns the meta object for the containment reference '{@link smooks.DocumentRoot#getImport <em>Import</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the containment reference '<em>Import</em>'.
- * @see org.jboss.tools.smooks.model.DocumentRoot#getImport()
+ * @see smooks.DocumentRoot#getImport()
* @see #getDocumentRoot()
* @generated
*/
EReference getDocumentRoot_Import();
/**
- * Returns the meta object for the containment reference '{@link org.jboss.tools.smooks.model.DocumentRoot#getParam <em>Param</em>}'.
+ * Returns the meta object for the containment reference '{@link smooks.DocumentRoot#getParam <em>Param</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the containment reference '<em>Param</em>'.
- * @see org.jboss.tools.smooks.model.DocumentRoot#getParam()
+ * @see smooks.DocumentRoot#getParam()
* @see #getDocumentRoot()
* @generated
*/
EReference getDocumentRoot_Param();
/**
- * Returns the meta object for the containment reference '{@link org.jboss.tools.smooks.model.DocumentRoot#getProfile <em>Profile</em>}'.
+ * Returns the meta object for the containment reference '{@link smooks.DocumentRoot#getProfile <em>Profile</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the containment reference '<em>Profile</em>'.
- * @see org.jboss.tools.smooks.model.DocumentRoot#getProfile()
+ * @see smooks.DocumentRoot#getProfile()
* @see #getDocumentRoot()
* @generated
*/
EReference getDocumentRoot_Profile();
/**
- * Returns the meta object for the containment reference '{@link org.jboss.tools.smooks.model.DocumentRoot#getProfiles <em>Profiles</em>}'.
+ * Returns the meta object for the containment reference '{@link smooks.DocumentRoot#getProfiles <em>Profiles</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the containment reference '<em>Profiles</em>'.
- * @see org.jboss.tools.smooks.model.DocumentRoot#getProfiles()
+ * @see smooks.DocumentRoot#getProfiles()
* @see #getDocumentRoot()
* @generated
*/
EReference getDocumentRoot_Profiles();
/**
- * Returns the meta object for the containment reference '{@link org.jboss.tools.smooks.model.DocumentRoot#getResource <em>Resource</em>}'.
+ * Returns the meta object for the containment reference '{@link smooks.DocumentRoot#getResource <em>Resource</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the containment reference '<em>Resource</em>'.
- * @see org.jboss.tools.smooks.model.DocumentRoot#getResource()
+ * @see smooks.DocumentRoot#getResource()
* @see #getDocumentRoot()
* @generated
*/
EReference getDocumentRoot_Resource();
/**
- * Returns the meta object for the containment reference '{@link org.jboss.tools.smooks.model.DocumentRoot#getResourceConfig <em>Resource Config</em>}'.
+ * Returns the meta object for the containment reference '{@link smooks.DocumentRoot#getResourceConfig <em>Resource Config</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the containment reference '<em>Resource Config</em>'.
- * @see org.jboss.tools.smooks.model.DocumentRoot#getResourceConfig()
+ * @see smooks.DocumentRoot#getResourceConfig()
* @see #getDocumentRoot()
* @generated
*/
EReference getDocumentRoot_ResourceConfig();
/**
- * Returns the meta object for the containment reference '{@link org.jboss.tools.smooks.model.DocumentRoot#getSmooksResourceList <em>Smooks Resource List</em>}'.
+ * Returns the meta object for the containment reference '{@link smooks.DocumentRoot#getSmooksResourceList <em>Smooks Resource List</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the containment reference '<em>Smooks Resource List</em>'.
- * @see org.jboss.tools.smooks.model.DocumentRoot#getSmooksResourceList()
+ * @see smooks.DocumentRoot#getSmooksResourceList()
* @see #getDocumentRoot()
* @generated
*/
EReference getDocumentRoot_SmooksResourceList();
/**
- * Returns the meta object for class '{@link org.jboss.tools.smooks.model.ImportType <em>Import Type</em>}'.
+ * Returns the meta object for class '{@link smooks.ImportType <em>Import Type</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Import Type</em>'.
- * @see org.jboss.tools.smooks.model.ImportType
+ * @see smooks.ImportType
* @generated
*/
EClass getImportType();
/**
- * Returns the meta object for the attribute '{@link org.jboss.tools.smooks.model.ImportType#getFile <em>File</em>}'.
+ * Returns the meta object for the attribute '{@link smooks.ImportType#getFile <em>File</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>File</em>'.
- * @see org.jboss.tools.smooks.model.ImportType#getFile()
+ * @see smooks.ImportType#getFile()
* @see #getImportType()
* @generated
*/
EAttribute getImportType_File();
/**
- * Returns the meta object for class '{@link org.jboss.tools.smooks.model.ParamType <em>Param Type</em>}'.
+ * Returns the meta object for class '{@link smooks.ParamType <em>Param Type</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Param Type</em>'.
- * @see org.jboss.tools.smooks.model.ParamType
+ * @see smooks.ParamType
* @generated
*/
EClass getParamType();
/**
- * Returns the meta object for the attribute '{@link org.jboss.tools.smooks.model.ParamType#getName <em>Name</em>}'.
+ * Returns the meta object for the attribute '{@link smooks.ParamType#getName <em>Name</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Name</em>'.
- * @see org.jboss.tools.smooks.model.ParamType#getName()
+ * @see smooks.ParamType#getName()
* @see #getParamType()
* @generated
*/
EAttribute getParamType_Name();
/**
- * Returns the meta object for the attribute '{@link org.jboss.tools.smooks.model.ParamType#getType <em>Type</em>}'.
+ * Returns the meta object for the attribute '{@link smooks.ParamType#getType <em>Type</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Type</em>'.
- * @see org.jboss.tools.smooks.model.ParamType#getType()
+ * @see smooks.ParamType#getType()
* @see #getParamType()
* @generated
*/
EAttribute getParamType_Type();
/**
- * Returns the meta object for class '{@link org.jboss.tools.smooks.model.ProfilesType <em>Profiles Type</em>}'.
+ * Returns the meta object for class '{@link smooks.ProfilesType <em>Profiles Type</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Profiles Type</em>'.
- * @see org.jboss.tools.smooks.model.ProfilesType
+ * @see smooks.ProfilesType
* @generated
*/
EClass getProfilesType();
/**
- * Returns the meta object for the containment reference list '{@link org.jboss.tools.smooks.model.ProfilesType#getProfile <em>Profile</em>}'.
+ * Returns the meta object for the containment reference list '{@link smooks.ProfilesType#getProfile <em>Profile</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the containment reference list '<em>Profile</em>'.
- * @see org.jboss.tools.smooks.model.ProfilesType#getProfile()
+ * @see smooks.ProfilesType#getProfile()
* @see #getProfilesType()
* @generated
*/
EReference getProfilesType_Profile();
/**
- * Returns the meta object for class '{@link org.jboss.tools.smooks.model.ProfileType <em>Profile Type</em>}'.
+ * Returns the meta object for class '{@link smooks.ProfileType <em>Profile Type</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Profile Type</em>'.
- * @see org.jboss.tools.smooks.model.ProfileType
+ * @see smooks.ProfileType
* @generated
*/
EClass getProfileType();
/**
- * Returns the meta object for the attribute '{@link org.jboss.tools.smooks.model.ProfileType#getValue <em>Value</em>}'.
+ * Returns the meta object for the attribute '{@link smooks.ProfileType#getValue <em>Value</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Value</em>'.
- * @see org.jboss.tools.smooks.model.ProfileType#getValue()
+ * @see smooks.ProfileType#getStringValue()
* @see #getProfileType()
* @generated
*/
EAttribute getProfileType_Value();
/**
- * Returns the meta object for the attribute '{@link org.jboss.tools.smooks.model.ProfileType#getBaseProfile <em>Base Profile</em>}'.
+ * Returns the meta object for the attribute '{@link smooks.ProfileType#getBaseProfile <em>Base Profile</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Base Profile</em>'.
- * @see org.jboss.tools.smooks.model.ProfileType#getBaseProfile()
+ * @see smooks.ProfileType#getBaseProfile()
* @see #getProfileType()
* @generated
*/
EAttribute getProfileType_BaseProfile();
/**
- * Returns the meta object for the attribute '{@link org.jboss.tools.smooks.model.ProfileType#getSubProfiles <em>Sub Profiles</em>}'.
+ * Returns the meta object for the attribute '{@link smooks.ProfileType#getSubProfiles <em>Sub Profiles</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Sub Profiles</em>'.
- * @see org.jboss.tools.smooks.model.ProfileType#getSubProfiles()
+ * @see smooks.ProfileType#getSubProfiles()
* @see #getProfileType()
* @generated
*/
EAttribute getProfileType_SubProfiles();
/**
- * Returns the meta object for class '{@link org.jboss.tools.smooks.model.ResourceConfigType <em>Resource Config Type</em>}'.
+ * Returns the meta object for class '{@link smooks.ResourceConfigType <em>Resource Config Type</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Resource Config Type</em>'.
- * @see org.jboss.tools.smooks.model.ResourceConfigType
+ * @see smooks.ResourceConfigType
* @generated
*/
EClass getResourceConfigType();
/**
- * Returns the meta object for the containment reference '{@link org.jboss.tools.smooks.model.ResourceConfigType#getResource <em>Resource</em>}'.
+ * Returns the meta object for the containment reference '{@link smooks.ResourceConfigType#getResource <em>Resource</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the containment reference '<em>Resource</em>'.
- * @see org.jboss.tools.smooks.model.ResourceConfigType#getResource()
+ * @see smooks.ResourceConfigType#getResource()
* @see #getResourceConfigType()
* @generated
*/
EReference getResourceConfigType_Resource();
/**
- * Returns the meta object for the containment reference '{@link org.jboss.tools.smooks.model.ResourceConfigType#getCondition <em>Condition</em>}'.
+ * Returns the meta object for the containment reference '{@link smooks.ResourceConfigType#getCondition <em>Condition</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the containment reference '<em>Condition</em>'.
- * @see org.jboss.tools.smooks.model.ResourceConfigType#getCondition()
+ * @see smooks.ResourceConfigType#getCondition()
* @see #getResourceConfigType()
* @generated
*/
EReference getResourceConfigType_Condition();
/**
- * Returns the meta object for the containment reference list '{@link org.jboss.tools.smooks.model.ResourceConfigType#getParam <em>Param</em>}'.
+ * Returns the meta object for the containment reference list '{@link smooks.ResourceConfigType#getParam <em>Param</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the containment reference list '<em>Param</em>'.
- * @see org.jboss.tools.smooks.model.ResourceConfigType#getParam()
+ * @see smooks.ResourceConfigType#getParam()
* @see #getResourceConfigType()
* @generated
*/
EReference getResourceConfigType_Param();
/**
- * Returns the meta object for the attribute '{@link org.jboss.tools.smooks.model.ResourceConfigType#getSelector <em>Selector</em>}'.
+ * Returns the meta object for the attribute '{@link smooks.ResourceConfigType#getSelector <em>Selector</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Selector</em>'.
- * @see org.jboss.tools.smooks.model.ResourceConfigType#getSelector()
+ * @see smooks.ResourceConfigType#getSelector()
* @see #getResourceConfigType()
* @generated
*/
EAttribute getResourceConfigType_Selector();
/**
- * Returns the meta object for the attribute '{@link org.jboss.tools.smooks.model.ResourceConfigType#getSelectorNamespace <em>Selector Namespace</em>}'.
+ * Returns the meta object for the attribute '{@link smooks.ResourceConfigType#getSelectorNamespace <em>Selector Namespace</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Selector Namespace</em>'.
- * @see org.jboss.tools.smooks.model.ResourceConfigType#getSelectorNamespace()
+ * @see smooks.ResourceConfigType#getSelectorNamespace()
* @see #getResourceConfigType()
* @generated
*/
EAttribute getResourceConfigType_SelectorNamespace();
/**
- * Returns the meta object for the attribute '{@link org.jboss.tools.smooks.model.ResourceConfigType#getTargetProfile <em>Target Profile</em>}'.
+ * Returns the meta object for the attribute '{@link smooks.ResourceConfigType#getTargetProfile <em>Target Profile</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Target Profile</em>'.
- * @see org.jboss.tools.smooks.model.ResourceConfigType#getTargetProfile()
+ * @see smooks.ResourceConfigType#getTargetProfile()
* @see #getResourceConfigType()
* @generated
*/
EAttribute getResourceConfigType_TargetProfile();
/**
- * Returns the meta object for class '{@link org.jboss.tools.smooks.model.ResourceType <em>Resource Type</em>}'.
+ * Returns the meta object for class '{@link smooks.ResourceType <em>Resource Type</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Resource Type</em>'.
- * @see org.jboss.tools.smooks.model.ResourceType
+ * @see smooks.ResourceType
* @generated
*/
EClass getResourceType();
/**
- * Returns the meta object for the attribute '{@link org.jboss.tools.smooks.model.ResourceType#getValue <em>Value</em>}'.
+ * Returns the meta object for the attribute '{@link smooks.ResourceType#getType <em>Type</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Value</em>'.
- * @see org.jboss.tools.smooks.model.ResourceType#getValue()
- * @see #getResourceType()
- * @generated
- */
- EAttribute getResourceType_Value();
-
- /**
- * Returns the meta object for the attribute '{@link org.jboss.tools.smooks.model.ResourceType#getType <em>Type</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Type</em>'.
- * @see org.jboss.tools.smooks.model.ResourceType#getType()
+ * @see smooks.ResourceType#getType()
* @see #getResourceType()
* @generated
*/
EAttribute getResourceType_Type();
/**
- * Returns the meta object for class '{@link org.jboss.tools.smooks.model.SmooksResourceListType <em>Resource List Type</em>}'.
+ * Returns the meta object for class '{@link smooks.SmooksResourceListType <em>Resource List Type</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Resource List Type</em>'.
- * @see org.jboss.tools.smooks.model.SmooksResourceListType
+ * @see smooks.SmooksResourceListType
* @generated
*/
EClass getSmooksResourceListType();
/**
- * Returns the meta object for the containment reference '{@link org.jboss.tools.smooks.model.SmooksResourceListType#getProfiles <em>Profiles</em>}'.
+ * Returns the meta object for the containment reference '{@link smooks.SmooksResourceListType#getProfiles <em>Profiles</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the containment reference '<em>Profiles</em>'.
- * @see org.jboss.tools.smooks.model.SmooksResourceListType#getProfiles()
+ * @see smooks.SmooksResourceListType#getProfiles()
* @see #getSmooksResourceListType()
* @generated
*/
EReference getSmooksResourceListType_Profiles();
/**
- * Returns the meta object for the attribute list '{@link org.jboss.tools.smooks.model.SmooksResourceListType#getAbstractResourceConfigGroup <em>Abstract Resource Config Group</em>}'.
+ * Returns the meta object for the attribute list '{@link smooks.SmooksResourceListType#getAbstractResourceConfigGroup <em>Abstract Resource Config Group</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute list '<em>Abstract Resource Config Group</em>'.
- * @see org.jboss.tools.smooks.model.SmooksResourceListType#getAbstractResourceConfigGroup()
+ * @see smooks.SmooksResourceListType#getAbstractResourceConfigGroup()
* @see #getSmooksResourceListType()
* @generated
*/
EAttribute getSmooksResourceListType_AbstractResourceConfigGroup();
/**
- * Returns the meta object for the containment reference list '{@link org.jboss.tools.smooks.model.SmooksResourceListType#getAbstractResourceConfig <em>Abstract Resource Config</em>}'.
+ * Returns the meta object for the containment reference list '{@link smooks.SmooksResourceListType#getAbstractResourceConfig <em>Abstract Resource Config</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the containment reference list '<em>Abstract Resource Config</em>'.
- * @see org.jboss.tools.smooks.model.SmooksResourceListType#getAbstractResourceConfig()
+ * @see smooks.SmooksResourceListType#getAbstractResourceConfig()
* @see #getSmooksResourceListType()
* @generated
*/
EReference getSmooksResourceListType_AbstractResourceConfig();
/**
- * Returns the meta object for the attribute '{@link org.jboss.tools.smooks.model.SmooksResourceListType#getDefaultSelector <em>Default Selector</em>}'.
+ * Returns the meta object for the attribute '{@link smooks.SmooksResourceListType#getDefaultSelector <em>Default Selector</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Default Selector</em>'.
- * @see org.jboss.tools.smooks.model.SmooksResourceListType#getDefaultSelector()
+ * @see smooks.SmooksResourceListType#getDefaultSelector()
* @see #getSmooksResourceListType()
* @generated
*/
EAttribute getSmooksResourceListType_DefaultSelector();
/**
- * Returns the meta object for the attribute '{@link org.jboss.tools.smooks.model.SmooksResourceListType#getDefaultSelectorNamespace <em>Default Selector Namespace</em>}'.
+ * Returns the meta object for the attribute '{@link smooks.SmooksResourceListType#getDefaultSelectorNamespace <em>Default Selector Namespace</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Default Selector Namespace</em>'.
- * @see org.jboss.tools.smooks.model.SmooksResourceListType#getDefaultSelectorNamespace()
+ * @see smooks.SmooksResourceListType#getDefaultSelectorNamespace()
* @see #getSmooksResourceListType()
* @generated
*/
EAttribute getSmooksResourceListType_DefaultSelectorNamespace();
/**
- * Returns the meta object for the attribute '{@link org.jboss.tools.smooks.model.SmooksResourceListType#getDefaultTargetProfile <em>Default Target Profile</em>}'.
+ * Returns the meta object for the attribute '{@link smooks.SmooksResourceListType#getDefaultTargetProfile <em>Default Target Profile</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Default Target Profile</em>'.
- * @see org.jboss.tools.smooks.model.SmooksResourceListType#getDefaultTargetProfile()
+ * @see smooks.SmooksResourceListType#getDefaultTargetProfile()
* @see #getSmooksResourceListType()
* @generated
*/
@@ -1102,21 +1109,21 @@
*/
interface Literals {
/**
- * The meta object literal for the '{@link org.jboss.tools.smooks.model.impl.AbstractResourceConfigImpl <em>Abstract Resource Config</em>}' class.
+ * The meta object literal for the '{@link smooks.impl.AbstractResourceConfigImpl <em>Abstract Resource Config</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @see org.jboss.tools.smooks.model.impl.AbstractResourceConfigImpl
- * @see org.jboss.tools.smooks.model.impl.SmooksPackageImpl#getAbstractResourceConfig()
+ * @see smooks.impl.AbstractResourceConfigImpl
+ * @see smooks.impl.SmooksPackageImpl#getAbstractResourceConfig()
* @generated
*/
EClass ABSTRACT_RESOURCE_CONFIG = eINSTANCE.getAbstractResourceConfig();
/**
- * The meta object literal for the '{@link org.jboss.tools.smooks.model.impl.ConditionTypeImpl <em>Condition Type</em>}' class.
+ * The meta object literal for the '{@link smooks.impl.ConditionTypeImpl <em>Condition Type</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @see org.jboss.tools.smooks.model.impl.ConditionTypeImpl
- * @see org.jboss.tools.smooks.model.impl.SmooksPackageImpl#getConditionType()
+ * @see smooks.impl.ConditionTypeImpl
+ * @see smooks.impl.SmooksPackageImpl#getConditionType()
* @generated
*/
EClass CONDITION_TYPE = eINSTANCE.getConditionType();
@@ -1138,11 +1145,11 @@
EAttribute CONDITION_TYPE__EVALUATOR = eINSTANCE.getConditionType_Evaluator();
/**
- * The meta object literal for the '{@link org.jboss.tools.smooks.model.impl.DocumentRootImpl <em>Document Root</em>}' class.
+ * The meta object literal for the '{@link smooks.impl.DocumentRootImpl <em>Document Root</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @see org.jboss.tools.smooks.model.impl.DocumentRootImpl
- * @see org.jboss.tools.smooks.model.impl.SmooksPackageImpl#getDocumentRoot()
+ * @see smooks.impl.DocumentRootImpl
+ * @see smooks.impl.SmooksPackageImpl#getDocumentRoot()
* @generated
*/
EClass DOCUMENT_ROOT = eINSTANCE.getDocumentRoot();
@@ -1244,11 +1251,11 @@
EReference DOCUMENT_ROOT__SMOOKS_RESOURCE_LIST = eINSTANCE.getDocumentRoot_SmooksResourceList();
/**
- * The meta object literal for the '{@link org.jboss.tools.smooks.model.impl.ImportTypeImpl <em>Import Type</em>}' class.
+ * The meta object literal for the '{@link smooks.impl.ImportTypeImpl <em>Import Type</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @see org.jboss.tools.smooks.model.impl.ImportTypeImpl
- * @see org.jboss.tools.smooks.model.impl.SmooksPackageImpl#getImportType()
+ * @see smooks.impl.ImportTypeImpl
+ * @see smooks.impl.SmooksPackageImpl#getImportType()
* @generated
*/
EClass IMPORT_TYPE = eINSTANCE.getImportType();
@@ -1262,11 +1269,11 @@
EAttribute IMPORT_TYPE__FILE = eINSTANCE.getImportType_File();
/**
- * The meta object literal for the '{@link org.jboss.tools.smooks.model.impl.ParamTypeImpl <em>Param Type</em>}' class.
+ * The meta object literal for the '{@link smooks.impl.ParamTypeImpl <em>Param Type</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @see org.jboss.tools.smooks.model.impl.ParamTypeImpl
- * @see org.jboss.tools.smooks.model.impl.SmooksPackageImpl#getParamType()
+ * @see smooks.impl.ParamTypeImpl
+ * @see smooks.impl.SmooksPackageImpl#getParamType()
* @generated
*/
EClass PARAM_TYPE = eINSTANCE.getParamType();
@@ -1288,11 +1295,11 @@
EAttribute PARAM_TYPE__TYPE = eINSTANCE.getParamType_Type();
/**
- * The meta object literal for the '{@link org.jboss.tools.smooks.model.impl.ProfilesTypeImpl <em>Profiles Type</em>}' class.
+ * The meta object literal for the '{@link smooks.impl.ProfilesTypeImpl <em>Profiles Type</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @see org.jboss.tools.smooks.model.impl.ProfilesTypeImpl
- * @see org.jboss.tools.smooks.model.impl.SmooksPackageImpl#getProfilesType()
+ * @see smooks.impl.ProfilesTypeImpl
+ * @see smooks.impl.SmooksPackageImpl#getProfilesType()
* @generated
*/
EClass PROFILES_TYPE = eINSTANCE.getProfilesType();
@@ -1306,11 +1313,11 @@
EReference PROFILES_TYPE__PROFILE = eINSTANCE.getProfilesType_Profile();
/**
- * The meta object literal for the '{@link org.jboss.tools.smooks.model.impl.ProfileTypeImpl <em>Profile Type</em>}' class.
+ * The meta object literal for the '{@link smooks.impl.ProfileTypeImpl <em>Profile Type</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @see org.jboss.tools.smooks.model.impl.ProfileTypeImpl
- * @see org.jboss.tools.smooks.model.impl.SmooksPackageImpl#getProfileType()
+ * @see smooks.impl.ProfileTypeImpl
+ * @see smooks.impl.SmooksPackageImpl#getProfileType()
* @generated
*/
EClass PROFILE_TYPE = eINSTANCE.getProfileType();
@@ -1340,11 +1347,11 @@
EAttribute PROFILE_TYPE__SUB_PROFILES = eINSTANCE.getProfileType_SubProfiles();
/**
- * The meta object literal for the '{@link org.jboss.tools.smooks.model.impl.ResourceConfigTypeImpl <em>Resource Config Type</em>}' class.
+ * The meta object literal for the '{@link smooks.impl.ResourceConfigTypeImpl <em>Resource Config Type</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @see org.jboss.tools.smooks.model.impl.ResourceConfigTypeImpl
- * @see org.jboss.tools.smooks.model.impl.SmooksPackageImpl#getResourceConfigType()
+ * @see smooks.impl.ResourceConfigTypeImpl
+ * @see smooks.impl.SmooksPackageImpl#getResourceConfigType()
* @generated
*/
EClass RESOURCE_CONFIG_TYPE = eINSTANCE.getResourceConfigType();
@@ -1398,24 +1405,16 @@
EAttribute RESOURCE_CONFIG_TYPE__TARGET_PROFILE = eINSTANCE.getResourceConfigType_TargetProfile();
/**
- * The meta object literal for the '{@link org.jboss.tools.smooks.model.impl.ResourceTypeImpl <em>Resource Type</em>}' class.
+ * The meta object literal for the '{@link smooks.impl.ResourceTypeImpl <em>Resource Type</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @see org.jboss.tools.smooks.model.impl.ResourceTypeImpl
- * @see org.jboss.tools.smooks.model.impl.SmooksPackageImpl#getResourceType()
+ * @see smooks.impl.ResourceTypeImpl
+ * @see smooks.impl.SmooksPackageImpl#getResourceType()
* @generated
*/
EClass RESOURCE_TYPE = eINSTANCE.getResourceType();
/**
- * The meta object literal for the '<em><b>Value</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EAttribute RESOURCE_TYPE__VALUE = eINSTANCE.getResourceType_Value();
-
- /**
* The meta object literal for the '<em><b>Type</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
@@ -1424,11 +1423,11 @@
EAttribute RESOURCE_TYPE__TYPE = eINSTANCE.getResourceType_Type();
/**
- * The meta object literal for the '{@link org.jboss.tools.smooks.model.impl.SmooksResourceListTypeImpl <em>Resource List Type</em>}' class.
+ * The meta object literal for the '{@link smooks.impl.SmooksResourceListTypeImpl <em>Resource List Type</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @see org.jboss.tools.smooks.model.impl.SmooksResourceListTypeImpl
- * @see org.jboss.tools.smooks.model.impl.SmooksPackageImpl#getSmooksResourceListType()
+ * @see smooks.impl.SmooksResourceListTypeImpl
+ * @see smooks.impl.SmooksPackageImpl#getSmooksResourceListType()
* @generated
*/
EClass SMOOKS_RESOURCE_LIST_TYPE = eINSTANCE.getSmooksResourceListType();
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/impl/ResourceTypeImpl.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/impl/ResourceTypeImpl.java 2008-12-01 04:00:30 UTC (rev 12157)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/impl/ResourceTypeImpl.java 2008-12-01 10:07:49 UTC (rev 12158)
@@ -11,10 +11,12 @@
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.EObjectImpl;
+import org.eclipse.emf.ecore.xml.type.impl.AnyTypeImpl;
+
import org.jboss.tools.smooks.model.ResourceType;
import org.jboss.tools.smooks.model.SmooksPackage;
+import org.jboss.tools.smooks.model.util.SmooksModelUtils;
/**
* <!-- begin-user-doc -->
@@ -23,35 +25,14 @@
* <p>
* The following features are implemented:
* <ul>
- * <li>{@link org.jboss.tools.smooks.model.impl.ResourceTypeImpl#getValue <em>Value</em>}</li>
- * <li>{@link org.jboss.tools.smooks.model.impl.ResourceTypeImpl#getType <em>Type</em>}</li>
+ * <li>{@link smooks.impl.ResourceTypeImpl#getType <em>Type</em>}</li>
* </ul>
* </p>
*
* @generated
*/
-public class ResourceTypeImpl extends EObjectImpl implements ResourceType {
+public class ResourceTypeImpl extends AnyTypeImpl implements ResourceType {
/**
- * The default value of the '{@link #getValue() <em>Value</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getValue()
- * @generated
- * @ordered
- */
- protected static final String VALUE_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getValue() <em>Value</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getValue()
- * @generated
- * @ordered
- */
- protected String value = VALUE_EDEFAULT;
-
- /**
* The default value of the '{@link #getType() <em>Type</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
@@ -70,6 +51,8 @@
* @ordered
*/
protected String type = TYPE_EDEFAULT;
+
+ protected String value = null;
/**
* <!-- begin-user-doc -->
@@ -95,27 +78,6 @@
* <!-- end-user-doc -->
* @generated
*/
- public String getValue() {
- return value;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setValue(String newValue) {
- String oldValue = value;
- value = newValue;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, SmooksPackage.RESOURCE_TYPE__VALUE, oldValue, value));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
public String getType() {
return type;
}
@@ -140,8 +102,6 @@
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
- case SmooksPackage.RESOURCE_TYPE__VALUE:
- return getValue();
case SmooksPackage.RESOURCE_TYPE__TYPE:
return getType();
}
@@ -156,9 +116,6 @@
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
- case SmooksPackage.RESOURCE_TYPE__VALUE:
- setValue((String)newValue);
- return;
case SmooksPackage.RESOURCE_TYPE__TYPE:
setType((String)newValue);
return;
@@ -174,9 +131,6 @@
@Override
public void eUnset(int featureID) {
switch (featureID) {
- case SmooksPackage.RESOURCE_TYPE__VALUE:
- setValue(VALUE_EDEFAULT);
- return;
case SmooksPackage.RESOURCE_TYPE__TYPE:
setType(TYPE_EDEFAULT);
return;
@@ -192,8 +146,6 @@
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
- case SmooksPackage.RESOURCE_TYPE__VALUE:
- return VALUE_EDEFAULT == null ? value != null : !VALUE_EDEFAULT.equals(value);
case SmooksPackage.RESOURCE_TYPE__TYPE:
return TYPE_EDEFAULT == null ? type != null : !TYPE_EDEFAULT.equals(type);
}
@@ -210,12 +162,26 @@
if (eIsProxy()) return super.toString();
StringBuffer result = new StringBuffer(super.toString());
- result.append(" (value: ");
- result.append(value);
- result.append(", type: ");
+ result.append(" (type: ");
result.append(type);
result.append(')');
return result.toString();
}
+ public String getStringValue() {
+ return SmooksModelUtils.getAnyTypeText(this);
+ }
+
+ public void setStringValue(String value) {
+ SmooksModelUtils.setTextToAnyType(this, value);
+ }
+
+ public String getCDATAValue() {
+ return SmooksModelUtils.getAnyTypeCDATA(this);
+ }
+
+ public void setCDATAValue(String value) {
+ SmooksModelUtils.setCDATAToAnyType(this, value);
+ }
+
} //ResourceTypeImpl
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/impl/SmooksFactoryImpl.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/impl/SmooksFactoryImpl.java 2008-12-01 04:00:30 UTC (rev 12157)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/impl/SmooksFactoryImpl.java 2008-12-01 10:07:49 UTC (rev 12158)
@@ -9,13 +9,20 @@
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.EPackage;
-
import org.eclipse.emf.ecore.impl.EFactoryImpl;
-
import org.eclipse.emf.ecore.plugin.EcorePlugin;
+import org.jboss.tools.smooks.model.ConditionType;
+import org.jboss.tools.smooks.model.DocumentRoot;
+import org.jboss.tools.smooks.model.ImportType;
+import org.jboss.tools.smooks.model.ParamType;
+import org.jboss.tools.smooks.model.ProfileType;
+import org.jboss.tools.smooks.model.ProfilesType;
+import org.jboss.tools.smooks.model.ResourceConfigType;
+import org.jboss.tools.smooks.model.ResourceType;
+import org.jboss.tools.smooks.model.SmooksFactory;
+import org.jboss.tools.smooks.model.SmooksPackage;
+import org.jboss.tools.smooks.model.SmooksResourceListType;
-import org.jboss.tools.smooks.model.*;
-
/**
* <!-- begin-user-doc -->
* An implementation of the model <b>Factory</b>.
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/impl/SmooksPackageImpl.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/impl/SmooksPackageImpl.java 2008-12-01 04:00:30 UTC (rev 12157)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/impl/SmooksPackageImpl.java 2008-12-01 10:07:49 UTC (rev 12158)
@@ -10,11 +10,8 @@
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.EReference;
-
import org.eclipse.emf.ecore.impl.EPackageImpl;
-
import org.eclipse.emf.ecore.xml.type.XMLTypePackage;
-
import org.jboss.tools.smooks.model.AbstractResourceConfig;
import org.jboss.tools.smooks.model.ConditionType;
import org.jboss.tools.smooks.model.DocumentRoot;
@@ -116,7 +113,7 @@
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see org.eclipse.emf.ecore.EPackage.Registry
- * @see org.jboss.tools.smooks.model.SmooksPackage#eNS_URI
+ * @see smooks.SmooksPackage#eNS_URI
* @see #init()
* @generated
*/
@@ -505,7 +502,7 @@
* <!-- end-user-doc -->
* @generated
*/
- public EAttribute getResourceType_Value() {
+ public EAttribute getResourceType_Type() {
return (EAttribute)resourceTypeEClass.getEStructuralFeatures().get(0);
}
@@ -514,15 +511,6 @@
* <!-- end-user-doc -->
* @generated
*/
- public EAttribute getResourceType_Type() {
- return (EAttribute)resourceTypeEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
public EClass getSmooksResourceListType() {
return smooksResourceListTypeEClass;
}
@@ -653,7 +641,6 @@
createEAttribute(resourceConfigTypeEClass, RESOURCE_CONFIG_TYPE__TARGET_PROFILE);
resourceTypeEClass = createEClass(RESOURCE_TYPE);
- createEAttribute(resourceTypeEClass, RESOURCE_TYPE__VALUE);
createEAttribute(resourceTypeEClass, RESOURCE_TYPE__TYPE);
smooksResourceListTypeEClass = createEClass(SMOOKS_RESOURCE_LIST_TYPE);
@@ -699,13 +686,14 @@
importTypeEClass.getESuperTypes().add(this.getAbstractResourceConfig());
paramTypeEClass.getESuperTypes().add(theXMLTypePackage.getAnyType());
resourceConfigTypeEClass.getESuperTypes().add(this.getAbstractResourceConfig());
+ resourceTypeEClass.getESuperTypes().add(theXMLTypePackage.getAnyType());
// Initialize classes and features; add operations and parameters
initEClass(abstractResourceConfigEClass, AbstractResourceConfig.class, "AbstractResourceConfig", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEClass(conditionTypeEClass, ConditionType.class, "ConditionType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEAttribute(getConditionType_Value(), theXMLTypePackage.getString(), "value", null, 0, 1, ConditionType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getConditionType_Evaluator(), theXMLTypePackage.getString(), "evaluator", null, 1, 1, ConditionType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getConditionType_Evaluator(), theXMLTypePackage.getString(), "evaluator", "org.milyn.javabean.expression.BeanMapExpressionEvaluator", 0, 1, ConditionType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEClass(documentRootEClass, DocumentRoot.class, "DocumentRoot", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEAttribute(getDocumentRoot_Mixed(), ecorePackage.getEFeatureMapEntry(), "mixed", null, 0, -1, null, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
@@ -745,7 +733,6 @@
initEAttribute(getResourceConfigType_TargetProfile(), theXMLTypePackage.getString(), "targetProfile", null, 0, 1, ResourceConfigType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEClass(resourceTypeEClass, ResourceType.class, "ResourceType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getResourceType_Value(), theXMLTypePackage.getString(), "value", null, 0, 1, ResourceType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEAttribute(getResourceType_Type(), theXMLTypePackage.getString(), "type", null, 0, 1, ResourceType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEClass(smooksResourceListTypeEClass, SmooksResourceListType.class, "SmooksResourceListType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
@@ -1037,16 +1024,9 @@
source,
new String[] {
"name", "resource_._type",
- "kind", "simple"
+ "kind", "mixed"
});
addAnnotation
- (getResourceType_Value(),
- source,
- new String[] {
- "name", ":0",
- "kind", "simple"
- });
- addAnnotation
(getResourceType_Type(),
source,
new String[] {
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/provider/ResourceTypeItemProvider.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/provider/ResourceTypeItemProvider.java 2008-12-01 04:00:30 UTC (rev 12157)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/provider/ResourceTypeItemProvider.java 2008-12-01 10:07:49 UTC (rev 12158)
@@ -12,9 +12,11 @@
import org.eclipse.emf.common.notify.AdapterFactory;
import org.eclipse.emf.common.notify.Notification;
-
import org.eclipse.emf.common.util.ResourceLocator;
-
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.emf.ecore.util.FeatureMapUtil;
+import org.eclipse.emf.ecore.xml.type.XMLTypeFactory;
+import org.eclipse.emf.ecore.xml.type.XMLTypePackage;
import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
import org.eclipse.emf.edit.provider.IItemLabelProvider;
@@ -25,12 +27,12 @@
import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
import org.eclipse.emf.edit.provider.ItemProviderAdapter;
import org.eclipse.emf.edit.provider.ViewerNotification;
-
import org.jboss.tools.smooks.model.ResourceType;
+import org.jboss.tools.smooks.model.SmooksFactory;
import org.jboss.tools.smooks.model.SmooksPackage;
/**
- * This is the item provider adapter for a {@link org.jboss.tools.smooks.model.ResourceType} object.
+ * This is the item provider adapter for a {@link smooks.ResourceType} object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
@@ -64,26 +66,25 @@
if (itemPropertyDescriptors == null) {
super.getPropertyDescriptors(object);
- addValuePropertyDescriptor(object);
addTypePropertyDescriptor(object);
}
return itemPropertyDescriptors;
}
/**
- * This adds a property descriptor for the Value feature.
+ * This adds a property descriptor for the Type feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
- protected void addValuePropertyDescriptor(Object object) {
+ protected void addTypePropertyDescriptor(Object object) {
itemPropertyDescriptors.add
(createItemPropertyDescriptor
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
getResourceLocator(),
- getString("_UI_ResourceType_value_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_ResourceType_value_feature", "_UI_ResourceType_type"),
- SmooksPackage.Literals.RESOURCE_TYPE__VALUE,
+ getString("_UI_ResourceType_type_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_ResourceType_type_feature", "_UI_ResourceType_type"),
+ SmooksPackage.Literals.RESOURCE_TYPE__TYPE,
true,
false,
false,
@@ -93,28 +94,37 @@
}
/**
- * This adds a property descriptor for the Type feature.
+ * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an
+ * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or
+ * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
- protected void addTypePropertyDescriptor(Object object) {
- itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_ResourceType_type_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_ResourceType_type_feature", "_UI_ResourceType_type"),
- SmooksPackage.Literals.RESOURCE_TYPE__TYPE,
- true,
- false,
- false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
- null,
- null));
+ @Override
+ public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object) {
+ if (childrenFeatures == null) {
+ super.getChildrenFeatures(object);
+ childrenFeatures.add(XMLTypePackage.Literals.ANY_TYPE__MIXED);
+ childrenFeatures.add(XMLTypePackage.Literals.ANY_TYPE__ANY_ATTRIBUTE);
+ }
+ return childrenFeatures;
}
/**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EStructuralFeature getChildFeature(Object object, Object child) {
+ // Check the type of the specified child object and return the proper feature to use for
+ // adding (see {@link AddCommand}) it as a child.
+
+ return super.getChildFeature(object, child);
+ }
+
+ /**
* This returns ResourceType.gif.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
@@ -133,7 +143,7 @@
*/
@Override
public String getText(Object object) {
- String label = ((ResourceType)object).getValue();
+ String label = ((ResourceType)object).getType();
return label == null || label.length() == 0 ?
getString("_UI_ResourceType_type") :
getString("_UI_ResourceType_type") + " " + label;
@@ -151,10 +161,13 @@
updateChildren(notification);
switch (notification.getFeatureID(ResourceType.class)) {
- case SmooksPackage.RESOURCE_TYPE__VALUE:
case SmooksPackage.RESOURCE_TYPE__TYPE:
fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
return;
+ case SmooksPackage.RESOURCE_TYPE__MIXED:
+ case SmooksPackage.RESOURCE_TYPE__ANY_ATTRIBUTE:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
+ return;
}
super.notifyChanged(notification);
}
@@ -169,6 +182,90 @@
@Override
protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
super.collectNewChildDescriptors(newChildDescriptors, object);
+
+ newChildDescriptors.add
+ (createChildParameter
+ (XMLTypePackage.Literals.ANY_TYPE__MIXED,
+ FeatureMapUtil.createEntry
+ (XMLTypePackage.Literals.XML_TYPE_DOCUMENT_ROOT__COMMENT,
+ "")));
+
+ newChildDescriptors.add
+ (createChildParameter
+ (XMLTypePackage.Literals.ANY_TYPE__MIXED,
+ FeatureMapUtil.createEntry
+ (XMLTypePackage.Literals.XML_TYPE_DOCUMENT_ROOT__TEXT,
+ "")));
+
+ newChildDescriptors.add
+ (createChildParameter
+ (XMLTypePackage.Literals.ANY_TYPE__MIXED,
+ FeatureMapUtil.createEntry
+ (XMLTypePackage.Literals.XML_TYPE_DOCUMENT_ROOT__PROCESSING_INSTRUCTION,
+ XMLTypeFactory.eINSTANCE.createProcessingInstruction())));
+
+ newChildDescriptors.add
+ (createChildParameter
+ (XMLTypePackage.Literals.ANY_TYPE__MIXED,
+ FeatureMapUtil.createEntry
+ (XMLTypePackage.Literals.XML_TYPE_DOCUMENT_ROOT__CDATA,
+ "")));
+
+ newChildDescriptors.add
+ (createChildParameter
+ (XMLTypePackage.Literals.ANY_TYPE__MIXED,
+ FeatureMapUtil.createEntry
+ (SmooksPackage.Literals.DOCUMENT_ROOT__CONDITION,
+ SmooksFactory.eINSTANCE.createConditionType())));
+
+ newChildDescriptors.add
+ (createChildParameter
+ (XMLTypePackage.Literals.ANY_TYPE__MIXED,
+ FeatureMapUtil.createEntry
+ (SmooksPackage.Literals.DOCUMENT_ROOT__IMPORT,
+ SmooksFactory.eINSTANCE.createImportType())));
+
+ newChildDescriptors.add
+ (createChildParameter
+ (XMLTypePackage.Literals.ANY_TYPE__MIXED,
+ FeatureMapUtil.createEntry
+ (SmooksPackage.Literals.DOCUMENT_ROOT__PARAM,
+ SmooksFactory.eINSTANCE.createParamType())));
+
+ newChildDescriptors.add
+ (createChildParameter
+ (XMLTypePackage.Literals.ANY_TYPE__MIXED,
+ FeatureMapUtil.createEntry
+ (SmooksPackage.Literals.DOCUMENT_ROOT__PROFILE,
+ SmooksFactory.eINSTANCE.createProfileType())));
+
+ newChildDescriptors.add
+ (createChildParameter
+ (XMLTypePackage.Literals.ANY_TYPE__MIXED,
+ FeatureMapUtil.createEntry
+ (SmooksPackage.Literals.DOCUMENT_ROOT__PROFILES,
+ SmooksFactory.eINSTANCE.createProfilesType())));
+
+ newChildDescriptors.add
+ (createChildParameter
+ (XMLTypePackage.Literals.ANY_TYPE__MIXED,
+ FeatureMapUtil.createEntry
+ (SmooksPackage.Literals.DOCUMENT_ROOT__RESOURCE,
+ SmooksFactory.eINSTANCE.createResourceType())));
+
+ newChildDescriptors.add
+ (createChildParameter
+ (XMLTypePackage.Literals.ANY_TYPE__MIXED,
+ FeatureMapUtil.createEntry
+ (SmooksPackage.Literals.DOCUMENT_ROOT__RESOURCE_CONFIG,
+ SmooksFactory.eINSTANCE.createResourceConfigType())));
+
+ newChildDescriptors.add
+ (createChildParameter
+ (XMLTypePackage.Literals.ANY_TYPE__MIXED,
+ FeatureMapUtil.createEntry
+ (SmooksPackage.Literals.DOCUMENT_ROOT__SMOOKS_RESOURCE_LIST,
+ SmooksFactory.eINSTANCE.createSmooksResourceListType())));
}
/**
@@ -179,7 +276,7 @@
*/
@Override
public ResourceLocator getResourceLocator() {
- return Smooks_1_0EditPlugin.INSTANCE;
+ return Smooks_1_0EditPlugin.INSTANCE;
}
}
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/util/SmooksAdapterFactory.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/util/SmooksAdapterFactory.java 2008-12-01 04:00:30 UTC (rev 12157)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/util/SmooksAdapterFactory.java 2008-12-01 10:07:49 UTC (rev 12158)
@@ -8,21 +8,27 @@
import org.eclipse.emf.common.notify.Adapter;
import org.eclipse.emf.common.notify.Notifier;
-
import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl;
-
import org.eclipse.emf.ecore.EObject;
-
import org.eclipse.emf.ecore.xml.type.AnyType;
+import org.jboss.tools.smooks.model.AbstractResourceConfig;
+import org.jboss.tools.smooks.model.ConditionType;
+import org.jboss.tools.smooks.model.DocumentRoot;
+import org.jboss.tools.smooks.model.ImportType;
+import org.jboss.tools.smooks.model.ParamType;
+import org.jboss.tools.smooks.model.ProfileType;
+import org.jboss.tools.smooks.model.ProfilesType;
+import org.jboss.tools.smooks.model.ResourceConfigType;
+import org.jboss.tools.smooks.model.ResourceType;
+import org.jboss.tools.smooks.model.SmooksPackage;
+import org.jboss.tools.smooks.model.SmooksResourceListType;
-import org.jboss.tools.smooks.model.*;
-
/**
* <!-- begin-user-doc -->
* The <b>Adapter Factory</b> for the model.
* It provides an adapter <code>createXXX</code> method for each class of the model.
* <!-- end-user-doc -->
- * @see org.jboss.tools.smooks.model.SmooksPackage
+ * @see smooks.SmooksPackage
* @generated
*/
public class SmooksAdapterFactory extends AdapterFactoryImpl {
@@ -138,13 +144,13 @@
/**
- * Creates a new adapter for an object of class '{@link org.jboss.tools.smooks.model.AbstractResourceConfig <em>Abstract Resource Config</em>}'.
+ * Creates a new adapter for an object of class '{@link smooks.AbstractResourceConfig <em>Abstract Resource Config</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
- * @see org.jboss.tools.smooks.model.AbstractResourceConfig
+ * @see smooks.AbstractResourceConfig
* @generated
*/
public Adapter createAbstractResourceConfigAdapter() {
@@ -152,13 +158,13 @@
}
/**
- * Creates a new adapter for an object of class '{@link org.jboss.tools.smooks.model.ConditionType <em>Condition Type</em>}'.
+ * Creates a new adapter for an object of class '{@link smooks.ConditionType <em>Condition Type</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
- * @see org.jboss.tools.smooks.model.ConditionType
+ * @see smooks.ConditionType
* @generated
*/
public Adapter createConditionTypeAdapter() {
@@ -166,13 +172,13 @@
}
/**
- * Creates a new adapter for an object of class '{@link org.jboss.tools.smooks.model.DocumentRoot <em>Document Root</em>}'.
+ * Creates a new adapter for an object of class '{@link smooks.DocumentRoot <em>Document Root</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
- * @see org.jboss.tools.smooks.model.DocumentRoot
+ * @see smooks.DocumentRoot
* @generated
*/
public Adapter createDocumentRootAdapter() {
@@ -180,13 +186,13 @@
}
/**
- * Creates a new adapter for an object of class '{@link org.jboss.tools.smooks.model.ImportType <em>Import Type</em>}'.
+ * Creates a new adapter for an object of class '{@link smooks.ImportType <em>Import Type</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
- * @see org.jboss.tools.smooks.model.ImportType
+ * @see smooks.ImportType
* @generated
*/
public Adapter createImportTypeAdapter() {
@@ -194,13 +200,13 @@
}
/**
- * Creates a new adapter for an object of class '{@link org.jboss.tools.smooks.model.ParamType <em>Param Type</em>}'.
+ * Creates a new adapter for an object of class '{@link smooks.ParamType <em>Param Type</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
- * @see org.jboss.tools.smooks.model.ParamType
+ * @see smooks.ParamType
* @generated
*/
public Adapter createParamTypeAdapter() {
@@ -208,13 +214,13 @@
}
/**
- * Creates a new adapter for an object of class '{@link org.jboss.tools.smooks.model.ProfilesType <em>Profiles Type</em>}'.
+ * Creates a new adapter for an object of class '{@link smooks.ProfilesType <em>Profiles Type</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
- * @see org.jboss.tools.smooks.model.ProfilesType
+ * @see smooks.ProfilesType
* @generated
*/
public Adapter createProfilesTypeAdapter() {
@@ -222,13 +228,13 @@
}
/**
- * Creates a new adapter for an object of class '{@link org.jboss.tools.smooks.model.ProfileType <em>Profile Type</em>}'.
+ * Creates a new adapter for an object of class '{@link smooks.ProfileType <em>Profile Type</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
- * @see org.jboss.tools.smooks.model.ProfileType
+ * @see smooks.ProfileType
* @generated
*/
public Adapter createProfileTypeAdapter() {
@@ -236,13 +242,13 @@
}
/**
- * Creates a new adapter for an object of class '{@link org.jboss.tools.smooks.model.ResourceConfigType <em>Resource Config Type</em>}'.
+ * Creates a new adapter for an object of class '{@link smooks.ResourceConfigType <em>Resource Config Type</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
- * @see org.jboss.tools.smooks.model.ResourceConfigType
+ * @see smooks.ResourceConfigType
* @generated
*/
public Adapter createResourceConfigTypeAdapter() {
@@ -250,13 +256,13 @@
}
/**
- * Creates a new adapter for an object of class '{@link org.jboss.tools.smooks.model.ResourceType <em>Resource Type</em>}'.
+ * Creates a new adapter for an object of class '{@link smooks.ResourceType <em>Resource Type</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
- * @see org.jboss.tools.smooks.model.ResourceType
+ * @see smooks.ResourceType
* @generated
*/
public Adapter createResourceTypeAdapter() {
@@ -264,13 +270,13 @@
}
/**
- * Creates a new adapter for an object of class '{@link org.jboss.tools.smooks.model.SmooksResourceListType <em>Resource List Type</em>}'.
+ * Creates a new adapter for an object of class '{@link smooks.SmooksResourceListType <em>Resource List Type</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
- * @see org.jboss.tools.smooks.model.SmooksResourceListType
+ * @see smooks.SmooksResourceListType
* @generated
*/
public Adapter createSmooksResourceListTypeAdapter() {
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/util/SmooksModelUtils.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/util/SmooksModelUtils.java 2008-12-01 04:00:30 UTC (rev 12157)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/util/SmooksModelUtils.java 2008-12-01 10:07:49 UTC (rev 12158)
@@ -30,6 +30,9 @@
*/
public class SmooksModelUtils {
+
+ public static final String TYPE_XSL = "xsl";
+
public static final String BEAN_CLASS = "beanClass";
public static final String BEAN_ID = "beanId";
@@ -72,7 +75,42 @@
}
return null;
}
+
+ public static boolean isBeanPopulatorResource(ResourceConfigType type) {
+ ResourceType resource = type.getResource();
+ if (resource == null)
+ return false;
+ String value = resource.getStringValue();
+ if(value != null) value = value.trim();
+ if (SmooksModelConstants.BEAN_POPULATOR.equals(value)) {
+ return true;
+ }
+ return false;
+ }
+
+ public static boolean isInnerFileContents(ResourceConfigType resourceConfig){
+ ResourceType resource = resourceConfig.getResource();
+ if(resource == null) return false;
+ String type = resource.getType();
+ if(type != null) type = type.trim();
+ return TYPE_XSL.equals(type);
+ }
+ public static boolean isDateTypeSelector(ResourceConfigType type) {
+ ResourceType resource = type.getResource();
+ if (resource == null)
+ return false;
+ String value = resource.getStringValue();
+ if(value != null) value = value.trim();
+ for (int i = 0; i < SmooksModelConstants.DECODER_CLASSES.length; i++) {
+ String decoderClass = SmooksModelConstants.DECODER_CLASSES[i];
+ if(decoderClass.equals(value)){
+ return true;
+ }
+ }
+ return false;
+ }
+
public static String getTransformType(ResourceConfigType resourceConfig) {
ParamType typeParam = null;
if (resourceConfig == null)
@@ -82,7 +120,8 @@
for (Iterator iterator = paramList.iterator(); iterator.hasNext();) {
ParamType param = (ParamType) iterator.next();
String name = param.getName();
- if(name != null) name = name.trim();
+ if (name != null)
+ name = name.trim();
if (SmooksModelConstants.STREAM_FILTER_TYPE.equals(name)) {
typeParam = param;
break;
@@ -106,7 +145,7 @@
if (SmooksModelConstants.STREAM_FILTER_TYPE.equals(param
.getName())) {
cleanTextToSmooksType(param);
- setTextToSmooksType(param, type);
+ setTextToAnyType(param, type);
}
}
}
@@ -116,7 +155,7 @@
ResourceConfigType resourceConfig) {
ResourceType resource = resourceConfig.getResource();
if (resource != null) {
- String value = resource.getValue();
+ String value = resource.getStringValue();
if (value != null) {
if (value.startsWith("\\")) {
return true;
@@ -132,7 +171,8 @@
public static boolean isTransformTypeResourceConfig(
ResourceConfigType resourceConfig) {
String selector = resourceConfig.getSelector();
- if(selector != null) selector = selector.trim();
+ if (selector != null)
+ selector = selector.trim();
if (!SmooksModelConstants.GLOBAL_PARAMETERS.equals(selector)) {
return false;
}
@@ -144,7 +184,8 @@
for (Iterator iterator = paramList.iterator(); iterator.hasNext();) {
ParamType p = (ParamType) iterator.next();
String paramName = p.getName();
- if(paramName != null) paramName = paramName.trim();
+ if (paramName != null)
+ paramName = paramName.trim();
if (SmooksModelConstants.STREAM_FILTER_TYPE.equals(paramName)) {
return true;
}
@@ -169,7 +210,7 @@
resourceConfigType.getParam().add(param);
}
param.setName(paramName);
- setTextToSmooksType(param, value);
+ setTextToAnyType(param, value);
}
public static String getParmaText(String paramName,
@@ -202,6 +243,18 @@
return null;
}
+ public static String getAnyTypeCDATA(AnyType anyType) {
+ Object value = anyType.getMixed().get(
+ XMLTypePackage.Literals.XML_TYPE_DOCUMENT_ROOT__CDATA, true);
+ if (value != null) {
+ if (value instanceof List && !((List) value).isEmpty()) {
+ return ((List) value).get(0).toString().trim();
+ }
+ // return value.toString();
+ }
+ return null;
+ }
+
public static AnyType createBindingType(String property, String selector,
String type, String uri) {
if (uri == null) {
@@ -228,11 +281,21 @@
XMLTypePackage.Literals.XML_TYPE_DOCUMENT_ROOT__TEXT, text);
}
- public static void setTextToSmooksType(AnyType smooksModel, String text) {
+ public static void appendCDATAToSmooksType(AnyType smooksModel, String text) {
+ smooksModel.getMixed().add(
+ XMLTypePackage.Literals.XML_TYPE_DOCUMENT_ROOT__CDATA, text);
+ }
+
+ public static void setTextToAnyType(AnyType smooksModel, String text) {
cleanTextToSmooksType(smooksModel);
appendTextToSmooksType(smooksModel, text);
}
+ public static void setCDATAToAnyType(AnyType smooksModel, String text) {
+ cleanCDATAToSmooksType(smooksModel);
+ appendCDATAToSmooksType(smooksModel, text);
+ }
+
public static void cleanTextToSmooksType(AnyType smooksModel) {
Object obj = smooksModel.getMixed().get(
XMLTypePackage.Literals.XML_TYPE_DOCUMENT_ROOT__TEXT, true);
@@ -240,4 +303,12 @@
((List) obj).clear();
}
}
+
+ public static void cleanCDATAToSmooksType(AnyType smooksModel) {
+ Object obj = smooksModel.getMixed().get(
+ XMLTypePackage.Literals.XML_TYPE_DOCUMENT_ROOT__CDATA, true);
+ if (obj instanceof List) {
+ ((List) obj).clear();
+ }
+ }
}
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/util/SmooksSwitch.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/util/SmooksSwitch.java 2008-12-01 04:00:30 UTC (rev 12157)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/util/SmooksSwitch.java 2008-12-01 10:07:49 UTC (rev 12158)
@@ -10,11 +10,19 @@
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EObject;
-
import org.eclipse.emf.ecore.xml.type.AnyType;
+import org.jboss.tools.smooks.model.AbstractResourceConfig;
+import org.jboss.tools.smooks.model.ConditionType;
+import org.jboss.tools.smooks.model.DocumentRoot;
+import org.jboss.tools.smooks.model.ImportType;
+import org.jboss.tools.smooks.model.ParamType;
+import org.jboss.tools.smooks.model.ProfileType;
+import org.jboss.tools.smooks.model.ProfilesType;
+import org.jboss.tools.smooks.model.ResourceConfigType;
+import org.jboss.tools.smooks.model.ResourceType;
+import org.jboss.tools.smooks.model.SmooksPackage;
+import org.jboss.tools.smooks.model.SmooksResourceListType;
-import org.jboss.tools.smooks.model.*;
-
/**
* <!-- begin-user-doc -->
* The <b>Switch</b> for the model's inheritance hierarchy.
@@ -25,7 +33,7 @@
* until a non-null result is returned,
* which is the result of the switch.
* <!-- end-user-doc -->
- * @see org.jboss.tools.smooks.model.SmooksPackage
+ * @see smooks.SmooksPackage
* @generated
*/
public class SmooksSwitch<T> {
@@ -143,6 +151,7 @@
case SmooksPackage.RESOURCE_TYPE: {
ResourceType resourceType = (ResourceType)theEObject;
T result = caseResourceType(resourceType);
+ if (result == null) result = caseAnyType(resourceType);
if (result == null) result = defaultCase(theEObject);
return result;
}
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/analyzer/NormalSmooksModelBuilder.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/analyzer/NormalSmooksModelBuilder.java 2008-12-01 04:00:30 UTC (rev 12157)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/analyzer/NormalSmooksModelBuilder.java 2008-12-01 10:07:49 UTC (rev 12158)
@@ -79,7 +79,7 @@
return false;
ResourceType resource = config.getResource();
if (resource != null) {
- String r = resource.getValue();
+ String r = resource.getStringValue();
if (r != null) {
for (int i = 0; i < SmooksModelConstants.DECODER_CLASSES.length; i++) {
String decoder = SmooksModelConstants.DECODER_CLASSES[i];
@@ -97,7 +97,7 @@
return false;
ResourceType resource = config.getResource();
if (resource != null) {
- String resourceString = resource.getValue();
+ String resourceString = resource.getStringValue();
if (resourceString != null)
return SmooksModelConstants.BEAN_POPULATOR
.equals(resourceString.trim());
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/javabean/analyzer/JavaBeanAnalyzer.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/javabean/analyzer/JavaBeanAnalyzer.java 2008-12-01 04:00:30 UTC (rev 12157)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/javabean/analyzer/JavaBeanAnalyzer.java 2008-12-01 10:07:49 UTC (rev 12158)
@@ -274,7 +274,7 @@
setConnectionUsed(connection);
ResourceType resource = SmooksFactory.eINSTANCE.createResourceType();
- resource.setValue(BEANPOPULATOR);
+ resource.setStringValue(BEANPOPULATOR);
resourceConfig.setResource(resource);
ParamType beanIdParam = SmooksFactory.eINSTANCE.createParamType();
@@ -553,7 +553,7 @@
// find the first BeanPopulator resource config , this is the root.
String resourceClazz = null;
if (rt != null) {
- resourceClazz = rt.getValue();
+ resourceClazz = rt.getStringValue();
}
if (resourceClazz != null)
resourceClazz = resourceClazz.trim();
@@ -748,7 +748,7 @@
ResourceType resourceType = rc.getResource();
if (resourceType == null)
continue;
- String resource = resourceType.getValue();
+ String resource = resourceType.getStringValue();
if (resource != null)
resource = resource.trim();
if (BEANPOPULATOR.equals(resource)) {
@@ -859,7 +859,7 @@
ResourceType resourceType = rc.getResource();
if (resourceType == null)
continue;
- String resource = resourceType.getValue();
+ String resource = resourceType.getStringValue();
if (resource != null)
resource = resource.trim();
if (BEANPOPULATOR.equals(resource)) {
@@ -909,7 +909,7 @@
continue;
if (resourceType == null)
continue;
- String resource = resourceType.getValue();
+ String resource = resourceType.getStringValue();
if (resource != null)
resource = resource.trim();
if (!BEANPOPULATOR.equals(resource)) {
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/editors/AbstractSmooksModelDetailPage.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/editors/AbstractSmooksModelDetailPage.java 2008-12-01 04:00:30 UTC (rev 12157)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/editors/AbstractSmooksModelDetailPage.java 2008-12-01 10:07:49 UTC (rev 12158)
@@ -40,7 +40,7 @@
protected ResourceConfigType oldResourceConfigList;
- protected ResourceConfigType resourceConfigList;
+ protected ResourceConfigType resourceConfig;
protected IManagedForm managedForm ;
@@ -120,8 +120,8 @@
* @see org.eclipse.ui.forms.IFormPart#isStale()
*/
public boolean isStale() {
- if (oldResourceConfigList != resourceConfigList) {
- oldResourceConfigList = resourceConfigList;
+ if (oldResourceConfigList != resourceConfig) {
+ oldResourceConfigList = resourceConfig;
return true;
}
return false;
@@ -159,8 +159,8 @@
}
public SmooksResourceListType getSmooksResourceList(){
- if(resourceConfigList != null){
- EObject parent = resourceConfigList.eContainer();
+ if(resourceConfig != null){
+ EObject parent = resourceConfig.eContainer();
while(parent != null){
EObject temp = parent.eContainer();
if(temp == null){
@@ -190,10 +190,10 @@
Object obj = ((IStructuredSelection) selection)
.getFirstElement();
if(obj instanceof ResourceConfigType){
- resourceConfigList = (ResourceConfigType)obj;
+ resourceConfig = (ResourceConfigType)obj;
}
if(obj instanceof ResourceConfigWarrper){
- resourceConfigList = ((ResourceConfigWarrper)obj).getResourceConfig();
+ resourceConfig = ((ResourceConfigWarrper)obj).getResourceConfig();
}
refresh();
}
@@ -224,11 +224,11 @@
}
protected ResourceConfigType getResourceConfigList() {
- return resourceConfigList;
+ return resourceConfig;
}
protected void setResourceConfigList(ResourceConfigType resourceConfigList) {
- this.resourceConfigList = resourceConfigList;
+ this.resourceConfig = resourceConfigList;
}
protected EditingDomain getDomain() {
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/editors/BeanPopulatorDetailPage.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/editors/BeanPopulatorDetailPage.java 2008-12-01 04:00:30 UTC (rev 12157)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/editors/BeanPopulatorDetailPage.java 2008-12-01 10:07:49 UTC (rev 12158)
@@ -217,19 +217,19 @@
}
private void configControls() {
- if (resourceConfigList != null) {
+ if (resourceConfig != null) {
String selector = "";
- selector = resourceConfigList.getSelector();
+ selector = resourceConfig.getSelector();
if (selector == null)
selector = "";
selectorText.setText(selector);
String beanClass = SmooksModelUtils.getParmaText("beanClass",
- resourceConfigList);
+ resourceConfig);
if (beanClass == null)
beanClass = "";
String beanId = SmooksModelUtils.getParmaText("beanId",
- resourceConfigList);
+ resourceConfig);
if (beanId == null)
beanId = "";
@@ -244,7 +244,7 @@
String beanIdStr = beanIDText.getText();
if (beanIdStr == null)
return;
- List paramList = resourceConfigList.getParam();
+ List paramList = resourceConfig.getParam();
ParamType beanId = null;
for (Iterator iterator = paramList.iterator(); iterator.hasNext();) {
ParamType param = (ParamType) iterator.next();
@@ -257,11 +257,11 @@
if (beanId == null) {
beanId = SmooksFactory.eINSTANCE.createParamType();
beanId.setName(SmooksModelConstants.BEAN_ID);
- AddCommand.create(domain, resourceConfigList,
+ AddCommand.create(domain, resourceConfig,
SmooksPackage.eINSTANCE.getResourceConfigType_Param(),
beanId).execute();
}
- SmooksModelUtils.setTextToSmooksType(beanId, beanIdStr);
+ SmooksModelUtils.setTextToAnyType(beanId, beanIdStr);
this.parentEditor.fireEditorDirty(true);
}
@@ -271,7 +271,7 @@
String beanClassStr = beanClassText.getText();
if (beanClassStr == null)
return;
- List paramList = resourceConfigList.getParam();
+ List paramList = resourceConfig.getParam();
ParamType beanClass = null;
for (Iterator iterator = paramList.iterator(); iterator.hasNext();) {
ParamType param = (ParamType) iterator.next();
@@ -284,11 +284,11 @@
if (beanClass == null) {
beanClass = SmooksFactory.eINSTANCE.createParamType();
beanClass.setName(SmooksModelConstants.BEAN_CLASS);
- AddCommand.create(domain, resourceConfigList,
+ AddCommand.create(domain, resourceConfig,
SmooksPackage.eINSTANCE.getResourceConfigType_Param(),
beanClass).execute();
}
- SmooksModelUtils.setTextToSmooksType(beanClass, beanClassStr);
+ SmooksModelUtils.setTextToAnyType(beanClass, beanClassStr);
this.parentEditor.fireEditorDirty(true);
}
@@ -298,7 +298,7 @@
String selector = selectorText.getText();
if (selector != null) {
Command command = SetCommand.create(this.getDomain(),
- resourceConfigList, SmooksPackage.eINSTANCE
+ resourceConfig, SmooksPackage.eINSTANCE
.getResourceConfigType_Selector(), selector);
getDomain().getCommandStack().execute(command);
}
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/editors/DateTypeDetailPage.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/editors/DateTypeDetailPage.java 2008-12-01 04:00:30 UTC (rev 12157)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/editors/DateTypeDetailPage.java 2008-12-01 10:07:49 UTC (rev 12158)
@@ -135,16 +135,16 @@
protected void setDecoderClass() {
String text = decoderCombo.getText();
if(text == null) text = "";
- if(this.resourceConfigList != null){
- ResourceType resource = resourceConfigList.getResource();
+ if(this.resourceConfig != null){
+ ResourceType resource = resourceConfig.getResource();
if(resource == null){
resource = SmooksFactory.eINSTANCE.createResourceType();
- resourceConfigList.setResource(resource);
+ resourceConfig.setResource(resource);
}
- if(text.trim().equals(resource.getValue())){
+ if(text.trim().equals(resource.getStringValue())){
return;
}
- resource.setValue(text);
+ resource.setStringValue(text);
this.parentEditor.fireEditorDirty(true);
}
@@ -153,34 +153,34 @@
protected void setFormat() {
String format = formatText.getText();
if(format == null) format = "";
- SmooksModelUtils.setParamText("format", format, resourceConfigList);
+ SmooksModelUtils.setParamText("format", format, resourceConfig);
this.parentEditor.fireEditorDirty(true);
}
protected void setLocalLang() {
String ll = localeLangaugeCombo.getText();
if(ll == null) ll = "";
- SmooksModelUtils.setParamText("locale-language", ll, resourceConfigList);
+ SmooksModelUtils.setParamText("locale-language", ll, resourceConfig);
this.parentEditor.fireEditorDirty(true);
}
protected void setLocalContry() {
String lc = localeContryCombo.getText();
if(lc == null) lc = "";
- SmooksModelUtils.setParamText("locale-country", lc, resourceConfigList);
+ SmooksModelUtils.setParamText("locale-country", lc, resourceConfig);
this.parentEditor.fireEditorDirty(true);
}
protected void setSelector() {
String text = selectorText.getText();
if(text == null || text.length() == 0){
- resourceConfigList.setSelector("");
+ resourceConfig.setSelector("");
this.parentEditor.fireEditorDirty(true);
return;
}
text = DECODER+ ":" + text;
- if(this.resourceConfigList != null){
- resourceConfigList.setSelector(text);
+ if(this.resourceConfig != null){
+ resourceConfig.setSelector(text);
this.parentEditor.fireEditorDirty(true);
}
}
@@ -195,21 +195,21 @@
@Override
protected void initSectionUI() {
- if(this.resourceConfigList != null){
- String formate = SmooksModelUtils.getParmaText("format", resourceConfigList); //$NON-NLS-1$
- String locallang = SmooksModelUtils.getParmaText("locale-language", resourceConfigList); //$NON-NLS-1$
- String localcontry = SmooksModelUtils.getParmaText("locale-country", resourceConfigList); //$NON-NLS-1$
+ if(this.resourceConfig != null){
+ String formate = SmooksModelUtils.getParmaText("format", resourceConfig); //$NON-NLS-1$
+ String locallang = SmooksModelUtils.getParmaText("locale-language", resourceConfig); //$NON-NLS-1$
+ String localcontry = SmooksModelUtils.getParmaText("locale-country", resourceConfig); //$NON-NLS-1$
String decoderClass = "";
- ResourceType resource = resourceConfigList.getResource();
+ ResourceType resource = resourceConfig.getResource();
if(resource != null){
- decoderClass = resource.getValue();
+ decoderClass = resource.getStringValue();
if(decoderClass != null) decoderClass = decoderClass.trim();
}
if(formate == null) formate = ""; //$NON-NLS-1$
if(locallang == null) locallang = ""; //$NON-NLS-1$
if(localcontry == null) localcontry = ""; //$NON-NLS-1$
- String selector = resourceConfigList.getSelector();
+ String selector = resourceConfig.getSelector();
selector = getSelectorName(selector);
selectorText.setText(selector);
formatText.setText(formate);
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/editors/DecoraterSelectionDialog.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/editors/DecoraterSelectionDialog.java 2008-12-01 04:00:30 UTC (rev 12157)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/editors/DecoraterSelectionDialog.java 2008-12-01 10:07:49 UTC (rev 12158)
@@ -113,7 +113,7 @@
if (selector1.equals("decoder")) {
ResourceType resource = config.getResource();
if (resource != null) {
- String value = resource.getValue();
+ String value = resource.getStringValue();
if (value != null)
value = value.trim();
for (int i = 0; i < SmooksModelConstants.DECODER_CLASSES.length; i++) {
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/editors/DocumentResourceTypeDetailPage.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/editors/DocumentResourceTypeDetailPage.java 2008-12-01 04:00:30 UTC (rev 12157)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/editors/DocumentResourceTypeDetailPage.java 2008-12-01 10:07:49 UTC (rev 12158)
@@ -20,80 +20,186 @@
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Text;
import org.jboss.tools.smooks.model.ResourceType;
import org.jboss.tools.smooks.model.SmooksPackage;
+import org.jboss.tools.smooks.model.util.SmooksModelUtils;
/**
* @author dart
- *
+ *
*/
-public class DocumentResourceTypeDetailPage extends AbstractSmooksModelDetailPage {
+public class DocumentResourceTypeDetailPage extends
+ AbstractSmooksModelDetailPage {
+ private static final int INNER = 0;
+ private static final int EXTERNAL = 1;
private Text text;
private Text selectorText;
+ private Button innerCheckButton;
+ private Button externalCheckButton;
+ private Text innerContentText;
+ private Button browseButton;
+ private boolean isInit = true;
public DocumentResourceTypeDetailPage(SmooksFormEditor parentEditor,
EditingDomain domain) {
super(parentEditor, domain);
}
- protected void createSectionContents(Composite parent) {
- GridLayout layout = new GridLayout();
- layout.numColumns = 2;
- parent.setLayout(layout);
- this.formToolKit.createLabel(parent, Messages.getString("DocumentResourceTypeDetailPage.Selector")); //$NON-NLS-1$
- selectorText = formToolKit.createText(parent, ""); //$NON-NLS-1$
- selectorText.addModifyListener(new ModifyListener(){
+ protected void createExternlaSelectionGUI(Composite parent) {
- public void modifyText(ModifyEvent e) {
- if(!canFireChange) return;
- resetSelector(selectorText.getText());
- }
-
- });
+ this.formToolKit.createLabel(parent, Messages
+ .getString("DocumentResourceTypeDetailPage.DocPath")); //$NON-NLS-1$
+ Composite fileCom = formToolKit.createComposite(parent);
GridData gd = new GridData(GridData.FILL_HORIZONTAL);
- selectorText.setLayoutData(gd);
-
- this.formToolKit.createLabel(parent, Messages.getString("DocumentResourceTypeDetailPage.DocPath")); //$NON-NLS-1$
- Composite fileCom = formToolKit.createComposite(parent);
- gd = new GridData(GridData.FILL_HORIZONTAL);
fileCom.setLayoutData(gd);
+ GridLayout layout = new GridLayout();
+ layout.numColumns = 2;
fileCom.setLayout(layout);
text = formToolKit.createText(fileCom, ""); //$NON-NLS-1$
gd = new GridData(GridData.FILL_HORIZONTAL);
gd.grabExcessHorizontalSpace = true;
text.setLayoutData(gd);
- text.addModifyListener(new ModifyListener(){
+ text.addModifyListener(new ModifyListener() {
public void modifyText(ModifyEvent e) {
- if(!canFireChange) return;
+ if (!canFireChange)
+ return;
resetPath(text.getText());
}
});
-
-
- Button browseButton = formToolKit.createButton(fileCom, Messages.getString("DocumentResourceTypeDetailPage.BrowseFile"), SWT.NONE); //$NON-NLS-1$
- browseButton.addSelectionListener(new SelectionAdapter(){
+ browseButton = formToolKit
+ .createButton(
+ fileCom,
+ Messages
+ .getString("DocumentResourceTypeDetailPage.BrowseFile"), SWT.NONE); //$NON-NLS-1$
+ browseButton.addSelectionListener(new SelectionAdapter() {
+
public void widgetSelected(SelectionEvent e) {
super.widgetSelected(e);
browseFileSystem();
}
-
+
});
- formToolKit.paintBordersFor(parent);
formToolKit.paintBordersFor(fileCom);
+
}
-
- protected void resetSelector(String selector){
- Command command = SetCommand.create(domain, resourceConfigList, SmooksPackage.eINSTANCE.getResourceConfigType_Selector(), selector);
+
+ protected void handleRadioButtons() {
+ externalCheckButton.addSelectionListener(new SelectionAdapter() {
+ @Override
+ public void widgetSelected(SelectionEvent e) {
+ boolean checked = externalCheckButton.getSelection();
+ if (checked) {
+ switchGUI(EXTERNAL);
+ }
+ }
+ });
+
+ innerCheckButton.addSelectionListener(new SelectionAdapter() {
+ @Override
+ public void widgetSelected(SelectionEvent e) {
+ boolean checked = innerCheckButton.getSelection();
+ if (checked) {
+ switchGUI(INNER);
+ }
+ }
+ });
+ }
+
+ protected void createSectionContents(Composite parent) {
+ GridLayout layout = new GridLayout();
+ layout.numColumns = 2;
+ parent.setLayout(layout);
+ GridData gd = new GridData(GridData.FILL_HORIZONTAL);
+
+ this.formToolKit.createLabel(parent, Messages
+ .getString("DocumentResourceTypeDetailPage.Selector")); //$NON-NLS-1$
+ selectorText = formToolKit.createText(parent, ""); //$NON-NLS-1$
+ selectorText.addModifyListener(new ModifyListener() {
+ public void modifyText(ModifyEvent e) {
+ if (!canFireChange)
+ return;
+ resetSelector(selectorText.getText());
+ }
+ });
+ selectorText.setLayoutData(gd);
+
+ gd = new GridData(GridData.FILL_HORIZONTAL);
+ gd.horizontalSpan = 2;
+ externalCheckButton = formToolKit.createButton(parent,
+ "External File Selection", SWT.RADIO);
+ externalCheckButton.setLayoutData(gd);
+
+ createExternlaSelectionGUI(parent);
+
+ // Inner contents modify
+ gd = new GridData(GridData.FILL_HORIZONTAL);
+ gd.horizontalSpan = 2;
+ innerCheckButton = formToolKit.createButton(parent,
+ "Inner template file contents", SWT.RADIO);
+ innerCheckButton.setLayoutData(gd);
+
+ createInnerContentsGUI(parent);
+
+ gd = new GridData(GridData.FILL_HORIZONTAL);
+ gd.horizontalSpan = 2;
+ formToolKit.createSeparator(parent, SWT.HORIZONTAL).setLayoutData(gd);
+
+ formToolKit.paintBordersFor(parent);
+
+ handleRadioButtons();
+
+ }
+
+ protected void createInnerContentsGUI(Composite parent) {
+ GridData gd = new GridData(GridData.BEGINNING);
+ gd.verticalAlignment = GridData.BEGINNING;
+ formToolKit.createLabel(parent, "File Contents").setLayoutData(gd);
+ innerContentText = formToolKit.createText(parent, "", SWT.MULTI
+ | SWT.V_SCROLL | SWT.H_SCROLL);
+ gd = new GridData(GridData.FILL_HORIZONTAL);
+ gd.heightHint = 200;
+ innerContentText.setLayoutData(gd);
+ }
+
+ protected void resetSelector(String selector) {
+ Command command = SetCommand.create(domain, resourceConfig,
+ SmooksPackage.eINSTANCE.getResourceConfigType_Selector(),
+ selector);
domain.getCommandStack().execute(command);
-// resourceConfigList.getse
+ // resourceConfigList.getse
}
-
- protected void browseFileSystem(){
- IFile[] files = WorkspaceResourceDialog.openFileSelection(this.parentEditor.getSite()
- .getShell(),
+
+ public void switchGUI(int key) {
+ ResourceType resource = resourceConfig.getResource();
+ if (key == INNER) {
+ this.browseButton.setEnabled(false);
+ this.text.setEnabled(false);
+ this.innerContentText.setEnabled(true);
+ SmooksModelUtils.cleanTextToSmooksType(resource);
+ String text = innerContentText.getText();
+ if (text != null) {
+ SmooksModelUtils.setCDATAToAnyType(resource, text);
+ }
+ } else {
+ this.browseButton.setEnabled(true);
+ this.text.setEnabled(true);
+ this.innerContentText.setEnabled(false);
+ SmooksModelUtils.cleanCDATAToSmooksType(resource);
+ String text = this.text.getText();
+ if (text != null) {
+ SmooksModelUtils.setTextToAnyType(resource, text);
+ }
+ }
+ this.parentEditor.fireEditorDirty(true);
+ }
+
+ protected void browseFileSystem() {
+ IFile[] files = WorkspaceResourceDialog.openFileSelection(
+ this.parentEditor.getSite().getShell(),
"", "", false, null, Collections.EMPTY_LIST); //$NON-NLS-1$ //$NON-NLS-2$
// dialog.setInitialSelections(selectedResources);
if (files.length > 0) {
@@ -103,29 +209,76 @@
return;
}
}
-
- protected void resetPath(String path){
- if(this.resourceConfigList != null){
- ResourceType resource = resourceConfigList.getResource();
- if(resource == null){
+
+ protected void resetPath(String path) {
+ if (this.resourceConfig != null) {
+ ResourceType resource = resourceConfig.getResource();
+ if (resource == null) {
return;
}
- Command command = SetCommand.create(domain, resource, SmooksPackage.eINSTANCE.getResourceType_Value(), path);
- domain.getCommandStack().execute(command);
+ SmooksModelUtils.setTextToAnyType(resource, path);
}
}
protected void initSectionUI() {
- if(this.resourceConfigList != null){
- String selector = resourceConfigList.getSelector();
- if(selector != null) selectorText.setText(selector);
- ResourceType resource = resourceConfigList.getResource();
- if(resource != null){
- String path = resource.getValue();
- if(path == null) path = ""; //$NON-NLS-1$
- text.setText(path);
+ if (this.resourceConfig != null) {
+ String selector = resourceConfig.getSelector();
+ if (selector != null)
+ selectorText.setText(selector);
+ ResourceType resource = resourceConfig.getResource();
+ if (resource != null) {
+ if (isInit) {
+
+ if (SmooksModelUtils.isInnerFileContents(resourceConfig)) {
+ String cdata = resource.getCDATAValue();
+ if (cdata == null)
+ cdata = "";
+ innerContentText.setText(cdata);
+ innerCheckButton.setSelection(true);
+ switchGUI(INNER);
+ isInit = false;
+ }
+ if (SmooksModelUtils
+ .isFilePathResourceConfig(resourceConfig)) {
+ String path = resource.getStringValue();
+ if (path == null)
+ path = ""; //$NON-NLS-1$
+ text.setText(path);
+ externalCheckButton.setSelection(true);
+ switchGUI(EXTERNAL);
+ isInit = false;
+ }
+
+ } else {
+ int style = getFileContentStyle();
+ if (style == INNER) {
+ String cdata = resource.getCDATAValue();
+ if (cdata == null)
+ cdata = "";
+ innerContentText.setText(cdata);
+ }
+ if (style == EXTERNAL) {
+ String path = resource.getStringValue();
+ if (path == null)
+ path = ""; //$NON-NLS-1$
+ text.setText(path);
+ }
+ }
}
}
}
+ private int getFileContentStyle() {
+ if (externalCheckButton.getSelection()
+ && innerCheckButton.getSelection()) {
+ return -1;
+ }
+
+ if (externalCheckButton.getSelection())
+ return EXTERNAL;
+ if (innerCheckButton.getSelection())
+ return INNER;
+ return -1;
+ }
+
}
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/editors/ResourceConfigWarrperFactory.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/editors/ResourceConfigWarrperFactory.java 2008-12-01 04:00:30 UTC (rev 12157)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/editors/ResourceConfigWarrperFactory.java 2008-12-01 10:07:49 UTC (rev 12158)
@@ -26,48 +26,21 @@
*/
public class ResourceConfigWarrperFactory {
-
public static ResourceConfigWarrper createResourceConfigWarrper(
ResourceConfigType type) {
- if (isBeanPopulatorResource(type)) {
+ if (SmooksModelUtils.isBeanPopulatorResource(type)) {
BeanPopulatorWarrper p = new BeanPopulatorWarrper(type);
return p;
}
- if(isDateTypeSelector(type)){
+ if(SmooksModelUtils.isDateTypeSelector(type)){
DateTypeWarrper warrper = new DateTypeWarrper(type);
return warrper;
}
- if(SmooksModelUtils.isFilePathResourceConfig(type)){
+ if(SmooksModelUtils.isFilePathResourceConfig(type) || SmooksModelUtils.isInnerFileContents(type)){
DocumentSelectionWarrper warrper = new DocumentSelectionWarrper(type);
return warrper;
}
return null;
}
- public static boolean isBeanPopulatorResource(ResourceConfigType type) {
- ResourceType resource = type.getResource();
- if (resource == null)
- return false;
- String value = resource.getValue();
- if(value != null) value = value.trim();
- if (SmooksModelConstants.BEAN_POPULATOR.equals(value)) {
- return true;
- }
- return false;
- }
-
- public static boolean isDateTypeSelector(ResourceConfigType type) {
- ResourceType resource = type.getResource();
- if (resource == null)
- return false;
- String value = resource.getValue();
- if(value != null) value = value.trim();
- for (int i = 0; i < SmooksModelConstants.DECODER_CLASSES.length; i++) {
- String decoderClass = SmooksModelConstants.DECODER_CLASSES[i];
- if(decoderClass.equals(value)){
- return true;
- }
- }
- return false;
- }
}
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/editors/SmooksFormEditor.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/editors/SmooksFormEditor.java 2008-12-01 04:00:30 UTC (rev 12157)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/editors/SmooksFormEditor.java 2008-12-01 10:07:49 UTC (rev 12158)
@@ -38,6 +38,7 @@
import org.jboss.tools.smooks.analyzer.NormalSmooksModelBuilder;
import org.jboss.tools.smooks.analyzer.NormalSmooksModelPackage;
import org.jboss.tools.smooks.model.DocumentRoot;
+import org.jboss.tools.smooks.model.ResourceType;
import org.jboss.tools.smooks.model.SmooksFactory;
import org.jboss.tools.smooks.model.SmooksResourceListType;
import org.jboss.tools.smooks.model.provider.SmooksItemProviderAdapterFactory;
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/editors/SmooksGraphicalFormPage.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/editors/SmooksGraphicalFormPage.java 2008-12-01 04:00:30 UTC (rev 12157)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/editors/SmooksGraphicalFormPage.java 2008-12-01 10:07:49 UTC (rev 12158)
@@ -1517,7 +1517,7 @@
GridLayout gl = new GridLayout();
gl.numColumns = 2;
gl.marginHeight = 0;
- gl.marginWidth = 0 ;
+ gl.marginWidth = 0;
fixComposite.setLayout(gl);
Label notifyLabel = new Label(fixComposite, SWT.NONE);
Hyperlink fixLink = getManagedForm().getToolkit()
@@ -1551,10 +1551,11 @@
item.setText(resolveCommand.getResolveDescription());
item.setImage(resolveCommand.getImage());
}
- fixLink.addHyperlinkListener(new IHyperlinkListener(){
+ fixLink.addHyperlinkListener(new IHyperlinkListener() {
public void linkActivated(HyperlinkEvent e) {
- menu.setLocation(getSite().getShell().getDisplay().getCursorLocation());
+ menu.setLocation(getSite().getShell().getDisplay()
+ .getCursorLocation());
menu.setVisible(true);
}
@@ -1563,7 +1564,7 @@
public void linkExited(HyperlinkEvent e) {
}
-
+
});
notifyLabel.setMenu(menu);
GridData nlgd = new GridData(GridData.FILL_HORIZONTAL);
@@ -1593,6 +1594,8 @@
try {
IMappingAnalyzer analyzer = AnalyzerFactory.getInstance()
.getMappingAnalyzer(sourceDataTypeID, targetDataTypeID);
+ if (analyzer == null)
+ return;
SmooksConfigurationFileGenerateContext context = this
.createContext();
this.initSmooksConfigurationFileGenerateContext(context);
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/editors/SmooksResourceConfigFormBlock.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/editors/SmooksResourceConfigFormBlock.java 2008-12-01 04:00:30 UTC (rev 12157)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/editors/SmooksResourceConfigFormBlock.java 2008-12-01 10:07:49 UTC (rev 12158)
@@ -424,7 +424,11 @@
.getSmooksResourceList(), SmooksPackage.eINSTANCE
.getSmooksResourceListType_AbstractResourceConfig(),
config);
+ try{
domain.getCommandStack().execute(command);
+ }catch(Exception e){
+ e.printStackTrace();
+ }
dateTypeViewer.refresh();
}
}
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/wizards/NewResourceConfigFactory.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/wizards/NewResourceConfigFactory.java 2008-12-01 04:00:30 UTC (rev 12157)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/wizards/NewResourceConfigFactory.java 2008-12-01 10:07:49 UTC (rev 12158)
@@ -46,7 +46,7 @@
ResourceType resource = SmooksFactory.eINSTANCE
.createResourceType();
config.setResource(resource);
- resource.setValue(SmooksModelConstants.BEAN_POPULATOR);
+ resource.setStringValue(SmooksModelConstants.BEAN_POPULATOR);
ParamType idParmType = SmooksFactory.eINSTANCE.createParamType();
ParamType classParmType = SmooksFactory.eINSTANCE.createParamType();
@@ -67,7 +67,7 @@
.createResourceType();
config.setResource(resource);
- resource.setValue(SmooksModelConstants.DATE_DECODER);
+ resource.setStringValue(SmooksModelConstants.DATE_DECODER);
ParamType formate = SmooksFactory.eINSTANCE.createParamType();
ParamType language = SmooksFactory.eINSTANCE.createParamType();
@@ -89,7 +89,7 @@
// config.setSelector(SmooksModelConstants.AT_DOCUMENT);
ResourceType resource = SmooksFactory.eINSTANCE
.createResourceType();
- resource.setValue("/"); //$NON-NLS-1$
+ resource.setStringValue("/"); //$NON-NLS-1$
config.setResource(resource);
return config;
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/xml2java/analyzer/XML2JavaAnalyzer.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/xml2java/analyzer/XML2JavaAnalyzer.java 2008-12-01 04:00:30 UTC (rev 12157)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/xml2java/analyzer/XML2JavaAnalyzer.java 2008-12-01 10:07:49 UTC (rev 12158)
@@ -141,7 +141,7 @@
// create a resource and add it to resourceConfig
ResourceType resourceType = SmooksFactory.eINSTANCE
.createResourceType();
- resourceType.setValue(SmooksModelConstants.BEAN_POPULATOR);
+ resourceType.setStringValue(SmooksModelConstants.BEAN_POPULATOR);
resourceConfigType.setResource(resourceType);
// create param for resourceConfig
@@ -287,7 +287,7 @@
ResourceType resource = resourceConfig.getResource();
if (resource == null)
continue;
- String populator = resource.getValue();
+ String populator = resource.getStringValue();
if (populator != null)
populator = populator.trim();
if (!JavaBeanAnalyzer.BEANPOPULATOR.equals(populator))
@@ -565,7 +565,7 @@
ResourceType rt = resource.getResource();
if (rt == null)
continue;
- String value = rt.getValue();
+ String value = rt.getStringValue();
if (value != null)
value = value.trim();
if (SmooksModelConstants.BEAN_POPULATOR.equals(value)) {
16 years
JBoss Tools SVN: r12157 - in trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks: xml2java/analyzer and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: DartPeng
Date: 2008-11-30 23:00:30 -0500 (Sun, 30 Nov 2008)
New Revision: 12157
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/javabean/analyzer/JavaBeanAnalyzer.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/xml2java/analyzer/XML2JavaAnalyzer.java
Log:
JBIDE-3259
Fix it
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/javabean/analyzer/JavaBeanAnalyzer.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/javabean/analyzer/JavaBeanAnalyzer.java 2008-12-01 00:56:06 UTC (rev 12156)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/javabean/analyzer/JavaBeanAnalyzer.java 2008-12-01 04:00:30 UTC (rev 12157)
@@ -200,61 +200,21 @@
.hasNext();) {
LineConnectionModel connection = (LineConnectionModel) iterator
.next();
- if (connectionIsUsed(connection))
- continue;
Object source = connection.getSource();
Object target = connection.getTarget();
- if (target != dataModel) {
- continue;
- }
+
// create the first smooks resource fragment
JavaBeanModel sourceJavaBean = (JavaBeanModel) ((AbstractStructuredDataModel) source)
.getReferenceEntityModel();
JavaBeanModel targetJavaBean = (JavaBeanModel) ((AbstractStructuredDataModel) target)
.getReferenceEntityModel();
- String sourceClassName = sourceJavaBean.getBeanClass()
- .getName();
-
- ResourceConfigType resourceConfig = SmooksFactory.eINSTANCE
- .createResourceConfigType();
- resourceList.add(resourceConfig);
- resourceConfig
- .setSelector(getSourceBeanSelectorString((AbstractStructuredDataModel) source));
- setConnectionUsed(connection);
-
- ResourceType resource = SmooksFactory.eINSTANCE
- .createResourceType();
- resource.setValue(BEANPOPULATOR);
- resourceConfig.setResource(resource);
-
- ParamType beanIdParam = SmooksFactory.eINSTANCE
- .createParamType();
- beanIdParam.setName(SmooksModelUtils.BEAN_ID);
- if (beanId == null)
- beanId = targetJavaBean.getName();
- if (beanId.startsWith(COMPLEX_PRIX_START)) {
- beanId = beanId.substring(2, beanId
- .indexOf(COMPLEX_PRIX_END));
+ ResourceConfigType resourceConfig = analyzeMajorConnectionsToCreateResourceConfig(
+ connection, resourceList, beanId);
+ if (resourceConfig == null) {
+ continue;
}
- SmooksModelUtils
- .appendTextToSmooksType(beanIdParam, beanId);
- resourceConfig.getParam().add(beanIdParam);
-
- ParamType beanClassParam = SmooksFactory.eINSTANCE
- .createParamType();
- beanClassParam.setName(SmooksModelUtils.BEAN_CLASS);
- SmooksModelUtils.appendTextToSmooksType(beanClassParam,
- targetJavaBean.getBeanClassString());
- resourceConfig.getParam().add(beanClassParam);
-
- ParamType bindingsParam = SmooksFactory.eINSTANCE
- .createParamType();
- bindingsParam.setName(SmooksModelUtils.BINDINGS);
- resourceConfig.getParam().add(bindingsParam);
-
// to dispatch the target's children (Order processing)
-
List children = targetJavaBean.getProperties();
for (Iterator iterator2 = children.iterator(); iterator2
.hasNext();) {
@@ -277,32 +237,11 @@
.iterator(); iterator3.hasNext();) {
LineConnectionModel childConnection = (LineConnectionModel) iterator3
.next();
- if (connectionIsUsed(childConnection))
- continue;
- JavaBeanModel childTargetJavaBean = (JavaBeanModel) child
- .getReferenceEntityModel();
- String currentSelectorName = getSelectorString(
- (AbstractStructuredDataModel) childConnection
- .getTarget(),
- (AbstractStructuredDataModel) childConnection
- .getSource(),
- (AbstractStructuredDataModel) source);
- AnyType binding = SmooksModelUtils
- .addBindingTypeToParamType(
- bindingsParam,
- childTargetJavaBean.getName(),
- currentSelectorName, null, null);
- UIUtils.assignConnectionPropertyToBinding(
- childConnection, binding, new String[] {
- "property", "selector" }); //$NON-NLS-1$ //$NON-NLS-2$
- if (!childTargetJavaBean.isPrimitive()) {
- analyzeStructuredDataModel(
- resourceList,
- root,
- (AbstractStructuredDataModel) child,
- resourceConfig, currentSelectorName);
- }
- this.setConnectionUsed(childConnection);
+ analyzeChildrenConnectionsToCreateBindingType(childConnection,
+ child,
+ (AbstractStructuredDataModel) source,
+ resourceConfig, root, resourceList,
+ getBindingsParamType(resourceConfig));
}
}
@@ -312,6 +251,99 @@
}
}
+ private ResourceConfigType analyzeMajorConnectionsToCreateResourceConfig(
+ LineConnectionModel connection, List resourceList, String beanId) {
+ if (connectionIsUsed(connection))
+ return null;
+ Object source = connection.getSource();
+ Object target = connection.getTarget();
+
+ // create the first smooks resource fragment
+
+ JavaBeanModel sourceJavaBean = (JavaBeanModel) ((AbstractStructuredDataModel) source)
+ .getReferenceEntityModel();
+ JavaBeanModel targetJavaBean = (JavaBeanModel) ((AbstractStructuredDataModel) target)
+ .getReferenceEntityModel();
+ String sourceClassName = sourceJavaBean.getBeanClass().getName();
+
+ ResourceConfigType resourceConfig = SmooksFactory.eINSTANCE
+ .createResourceConfigType();
+ resourceList.add(resourceConfig);
+ resourceConfig
+ .setSelector(getSourceBeanSelectorString((AbstractStructuredDataModel) source));
+ setConnectionUsed(connection);
+
+ ResourceType resource = SmooksFactory.eINSTANCE.createResourceType();
+ resource.setValue(BEANPOPULATOR);
+ resourceConfig.setResource(resource);
+
+ ParamType beanIdParam = SmooksFactory.eINSTANCE.createParamType();
+ beanIdParam.setName(SmooksModelUtils.BEAN_ID);
+ if (beanId == null)
+ beanId = targetJavaBean.getName();
+ if (beanId.startsWith(COMPLEX_PRIX_START)) {
+ beanId = beanId.substring(2, beanId.indexOf(COMPLEX_PRIX_END));
+ }
+ SmooksModelUtils.appendTextToSmooksType(beanIdParam, beanId);
+ resourceConfig.getParam().add(beanIdParam);
+
+ ParamType beanClassParam = SmooksFactory.eINSTANCE.createParamType();
+ beanClassParam.setName(SmooksModelUtils.BEAN_CLASS);
+ SmooksModelUtils.appendTextToSmooksType(beanClassParam, targetJavaBean
+ .getBeanClassString());
+ resourceConfig.getParam().add(beanClassParam);
+
+ ParamType bindingsParam = SmooksFactory.eINSTANCE.createParamType();
+ bindingsParam.setName(SmooksModelUtils.BINDINGS);
+ resourceConfig.getParam().add(bindingsParam);
+ return resourceConfig;
+ }
+
+ private ParamType getBindingsParamType(ResourceConfigType config) {
+ List<ParamType> list = config.getParam();
+ for (Iterator iterator = list.iterator(); iterator.hasNext();) {
+ ParamType paramType = (ParamType) iterator.next();
+ String name = paramType.getName();
+ if (name != null)
+ name = name.trim();
+ if (SmooksModelUtils.BINDINGS.equals(name)) {
+ return paramType;
+ }
+ }
+ return null;
+ }
+
+ private void analyzeChildrenConnectionsToCreateBindingType(
+ LineConnectionModel childConnection,
+ AbstractStructuredDataModel child,
+ AbstractStructuredDataModel source,
+ ResourceConfigType resourceConfig,
+ AbstractStructuredDataModel root, List resourceList,
+ ParamType bindingsParam) {
+ if (connectionIsUsed(childConnection))
+ return;
+ JavaBeanModel childTargetJavaBean = (JavaBeanModel) child
+ .getReferenceEntityModel();
+ String currentSelectorName = getSelectorString(
+ (AbstractStructuredDataModel) childConnection.getTarget(),
+ (AbstractStructuredDataModel) childConnection.getSource(),
+ (AbstractStructuredDataModel) source);
+ String propertyName = childTargetJavaBean.getName();
+ JavaBeanModel targetParent = childTargetJavaBean.getParent();
+ if (targetParent.isList() || targetParent.isArray())
+ propertyName = null;
+ AnyType binding = SmooksModelUtils.addBindingTypeToParamType(
+ bindingsParam, propertyName, currentSelectorName, null, null);
+ UIUtils.assignConnectionPropertyToBinding(childConnection, binding,
+ new String[] { "property", "selector" }); //$NON-NLS-1$ //$NON-NLS-2$
+ if (!childTargetJavaBean.isPrimitive()) {
+ analyzeStructuredDataModel(resourceList, root,
+ (AbstractStructuredDataModel) child, resourceConfig,
+ currentSelectorName);
+ }
+ this.setConnectionUsed(childConnection);
+ }
+
/**
* TODO change the method name to be "getTheBindingPropertySelectorString"
*
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/xml2java/analyzer/XML2JavaAnalyzer.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/xml2java/analyzer/XML2JavaAnalyzer.java 2008-12-01 00:56:06 UTC (rev 12156)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/xml2java/analyzer/XML2JavaAnalyzer.java 2008-12-01 04:00:30 UTC (rev 12157)
@@ -175,9 +175,9 @@
List properties = javaBean.getProperties();
for (Iterator iterator = properties.iterator(); iterator.hasNext();) {
boolean isComplex = true;
- JavaBeanModel child = (JavaBeanModel) iterator.next();
+ JavaBeanModel targetJavaChild = (JavaBeanModel) iterator.next();
AbstractStructuredDataModel graphModel = UIUtils.findGraphModel(
- context.getGraphicalRootModel(), child);
+ context.getGraphicalRootModel(), targetJavaChild);
LineConnectionModel connection = UIUtils
.getFirstTargetModelViaConnection(graphModel);
if (connection == null)
@@ -185,19 +185,24 @@
AbstractStructuredDataModel sourceModel = (AbstractStructuredDataModel) connection
.getSource();
- if (child.isPrimitive() || child.getProperties().isEmpty()) {
+ if (targetJavaChild.isPrimitive() || targetJavaChild.getProperties().isEmpty()) {
isComplex = false;
}
String resourceConfigSelector = parentSelector;
- String selector = getSelectorID(child);
+ String selector = getSelectorID(targetJavaChild);
if (!isComplex) {
selector = getSelectorIDViaXMLObject(
(AbstractXMLObject) sourceModel
.getReferenceEntityModel(), source,
resourceConfigSelector);
}
+ String propertyName = targetJavaChild.getName();
+ // if the parent bean is Array or List , the binding property name should be set NULL
+ if(javaBean.isArray() || javaBean.isList()){
+ propertyName = null;
+ }
AnyType binding = SmooksModelUtils.addBindingTypeToParamType(
- bindingsParam, child.getName(), selector, null, null);
+ bindingsParam, propertyName , selector, null, null);
// add connection's properties on the "binding" element
UIUtils.assignConnectionPropertyToBinding(connection, binding,
new String[] { "property", "selector" });
16 years
JBoss Tools SVN: r12156 - trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/extensions/events.
by jbosstools-commits@lists.jboss.org
Author: rob.stryker(a)jboss.com
Date: 2008-11-30 19:56:06 -0500 (Sun, 30 Nov 2008)
New Revision: 12156
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/extensions/events/ServerLogger.java
Log:
Adding a major type mask constant
Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/extensions/events/ServerLogger.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/extensions/events/ServerLogger.java 2008-12-01 00:38:43 UTC (rev 12155)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/extensions/events/ServerLogger.java 2008-12-01 00:56:06 UTC (rev 12156)
@@ -27,10 +27,11 @@
import org.eclipse.core.runtime.IStatus;
import org.eclipse.wst.server.core.IServer;
+import org.eclipse.wst.server.core.ServerCore;
import org.jboss.ide.eclipse.as.core.server.IJBossServerConstants;
public class ServerLogger implements IJBossServerConstants {
-
+ public static final int MAJOR_TYPE_MASK = 0x11111111 << 24;
private static ServerLogger instance;
public static ServerLogger getDefault() {
if( instance == null ) {
@@ -76,11 +77,21 @@
}
}
- public File getServerLogFile(IServer server) {
+ public static File getServerLogFile(IServer server) {
File f = server == null ? PLUGIN_LOCATION.toFile() :
PLUGIN_LOCATION.append(server.getId()).append(LOG).toFile();
if( !f.getParentFile().exists() )
f.getParentFile().mkdirs();
return f;
}
+
+ public static IServer findServerForFile(File file) {
+ if( file == null )
+ return null;
+ IServer[] servers = ServerCore.getServers();
+ for( int i = 0; i < servers.length; i++ )
+ if(getServerLogFile(servers[i]).equals(file))
+ return servers[i];
+ return null;
+ }
}
16 years
JBoss Tools SVN: r12155 - trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/extensions/polling.
by jbosstools-commits@lists.jboss.org
Author: rob.stryker(a)jboss.com
Date: 2008-11-30 19:38:43 -0500 (Sun, 30 Nov 2008)
New Revision: 12155
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/extensions/polling/JMXPoller.java
Log:
status code change
Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/extensions/polling/JMXPoller.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/extensions/polling/JMXPoller.java 2008-11-30 23:21:49 UTC (rev 12154)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/extensions/polling/JMXPoller.java 2008-12-01 00:38:43 UTC (rev 12155)
@@ -94,7 +94,7 @@
done = b;
if( !startingFound ) {
startingFound = true;
- IStatus s = new Status(IStatus.INFO, JBossServerCorePlugin.PLUGIN_ID, CODE|started, "Server is starting", null);
+ IStatus s = new Status(IStatus.INFO, JBossServerCorePlugin.PLUGIN_ID, JMXPOLLER_CODE|started, "Server is starting", null);
log(s);
}
}
@@ -146,7 +146,7 @@
started = STATE_STOPPED;
if( !ceFound ) {
ceFound = true;
- IStatus s = new Status(IStatus.WARNING, JBossServerCorePlugin.PLUGIN_ID, CODE|started, t.getMessage(), t);
+ IStatus s = new Status(IStatus.WARNING, JBossServerCorePlugin.PLUGIN_ID, JMXPOLLER_CODE|started, t.getMessage(), t);
log(s);
}
return;
@@ -156,7 +156,7 @@
started = STATE_STOPPED;
if( !nnfeFound ) {
nnfeFound = true;
- IStatus s = new Status(IStatus.WARNING, JBossServerCorePlugin.PLUGIN_ID, CODE|started, t.getMessage(), t);
+ IStatus s = new Status(IStatus.WARNING, JBossServerCorePlugin.PLUGIN_ID, JMXPOLLER_CODE|started, t.getMessage(), t);
log(s);
}
return;
16 years