Author: scabanovich
Date: 2007-11-30 10:44:17 -0500 (Fri, 30 Nov 2007)
New Revision: 5171
Modified:
trunk/seam/plugins/org.jboss.tools.seam.xml/resources/meta/seam-drools.meta
trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/drools-2.0.xsd
Log:
JBIDE-1397
Modified: trunk/seam/plugins/org.jboss.tools.seam.xml/resources/meta/seam-drools.meta
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.xml/resources/meta/seam-drools.meta 2007-11-30
15:27:18 UTC (rev 5170)
+++ trunk/seam/plugins/org.jboss.tools.seam.xml/resources/meta/seam-drools.meta 2007-11-30
15:44:17 UTC (rev 5171)
@@ -77,6 +77,59 @@
</XModelEntity>
<XModelEntity ImplementingClass="%Custom%"
PROPERTIES="formFactory=%Default%;formLayout=org.jboss.tools.seam.xml.ui.editor.form.core.SeamComponentsCoreFormLayoutData"
+ XMLSUBPATH="drools:rule-agent" name="SeamDroolsRuleAgent">
+ <XChildrenEntities/>
+ <XEntityRenderer>
+ <ICONS>
+ <ICON info="main.seam.drools.base" type="main"/>
+ </ICONS>
+ </XEntityRenderer>
+ <XModelAttributes>
+ <XModelAttribute default="rule agent" loader="ElementType"
name="element type">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttributeReference
+ attributes="name,class,scope,precedence,installed,auto-create"
+ entity="SeamComponent" name="component"/>
+ <XModelAttribute PROPERTIES="category=advanced"
+ name="configuration-file" xmlname="configuration-file"/>
+ <XModelAttribute PROPERTIES="category=advanced"
name="config-name" xmlname="config-name"/>
+ <XModelAttribute PROPERTIES="category=advanced"
name="new-instance" xmlname="new-instance"/>
+ <XModelAttribute PROPERTIES="category=advanced" name="files"
xmlname="files"/>
+ <XModelAttribute PROPERTIES="category=advanced" name="url"
xmlname="url"/>
+ <XModelAttribute PROPERTIES="category=advanced"
+ name="local-cache-dir" xmlname="local-cache-dir"/>
+ <XModelAttribute PROPERTIES="category=advanced" name="poll"
xmlname="poll"/>
+ <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>
+ <XModelEntity ImplementingClass="%Custom%"
+
PROPERTIES="formFactory=%Default%;formLayout=org.jboss.tools.seam.xml.ui.editor.form.core.SeamComponentsCoreFormLayoutData"
XMLSUBPATH="drools:rule-base" name="SeamDroolsRuleBase">
<XChildrenEntities>
<XChildEntity maxCount="1" name="SeamDroolsRuleFiles"
required="yes"/>
@@ -241,6 +294,7 @@
<XChildrenEntities>
<XChildEntity name="SeamDroolsManagedWorkingMemory"/>
<XChildEntity name="SeamDroolsRuleBase"/>
+ <XChildEntity name="SeamDroolsRuleAgent"/>
</XChildrenEntities>
<XActionItem kind="list">
<XActionItem ICON="action.empty" displayName="New"
group="1"
@@ -263,6 +317,14 @@
<AttributeData AttributeName="rule-files"
Mandatory="no"/>
</EntityData>
</XActionItem>
+ <XActionItem HandlerClassName="%Create%" ICON="action.empty"
+ PROPERTIES="validator.add=true" WizardClassName="%Default%"
+ displayName="Rule Base..." kind="action"
name="AddRuleAgent">
+ <EntityData EntityName="SeamDroolsRuleAgent">
+ <AttributeData AttributeName="name"/>
+ <AttributeData AttributeName="configuration-file"
Mandatory="no"/>
+ </EntityData>
+ </XActionItem>
</XActionItem>
</XActionItem>
</XActionItem>
@@ -290,6 +352,14 @@
<AttributeData AttributeName="rule-files"
Mandatory="no"/>
</EntityData>
</XActionItem>
+ <XActionItem HandlerClassName="%Create%" ICON="action.empty"
+ PROPERTIES="validator.add=true" WizardClassName="%Default%"
+ displayName="Rule Base..." kind="action"
name="AddRuleAgent">
+ <EntityData EntityName="SeamDroolsRuleAgent">
+ <AttributeData AttributeName="name"/>
+ <AttributeData AttributeName="configuration-file"
Mandatory="no"/>
+ </EntityData>
+ </XActionItem>
</XActionItem>
</XActionItem>
</XActionItem>
Modified: trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/drools-2.0.xsd
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/drools-2.0.xsd 2007-11-30 15:27:18
UTC (rev 5170)
+++ trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/drools-2.0.xsd 2007-11-30 15:44:17
UTC (rev 5171)
@@ -1,32 +1,48 @@
-<?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/drools"
xmlns:drools="http://jboss.com/products/seam/drools"
-
xmlns:components="http://jboss.com/products/seam/components"
attributeFormDefault="unqualified">
- <xs:import
namespace="http://jboss.com/products/seam/components"
schemaLocation="components-2.0.xsd"/>
-
- <xs:element name="rule-base">
- <xs:complexType mixed="true">
- <xs:choice minOccurs="0" maxOccurs="unbounded">
- <xs:element minOccurs="0" maxOccurs="1"
ref="drools:rule-files"/>
- </xs:choice>
- <xs:attributeGroup ref="components:attlist.component"/>
- <xs:attributeGroup ref="drools:attlist.RuleBase"/>
- </xs:complexType>
- </xs:element>
- <xs:element name="rule-files"
type="components:multiValuedProperty"/>
- <xs:attributeGroup name="attlist.RuleBase">
- <xs:attribute name="dsl-file" type="xs:string"/>
- <xs:attribute name="rule-files" type="xs:string"/>
- </xs:attributeGroup>
-
- <xs:element name="managed-working-memory">
- <xs:complexType mixed="true">
- <xs:attributeGroup ref="components:attlist.component"/>
- <xs:attributeGroup
ref="drools:attlist.ManagedWorkingMemory"/>
- </xs:complexType>
- </xs:element>
- <xs:attributeGroup name="attlist.ManagedWorkingMemory">
- <xs:attribute name="rule-base" type="xs:string"/>
- </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/drools"
xmlns:drools="http://jboss.com/products/seam/drools"
+
xmlns:components="http://jboss.com/products/seam/components"
attributeFormDefault="unqualified">
+ <xs:import
namespace="http://jboss.com/products/seam/components"
schemaLocation="components-2.0.xsd"/>
+
+ <xs:element name="rule-base">
+ <xs:complexType mixed="true">
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element minOccurs="0" maxOccurs="1"
ref="drools:rule-files"/>
+ </xs:choice>
+ <xs:attributeGroup ref="components:attlist.component"/>
+ <xs:attributeGroup ref="drools:attlist.RuleBase"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="rule-files"
type="components:multiValuedProperty"/>
+ <xs:attributeGroup name="attlist.RuleBase">
+ <xs:attribute name="dsl-file" type="xs:string"/>
+ <xs:attribute name="rule-files" type="xs:string"/>
+ </xs:attributeGroup>
+
+ <xs:element name="rule-agent">
+ <xs:complexType mixed="true">
+ <xs:attributeGroup ref="components:attlist.component" />
+ <xs:attributeGroup ref="drools:attlist.RuleAgent" />
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="attlist.RuleAgent">
+ <xs:attribute name="configuration-file" type="xs:string"
/>
+ <xs:attribute name="config-name" type="xs:string" />
+ <xs:attribute name="new-instance" type="xs:string" />
+ <xs:attribute name="files" type="xs:string" />
+ <xs:attribute name="url" type="xs:string" />
+ <xs:attribute name="local-cache-dir" type="xs:string"
/>
+ <xs:attribute name="poll" type="xs:string" />
+ </xs:attributeGroup>
+
+ <xs:element name="managed-working-memory">
+ <xs:complexType mixed="true">
+ <xs:attributeGroup ref="components:attlist.component"/>
+ <xs:attributeGroup
ref="drools:attlist.ManagedWorkingMemory"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="attlist.ManagedWorkingMemory">
+ <xs:attribute name="rule-base" type="xs:string"/>
+ </xs:attributeGroup>
+
+</xs:schema>