Author: akazakov
Date: 2009-06-02 14:48:18 -0400 (Tue, 02 Jun 2009)
New Revision: 15659
Added:
trunk/jst/plugins/org.jboss.tools.jst.web.kb/resources/
trunk/jst/plugins/org.jboss.tools.jst.web.kb/resources/kbCustomTagLibSchema-1.0.dtd
trunk/jst/plugins/org.jboss.tools.jst.web.kb/schema/
trunk/jst/plugins/org.jboss.tools.jst.web.kb/schema/tagLib.exsd
trunk/jst/plugins/org.jboss.tools.jst.web.kb/taglibs/
trunk/jst/plugins/org.jboss.tools.jst.web.kb/taglibs/componentExtension.xml
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web.kb/.classpath
trunk/jst/plugins/org.jboss.tools.jst.web.kb/build.properties
trunk/jst/plugins/org.jboss.tools.jst.web.kb/plugin.xml
Log:
https://jira.jboss.org/jira/browse/JBIDE-2808
Modified: trunk/jst/plugins/org.jboss.tools.jst.web.kb/.classpath
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.web.kb/.classpath 2009-06-02 17:14:53 UTC (rev
15658)
+++ trunk/jst/plugins/org.jboss.tools.jst.web.kb/.classpath 2009-06-02 18:48:18 UTC (rev
15659)
@@ -3,5 +3,6 @@
<classpathentry kind="con"
path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
<classpathentry kind="con"
path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="src" path="src"/>
+ <classpathentry kind="src" path="resources"/>
<classpathentry kind="output" path="bin"/>
</classpath>
Modified: trunk/jst/plugins/org.jboss.tools.jst.web.kb/build.properties
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.web.kb/build.properties 2009-06-02 17:14:53 UTC
(rev 15658)
+++ trunk/jst/plugins/org.jboss.tools.jst.web.kb/build.properties 2009-06-02 18:48:18 UTC
(rev 15659)
@@ -2,7 +2,10 @@
META-INF/,\
plugin.properties,\
webKb.jar,\
- about.html
-source.webKb.jar = src/
+ about.html,\
+ schema/,\
+ taglibs/
+source.webKb.jar = src/,\
+ resources/
output.webKb.jar = bin/
jars.compile.order = webKb.jar
Modified: trunk/jst/plugins/org.jboss.tools.jst.web.kb/plugin.xml
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.web.kb/plugin.xml 2009-06-02 17:14:53 UTC (rev
15658)
+++ trunk/jst/plugins/org.jboss.tools.jst.web.kb/plugin.xml 2009-06-02 18:48:18 UTC (rev
15659)
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.0"?>
<plugin>
+ <extension-point id="tagLib" name="Kb Custom Tag Lib"
schema="schema/tagLib.exsd"/>
<extension
id="kbbuilder"
@@ -27,4 +28,4 @@
</builder>
</extension>
-</plugin>
\ No newline at end of file
+</plugin>
Added:
trunk/jst/plugins/org.jboss.tools.jst.web.kb/resources/kbCustomTagLibSchema-1.0.dtd
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.web.kb/resources/kbCustomTagLibSchema-1.0.dtd
(rev 0)
+++
trunk/jst/plugins/org.jboss.tools.jst.web.kb/resources/kbCustomTagLibSchema-1.0.dtd 2009-06-02
18:48:18 UTC (rev 15659)
@@ -0,0 +1,71 @@
+<!--
+ <!DOCTYPE kb-custom-tag-lib PUBLIC
+ "-//Red Hat, Inc//DTD Knowledge Base 2.0//EN"
+ "http://www.redhat.com/dtds/kbCustomTagLibSchema-1.0.dtd">
+-->
+
+<!ENTITY % Boolean "(true|false)">
+
+<!--
+ tag-lib is a root element. May contain component
+ Attributes:
+ uri - URI of this tag lib.
+ dafault-prefix - Default prefix.
+-->
+<!ELEMENT tag-lib (component*, componentExtension?) >
+
+<!ATTLIST tag-lib uri CDATA #REQUIRED>
+<!ATTLIST schema dafault-prefix CDATA #IMPLIED>
+
+<!--
+ component describes a component.
+ component can contain attributes.
+ Attributes:
+ name - name of component
+ closeTag - "true" - Component can have a body.
+ "false" - Component cannot have a body. Used by default.
+-->
+<!ELEMENT component (attribute*) >
+
+<!ATTLIST component name CDATA #REQUIRED>
+<!ATTLIST component closeTag %Boolean #IMPLIED>
+
+<!--
+ Describes attribute of component.
+ Attributes:
+ name - Name of attribute type.
+ required - "true" - attribute of element is required. "false" by
default.
+ defaultValue - default value of attribute.
+-->
+<!ELEMENT attribute (proposal*) >
+
+<!ATTLIST attribute name CDATA #REQUIRED>
+<!ATTLIST attribute required %Boolean #REQUIRED>
+<!ATTLIST attribute defaultValue CDATA #IMPLIED>
+
+<!--
+ Describe content assist proposal for value of attribute.
+ Attributes:
+ type - Type of proposal.
+-->
+<!ELEMENT proposal (param*) >
+
+<!ATTLIST proposal type CDATA #REQUIRED>
+
+<!--
+ Describes parameter of proposal.
+ Attributes:
+ value - Value of param.
+ name - Name of param.
+-->
+<!ELEMENT param >
+
+<!ATTLIST param value CDATA #REQUIRED>
+<!ATTLIST param name CDATA #IMPLIED>
+
+<!--
+ component extension describes common attributes with additional meta information
+ for component attributes in case these attributes are present in other types of tag
libs.
+ For example this element could add proposals for every "rendered" attributes
for any tag lib.
+-->
+<!ELEMENT componentExtension (attribute*) >
\ No newline at end of file
Property changes on:
trunk/jst/plugins/org.jboss.tools.jst.web.kb/resources/kbCustomTagLibSchema-1.0.dtd
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/jst/plugins/org.jboss.tools.jst.web.kb/schema/tagLib.exsd
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.web.kb/schema/tagLib.exsd
(rev 0)
+++ trunk/jst/plugins/org.jboss.tools.jst.web.kb/schema/tagLib.exsd 2009-06-02 18:48:18
UTC (rev 15659)
@@ -0,0 +1,123 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!-- Schema file written by PDE -->
+<schema targetNamespace="org.jboss.tools.jst.web.kb"
xmlns="http://www.w3.org/2001/XMLSchema">
+<annotation>
+ <appInfo>
+ <meta.schema plugin="org.jboss.tools.jst.web.kb"
id="KbTagLib" name="KbTagLib"/>
+ </appInfo>
+ <documentation>
+ [Enter description of this extension point.]
+ </documentation>
+ </annotation>
+
+ <element name="extension">
+ <annotation>
+ <appInfo>
+ <meta.element />
+ </appInfo>
+ </annotation>
+ <complexType>
+ <sequence>
+ <element ref="tag-lib" minOccurs="1"
maxOccurs="unbounded"/>
+ </sequence>
+ <attribute name="point" type="string"
use="required">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ </annotation>
+ </attribute>
+ <attribute name="id" type="string">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ </annotation>
+ </attribute>
+ <attribute name="name" type="string">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ <appInfo>
+ <meta.attribute translatable="true"/>
+ </appInfo>
+ </annotation>
+ </attribute>
+ </complexType>
+ </element>
+
+ <element name="tag-lib">
+ <complexType>
+ <attribute name="name" type="string">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ </annotation>
+ </attribute>
+ <attribute name="uri" type="string"
use="required">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ </annotation>
+ </attribute>
+ <attribute name="version" type="string">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ </annotation>
+ </attribute>
+ <attribute name="location" type="string"
use="required">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ <appInfo>
+ <meta.attribute kind="resource"/>
+ </appInfo>
+ </annotation>
+ </attribute>
+ </complexType>
+ </element>
+
+ <annotation>
+ <appInfo>
+ <meta.section type="since"/>
+ </appInfo>
+ <documentation>
+ JBoss Tools 3.1.0
+ </documentation>
+ </annotation>
+
+ <annotation>
+ <appInfo>
+ <meta.section type="examples"/>
+ </appInfo>
+ <documentation>
+ [Enter extension point usage example here.]
+ </documentation>
+ </annotation>
+
+ <annotation>
+ <appInfo>
+ <meta.section type="apiInfo"/>
+ </appInfo>
+ <documentation>
+ [Enter API information here.]
+ </documentation>
+ </annotation>
+
+ <annotation>
+ <appInfo>
+ <meta.section type="implementation"/>
+ </appInfo>
+ <documentation>
+ [Enter information about supplied implementation of this extension point.]
+ </documentation>
+ </annotation>
+
+
+</schema>
Property changes on: trunk/jst/plugins/org.jboss.tools.jst.web.kb/schema/tagLib.exsd
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/jst/plugins/org.jboss.tools.jst.web.kb/taglibs/componentExtension.xml
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.web.kb/taglibs/componentExtension.xml
(rev 0)
+++ trunk/jst/plugins/org.jboss.tools.jst.web.kb/taglibs/componentExtension.xml 2009-06-02
18:48:18 UTC (rev 15659)
@@ -0,0 +1,55 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE customExtension PUBLIC "-//Red Hat, Inc//DTD Knowledge Base
2.0//EN"
"http://anonsvn.jboss.org/repos/jbosstools/trunk/jst/plugins/org.jboss.tools.jst.web.kb/resources/kbCustomTagLibSchema-1.0.dtd">
+<customExtension>
+ <attribute name="action">
+ <proposal type="viewActions"/>
+ </attribute>
+ <attribute name="immediate">
+ <proposal type="enumeration">
+ <param value="true"/>
+ <param value="false"/>
+ </proposal>
+ </attribute>
+ <attribute name="rendered">
+ <proposal type="enumeration">
+ <param value="true"/>
+ <param value="false"/>
+ </proposal>
+ </attribute>
+ <attribute name="dir">
+ <proposal type="enumeration">
+ <param value="LTR"/>
+ <param value="RTL"/>
+ </proposal>
+ </attribute>
+ <attribute name="disabled">
+ <proposal type="enumeration">
+ <param value="true"/>
+ <param value="false"/>
+ </proposal>
+ </attribute>
+ <attribute name="readonly">
+ <proposal type="enumeration">
+ <param value="true"/>
+ <param value="false"/>
+ </proposal>
+ </attribute>
+ <attribute name="required">
+ <proposal type="enumeration">
+ <param value="true"/>
+ <param value="false"/>
+ </proposal>
+ </attribute>
+ <attribute name="readonly">
+ <proposal type="enumeration">
+ <param value="true"/>
+ <param value="false"/>
+ </proposal>
+ </attribute>
+ <attribute name="escape">
+ <proposal type="enumeration">
+ <param value="true"/>
+ <param value="false"/>
+ </proposal>
+ </attribute>
+</customExtension>
\ No newline at end of file
Property changes on:
trunk/jst/plugins/org.jboss.tools.jst.web.kb/taglibs/componentExtension.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain