Author: scabanovich
Date: 2007-11-30 10:58:59 -0500 (Fri, 30 Nov 2007)
New Revision: 5172
Modified:
trunk/seam/plugins/org.jboss.tools.seam.xml/resources/meta/seam-spring.meta
trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/spring-2.0.xsd
Log:
JBIDE-1397
Modified: trunk/seam/plugins/org.jboss.tools.seam.xml/resources/meta/seam-spring.meta
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.xml/resources/meta/seam-spring.meta 2007-11-30
15:44:17 UTC (rev 5171)
+++ trunk/seam/plugins/org.jboss.tools.seam.xml/resources/meta/seam-spring.meta 2007-11-30
15:58:59 UTC (rev 5172)
@@ -186,6 +186,72 @@
</XActionItem>
<XDependencies/>
</XModelEntity>
+ <XModelEntity ImplementingClass="%Custom%"
+
PROPERTIES="formFactory=%Default%;formLayout=org.jboss.tools.seam.xml.ui.editor.form.core.SeamComponentsCoreFormLayoutData"
+ XMLSUBPATH="spring:spring-transaction"
name="SeamSpringTransaction20">
+ <XChildrenEntities/>
+ <XEntityRenderer>
+ <ICONS>
+ <ICON info="main.seam.core.dispatcher" type="main"/>
+ </ICONS>
+ </XEntityRenderer>
+ <XModelAttributes>
+ <XModelAttribute default="spring transaction"
loader="ElementType" name="element type">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="id=true;category=general"
+ default="org.jboss.seam.transaction.transaction" name="name"
xmlname="name"/>
+ <XModelAttributeReference
+ attributes="class,scope,precedence,installed,auto-create,jndi-name"
+ entity="SeamComponent" name="component"/>
+ <XModelAttribute PROPERTIES="category=general;save=always"
+ name="platform-transaction-manager"
xmlname="platform-transaction-manager"/>
+ <XModelAttribute PROPERTIES="category=advanced"
+ name="conversation-context-required"
xmlname="conversation-context-required">
+ <Constraint loader="List">
+ <value/>
+ <value name="true"/>
+ <value name="false"/>
+ </Constraint>
+ <Editor name="List"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="category=advanced"
+ name="join-transaction" xmlname="join-transaction">
+ <Constraint loader="List">
+ <value/>
+ <value name="true"/>
+ <value name="false"/>
+ </Constraint>
+ <Editor name="List"/>
+ </XModelAttribute>
+ <XModelAttribute TRIM="no" name="comment"
visibility="false" xmlname="#comment">
+ <Editor name="Note"/>
+ </XModelAttribute>
+ </XModelAttributes>
+ <XActionItem kind="list">
+ <XActionItem kind="list" name="CreateActions"/>
+ <XActionItem ICON="action.empty" displayName="Create"
kind="list" name="EditActions"/>
+ <XActionItem ICON="action.copy" displayName="Copy"
kind="list" name="CopyActions">
+ <XActionItem BaseActionName="Copy" HandlerClassName="%Copy%"
+ ICON="action.copy" displayName="Copy" kind="action"
name="Copy"/>
+ <XActionItem BaseActionName="Cut" HandlerClassName="%Cut%"
+ ICON="action.cut" displayName="Cut" kind="action"
name="Cut"/>
+ </XActionItem>
+ <XActionItem ICON="action.delete" displayName="Delete"
kind="list" name="DeleteActions">
+ <XActionItem BaseActionName="Delete"
HandlerClassName="%Delete%"
+ ICON="action.delete" displayName="Delete"
kind="action" name="Delete"/>
+ </XActionItem>
+ <XActionItem ICON="action.empty" kind="list"
name="Properties">
+ <XActionItem HandlerClassName="%Properties%"
ICON="action.empty"
+ displayName="Properties..." kind="action"
name="Properties"/>
+ </XActionItem>
+ <XActionItem displayName="move" kind="list"
name="MoveActions">
+ <XActionItem HIDE="always" HandlerClassName="%Move%"
+ ICON="action.move" displayName="Move" kind="action"
name="Move"/>
+ </XActionItem>
+ </XActionItem>
+ <XDependencies/>
+ </XModelEntity>
<XEntityExtension name="FileSeamComponents12">
<XChildrenEntities>
<XChildEntity name="SeamSpringContextLoader"/>
@@ -230,6 +296,7 @@
<XChildrenEntities>
<XChildEntity name="SeamSpringContextLoader"/>
<XChildEntity name="SeamSpringTaskDispatcher20"/>
+ <XChildEntity name="SeamSpringTransaction20"/>
</XChildrenEntities>
<XActionItem kind="list">
<XActionItem ICON="action.empty" displayName="New"
group="1"
@@ -252,6 +319,14 @@
<AttributeData AttributeName="task-executor"/>
</EntityData>
</XActionItem>
+ <XActionItem HandlerClassName="%Create%" ICON="action.empty"
+ PROPERTIES="validator.add=true" WizardClassName="%Default%"
+ displayName="Transaction..." kind="action"
name="AddTransaction">
+ <EntityData EntityName="SeamSpringTransaction20">
+ <AttributeData AttributeName="name"/>
+ <AttributeData AttributeName="platform-transaction-manager"/>
+ </EntityData>
+ </XActionItem>
</XActionItem>
</XActionItem>
</XActionItem>
@@ -279,6 +354,14 @@
<AttributeData AttributeName="task-executor"/>
</EntityData>
</XActionItem>
+ <XActionItem HandlerClassName="%Create%" ICON="action.empty"
+ PROPERTIES="validator.add=true" WizardClassName="%Default%"
+ displayName="Transaction..." kind="action"
name="AddTransaction">
+ <EntityData EntityName="SeamSpringTransaction20">
+ <AttributeData AttributeName="name"/>
+ <AttributeData AttributeName="platform-transaction-manager"/>
+ </EntityData>
+ </XActionItem>
</XActionItem>
</XActionItem>
</XActionItem>
Modified: trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/spring-2.0.xsd
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/spring-2.0.xsd 2007-11-30 15:44:17
UTC (rev 5171)
+++ trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/spring-2.0.xsd 2007-11-30 15:58:59
UTC (rev 5172)
@@ -1,44 +1,78 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<xs:schema
xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified"
-
targetNamespace="http://jboss.com/products/seam/spring"
xmlns:spring="http://jboss.com/products/seam/spring"
-
xmlns:components="http://jboss.com/products/seam/components"
attributeFormDefault="unqualified">
- <xs:import
namespace="http://jboss.com/products/seam/components"
schemaLocation="http://jboss.com/products/seam/components-2.0.xsd&qu...
-
- <xs:element name="context-loader">
- <xs:complexType mixed="true">
- <xs:choice minOccurs="0" maxOccurs="unbounded">
- <xs:element minOccurs="0" maxOccurs="1"
ref="spring:config-locations"/>
- </xs:choice>
- <xs:attributeGroup ref="components:attlist.component"/>
- <xs:attribute name="config-locations" type="xs:string"
use="optional" default="/WEB-INF/applicationContext.xml">
- <xs:annotation>
- <xs:documentation>
- <![CDATA[
- A single application context config location.
- ]]>
- </xs:documentation>
- </xs:annotation>
- </xs:attribute>
- </xs:complexType>
- </xs:element>
- <xs:element name="config-locations"
type="components:multiValuedProperty">
- <xs:annotation>
- <xs:documentation>
- <![CDATA[
- Allows you to specify many config-locations in nested value elements.
- ]]>
- </xs:documentation>
- </xs:annotation>
- </xs:element>
-
- <xs:element name="task-executor-dispatcher">
- <xs:complexType mixed="true">
- <xs:attributeGroup ref="components:attlist.component"/>
- <xs:attributeGroup
ref="spring:attlist.taskExecutorDispatcher"/>
- </xs:complexType>
- </xs:element>
- <xs:attributeGroup name="attlist.taskExecutorDispatcher">
- <xs:attribute name="task-executor" use="required"/>
- <xs:attribute name="schedule-dispatcher"/>
- </xs:attributeGroup>
-</xs:schema>
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema
xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified"
+
targetNamespace="http://jboss.com/products/seam/spring"
xmlns:spring="http://jboss.com/products/seam/spring"
+
xmlns:components="http://jboss.com/products/seam/components"
attributeFormDefault="unqualified">
+ <xs:import
namespace="http://jboss.com/products/seam/components"
+
schemaLocation="http://jboss.com/products/seam/components-2.0.xsd" />
+
+ <xs:element name="context-loader">
+ <xs:complexType mixed="true">
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element minOccurs="0" maxOccurs="1"
ref="spring:config-locations" />
+ </xs:choice>
+ <xs:attributeGroup ref="components:attlist.component" />
+ <xs:attribute name="config-locations" type="xs:string"
use="optional"
+ default="/WEB-INF/applicationContext.xml">
+ <xs:annotation>
+ <xs:documentation>
+ <![CDATA[
+ A single application context config location.
+ ]]>
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="config-locations"
type="components:multiValuedProperty">
+ <xs:annotation>
+ <xs:documentation>
+ <![CDATA[
+ Allows you to specify many config-locations in nested value elements.
+ ]]>
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+
+ <xs:element name="task-executor-dispatcher">
+ <xs:complexType mixed="true">
+ <xs:attributeGroup ref="components:attlist.component" />
+ <xs:attributeGroup ref="spring:attlist.taskExecutorDispatcher" />
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="attlist.taskExecutorDispatcher">
+ <xs:attribute name="task-executor" use="required" />
+ <xs:attribute name="schedule-dispatcher" />
+ </xs:attributeGroup>
+
+ <xs:element name="spring-transaction">
+ <xs:complexType mixed="true">
+ <xs:attributeGroup ref="components:attlist.component" />
+ <xs:attribute name="platform-transaction-manager">
+ <xs:annotation>
+ <xs:documentation>
+ <![CDATA[
+ An expression evalutating to the spring platform transaction
manager
+ ]]>
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="conversation-context-required"
type="xs:boolean" use="optional" default="true">
+ <xs:annotation>
+ <xs:documentation>
+ Specify if this transaction manager requires a conversation context to be available
or not.
+ Set to true if you're using a JpaTransactionManager with a conversation scoped
persistence
+ context.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="join-transaction" type="xs:boolean"
use="optional">
+ <xs:annotation>
+ <xs:documentation>
+ Should this transaction manager participate in request to join a transaction. For
JTA
+ transactions set to true.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ </xs:complexType>
+ </xs:element>
+</xs:schema>