summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpelder2006-03-21 10:30:37 (EST)
committerpelder2006-03-21 10:30:37 (EST)
commitbac10b26cfdd6ae8dbbf520cf0b3ed391b4d0331 (patch)
tree014ca4fe53bca91ed4a00550ca6f41ac144d5b90
parente482ac503827d07564ea20ebf2d2fa6d6e85a6a6 (diff)
downloadorg.eclipse.jet-bac10b26cfdd6ae8dbbf520cf0b3ed391b4d0331.zip
org.eclipse.jet-bac10b26cfdd6ae8dbbf520cf0b3ed391b4d0331.tar.gz
org.eclipse.jet-bac10b26cfdd6ae8dbbf520cf0b3ed391b4d0331.tar.bz2
[131380] [132668] Declare text stripping attributes on tags. Declare <java:merge> tag.
-rw-r--r--plugins/org.eclipse.jet/plugin.xml155
1 files changed, 105 insertions, 50 deletions
diff --git a/plugins/org.eclipse.jet/plugin.xml b/plugins/org.eclipse.jet/plugin.xml
index 73c0dd4..60fa8d3 100644
--- a/plugins/org.eclipse.jet/plugin.xml
+++ b/plugins/org.eclipse.jet/plugin.xml
@@ -42,7 +42,8 @@
standardPrefix="c">
<iteratingTag
class="org.eclipse.jet.internal.taglib.control.IterateTag"
- name="iterate">
+ name="iterate"
+ whenContainingLineIsEmpty="remove">
<attribute
name="select"
@@ -81,7 +82,8 @@ If there is a variable in scope with the same name as the value &amp;apos;var&am
</iteratingTag>
<conditionalTag
class="org.eclipse.jet.internal.taglib.control.IfTag"
- name="if">
+ name="if"
+ whenContainingLineIsEmpty="remove">
<attribute
name="test"
type="xpath"
@@ -97,10 +99,19 @@ If the 'test' XPath expression is does not result in a boolean value, then it is
If the 'test' XPath expression is not well formed, then an error results.
</description>
+ <attribute
+ name="var"
+ type="string"
+ use="optional">
+ <description>
+ The name of a variable that will refer to the value of the 'test' expression prior to it being converted to a boolean value'. The variable has the scope of the tag contents.
+ </description>
+ </attribute>
</conditionalTag>
<emptyTag
class="org.eclipse.jet.internal.taglib.control.GetTag"
- name="get">
+ name="get"
+ whenContainingLineIsEmpty="preserve">
<attribute
name="select"
@@ -124,42 +135,11 @@ If the 'test' XPath expression is not well formed, then an error results.
If the 'select' XPath expression returns more than one object, only the first is written. If the XPath expression selects no objects, then an error occurs, unless the 'default' attribute is specified. If the 'select' XPath expression is malformed, then an error occurs.
</description>
</emptyTag>
- <functionTag
- class="org.eclipse.jet.internal.taglib.control.SetTag"
- name="set">
- <attribute
- name="select"
- type="xpath"
- use="required">
- <description>
- The XPath expression to evaluate.
- </description>
- </attribute>
- <attribute
- name="name"
- type="string"
- use="required">
- <description>
- The name of the attribute to set or create and set.
- </description>
- </attribute>
- <description>
- Set an attribute on an object selected by an XPath expression. The value of the attribute is determined by the contents of the tag.
-
-If the XPath expression results in more than one object being selected, then that attribute is created on only the first selected object.
-
-If the XPath expression does not select an object, or if the XPath expression is malformed, then an error occurs.
-
-The 'name' attribute need not refer to an attribute defined on the selected object. If the attribute does not exist, one is created dynamically. Such dynamically created attributes are not permanent - they are destroyed when the JET2Context object passed to the template is destroyed.
-
-If the 'name' attribute refers to an existing attribute on the selected object, then the tag attempts to convert the string contents of this tag to the appropriate attribute data type. If this conversion fails, then an error occurs.
-
-
- </description>
- </functionTag>
<containerTag
class="org.eclipse.jet.internal.taglib.control.ChooseTag"
- name="choose">
+ name="choose"
+ processContents="custom"
+ whenContainingLineIsEmpty="remove">
<description>
Define a group of mutually exclusive choices. The contents of this tag are restricted to &apos;when&apos; and &apos;otherwise&apos; tags only.
@@ -177,7 +157,9 @@ During execution of this tag, each &apos;when&apos; and &apos;otherwise&apos; ta
<conditionalTag
class="org.eclipse.jet.internal.taglib.control.WhenTag"
deprecated="true"
- name="case">
+ name="case"
+ processContents="custom"
+ whenContainingLineIsEmpty="remove">
<attribute
name="test"
type="xpath"
@@ -199,7 +181,9 @@ If this tag is not directly contained by a &apos;choose&apos; tag, then an error
</conditionalTag>
<conditionalTag
class="org.eclipse.jet.internal.taglib.control.OtherwiseTag"
- name="otherwise">
+ name="otherwise"
+ processContents="custom"
+ whenContainingLineIsEmpty="remove">
<description>
Define a default case for a 'choose' tag. The body of this tag is processed only if no previous 'case' or 'otherwise' tag in the containing 'choose' tag has processed its body content.
@@ -208,7 +192,8 @@ An error occurs if the 'otherwise' is not directly contained by a 'choose' tag.
</conditionalTag>
<iteratingTag
class="org.eclipse.jet.internal.taglib.control.VisitorTag"
- name="visitor">
+ name="visitor"
+ whenContainingLineIsEmpty="remove">
<attribute
name="select"
type="xpath"
@@ -233,7 +218,8 @@ If the 'select' XPath expression returns more than one object, only the first is
</iteratingTag>
<conditionalTag
class="org.eclipse.jet.internal.taglib.control.VisitTag"
- name="visit">
+ name="visit"
+ whenContainingLineIsEmpty="remove">
<attribute
name="test"
type="xpath"
@@ -251,7 +237,8 @@ Note that more than one 'visit' tag may be executed for the same object identifi
</description>
<containerTag
class="org.eclipse.jet.internal.taglib.control.UserRegionTag"
- name="userRegion">
+ name="userRegion"
+ whenContainingLineIsEmpty="remove">
<description>
Define a region in the generated text where users may write customized code.
@@ -264,7 +251,8 @@ tag are written.
</containerTag>
<emptyTag
class="org.eclipse.jet.internal.taglib.control.IncludeTag"
- name="include">
+ name="include"
+ whenContainingLineIsEmpty="remove">
<description>
Process the referenced template, and include its results in the output of the current template.
@@ -307,7 +295,8 @@ The optional 'severity' attribute may have one of the following values: 'info',
</functionTag>
<containerTag
class="org.eclipse.jet.internal.taglib.control.InitialCodeTag"
- name="initialCode">
+ name="initialCode"
+ whenContainingLineIsEmpty="remove">
<description>
A child tag of the 'userRegion' tag containing the initial code to write. See 'userRegion' for more information.
@@ -315,7 +304,8 @@ The optional 'severity' attribute may have one of the following values: 'info',
</containerTag>
<emptyTag
class="org.eclipse.jet.internal.taglib.control.SetVariableTag"
- name="setVariable">
+ name="setVariable"
+ whenContainingLineIsEmpty="remove">
<description>
Create a variable whose value is set to the result of the provided XPath expression.
</description>
@@ -338,7 +328,8 @@ The optional 'severity' attribute may have one of the following values: 'info',
</emptyTag>
<emptyTag
class="org.eclipse.jet.internal.taglib.control.AddElementTag"
- name="addElement">
+ name="addElement"
+ whenContainingLineIsEmpty="remove">
<description>
@@ -412,7 +403,8 @@ The optional 'severity' attribute may have one of the following values: 'info',
</functionTag>
<emptyTag
class="org.eclipse.jet.internal.taglib.control.RemoveElementTag"
- name="removeElement">
+ name="removeElement"
+ whenContainingLineIsEmpty="remove">
<description>
Remove the selected node from the document tree.
</description>
@@ -427,7 +419,8 @@ The optional 'severity' attribute may have one of the following values: 'info',
</emptyTag>
<emptyTag
class="org.eclipse.jet.internal.taglib.control.CopyElementTag"
- name="copyElement">
+ name="copyElement"
+ whenContainingLineIsEmpty="remove">
<description>
Copy the selected node to the selected location.
@@ -475,7 +468,8 @@ The optional 'severity' attribute may have one of the following values: 'info',
</emptyTag>
<emptyTag
class="org.eclipse.jet.internal.taglib.control.LoadTag"
- name="load">
+ name="load"
+ whenContainingLineIsEmpty="remove">
<description>
Load the referenced model, and set the passed variable to the loaded document root.
@@ -528,7 +522,9 @@ The optional loader attribute determines which loader is used to load the model.
</emptyTag>
<conditionalTag
class="org.eclipse.jet.internal.taglib.control.WhenTag"
- name="when">
+ name="when"
+ processContents="custom"
+ whenContainingLineIsEmpty="remove">
<description>
Define a one of the mutually exclusive cases of a 'choose' tag. The body of this tag is processed only if the 'test' XPath expression evaluates to 'true', and no previous 'when' or 'otherwise' tag in the containing 'choose' tag has processed its body content.
@@ -547,6 +543,40 @@ If this tag is not directly contained by a 'choose' tag, then an error results.
</description>
</attribute>
</conditionalTag>
+ <containerTag
+ allowAsEmpty="false"
+ class="org.eclipse.jet.internal.taglib.control.SetTag"
+ name="set"
+ processContents="custom"
+ whenContainingLineIsEmpty="remove">
+ <description>
+ Set an attribute on an object selected by an XPath expression. The value of the attribute is determined by the contents of the tag.
+
+If the XPath expression results in more than one object being selected, then that attribute is created on only the first selected object.
+
+If the XPath expression does not select an object, or if the XPath expression is malformed, then an error occurs.
+
+The 'name' attribute need not refer to an attribute defined on the selected object. If the attribute does not exist, one is created dynamically. Such dynamically created attributes are not permanent - they are destroyed when the JET2Context object passed to the template is destroyed.
+
+If the 'name' attribute refers to an existing attribute on the selected object, then the tag attempts to convert the string contents of this tag to the appropriate attribute data type. If this conversion fails, then an error occurs.
+ </description>
+ <attribute
+ name="select"
+ type="xpath"
+ use="required">
+ <description>
+ The XPath expression to evaluate.
+ </description>
+ </attribute>
+ <attribute
+ name="name"
+ type="string"
+ use="required">
+ <description>
+ The name of the attribute to set or create and set.
+ </description>
+ </attribute>
+ </containerTag>
</tagLibrary>
<tagLibrary
id="workspaceTags"
@@ -884,6 +914,31 @@ This tag must be preceded by a 'importsLocation' tag.
</description>
</attribute>
</containerTag>
+ <emptyTag
+ class="org.eclipse.jet.internal.taglib.java.MergeTag"
+ name="merge"
+ whenContainingLineIsEmpty="preserve">
+
+ <description>
+ Cause the template contents to be merged with the existing Java file using the EMF JMerge engine.
+ </description>
+ <attribute
+ name="rules"
+ type="string"
+ use="required">
+ <description>
+ A URL to the JMerge rules file. If the path is relative, then it is relative to the location specified by the rulesContext attribute.
+ </description>
+ </attribute>
+ <attribute
+ name="rulesContext"
+ type="string"
+ use="optional">
+ <description>
+ The context for resolving relative 'rules' URLs. Possible values are 'transform' or 'workspace'. If the value is 'transform', then the 'rules' URL is treated as a JET project relative path. If the value is 'workspace', then the 'rules' URL is treated as an Eclipse workspace relative path. The default is 'transform'.
+ </description>
+ </attribute>
+ </emptyTag>
</tagLibrary>
<tagLibrary
id="formatTags"