JBoss Tools SVN: r2676 - trunk/documentation/GettingStartedGuide/docs/userguide/en/modules.
by jbosstools-commits@lists.jboss.org
Author: afedosik
Date: 2007-07-26 09:44:04 -0400 (Thu, 26 Jul 2007)
New Revision: 2676
Modified:
trunk/documentation/GettingStartedGuide/docs/userguide/en/modules/GettingStartedWithRHDS.xml
Log:
http://jira.jboss.com/jira/browse/EXIN-104 "Configuring Your Java Environment" section is added
Modified: trunk/documentation/GettingStartedGuide/docs/userguide/en/modules/GettingStartedWithRHDS.xml
===================================================================
--- trunk/documentation/GettingStartedGuide/docs/userguide/en/modules/GettingStartedWithRHDS.xml 2007-07-26 12:42:07 UTC (rev 2675)
+++ trunk/documentation/GettingStartedGuide/docs/userguide/en/modules/GettingStartedWithRHDS.xml 2007-07-26 13:44:04 UTC (rev 2676)
@@ -10,67 +10,101 @@
</keywordset>
</chapterinfo>
<title>Getting Started with Red Hat Developer Studio</title>
- <section id="JDKInstalling">
- <?dbhtml filename="JDKInstalling.html"?>
- <title>JDK Installation</title>
- <para>Before installing Red Hat Developer Studio make sure you have an appropriate JDK version installed on your computer. Studio will properly work with the next JDK's:</para>
+ <section id="ConfigJavaEnvironment">
+ <?dbhtml filename="ConfigJavaEnvironment.html"?>
+ <title>Configuring Your Java Environment</title>
+ <para>You must have a working installation of JDK 1.5 before you install JBoss Enterprise Application Platform. You can install the 32-bit or 64-bit JVM as per your
+ requirements. In this guide we will show you how to install a 32-bit Sun JDK 5.0 on a Linux Platform and Microsoft Windows Platform. But before we do that let's take
+ a look at some of the benefits of using a 64-bit JVM.</para>
+ <emphasis role="bold">Benefits of 64-bit JVM on 64-bit OS and Hardware:</emphasis>
<itemizedlist>
- <listitem>JDK 1.5</listitem>
- <listitem>JDK 1.6</listitem>
+ <listitem><para>Wider datapath: The pipe between RAM and CPU is doubled, which improves the performance of memory-bound applications.</para></listitem>
+ <listitem><para>64-bit memory addressing gives virtually unlimited (1 exabyte) heap allocation. However large heaps affect garbage collection.</para></listitem>
+ <listitem><para>Applications that run with more than 1.5GB of RAM (including free space for garbage collection optimization) should utilize the 64-bit JVM.</para></listitem>
+ <listitem><para>Applications that run on 32-bit JVM and do not require more than minimal heap sizes will gain nothing from a 64-bit JVM. Barring memory issues, 64-bit hardware with the same relative clock speed and architecture is not likely to run Java applications faster than their 32-bit cousin.</para></listitem>
</itemizedlist>
- <note>
- <title>Note:</title>
- <para>Eclipse can use JDK 6 but the JBoss AS it manages needs to start under JDK 5 (i.e., select a JDK 5 JRE from the Server Runtime wizard).</para>
- </note>
+ <section id="InstallJDK50onLinux">
+ <title>Installing and Configuring 32-bit Sun JDK 5.0 on Linux</title>
+ <itemizedlist>
+ <listitem><para>Download the <ulink url="http://java.sun.com/javase/downloads/index_jdk5.jsp">Sun JDK 5.0 (Java 2 Development Kit)</ulink> from Sun's website.
+ Choose "JDK 5.0 Update <x>" (where x is the latest update number) for download and then select "RPM in self-extracting" file for Linux. Read the instructions on Sun's website for installing the JDK.</para></listitem>
+ <listitem><para>If you don't want to use SysV service scripts you can install the "self-extracting file" for Linux instead of choosing the "RPM in self-extracting" file.
+ In that case you can skip the next step mentioned here. But it is recommended to use the SysV service scripts for production servers.</para></listitem>
+ <listitem><para>Download and install the appropriate -compat RPM from JPackage <ulink url="ftp://jpackage.hmdc.harvard.edu/JPackage/1.7/generic/RPMS.non-free/">here</ulink>.
+ Please ensure you choose a matching version of the -compat package to the JDK you installed.</para></listitem>
+ <listitem><para>Create an environment variable that points to the JDK installation directory and call it JAVA_HOME. Add $JAVA_HOME/bin to the system path to be able to run java from the
+ command line. You can do this by adding the following lines to the .bashrc file in your home directory.</para></listitem>
+ </itemizedlist>
+ <programlisting><![CDATA[#In this example /usr/java/jdk1.5.0_11 is the JDK installation directory.
+export JAVA_HOME=/usr/java/jdk1.5.0_11
+export PATH=$PATH:$JAVA_HOME/bin]]></programlisting>
+ <para>Set this variable for the user account doing the installation and also for the user account that will run the server.</para>
+ <itemizedlist>
+ <listitem><para>If you have more than one version of JVM installed in your machine, make sure you are using the JDK1.5 installation as the default java and javac.
+ You can do this using the alternatives system. The alternatives system allows different versions of Java, from different sources to co-exist on your system.</para></listitem>
+ </itemizedlist>
+ <section id="SelectAlternativesforJava">
+ <title>Select alternatives for java, javac and java_sdk_1.5.0</title>
+ <itemizedlist>
+ <listitem><para>As root, type the following command at the shell prompt and you should see something like this:</para></listitem>
+ </itemizedlist>
+ <programlisting><![CDATA[[root@vsr ~]$ /usr/sbin/alternatives --config java
+There are 2 programs which provide 'java'.
+Selection Command
+-----------------------------------------------
+ 1 /usr/lib/jvm/jre-1.4.2-gcj/bin/java
+*+ 2 /usr/lib/jvm/jre-1.5.0-sun/bin/java
+Enter to keep the current selection[+], or type selection number:]]></programlisting>
+ <para>Make sure the Sun version [jre-1.5.0-sun in this case] is selected (marked with a '+' in the output), or select it by entering its number as prompted.</para>
+ <itemizedlist>
+ <listitem><para>Repeat the same for javac and java_sdk_1.5.0.</para></listitem>
+ </itemizedlist>
+ <programlisting><![CDATA[[root@vsr ~]$ /usr/sbin/alternatives --config javac
+There are 1 programs which provide 'javac'.
+ Selection Command
+-----------------------------------------------
+*+ 1 /usr/lib/jvm/java-1.5.0-sun/bin/javac
+Enter to keep the current selection[+], or type selection number:
+
+[root@vsr ~]$ /usr/sbin/alternatives --config java_sdk_1.5.0
+There are 1 programs which provide 'java_sdk_1.5.0'.
+ Selection Command
+-----------------------------------------------
+*+ 1 /usr/lib/jvm/java-1.5.0-sun
+Enter to keep the current selection[+], or type selection number:]]></programlisting>
+ <para>You should verify that java, javac and java_sdk_1.5.0 all point to the same manufacturer and version.</para>
+ <note>
+ <title>Note:</title>
+ <para>You can always override this step by setting the JAVA_HOME environment variable as explained in the previous step.</para>
+ </note>
+ <itemizedlist>
+ <listitem><para>Make sure that the java executable is in your path and that you are using an appropriate version. To verify your Java environment, type java -version
+ at the shell prompt and you should see something like this:</para></listitem>
+ </itemizedlist>
+ <programlisting><![CDATA[[root@vsr ~]$ java -version
+java version "1.5.0_11"
+Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_11-b03)
+Java HotSpot(TM) Client VM (build 1.5.0_11-b03, mixed mode, sharing)]]></programlisting>
+</section>
- <section id="HowToInstallJDKOnLinux">
- <?dbhtml filename="JDKInstalling.html"?>
- <title>How to setup and install JDK on RHEL</title>
- <para>For proper installation the java from Sun there is need to install the java from .rpm file or after installing it from .bin it is necessary to tune the java with command "alternative".</para>
- <para>If your Linux distribution comes with no Java you should install it. The installation Java on Linux is pretty straightforward.</para>
- <orderedlist>
- <listitem>
- <para>Download the JDK from Sun, to start go here: <ulink url="http://developers.sun.com/downloads/">Download JDK</ulink></para></listitem>
- <listitem><para>Choose JDK 1.5 or JDK 1.6.</para></listitem>
- <listitem><para>Click on "Donwload" button right to the appropriate section.</para></listitem>
- <listitem><para>Accept the license and continue.</para></listitem>
- <listitem><para>Under the "Linux Platform", select "RPM in self-extracting file".</para></listitem>
- <listitem><para>Download this .bin file and save it to your Linux machine.</para></listitem>
- <listitem><para>Once it has been downloaded, login as root and switch to the directory where you saved the file.</para></listitem>
- <listitem><para>Execute './filename', where filename is the name of the file that you downloaded. The filename might be very similar to jdk-6-linux-i586-rpm.bin depending on what the latest version is. You may have to make the file executable by executing the 'chmod +x filename.bin' command.</para></listitem>
- <listitem><para>You will get a license, press space bar a bunch of times until you are prompted to enter yes or no. Type in yes and hit enter.</para></listitem>
- <listitem><para>This will place an .rpm file in the same directory as your .bin file with the same name (minus the .bin part).</para></listitem>
- <listitem><para>Install the rpm file by executing 'rpm -i filename.rpm', where filename is the name of your .rpm file. (Such as jdk-6-linux-i586.rpm).</para></listitem>
- <listitem><para>Now, if you want to be able to execute this version of Java interpretor or compiler from any directory on your Linux system you will have to create a few symbolic links:</para></listitem></orderedlist>
-<programlisting role="JAVA"><![CDATA[ln -s /usr/java/jdk1.6.0/bin/java /usr/bin/java]]></programlisting>
-<programlisting role="JAVA"><![CDATA[ln -s /usr/java/jdk1.6.0/bin/javac /usr/bin/javac]]></programlisting>
-
- </section>
- <section id="JDKInstallingOnWindows">
- <?dbhtml filename="JDKInstallingOnWindows.html"?>
- <title>JDK Installation on Windows</title>
- <para>To install JDK on Windows you should download an appropriate JDK package from Sun site. After launching an executable file of this JDK you will see the first window of wizard:</para>
- <figure>
- <title>First JDK Wizard Dialog</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/installjdkwindows1.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- <para>After accepting the license agreement just follow the intuitive installation wizard's steps.</para>
- <para>Finally, you need to make sure that Eclipse is set to the correct Java compliance. On the Eclipse menu bar, go to Window > Preferences > expand Java > Compiler and make sure that the "Compiler
- compliance level" is set to 5.0 (or 6.0 for JDK 1.6.). See image:</para>
- <figure>
- <title>JDK Compliance</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/JDK_compliance.png"/>
- </imageobject>
- </mediaobject>
- </figure>
+
</section>
- </section>
+
+ <section id="InstallJDK50onWindows">
+ <title>Installing and Configuring 32-bit Sun JDK 5.0 on Microsoft Windows</title>
+ <itemizedlist>
+ <listitem><para>Download the <ulink url="http://java.sun.com/javase/downloads/index_jdk5.jsp">Sun JDK 5.0 (Java 2 Development Kit)</ulink> from Sun's website.
+ Choose "JDK 5.0 Update <x>" (where x is the latest update number) for download and then select your Windows Platform options to perform the installation.</para></listitem>
+ <listitem><para>Create an environment variable called JAVA_HOME that points to the JDK installation directory, for example:</para></listitem>
+ </itemizedlist>
+ <programlisting><![CDATA[C:\Program Files\Java\jdk1.5.0_11\]]></programlisting>
+ <para>In order to run java from the command line add the jre\bin directory to your path, for example:</para>
+ <programlisting><![CDATA[C:\Program Files\Java\jdk1.5.0_11\jre\bin]]></programlisting>
+ <para>To do this, open the Control Panel from the Start Menu, switch to Classic View if necessary, open the System Control Panel applet, select the Advanced Tab,
+ and click on the Environment Variables button.</para>
+
+ </section>
+ </section>
<section id="InstallingRHDS">
<?dbhtml filename="InstallingRHDS.html"?>
<title>Red Hat Developer Studio Installation</title>
16 years, 11 months
JBoss Tools SVN: r2675 - trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/ui/veditor/editors/model.
by jbosstools-commits@lists.jboss.org
Author: dazarov
Date: 2007-07-26 08:42:07 -0400 (Thu, 26 Jul 2007)
New Revision: 2675
Modified:
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/ui/veditor/editors/model/OrmDiagram.java
Log:
http://jira.jboss.com/jira/browse/EXIN-365
Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/ui/veditor/editors/model/OrmDiagram.java
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/ui/veditor/editors/model/OrmDiagram.java 2007-07-26 12:28:16 UTC (rev 2674)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/ui/veditor/editors/model/OrmDiagram.java 2007-07-26 12:42:07 UTC (rev 2675)
@@ -56,24 +56,10 @@
ormElement = (RootClass)ioe;
if (ormElement instanceof RootClass) {
String string = "";
-// resource
-// =((RootClass)ormElement).getPersistentClassMapping().getStorage().getResource();
-// try {
-// int i = 0;
-// String tempString;
-// do {
-// tempString = resource.getPersistentProperty(new
-// QualifiedName(VisualEditorPlugin.PLUGIN_ID,qualifiedNameString+i++));
-// string += tempString;
-// } while (tempString != null);
-// } catch (CoreException e) {
-// // ExceptionHandler.logThrowableError(e, e.getMessage());
-// }
childrenLocations = string.split("#");
- } // else
-// throw new IllegalArgumentException();
+ }
getOrCreatePersistentClass(ormElement, null);
-
+ expandModel(this);
}
public HashMap getCloneElements() {
@@ -88,13 +74,20 @@
saveHelper();
getChildren().clear();
elements.clear();
-// if(
-// ((IPersistentClass)ormElement).getProjectMapping().findClass(ormElement.getName())
-// != null)
-// / getOrCreatePersistentClass((IPersistentClass)ormElement, null);
firePropertyChange(REFRESH, null, null);
}
+ private void expandModel(ModelElement element){
+ if(element.getClass().equals(ExpandeableShape.class)){
+ processExpand((ExpandeableShape)element);
+ }else if(element.getClass().equals(ComponentShape.class)){
+ refreshComponentReferences((ComponentShape)element);
+ }
+ for(int i=0; i <element.getChildren().size(); i++){
+ expandModel((ModelElement)element.getChildren().get(i));
+ }
+ }
+
public void save() {
/*String string = "";
saveHelper();
@@ -358,27 +351,6 @@
if (clazz instanceof RootClass) {
RootClass rootClass = (RootClass)clazz;
s = getOrCreatePersistentClass(rootClass, null);
-// HashMap targets = new HashMap();
-// Iterator iterator = shape.getSourceConnections().iterator();
-// while (iterator.hasNext()) {
-// Connection connection = (Connection)iterator.next();
-// connection.setHiden(shape.getHide());
-// Object el = connection.getTarget().getOrmElement();
-// if (el instanceof Column) {
-// targets.put(((Column)el).getName(), connection.getTarget());
-// } else if (el instanceof RootClass) {
-// targets.put(((RootClass)el).getEntityName(), connection.getTarget());
-// }
-// }
-// KeyValue id = rootClass.getIdentifier();
-// iterator = id.getColumnIterator();
-// while (iterator.hasNext()) {
-// Column column = (Column)iterator.next();
-// if (targets.get(column.getName()) != null && !isConnectionExist(s,
-// (Shape)targets.get(column.getName()))) {
-// new Connection(s, (Shape)targets.get(column.getName()));
-// }
-// }
if(!isConnectionExist(shape, s)){
new Connection(shape, s);
shape.firePropertyChange(REFRESH, null, null);
16 years, 11 months
JBoss Tools SVN: r2674 - trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/ui/veditor/editors/model.
by jbosstools-commits@lists.jboss.org
Author: mdryakhlenkov
Date: 2007-07-26 08:28:16 -0400 (Thu, 26 Jul 2007)
New Revision: 2674
Modified:
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/ui/veditor/editors/model/OrmDiagram.java
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/ui/veditor/editors/model/OrmShape.java
Log:
EXIN-366: Adding elements on the diagram by double-click on fields of classes which have additional information in mapping files
Bug fixed: property of component class was added to owner class
Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/ui/veditor/editors/model/OrmDiagram.java
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/ui/veditor/editors/model/OrmDiagram.java 2007-07-26 12:21:03 UTC (rev 2673)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/ui/veditor/editors/model/OrmDiagram.java 2007-07-26 12:28:16 UTC (rev 2674)
@@ -390,6 +390,10 @@
}
} else {
s = getOrCreatePersistentClass(new SpecialRootClass(property), null);
+ new Connection(shape, s);
+ createConnections(s, getOrCreateDatabaseTable(property.getValue().getTable()));
+ shape.firePropertyChange(REFRESH, null, null);
+ s.firePropertyChange(REFRESH, null, null);
}
if(!shape.getParent().equals(s))
shape.setReference(s);
@@ -416,6 +420,21 @@
if (component instanceof Component) {// valueType.isComponentType()
childShape = (OrmShape)elements.get(((Component)component).getComponentClassName());
if(childShape == null) childShape = getOrCreateComponentClass(property);
+
+
+ SimpleValue value = (SimpleValue)((Shape)componentShape.getChildren().get(0)).getOrmElement();
+ OrmShape tableShape = getOrCreateDatabaseTable(value.getTable());
+ Iterator iterator = value.getColumnIterator();
+ while (iterator.hasNext()) {
+ Column column = (Column)iterator.next();
+ Shape colShape = tableShape.getChild(column);
+ if(!isConnectionExist((Shape)(componentShape.getChildren().get(0)), colShape)){
+ new Connection((Shape)(componentShape.getChildren().get(0)), colShape);
+ ((Shape)(componentShape.getChildren().get(0))).firePropertyChange(REFRESH, null, null);
+ childShape.firePropertyChange(REFRESH, null, null);
+ }
+ }
+
if(!isConnectionExist((Shape)(componentShape.getChildren().get(1)), childShape)){
new Connection((Shape)(componentShape.getChildren().get(1)), childShape);
((Shape)(componentShape.getChildren().get(1))).firePropertyChange(REFRESH, null, null);
Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/ui/veditor/editors/model/OrmShape.java
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/ui/veditor/editors/model/OrmShape.java 2007-07-26 12:21:03 UTC (rev 2673)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/ui/veditor/editors/model/OrmShape.java 2007-07-26 12:28:16 UTC (rev 2674)
@@ -83,23 +83,24 @@
}
getChildren().add(bodyOrmShape);
} else {
- Component component = (Component)field.getValue();
- Iterator iter = component.getPropertyIterator();
- while (iter.hasNext()) {
- Property property = (Property)iter.next();
- boolean typeIsAccesible = true;
- try {property.getValue().getType();} catch (Exception e) {typeIsAccesible = false;}
-/* if (property.isComposite()) {
- bodyOrmShape = new ExpandeableShape(property);
- } else */if (typeIsAccesible && property.getValue().getType().isEntityType()) {
- bodyOrmShape = new ExpandeableShape(property);
- } else if (typeIsAccesible && property.getValue().getType().isCollectionType()) {
- bodyOrmShape = new ComponentShape(property);
- } else {
- bodyOrmShape = new Shape(property);
- }
+// Component component = (Component)field.getValue();
+// Iterator iter = component.getPropertyIterator();
+// while (iter.hasNext()) {
+// Property property = (Property)iter.next();
+// boolean typeIsAccesible = true;
+// try {property.getValue().getType();} catch (Exception e) {typeIsAccesible = false;}
+///* if (property.isComposite()) {
+// bodyOrmShape = new ExpandeableShape(property);
+// } else */if (typeIsAccesible && property.getValue().getType().isEntityType()) {
+// bodyOrmShape = new ExpandeableShape(property);
+// } else if (typeIsAccesible && property.getValue().getType().isCollectionType()) {
+// bodyOrmShape = new ComponentShape(property);
+// } else {
+// bodyOrmShape = new Shape(property);
+// }
+ bodyOrmShape = new ExpandeableShape(field);
getChildren().add(bodyOrmShape);
- }
+// }
}
}
} else if (ormElement instanceof Subclass) {
@@ -134,19 +135,20 @@
}
getChildren().add(bodyOrmShape);
} else {
- Component component = (Component)field.getValue();
- Iterator iter = component.getPropertyIterator();
- while (iter.hasNext()) {
- Property property = (Property)iter.next();
- if (property.getValue().getType().isEntityType()) {
- bodyOrmShape = new ExpandeableShape(property);
- } else if (property.getValue().getType().isCollectionType()) {
- bodyOrmShape = new ComponentShape(property);
- } else {
- bodyOrmShape = new Shape(property);
- }
+// Component component = (Component)field.getValue();
+// Iterator iter = component.getPropertyIterator();
+// while (iter.hasNext()) {
+// Property property = (Property)iter.next();
+// if (property.getValue().getType().isEntityType()) {
+// bodyOrmShape = new ExpandeableShape(property);
+// } else if (property.getValue().getType().isCollectionType()) {
+// bodyOrmShape = new ComponentShape(property);
+// } else {
+// bodyOrmShape = new Shape(property);
+// }
+ bodyOrmShape = new ExpandeableShape(field);
getChildren().add(bodyOrmShape);
- }
+// }
}
}
Iterator iter = ((Subclass)ormElement).getPropertyIterator();
16 years, 11 months
JBoss Tools SVN: r2673 - trunk/jst/plugins/org.jboss.tools.jst.web/resources/meta.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2007-07-26 08:21:03 -0400 (Thu, 26 Jul 2007)
New Revision: 2673
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web/resources/meta/strutswebapp.meta
trunk/jst/plugins/org.jboss.tools.jst.web/resources/meta/webapp24.meta
Log:
Attributes "id" and "comment" added to entities for web.xml where they were missing.
Modified: trunk/jst/plugins/org.jboss.tools.jst.web/resources/meta/strutswebapp.meta
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.web/resources/meta/strutswebapp.meta 2007-07-26 11:15:48 UTC (rev 2672)
+++ trunk/jst/plugins/org.jboss.tools.jst.web/resources/meta/strutswebapp.meta 2007-07-26 12:21:03 UTC (rev 2673)
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE XModelEntityGroup PUBLIC "-//Red Hat, Inc.//DTD Meta 1.0//EN" "meta.dtd">
+<!DOCTYPE XModelEntityGroup PUBLIC "-//Red Hat, Inc.//DTD Meta 1.0//EN"
+ "meta.dtd">
<XModelEntityGroup>
<VERSION DEPENDS="Model:1.0" MODULE="Struts Editor" VERSION="1.0"/>
<MAPPINGS>
@@ -201,6 +202,10 @@
<Constraint/>
<Editor name="Note"/>
</XModelAttribute>
+ <XModelAttribute name="id" visibility="false" xmlname="id">
+ <Constraint/>
+ <Editor/>
+ </XModelAttribute>
<XModelAttribute PROPERTIES="category=advanced" default="UTF-8" name="encoding">
<Constraint loader="ListString">
<value name="ISO-8859-1"/>
@@ -550,6 +555,10 @@
<Constraint/>
<Editor name="Note"/>
</XModelAttribute>
+ <XModelAttribute name="id" visibility="false" xmlname="id">
+ <Constraint/>
+ <Editor/>
+ </XModelAttribute>
<XModelAttribute TRIM="no" name="comment" visibility="false" xmlname="#comment">
<Constraint/>
<Editor name="Note"/>
@@ -611,6 +620,10 @@
<Constraint/>
<Editor name="Note"/>
</XModelAttribute>
+ <XModelAttribute name="id" visibility="false" xmlname="id">
+ <Constraint/>
+ <Editor/>
+ </XModelAttribute>
<XModelAttribute TRIM="no" name="comment" visibility="false" xmlname="#comment">
<Constraint/>
<Editor name="Note"/>
@@ -677,6 +690,14 @@
<Constraint/>
<Editor/>
</XModelAttribute>
+ <XModelAttribute name="id" visibility="false" xmlname="id">
+ <Constraint/>
+ <Editor/>
+ </XModelAttribute>
+ <XModelAttribute TRIM="no" name="comment" visibility="false" xmlname="#comment">
+ <Constraint/>
+ <Editor name="Note"/>
+ </XModelAttribute>
</XModelAttributes>
<XActionItem kind="list">
<XActionItem ICON="action.copy" displayName="Copy" kind="list" name="CopyActions">
@@ -739,6 +760,14 @@
<Constraint/>
<Editor/>
</XModelAttribute>
+ <XModelAttribute name="id" visibility="false" xmlname="id">
+ <Constraint/>
+ <Editor/>
+ </XModelAttribute>
+ <XModelAttribute TRIM="no" name="comment" visibility="false" xmlname="#comment">
+ <Constraint/>
+ <Editor name="Note"/>
+ </XModelAttribute>
</XModelAttributes>
<XActionItem kind="list">
<XActionItem ICON="action.copy" displayName="Copy" kind="list" name="CopyActions">
@@ -798,6 +827,14 @@
</Constraint>
<Editor name="ListString"/>
</XModelAttribute>
+ <XModelAttribute name="id" visibility="false" xmlname="id">
+ <Constraint/>
+ <Editor/>
+ </XModelAttribute>
+ <XModelAttribute TRIM="no" name="comment" visibility="false" xmlname="#comment">
+ <Constraint/>
+ <Editor name="Note"/>
+ </XModelAttribute>
</XModelAttributes>
<XActionItem kind="list">
<XActionItem ICON="action.copy" displayName="Copy" kind="list" name="CopyActions">
@@ -853,6 +890,14 @@
</Constraint>
<Editor name="TreeChooser"/>
</XModelAttribute>
+ <XModelAttribute name="id" visibility="false" xmlname="id">
+ <Constraint/>
+ <Editor/>
+ </XModelAttribute>
+ <XModelAttribute TRIM="no" name="comment" visibility="false" xmlname="#comment">
+ <Constraint/>
+ <Editor name="Note"/>
+ </XModelAttribute>
</XModelAttributes>
<XActionItem kind="list">
<XActionItem ICON="action.copy" displayName="Copy" kind="list" name="CopyActions">
@@ -937,6 +982,10 @@
<Constraint/>
<Editor name="AccessibleJava"/>
</XModelAttribute>
+ <XModelAttribute name="id" visibility="false" xmlname="id">
+ <Constraint/>
+ <Editor/>
+ </XModelAttribute>
<XModelAttribute TRIM="no" name="comment" visibility="false" xmlname="#comment">
<Constraint/>
<Editor name="Note"/>
@@ -1001,6 +1050,10 @@
<Constraint/>
<Editor/>
</XModelAttribute>
+ <XModelAttribute name="id" visibility="false" xmlname="id">
+ <Constraint/>
+ <Editor/>
+ </XModelAttribute>
<XModelAttribute TRIM="no" name="comment" visibility="false" xmlname="#comment">
<Constraint/>
<Editor name="Note"/>
@@ -1865,6 +1918,10 @@
<Constraint/>
<Editor name="Note"/>
</XModelAttribute>
+ <XModelAttribute name="id" visibility="false" xmlname="id">
+ <Constraint/>
+ <Editor/>
+ </XModelAttribute>
<XModelAttribute TRIM="no" name="comment" visibility="false" xmlname="#comment">
<Constraint/>
<Editor name="Note"/>
@@ -1908,6 +1965,10 @@
<Constraint/>
<Editor name="AccessibleJava"/>
</XModelAttribute>
+ <XModelAttribute name="id" visibility="false" xmlname="id">
+ <Constraint/>
+ <Editor/>
+ </XModelAttribute>
<XModelAttribute TRIM="no" name="comment" visibility="false" xmlname="#comment">
<Constraint/>
<Editor name="Note"/>
@@ -1978,6 +2039,10 @@
</Constraint>
<Editor name="TreeChooser"/>
</XModelAttribute>
+ <XModelAttribute name="id" visibility="false" xmlname="id">
+ <Constraint/>
+ <Editor/>
+ </XModelAttribute>
<XModelAttribute TRIM="no" name="comment" visibility="false" xmlname="#comment">
<Constraint/>
<Editor name="Note"/>
@@ -2051,6 +2116,10 @@
</Constraint>
<Editor name="ListString"/>
</XModelAttribute>
+ <XModelAttribute name="id" visibility="false" xmlname="id">
+ <Constraint/>
+ <Editor/>
+ </XModelAttribute>
<XModelAttribute TRIM="no" name="comment" visibility="false" xmlname="#comment">
<Constraint/>
<Editor name="Note"/>
@@ -2116,6 +2185,10 @@
</Constraint>
<Editor name="ListAdd"/>
</XModelAttribute>
+ <XModelAttribute name="id" visibility="false" xmlname="id">
+ <Constraint/>
+ <Editor/>
+ </XModelAttribute>
<XModelAttribute TRIM="no" name="comment" visibility="false" xmlname="#comment">
<Constraint/>
<Editor name="Note"/>
@@ -2171,6 +2244,10 @@
<Constraint/>
<Editor name="AccessibleJava"/>
</XModelAttribute>
+ <XModelAttribute name="id" visibility="false" xmlname="id">
+ <Constraint/>
+ <Editor/>
+ </XModelAttribute>
<XModelAttribute TRIM="no" name="comment" visibility="false" xmlname="#comment">
<Constraint/>
<Editor name="Note"/>
@@ -2238,6 +2315,10 @@
</Constraint>
<Editor name="List"/>
</XModelAttribute>
+ <XModelAttribute name="id" visibility="false" xmlname="id">
+ <Constraint/>
+ <Editor/>
+ </XModelAttribute>
<XModelAttribute TRIM="no" name="comment" visibility="false" xmlname="#comment">
<Constraint/>
<Editor name="Note"/>
@@ -2281,6 +2362,10 @@
<Constraint loader="ListString"/>
<Editor name="WebRoleList"/>
</XModelAttribute>
+ <XModelAttribute name="id" visibility="false" xmlname="id">
+ <Constraint/>
+ <Editor/>
+ </XModelAttribute>
<XModelAttribute TRIM="no" name="comment" visibility="false" xmlname="#comment">
<Constraint/>
<Editor name="Note"/>
@@ -2328,6 +2413,10 @@
<Constraint loader="ListString"/>
<Editor name="WebRoleList"/>
</XModelAttribute>
+ <XModelAttribute name="id" visibility="false" xmlname="id">
+ <Constraint/>
+ <Editor/>
+ </XModelAttribute>
<XModelAttribute TRIM="no" name="comment" visibility="false" xmlname="#comment">
<Constraint/>
<Editor name="Note"/>
@@ -2374,6 +2463,10 @@
<Constraint/>
<Editor/>
</XModelAttribute>
+ <XModelAttribute name="id" visibility="false" xmlname="id">
+ <Constraint/>
+ <Editor/>
+ </XModelAttribute>
<XModelAttribute TRIM="no" name="comment" visibility="false" xmlname="#comment">
<Constraint/>
<Editor name="Note"/>
@@ -2455,6 +2548,10 @@
</Constraint>
<Editor name="Name"/>
</XModelAttribute>
+ <XModelAttribute name="id" visibility="false" xmlname="id">
+ <Constraint/>
+ <Editor/>
+ </XModelAttribute>
<XModelAttribute TRIM="no" name="comment" visibility="false" xmlname="#comment">
<Constraint/>
<Editor name="Note"/>
@@ -2508,6 +2605,10 @@
<Constraint loader="ListString"/>
<Editor name="WebRoleList"/>
</XModelAttribute>
+ <XModelAttribute name="id" visibility="false" xmlname="id">
+ <Constraint/>
+ <Editor/>
+ </XModelAttribute>
<XModelAttribute TRIM="no" name="comment" visibility="false" xmlname="#comment">
<Constraint/>
<Editor name="Note"/>
@@ -2598,6 +2699,10 @@
</Constraint>
<Editor name="Int"/>
</XModelAttribute>
+ <XModelAttribute name="id" visibility="false" xmlname="id">
+ <Constraint/>
+ <Editor/>
+ </XModelAttribute>
<XModelAttribute TRIM="no" name="comment" visibility="false" xmlname="#comment">
<Constraint/>
<Editor name="Note"/>
@@ -2677,6 +2782,10 @@
<Constraint/>
<Editor/>
</XModelAttribute>
+ <XModelAttribute name="id" visibility="false" xmlname="id">
+ <Constraint/>
+ <Editor/>
+ </XModelAttribute>
<XModelAttribute TRIM="no" name="comment" visibility="false" xmlname="#comment">
<Constraint/>
<Editor name="Note"/>
@@ -2720,6 +2829,10 @@
</Constraint>
<Editor name="Int"/>
</XModelAttribute>
+ <XModelAttribute name="id" visibility="false" xmlname="id">
+ <Constraint/>
+ <Editor/>
+ </XModelAttribute>
<XModelAttribute TRIM="no" name="comment" visibility="false" xmlname="#comment">
<Constraint/>
<Editor name="Note"/>
@@ -2767,6 +2880,10 @@
</Constraint>
<Editor name="TreeChooser"/>
</XModelAttribute>
+ <XModelAttribute name="id" visibility="false" xmlname="id">
+ <Constraint/>
+ <Editor/>
+ </XModelAttribute>
<XModelAttribute TRIM="no" name="comment" visibility="false" xmlname="#comment">
<Constraint/>
<Editor name="Note"/>
@@ -2820,6 +2937,10 @@
</Constraint>
<Editor name="ListString"/>
</XModelAttribute>
+ <XModelAttribute name="id" visibility="false" xmlname="id">
+ <Constraint/>
+ <Editor/>
+ </XModelAttribute>
<XModelAttribute TRIM="no" name="comment" visibility="false" xmlname="#comment">
<Constraint/>
<Editor name="Note"/>
@@ -2866,6 +2987,10 @@
</Constraint>
<Editor name="TreeChooser"/>
</XModelAttribute>
+ <XModelAttribute name="id" visibility="false" xmlname="id">
+ <Constraint/>
+ <Editor/>
+ </XModelAttribute>
<XModelAttribute TRIM="no" name="comment" visibility="false" xmlname="#comment">
<Constraint/>
<Editor name="Note"/>
@@ -2914,6 +3039,10 @@
<Constraint/>
<Editor name="Uneditable"/>
</XModelAttribute>
+ <XModelAttribute name="id" visibility="false" xmlname="id">
+ <Constraint/>
+ <Editor/>
+ </XModelAttribute>
<XModelAttribute TRIM="no" name="comment" visibility="false" xmlname="#comment">
<Constraint/>
<Editor name="Note"/>
Modified: trunk/jst/plugins/org.jboss.tools.jst.web/resources/meta/webapp24.meta
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.web/resources/meta/webapp24.meta 2007-07-26 11:15:48 UTC (rev 2672)
+++ trunk/jst/plugins/org.jboss.tools.jst.web/resources/meta/webapp24.meta 2007-07-26 12:21:03 UTC (rev 2673)
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE XModelEntityGroup PUBLIC "-//Red Hat, Inc.//DTD Meta 1.0//EN" "meta.dtd">
+<!DOCTYPE XModelEntityGroup PUBLIC "-//Red Hat, Inc.//DTD Meta 1.0//EN"
+ "meta.dtd">
<XModelEntityGroup>
<VERSION DEPENDS="Model:1.0" MODULE="Struts Editor" VERSION="1.0"/>
<MAPPINGS>
@@ -200,6 +201,10 @@
</Constraint>
<Editor name="List"/>
</XModelAttribute>
+ <XModelAttribute name="id" visibility="false" xmlname="id">
+ <Constraint/>
+ <Editor/>
+ </XModelAttribute>
<XModelAttribute TRIM="no" name="comment" visibility="false" xmlname="#comment">
<Constraint/>
<Editor name="Note"/>
@@ -698,6 +703,10 @@
</Constraint>
<Editor name="List"/>
</XModelAttribute>
+ <XModelAttribute name="id" visibility="false" xmlname="id">
+ <Constraint/>
+ <Editor/>
+ </XModelAttribute>
<XModelAttribute TRIM="no" name="comment" visibility="false" xmlname="#comment">
<Constraint/>
<Editor name="Note"/>
@@ -1105,6 +1114,10 @@
</Constraint>
<Editor name="ListAdd"/>
</XModelAttribute>
+ <XModelAttribute name="id" visibility="false" xmlname="id">
+ <Constraint/>
+ <Editor/>
+ </XModelAttribute>
<XModelAttribute TRIM="no" name="comment" visibility="false" xmlname="#comment">
<Constraint/>
<Editor name="Note"/>
@@ -1281,6 +1294,14 @@
<Constraint/>
<Editor/>
</XModelAttribute>
+ <XModelAttribute name="id" visibility="false" xmlname="id">
+ <Constraint/>
+ <Editor/>
+ </XModelAttribute>
+ <XModelAttribute TRIM="no" name="comment" visibility="false" xmlname="#comment">
+ <Constraint/>
+ <Editor name="Note"/>
+ </XModelAttribute>
</XModelAttributes>
<XActionItem kind="list">
<XActionItem ICON="action.copy" displayName="Copy" kind="list" name="CopyActions">
@@ -1325,6 +1346,14 @@
<Constraint/>
<Editor name="Uneditable"/>
</XModelAttribute>
+ <XModelAttribute name="id" visibility="false" xmlname="id">
+ <Constraint/>
+ <Editor/>
+ </XModelAttribute>
+ <XModelAttribute TRIM="no" name="comment" visibility="false" xmlname="#comment">
+ <Constraint/>
+ <Editor name="Note"/>
+ </XModelAttribute>
</XModelAttributes>
<XActionItem kind="list">
<XActionItem kind="list" name="CreateActions">
@@ -1390,6 +1419,14 @@
<Constraint/>
<Editor/>
</XModelAttribute>
+ <XModelAttribute name="id" visibility="false" xmlname="id">
+ <Constraint/>
+ <Editor/>
+ </XModelAttribute>
+ <XModelAttribute TRIM="no" name="comment" visibility="false" xmlname="#comment">
+ <Constraint/>
+ <Editor name="Note"/>
+ </XModelAttribute>
</XModelAttributes>
<XActionItem kind="list">
<XActionItem ICON="action.copy" displayName="Copy" kind="list" name="CopyActions">
@@ -1435,6 +1472,14 @@
<Constraint/>
<Editor name="Uneditable"/>
</XModelAttribute>
+ <XModelAttribute name="id" visibility="false" xmlname="id">
+ <Constraint/>
+ <Editor/>
+ </XModelAttribute>
+ <XModelAttribute TRIM="no" name="comment" visibility="false" xmlname="#comment">
+ <Constraint/>
+ <Editor name="Note"/>
+ </XModelAttribute>
</XModelAttributes>
<XActionItem kind="list">
<XActionItem kind="list" name="CreateActions">
@@ -1511,6 +1556,14 @@
<Constraint/>
<Editor/>
</XModelAttribute>
+ <XModelAttribute name="id" visibility="false" xmlname="id">
+ <Constraint/>
+ <Editor/>
+ </XModelAttribute>
+ <XModelAttribute TRIM="no" name="comment" visibility="false" xmlname="#comment">
+ <Constraint/>
+ <Editor name="Note"/>
+ </XModelAttribute>
</XModelAttributes>
<XActionItem kind="list">
<XActionItem ICON="action.copy" displayName="Copy" kind="list" name="CopyActions">
@@ -1577,6 +1630,14 @@
<Constraint/>
<Editor/>
</XModelAttribute>
+ <XModelAttribute name="id" visibility="false" xmlname="id">
+ <Constraint/>
+ <Editor/>
+ </XModelAttribute>
+ <XModelAttribute TRIM="no" name="comment" visibility="false" xmlname="#comment">
+ <Constraint/>
+ <Editor name="Note"/>
+ </XModelAttribute>
</XModelAttributes>
<XActionItem kind="list">
<XActionItem ICON="action.copy" displayName="Copy" kind="list" name="CopyActions">
@@ -1664,6 +1725,14 @@
<Constraint/>
<Editor/>
</XModelAttribute>
+ <XModelAttribute name="id" visibility="false" xmlname="id">
+ <Constraint/>
+ <Editor/>
+ </XModelAttribute>
+ <XModelAttribute TRIM="no" name="comment" visibility="false" xmlname="#comment">
+ <Constraint/>
+ <Editor name="Note"/>
+ </XModelAttribute>
</XModelAttributes>
<XActionItem kind="list">
<XActionItem ICON="action.copy" displayName="Copy" kind="list" name="CopyActions">
16 years, 11 months
JBoss Tools SVN: r2672 - in trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/ui/veditor/editors: parts and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: dazarov
Date: 2007-07-26 07:15:48 -0400 (Thu, 26 Jul 2007)
New Revision: 2672
Modified:
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/ui/veditor/editors/model/ModelElement.java
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/ui/veditor/editors/parts/ExpandeableShapeEditPart.java
Log:
http://jira.jboss.com/jira/browse/EXIN-365
Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/ui/veditor/editors/model/ModelElement.java
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/ui/veditor/editors/model/ModelElement.java 2007-07-26 10:55:00 UTC (rev 2671)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/ui/veditor/editors/model/ModelElement.java 2007-07-26 11:15:48 UTC (rev 2672)
@@ -63,6 +63,26 @@
return null;
}
+ public ExpandeableShape getExtendeableShape(){
+ ModelElement element = this;
+ while(true){
+ if(element.getParent() == null)break;
+ if(element.getParent() instanceof ExpandeableShape) return (ExpandeableShape)element.getParent();
+ element = element.getParent();
+ }
+ return null;
+ }
+
+ public OrmShape getOrmShape(){
+ ModelElement element = this;
+ while(true){
+ if(element.getParent() == null)break;
+ if(element.getParent() instanceof OrmShape) return (OrmShape)element.getParent();
+ element = element.getParent();
+ }
+ return null;
+ }
+
class OList extends ArrayList{
public OList(){
Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/ui/veditor/editors/parts/ExpandeableShapeEditPart.java
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/ui/veditor/editors/parts/ExpandeableShapeEditPart.java 2007-07-26 10:55:00 UTC (rev 2671)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/ui/veditor/editors/parts/ExpandeableShapeEditPart.java 2007-07-26 11:15:48 UTC (rev 2672)
@@ -14,6 +14,7 @@
import java.util.ArrayList;
import java.util.List;
+import org.eclipse.draw2d.Figure;
import org.eclipse.draw2d.IFigure;
import org.eclipse.draw2d.Label;
import org.eclipse.draw2d.PositionConstants;
@@ -69,7 +70,6 @@
((IFigure)getFigure().getChildren().get(0)).setForegroundColor(ResourceManager.getInstance().getColor(new RGB(0,0,0)));
}
}else if (ExpandeableShape.SHOW_REFERENCES.equals(prop)) {
-
referenceList.add((OrmShape)getCastedModel().getParent());
refreshReference((ExpandeableShape)getCastedModel(), ((ExpandeableShape)getCastedModel()).isReferenceVisible());
((TitleLabel)getFigure()).setHidden(!((ExpandeableShape)getCastedModel()).isReferenceVisible());
@@ -137,13 +137,16 @@
private void setLinksVisible(OrmEditPart editPart, boolean flag){
ConnectionEditPart link;
OrmEditPart child;
+
for(int i=0;i<editPart.getSourceConnections().size();i++){
link = (ConnectionEditPart)editPart.getSourceConnections().get(i);
- link.getFigure().setVisible(flag);
+ if(isLinkCanBeVisible(link, flag))
+ link.getFigure().setVisible(flag);
}
for(int i=0;i<editPart.getTargetConnections().size();i++){
link = (ConnectionEditPart)editPart.getTargetConnections().get(i);
- link.getFigure().setVisible(flag);
+ if(isLinkCanBeVisible(link, flag))
+ link.getFigure().setVisible(flag);
}
for(int i=0;i<editPart.getChildren().size();i++){
child = (OrmEditPart)editPart.getChildren().get(i);
@@ -151,6 +154,32 @@
}
}
+ private boolean isLinkCanBeVisible(ConnectionEditPart link, boolean visible){
+ if(!visible) return true;
+ if(!((OrmEditPart)link.getSource()).getFigure().isVisible()) return false;
+ if(!((OrmEditPart)link.getTarget()).getFigure().isVisible()) return false;
+ if(!validateShape((Shape)((OrmEditPart)link.getSource()).getModel())) return false;
+ if(!validateShape((Shape)((OrmEditPart)link.getTarget()).getModel())) return false;
+ return true;
+ }
+
+ private boolean validateShape(Shape shape){
+ if(!shape.getClass().equals(OrmShape.class)){
+ OrmShape ormShape = shape.getOrmShape();
+ if(ormShape != null){
+ if(ormShape.isHiden()) return false;
+ }
+ }
+ ExpandeableShape expanableShape = shape.getExtendeableShape();
+ if(expanableShape != null && !shape.equals(expanableShape) && !expanableShape.getClass().equals(OrmShape.class)){
+ if(!expanableShape.isReferenceVisible()) return false;
+ }
+
+
+ return true;
+ }
+
+
protected List getModelChildren() {
return ((ExpandeableShape)getModel()).getChildren();
}
16 years, 11 months
JBoss Tools SVN: r2671 - trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2007-07-26 06:55:00 -0400 (Thu, 26 Jul 2007)
New Revision: 2671
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/SeamComponentDeclaration.java
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/SeamObject.java
Log:
EXIN-217 merge() in SeamObject is better to return null if no changes detected.
It cannot be a problem to process null value in sub-classes and clients.
Modified: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/SeamComponentDeclaration.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/SeamComponentDeclaration.java 2007-07-26 09:24:41 UTC (rev 2670)
+++ trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/SeamComponentDeclaration.java 2007-07-26 10:55:00 UTC (rev 2671)
@@ -44,9 +44,7 @@
List<Change> changes = super.merge(s);
SeamComponentDeclaration d = (SeamComponentDeclaration)s;
- if(!source.equals(d.source)) {
- source = d.source;
- }
+ source = d.source;
if(!stringsEqual(name, d.name)) {
changes = Change.addChange(changes, new Change(this, "name", name, d.name));
name = d.name;
Modified: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/SeamObject.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/SeamObject.java 2007-07-26 09:24:41 UTC (rev 2670)
+++ trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/SeamObject.java 2007-07-26 10:55:00 UTC (rev 2671)
@@ -109,7 +109,9 @@
/**
* Merges loaded object into current object.
- * If changes were done returns a list of changes.
+ * If changes were done returns a list of changes.
+ * If there are no changes, null is returned,
+ * which prevents creating a lot of unnecessary objects.
* @param f
* @return list of changes
*/
@@ -117,8 +119,11 @@
source = s.source;
id = s.id;
resource = s.resource;
-
- return new ArrayList<Change>();
+ //If there are no changes, null is returned,
+ //which prevents creating a lot of unnecessary objects.
+ //Subclasses and clients must check returned
+ //value for null, before using it.
+ return null;
}
}
16 years, 11 months
JBoss Tools SVN: r2670 - trunk/struts/plugins/org.jboss.tools.struts/META-INF.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2007-07-26 05:24:41 -0400 (Thu, 26 Jul 2007)
New Revision: 2670
Modified:
trunk/struts/plugins/org.jboss.tools.struts/META-INF/MANIFEST.MF
Log:
EXIN-86 dependency on wts's xml core provided
Modified: trunk/struts/plugins/org.jboss.tools.struts/META-INF/MANIFEST.MF
===================================================================
--- trunk/struts/plugins/org.jboss.tools.struts/META-INF/MANIFEST.MF 2007-07-26 09:23:21 UTC (rev 2669)
+++ trunk/struts/plugins/org.jboss.tools.struts/META-INF/MANIFEST.MF 2007-07-26 09:24:41 UTC (rev 2670)
@@ -46,6 +46,7 @@
org.eclipse.ui,
org.eclipse.debug.core,
org.eclipse.wst.sse.core,
+ org.eclipse.wst.xml.core,
org.jboss.tools.common.projecttemplates,
org.eclipse.ltk.core.refactoring,
org.eclipse.ltk.ui.refactoring,
16 years, 11 months
JBoss Tools SVN: r2669 - trunk/hibernatetools/plugins/org.jboss.tools.hibernate.core.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2007-07-26 05:23:21 -0400 (Thu, 26 Jul 2007)
New Revision: 2669
Modified:
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.core/plugin.xml
Log:
EXIN-86 hibernate dtd's registered in wst's catalog
Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.core/plugin.xml
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.core/plugin.xml 2007-07-26 09:13:10 UTC (rev 2668)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.core/plugin.xml 2007-07-26 09:23:21 UTC (rev 2669)
@@ -227,4 +227,15 @@
<location path="extsrc"/>
</extension>
+ <extension point="org.eclipse.wst.xml.core.catalogContributions">
+ <catalogContribution id="default">
+ <public
+ publicId="-//Hibernate/Hibernate Configuration DTD 3.0//EN"
+ uri="dtd/hibernate-configuration-3.0.dtd"/>
+ <public
+ publicId="-//Hibernate/Hibernate Mapping DTD 3.0//EN"
+ uri="dtd/hibernate-mapping-3.0.dtd"/>
+ </catalogContribution>
+ </extension>
+
</plugin>
16 years, 11 months
JBoss Tools SVN: r2668 - trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml/resources/meta.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2007-07-26 05:13:10 -0400 (Thu, 26 Jul 2007)
New Revision: 2668
Modified:
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml/resources/meta/hibernate3.meta
Log:
Wrong xml name reference fixed
Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml/resources/meta/hibernate3.meta
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml/resources/meta/hibernate3.meta 2007-07-26 09:10:34 UTC (rev 2667)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml/resources/meta/hibernate3.meta 2007-07-26 09:13:10 UTC (rev 2668)
@@ -561,7 +561,7 @@
<Editor name="List"/>
</XModelAttribute>
<XModelAttribute PROPERTIES="category=advanced" default="true"
- name="update" xmlname="insert">
+ name="update" xmlname="update">
<Constraint loader="List">
<value name="true"/>
<value name="false"/>
16 years, 11 months
JBoss Tools SVN: r2667 - in trunk/struts/plugins/org.jboss.tools.struts: dtds and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2007-07-26 05:10:34 -0400 (Thu, 26 Jul 2007)
New Revision: 2667
Added:
trunk/struts/plugins/org.jboss.tools.struts/dtds/struts-config_1_0.dtd
trunk/struts/plugins/org.jboss.tools.struts/dtds/struts-config_1_1.dtd
trunk/struts/plugins/org.jboss.tools.struts/dtds/struts-config_1_2.dtd
trunk/struts/plugins/org.jboss.tools.struts/dtds/tiles_config_1_1.dtd
trunk/struts/plugins/org.jboss.tools.struts/dtds/validator_1_0.dtd
Modified:
trunk/struts/plugins/org.jboss.tools.struts/plugin.xml
Log:
EXIN-86 struts dtd's restored
Added: trunk/struts/plugins/org.jboss.tools.struts/dtds/struts-config_1_0.dtd
===================================================================
--- trunk/struts/plugins/org.jboss.tools.struts/dtds/struts-config_1_0.dtd (rev 0)
+++ trunk/struts/plugins/org.jboss.tools.struts/dtds/struts-config_1_0.dtd 2007-07-26 09:10:34 UTC (rev 2667)
@@ -0,0 +1,408 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+
+
+<!--
+ DTD for the Struts Application Configuration File, Version 1.0
+
+ To support validation of your configuration file, include the following
+ DOCTYPE element at the beginning (after the "xml" declaration):
+
+ <!DOCTYPE struts-config PUBLIC
+ "-//Apache Software Foundation//DTD Struts Configuration 1.0//EN"
+ "http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd">
+
+ $Id: struts-config_1_0.dtd,v 1.1.1.1 2004/10/06 17:32:27 sim Exp $
+-->
+
+
+<!-- ========== Defined Types ============================================= -->
+
+
+<!-- A "BeanName" is the identifier of a JavaBean, such as a form bean,
+ and also serves as the name of the corresponding scripting variable
+ and the name of the JSP attribute under which the bean is accessed.
+ Therefore, it must conform to the rules for a Java identifier.
+-->
+<!ENTITY % BeanName "CDATA">
+
+
+<!-- A "Boolean" is the string representation of a boolean (true or false)
+ variable.
+-->
+<!ENTITY % Boolean "(true|false|yes|no)">
+
+
+<!-- A "ClassName" is the fully qualified name of a Java class that is
+ instantiated to provide the functionality of the enclosing element.
+-->
+<!ENTITY % ClassName "CDATA">
+
+
+<!-- An "Integer" is a character string consisting solely of numeric digits,
+ optionally preceeded by a minus sign, that can be converted to a
+ 32-bit integer.
+-->
+<!ENTITY % Integer "CDATA">
+
+
+<!-- A "Location" is a relative path, delimited by "/" characters, that
+ defines the location of a resource relative to the location of the
+ Struts configuration file itself.
+-->
+<!ENTITY % Location "#PCDATA">
+
+
+<!-- A "PropName" is the name of a JavaBeans property, and must begin with
+ a lower case letter and contain only characters that are legal in a
+ Java identifier.
+-->
+<!ENTITY % PropName "CDATA">
+
+
+<!-- A "RequestPath" is a context-relative URI path, beginning with a slash,
+ that identifies a mapped resource (such as a JSP page or a servlet)
+ within this web application.
+-->
+<!ENTITY % RequestPath "CDATA">
+
+
+<!-- The name of a JSP bean scope within which such a form bean may be
+ accessed.
+-->
+<!ENTITY % RequestScope "(request|session)">
+
+
+<!-- ========== Top Level Elements ======================================== -->
+
+
+<!-- The "struts-config" element is the root of the configuration file
+ hierarchy, and contains nested elements for all of the other
+ configuration settings.
+-->
+<!ELEMENT struts-config (data-sources?, form-beans?, global-forwards?, action-mappings?)>
+<!ATTLIST struts-config id ID #IMPLIED>
+
+
+<!-- The "data-sources" element describes a set of JDBC 2.0 Standard Extension
+ data source objects which will be configured according to the nested
+ "data-source" elements found inside.
+-->
+
+<!ELEMENT data-sources (data-source*)>
+<!ATTLIST data-sources id ID #IMPLIED>
+
+
+<!-- The "data-source" element describes a JDBC 2.0 Standard Extension data
+ source object (that implements javax.sql.DataSource) which will be
+ configured according to the properties and nested elements found here,
+ and made available as a servlet context attribute (i.e. application
+ scope bean). The following attributes are required:
+
+ key Servlet context attribute key under which this data
+ source will be stored. Default is the value specified
+ by string constant Action.DATA_SOURCE_KEY.
+
+ type Fully qualified Java class name of the implementation
+ class (must implement javax.sql.DataSource). Default
+ value is 'org.apache.struts.util.GenericDataSource'.
+
+ NOTE: The following attributes are defined by the default data source
+ implementation, and only take effect for that class or subclasses of
+ that class.
+
+ WARNING: The use of these attributes is deprecated. You should use
+ nested <set-property> elements to configure *all* properties of
+ your data source implementation.
+
+ autoCommit The default auto-commit state for newly created
+ connections.
+
+ description The description of this data source.
+
+ driverClass The Java class name of the JDBC driver to be used.
+ [REQUIRED]
+
+ loginTimeout The maximum number of seconds to wait for a connection
+ to be created or returned. Default is driver dependent.
+
+ maxCount The maximum number of connections to be created.
+
+ minCount The minimum number of connections to be created.
+
+ password The database password to use when connecting. [REQUIRED]
+
+ readOnly The default read-only state for newly created
+ connections.
+
+ url The JDBC URL to use when connecting. [REQUIRED]
+
+ user The database username to use when connecting. [REQUIRED]
+
+-->
+<!ELEMENT data-source (set-property*)>
+<!ATTLIST data-source id ID #IMPLIED>
+<!ATTLIST data-source key %BeanName; #IMPLIED>
+<!ATTLIST data-source type %ClassName; #IMPLIED>
+<!-- All of the following attributes are deprecated. Use a nested -->
+<!-- set-property element to configure data source properties. -->
+<!ATTLIST data-source autoCommit %Boolean; #IMPLIED>
+<!ATTLIST data-source description CDATA #IMPLIED>
+<!ATTLIST data-source driverClass %ClassName; #IMPLIED>
+<!ATTLIST data-source loginTimeout %Integer; #IMPLIED>
+<!ATTLIST data-source maxCount %Integer; #IMPLIED>
+<!ATTLIST data-source minCount %Integer; #IMPLIED>
+<!ATTLIST data-source password CDATA #IMPLIED>
+<!ATTLIST data-source readOnly %Boolean; #IMPLIED>
+<!ATTLIST data-source url CDATA #IMPLIED>
+<!ATTLIST data-source user CDATA #IMPLIED>
+
+
+<!-- The "form-beans" element is the root of the set of form bean descriptors
+ for this application. The following attributes are defined:
+
+ type Fully qualified Java class name of the implementation
+ class used for ActionFormBean objects. DEPRECATED.
+
+ WARNING: For Struts 1.0, this value is ignored. You
+ can set the default implementation class name with the
+ "formBean" initialization parameter to the Struts
+ controller servlet.
+-->
+<!ELEMENT form-beans (form-bean*)>
+<!ATTLIST form-beans id ID #IMPLIED>
+<!ATTLIST form-beans type %ClassName; "org.apache.struts.action.ActionFormBean">
+
+
+<!-- The "form-bean" element describes a particular form bean, which is a
+ JavaBean that implements the org.apache.struts.action.ActionForm
+ class. The following attributes are defined:
+
+ className Fully qualified Java class name of the ActionFormBean
+ implementation class to use. Defaults to the value
+ configured as the "formBean" initialization parameter
+ to the Struts controller servlet.
+
+ name Unique identifier of this bean, used to reference it
+ in corresponding action mappings.
+
+ type Fully qualified Java class name of the implementation
+ class to be used or generated
+-->
+<!ELEMENT form-bean (icon?, display-name?, description?, set-property*)>
+<!ATTLIST form-bean id ID #IMPLIED>
+<!ATTLIST form-bean className %ClassName; #IMPLIED>
+<!ATTLIST form-bean name %BeanName; #REQUIRED>
+<!ATTLIST form-bean type %ClassName; #REQUIRED>
+
+
+<!-- The "global-forwards" element configures the global mappings of logical
+ names (used within the application) to mappable resources (identified
+ by context-relative URI paths). A global "forward" with a particular name
+ can be locally overridden by defining a "forward" of the same name within
+ an "action" element. The following attribute are defined:
+
+ type Fully qualified Java class name of the implementation
+ class used for ActionForward objects. DEPRECATED.
+
+ WARNING: For Struts 1.0, this value is ignored. You
+ can set the default implementation class name with the
+ "forward" initialization parameter to the Struts
+ controller servlet.
+-->
+<!ELEMENT global-forwards (forward*)>
+<!ATTLIST global-forwards id ID #IMPLIED>
+<!ATTLIST global-forwards type %ClassName; "org.apache.struts.action.ActionForward">
+
+
+<!-- The "forward" element describes a mapping of a logical name (used within
+ the application) to a mappable resource identified by a context-relative
+ URI path. The following attributes are defined:
+
+ className Fully qualified Java class name of the ActionForward
+ implementation class to use. Defaults to the value
+ configured as the "forward" initialization parameter
+ to the Struts controller servlet.
+
+ name Unique identifier of this forward, used to reference it
+ in application action classes.
+
+ path The context-relative path of the mapped resource.
+
+ redirect Set to "true" if sendRedirect() should be used to forward
+ to this resource, or "false" in order to use
+ RequestDispatcher.forward() instead.
+-->
+<!ELEMENT forward (icon?, display-name?, description?, set-property*)>
+<!ATTLIST forward id ID #IMPLIED>
+<!ATTLIST forward className %ClassName; #IMPLIED>
+<!ATTLIST forward name CDATA #REQUIRED>
+<!ATTLIST forward path %RequestPath; #REQUIRED>
+<!ATTLIST forward redirect %Boolean; #IMPLIED>
+
+
+<!-- The "action-mappings" element configures the mappings from submitted
+ request paths to the corresponding Action classes that should be
+ used to process these requests. The following attributes are
+ defined:
+
+ type Fully qualified Java class name of the ActionMapping
+ implementation class to be used. DEPRECATED.
+
+ WARNING: For Struts 1.0, this value is ignored. You
+ can set the default implementation class name with the
+ "mapping" initialization parameter to the Struts
+ controller servlet.
+-->
+<!ELEMENT action-mappings (action*)>
+<!ATTLIST action-mappings id ID #IMPLIED>
+<!ATTLIST action-mappings type %ClassName; "org.apache.struts.action.ActionMapping">
+
+
+<!-- The "action" element describes a mapping from a request paths to the
+ corresponding Action classes that should be used to process these
+ requests. The following attributes are defined:
+
+ attribute Name of the request-scope or session-scope attribute
+ under which our form bean is accessed, if it is other
+ than the bean's specified "name". Optional if
+ "name" is specified, else not allowed.
+
+ className Fully qualified Java class name of the ActionMapping
+ implementation class to use. Defaults to the value
+ configured as the "mapping" initialization parameter
+ to the Struts controller servlet.
+
+ forward Context-relative path of the servlet or JSP resource that
+ will process this request, instead of instantiating and
+ calling the Action class specified by "type". Exactly one
+ of "forward", "include", or "type" must be specified.
+
+ include Context-relative path of the servlet or JSP resource that
+ will process this request, instead of instantiating and
+ calling the Action class specified by "type". Exactly one
+ of "forward", "include", or "type" must be specified.
+
+ input Context-relative path of the input form to which control
+ should be returned if a validation error is encountered.
+ Required if "name" is specified and the input bean
+ returns validation errors. Optional if "name" is
+ specified and the input bean does not return validation
+ errors. Not allowed if "name" is not specified.
+
+ name Name of the form bean, if any, that is associated
+ with this action.
+
+ path The context-relative path of the submitted request,
+ starting with a "/" character, and without the
+ filename extension if extension mapping is used.
+
+ parameter General purpose configuration parameter that can be used
+ to pass extra information to the Action selected by this
+ mapping.
+
+ prefix Prefix used to match request parameter names to form bean
+ property names, if any. Optional if "name" is specified,
+ else not allowed.
+
+ scope Identifier of the scope ("request" or "session") within
+ which our form bean is accessed, if any. Optional if
+ "name" is specified, else not allowed.
+
+ suffix Suffix used to match request parameter names to form bean
+ property names, if any. Optional if "name" is specified,
+ else not allowed.
+
+ type Fully qualified Java class name of the Action class
+ (implements org.apache.struts.action.Action) to be
+ used to process requests for this mapping if the "forward"
+ or "include" attribute is not included. Exactly one
+ of "forward", "include", or "type" must be specified.
+
+ unknown Set to "true" if this action should be configured as the
+ default for this application, to handle all requests
+ not handled by another action. Only one action can be
+ defined as a default within a single application.
+
+ validate Set to "true" if the validate() method of the form bean
+ should be called prior to calling this action, or set to
+ "false" if you do not want validation performed.
+-->
+<!ELEMENT action (icon?, display-name?, description?, set-property*, forward*)>
+<!ATTLIST action id ID #IMPLIED>
+<!ATTLIST action attribute %BeanName; #IMPLIED>
+<!ATTLIST action className %ClassName; #IMPLIED>
+<!ATTLIST action forward %RequestPath; #IMPLIED>
+<!ATTLIST action include %RequestPath; #IMPLIED>
+<!ATTLIST action input %RequestPath; #IMPLIED>
+<!ATTLIST action name %BeanName; #IMPLIED>
+<!ATTLIST action parameter CDATA #IMPLIED>
+<!ATTLIST action path %RequestPath; #REQUIRED>
+<!ATTLIST action prefix CDATA #IMPLIED>
+<!ATTLIST action scope %RequestScope; #IMPLIED>
+<!ATTLIST action suffix CDATA #IMPLIED>
+<!ATTLIST action type %ClassName; #IMPLIED>
+<!ATTLIST action unknown %Boolean; #IMPLIED>
+<!ATTLIST action validate %Boolean; #IMPLIED>
+
+
+<!-- The "set-property" element specifies the name and value of an additional
+ JavaBeans configuration property whose setter method will be called
+ on the object that represents our surrounding element. This is especially
+ useful when an extended implementation class (with additional properties)
+ is configured on the <global-forwards> or <action-mappings> elements.
+ The following attributes are defined:
+
+ property Name of the JavaBeans property whose setter method
+ will be called.
+
+ value String representation of the value to which this
+ property will be set, after suitable type conversion
+-->
+<!ELEMENT set-property EMPTY>
+<!ATTLIST set-property id ID #IMPLIED>
+<!ATTLIST set-property property %PropName; #REQUIRED>
+<!ATTLIST set-property value CDATA #REQUIRED>
+
+
+
+<!-- ========== Subordinate Elements ====================================== -->
+
+
+<!-- The "description" element contains descriptive (paragraph length) text
+ about the surrounding element, suitable for use in GUI tools.
+-->
+<!ELEMENT description (#PCDATA)>
+<!ATTLIST description id ID #IMPLIED>
+
+
+
+<!-- The "display-name" element contains a short (one line) description of
+ the surrounding element, suitable for use in GUI tools.
+-->
+<!ELEMENT display-name (#PCDATA)>
+<!ATTLIST display-name id ID #IMPLIED>
+
+
+<!-- The "icon" element contains a small-icon and large-icon element which
+ specify the location, relative to the Struts configuration file, for small
+ and large images used to represent the surrounding element in GUI tools.
+-->
+<!ELEMENT icon (small-icon?, large-icon?)>
+<!ATTLIST icon id ID #IMPLIED>
+
+
+<!-- The "large-icon" element specifies the location, relative to the Struts
+ configuration file, of a resource containing a large (32x32 pixel)
+ icon image.
+-->
+<!ELEMENT large-icon (%Location;)>
+<!ATTLIST large-icon id ID #IMPLIED>
+
+
+<!-- The "small-icon" element specifies the location, relative to the Struts
+ configuration file, of a resource containing a small (16x16 pixel)
+ icon image.
+-->
+<!ELEMENT small-icon (%Location;)>
+<!ATTLIST small-icon id ID #IMPLIED>
+
Added: trunk/struts/plugins/org.jboss.tools.struts/dtds/struts-config_1_1.dtd
===================================================================
--- trunk/struts/plugins/org.jboss.tools.struts/dtds/struts-config_1_1.dtd (rev 0)
+++ trunk/struts/plugins/org.jboss.tools.struts/dtds/struts-config_1_1.dtd 2007-07-26 09:10:34 UTC (rev 2667)
@@ -0,0 +1,695 @@
+<!--
+ DTD for the Struts Application Configuration File, Version 1.1
+
+ To support validation of your configuration file, include the following
+ DOCTYPE element at the beginning (after the "xml" declaration):
+
+ <!DOCTYPE struts-config PUBLIC
+ "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN"
+ "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">
+
+ $Id: struts-config_1_1.dtd,v 1.1.1.1 2004/10/06 17:32:28 sim Exp $
+-->
+
+
+<!-- ========== Defined Types ============================================= -->
+
+
+<!-- An "AttributeName" is the identifier of a page, request, session, or
+ application scope attribute.
+-->
+<!ENTITY % AttributeName "CDATA">
+
+
+<!-- A "BeanName" is the identifier of a JavaBean, such as a form bean,
+ and also serves as the name of the corresponding scripting variable
+ and the name of the JSP attribute under which the bean is accessed.
+ Therefore, it must conform to the rules for a Java identifier.
+-->
+<!ENTITY % BeanName "CDATA">
+
+
+<!-- A "Boolean" is the string representation of a boolean (true or false)
+ variable.
+-->
+<!ENTITY % Boolean "(true|false|yes|no)">
+
+
+<!-- A "ClassName" is the fully qualified name of a Java class that is
+ instantiated to provide the functionality of the enclosing element.
+-->
+<!ENTITY % ClassName "CDATA">
+
+
+<!-- An "Integer" is a character string consisting solely of numeric digits,
+ optionally preceeded by a minus sign, that can be converted to a
+ 32-bit integer.
+-->
+<!ENTITY % Integer "CDATA">
+
+
+<!-- A "Location" is a relative path, delimited by "/" characters, that
+ defines the location of a resource relative to the location of the
+ Struts configuration file itself.
+-->
+<!ENTITY % Location "#PCDATA">
+
+
+<!-- A "PropName" is the name of a JavaBeans property, and must begin with
+ a lower case letter and contain only characters that are legal in a
+ Java identifier.
+-->
+<!ENTITY % PropName "CDATA">
+
+
+<!-- A "RequestPath" is an application-relative URI path, beginning with a
+ slash, that identifies a mapped resource (such as a JSP page or a servlet)
+ within this web application.
+-->
+<!ENTITY % RequestPath "CDATA">
+
+
+<!-- The name of a JSP bean scope within which such a form bean may be
+ accessed.
+-->
+<!ENTITY % RequestScope "(request|session)">
+
+
+<!-- ========== Top Level Elements ======================================== -->
+
+
+<!-- The "struts-config" element is the root of the configuration file
+ hierarchy, and contains nested elements for all of the other
+ configuration settings.
+-->
+<!ELEMENT struts-config (data-sources?, form-beans?, global-exceptions?, global-forwards?, action-mappings?, controller?, message-resources*, plug-in*)>
+<!ATTLIST struts-config id ID #IMPLIED>
+
+
+<!-- The "data-sources" element describes a set of DataSource objects [JDBC 2.0
+ Standard Extension]. The individual DataSource objects are configured through
+ nested <data-source> elements.
+-->
+<!ELEMENT data-sources (data-source*)>
+<!ATTLIST data-sources id ID #IMPLIED>
+
+
+<!-- The "data-source" element describes a DataSource object [JDBC 2.0 Standard
+ Extension] that will be instantiated, configured, and made available as a
+ servlet context attribute (or "application-scope bean"). Any object can be
+ specified so long as it implements [javax.sql.DataSource] and can be
+ configured entirely from JavaBean properties. The following attributes
+ are required:
+
+ className The configuration bean for this DataSource object. If
+ specified, the object must be a subclass of the default
+ configuration bean.
+ ["org.apache.struts.config.DataSourceConfig"]
+
+ key Servlet context attribute key under which this data source
+ will be stored. Default is the value specified by string
+ constant defined by Globals.DATA_SOURCE_KEY. The application
+ module prefix (if any) is appended to the key
+ (${key}$prefix}).
+ [org.apache.struts.Globals.DATA_SOURCE_KEY]
+
+ NOTE: The application module prefix includes the leading
+ slash, so the default datasource for a module named "foo" is
+ stored under "org.apache.struts.action.DATA_SOURCE/foo".
+
+ type Fully qualified Java class name for this data source object.
+ The class must implement DataSource [javax.sql.DataSource],
+ and the object must be configurable entirely from JavaBean
+ properties.
+-->
+<!ELEMENT data-source (set-property*)>
+<!ATTLIST data-source id ID #IMPLIED>
+<!ATTLIST data-source className %ClassName; #IMPLIED>
+<!ATTLIST data-source key %AttributeName; #IMPLIED>
+<!ATTLIST data-source type %ClassName; #IMPLIED>
+
+
+<!-- The "global-exceptions" element describes a set of exceptions that might be
+ thrown by an Action object. The handling of individual exception types is
+ configured through nested exception elements. An <action> element may
+ override a global exception handler by registering a local exception handler
+ for the same exception type. Since Struts 1.1.
+-->
+<!ELEMENT global-exceptions (exception*)>
+<!ATTLIST global-exceptions id ID #IMPLIED>
+
+
+<!-- The "exception" element registers an ExceptionHandler for an exception type.
+ The following attributes are defined:
+
+ bundle Servlet context attribute for the message resources bundle
+ associated with this handler. The default attribute is the
+ value specified by the string constant declared at
+ Globals.MESSAGES_KEY.
+ [org.apache.struts.Globals.MESSAGES_KEY]
+
+ className The configuration bean for this ExceptionHandler object.
+ If specified, className must be a subclass of the default
+ configuration bean
+ ["org.apache.struts.config.ExceptionConfig"]
+
+ handler Fully qualified Java class name for this exception handler.
+ ["org.apache.struts.action.ExceptionHandler"]
+
+ key The key to use with this handler's message resource bundle
+ that will retrieve the error message template for this
+ exception.
+
+ path The module-relative URI to the resource that will complete
+ the request/response if this exception occurs.
+
+ scope The context ("request" or "session") that is used to access
+ the ActionError object [org.apache.struts.action.ActionError]
+ for this exception.
+
+ type Fully qualified Java class name of the exception type to
+ register with this handler.
+-->
+<!ELEMENT exception (icon?, display-name?, description?, set-property*)>
+<!ATTLIST exception id ID #IMPLIED>
+<!ATTLIST exception bundle %AttributeName; #IMPLIED>
+<!ATTLIST exception className %ClassName; #IMPLIED>
+<!ATTLIST exception handler %ClassName; #IMPLIED>
+<!ATTLIST exception key CDATA #REQUIRED>
+<!ATTLIST exception path %RequestPath; #IMPLIED>
+<!ATTLIST exception scope CDATA #IMPLIED>
+<!ATTLIST exception type %ClassName; #REQUIRED>
+
+
+<!-- The "form-beans" element describes the set of form bean descriptors for this
+ application module. The following attributes are defined:
+
+ type Fully qualified Java class to use when instantiating
+ ActionFormBean objects. If specified, the object must be a
+ subclass of the default class type.
+ DEPRECATED.
+
+ WARNING: For Struts 1.0, this value is ignored. You
+ can set the default implementation class name with the
+ "formBean" initialization parameter to the Struts
+ controller servlet.
+-->
+<!ELEMENT form-beans (form-bean*)>
+<!ATTLIST form-beans id ID #IMPLIED>
+<!ATTLIST form-beans type %ClassName; #IMPLIED>
+
+
+<!-- The "form-bean" element describes an ActionForm subclass
+ [org.apache.struts.action.ActionForm] that can be referenced by an "action"
+ element.
+
+
+The "form-bean" element describes a particular form bean, which is a
+ JavaBean that implements the org.apache.struts.action.ActionForm
+ class. The following attributes are defined:
+
+ className The configuration bean for this form bean object. If
+ specified, the object must be a subclass of the default
+ configuration bean.
+ ["org.apache.struts.config.FormBeanConfig"]
+
+ dynamic If the form bean type is a DynaActionForm subclass (that you
+ created), then (and only then) set this attribute to "true".
+ If the type is set to the default DynaActionForm or any
+ conventional ActionForm subclass, then this attribute can be
+ omitted.
+ [true] if type is "org.apache.struts.action.DynaActionForm"
+ [false] otherwise DEPRECATED - THIS IS NOW DETERMINED
+ DYNAMICALLY BASED ON THE SPECIFIED IMPLEMENTATION CLASS.
+
+ name The unique identifier for this form bean. Referenced by the
+ <action> element to specify which form bean to use with its
+ request.
+
+ type Fully qualified Java class name of the ActionForm subclass
+ to use with this form bean.
+-->
+<!ELEMENT form-bean (icon?, display-name?, description?, set-property*, form-property*)>
+<!ATTLIST form-bean id ID #IMPLIED>
+<!ATTLIST form-bean className %ClassName; #IMPLIED>
+<!ATTLIST form-bean dynamic %Boolean; #IMPLIED>
+<!ATTLIST form-bean name %BeanName; #REQUIRED>
+<!ATTLIST form-bean type %ClassName; #REQUIRED>
+
+
+<!-- The "form-property" element describes a JavaBean property that can be used to
+ configure an instance of a DynaActionForm or a subclass thereof. This element
+ is only utilized when the "type" attribute of the enclosing "form-bean" element
+ is [org.apache.struts.action.DynaActionForm] or a subclass of DynaActionForm. If
+ a custom DynaActionForm subclass is used, then the "dynamic" attribute of the
+ enclosing <form-bean> element must be set to "true". Since Struts 1.1.
+
+ className The configuration bean for this form property object. If
+ specified, the object must be a subclass of the default
+ configuration bean.
+ ["org.apache.struts.config.FormPropertyConfig"]
+
+ initial String representation of the initial value for this property.
+ If not specified, primitives will be initialized to zero and
+ objects initialized to null.
+
+ name The name of the JavaBean property described by this element.
+
+ size The number of array elements to create if the value of the
+ "type" attribute specifies an array, but there is no value
+ specified for the "initial" attribute.
+
+ type Fully qualified Java class name of the field underlying this
+ property, optionally followed by "[]" to indicate that the
+ field is indexed.
+-->
+<!ELEMENT form-property (set-property*)>
+<!ATTLIST form-property className %ClassName; #IMPLIED>
+<!ATTLIST form-property initial CDATA #IMPLIED>
+<!ATTLIST form-property name %PropName; #REQUIRED>
+<!ATTLIST form-property size %Integer; #IMPLIED>
+<!ATTLIST form-property type %ClassName; #REQUIRED>
+
+
+<!-- The "global-forwards" element describes a set of ActionForward objects
+ [org.apache.struts.action.ActionForward] that are available to all Action
+ objects as a return value. The individual ActionForwards are configured
+ through nested <forward> elements. An <action> element may override a global
+ forward by defining a local <forward> of the same name.
+
+ type Fully qualified Java class to use when instantiating
+ ActionForward objects. If specified, the object must be a
+ subclass of the default class type.
+ DEPRECATED.
+
+ WARNING: For Struts 1.0, this value is ignored. You
+ can set the default implementation class name with the
+ "forward" initialization parameter to the Struts
+ controller servlet.
+-->
+<!ELEMENT global-forwards (forward*)>
+<!ATTLIST global-forwards id ID #IMPLIED>
+<!ATTLIST global-forwards type %ClassName; #IMPLIED>
+
+
+<!-- The "forward" element describes an ActionForward that is to be made
+ available to an Action as a return value. An ActionForward is referenced by
+ a logical name and encapsulates a URI. A "forward" element may be used to
+ describe both global and local ActionForwards. Global forwards are available
+ to all the Action objects in the application module. Local forwards can be
+ nested within an <action> element and only available to an Action object
+ when it is invoked through that ActionMapping.
+
+ className Fully qualified Java class name of ActionForward
+ subclass to use for this object.
+ ["org.apache.struts.action.ActionForward"]
+
+ contextRelative Set this to "true" if, in a modular application, the path
+ attribute starts with a slash "/" and should be considered
+ relative to the entire web application rather than the module.
+ Since Struts 1.1.
+ [false]
+
+ name The unique identifier for this forward. Referenced by the
+ Action object at runtime to select - by its logical name -
+ the resource that should complete the request/response.
+
+ path The module-relative or context-relative path to the resources
+ that is encapsulated by the logical name of this ActionForward.
+ If the path is to be considered context-relative when used in
+ a modular application, then the contextRelative attribute
+ should be set to "true". This value should begin with a slash
+ ("/") character.
+
+ redirect Set to "true" if a redirect instruction should be issued to
+ the user-agent so that a new request is issued for this
+ forward's resource. If true, RequestDispatcher.Redirect is
+ called. If "false", RequestDispatcher.forward is called instead.
+ [false]
+-->
+<!ELEMENT forward (icon?, display-name?, description?, set-property*)>
+<!ATTLIST forward id ID #IMPLIED>
+<!ATTLIST forward className %ClassName; #IMPLIED>
+<!ATTLIST forward contextRelative %Boolean; #IMPLIED>
+<!ATTLIST forward name CDATA #REQUIRED>
+<!ATTLIST forward path %RequestPath; #REQUIRED>
+<!ATTLIST forward redirect %Boolean; #IMPLIED>
+
+
+<!-- The "action-mappings" element describes a set of ActionMapping objects
+ [org.apache.struts.action.ActionMapping] that are available to process
+ requests matching the url-pattern our ActionServlet registered with the
+ container. The individual ActionMappings are configured through nested
+ <action> elements. The following attributes are defined:
+
+ type Fully qualified Java class to use when instantiating
+ ActionMapping objects. If specified, the object must be a
+ subclass of the default class type.
+
+ WARNING: For Struts 1.0, this value is ignored. You
+ can set the default implementation class name with the
+ "mapping" initialization parameter to the Struts
+ controller servlet.
+-->
+<!ELEMENT action-mappings (action*)>
+<!ATTLIST action-mappings id ID #IMPLIED>
+<!ATTLIST action-mappings type %ClassName; #IMPLIED>
+
+
+<!-- The "action" element describes an ActionMapping object that is to be used
+ to process a request for a specific module-relative URI. The following
+ attributes are defined:
+
+ attribute Name of the request-scope or session-scope attribute that
+ is used to access our ActionForm bean, if it is other than
+ the bean's specified "name". Optional if "name" is specified,
+ else not valid.
+
+ className The fully qualified Java class name of the ActionMapping
+ subclass to use for this action mapping object. Defaults to
+ the type specified by the enclosing <action-mappings>
+ element or to "org.apache.struts.action.ActionMapping" if
+ not specified.
+ ["org.apache.struts.action.ActionMapping"]
+
+ forward Module-relative path of the servlet or other resource that
+ will process this request, instead of the Action class
+ specified by "type". The path WILL NOT be processed
+ through the "forwardPattern" attribute that is configured
+ on the "controller" element for this application module.
+ Exactly one of "forward", "include", or "type" must be
+ specified.
+
+ include Module-relative path of the servlet or other resource that
+ will process this request, instead of the Action class
+ specified by "type". The path WILL NOT be processed
+ through the "forwardPattern" attribute that is configured
+ on the "controller" element for this application module.
+ Exactly one of "forward", "include", or "type" must be
+ specified.
+
+ input Module-relative path of the action or other resource to
+ which control should be returned if a validation error is
+ encountered. Valid only when "name" is specified. Required
+ if "name" is specified and the input bean returns
+ validation errors. Optional if "name" is specified and the
+ input bean does not return validation errors.
+
+ name Name of the form bean, if any, that is associated with this
+ action mapping.
+
+ path The module-relative path of the submitted request, starting
+ with a "/" character, and without the filename extension if
+ extension mapping is used.
+
+ NOTE: Do *not* include a period in your path name,
+ because it will look like a filename extension and
+ cause your Action to not be located.
+
+ parameter General-purpose configuration parameter that can be used to
+ pass extra information to the Action object selected by
+ this action mapping.
+
+ prefix Prefix used to match request parameter names to ActionForm
+ property names, if any. Optional if "name" is specified,
+ else not allowed.
+
+ roles Comma-delimited list of security role names that are allowed
+ access to this ActionMapping object. Since Struts 1.1.
+
+ scope The context ("request" or "session") that is used to
+ access our ActionForm bean, if any. Optional if "name" is
+ specified, else not valid.
+
+ suffix Suffix used to match request parameter names to ActionForm
+ bean property names, if any. Optional if "name" is
+ specified, else not valid.
+
+ type Fully qualified Java class name of the Action subclass
+ [org.apache.struts.action.Action] that will process requests
+ for this action mapping. Not valid if either the "forward"
+ or "include" attribute is specified. Exactly one of
+ "forward", "include", or "type" must be specified.
+
+ unknown Set to "true" if this object should be configured as the
+ default action mapping for this module. If a request does not
+ match another object, it will be passed to the ActionMapping
+ object with unknown set to "true". Only one ActionMapping
+ can be marked as "unknown" within a module.
+ [false]
+
+ validate Set to "true" if the validate method of the ActionForm bean
+ should be called prior to calling the Action object for this
+ action mapping, or set to "false" if you do not want the
+ validate method called.
+ [true]
+-->
+<!ELEMENT action (icon?, display-name?, description?, set-property*, exception*, forward*)>
+<!ATTLIST action id ID #IMPLIED>
+<!ATTLIST action attribute %BeanName; #IMPLIED>
+<!ATTLIST action className %ClassName; #IMPLIED>
+<!ATTLIST action forward %RequestPath; #IMPLIED>
+<!ATTLIST action include %RequestPath; #IMPLIED>
+<!ATTLIST action input %RequestPath; #IMPLIED>
+<!ATTLIST action name %BeanName; #IMPLIED>
+<!ATTLIST action parameter CDATA #IMPLIED>
+<!ATTLIST action path %RequestPath; #REQUIRED>
+<!ATTLIST action prefix CDATA #IMPLIED>
+<!ATTLIST action roles CDATA #IMPLIED>
+<!ATTLIST action scope %RequestScope; #IMPLIED>
+<!ATTLIST action suffix CDATA #IMPLIED>
+<!ATTLIST action type %ClassName; #IMPLIED>
+<!ATTLIST action unknown %Boolean; #IMPLIED>
+<!ATTLIST action validate %Boolean; #IMPLIED>
+
+
+<!-- The "controller" element describes the ControllerConfig bean
+ [org.apache.struts.config.ControllerConfig] that encapsulates
+ an application module's runtime configuration. The following
+ attributes are defined:
+
+ bufferSize The size of the input buffer used when processing
+ file uploads.
+ [4096]
+
+ className Fully qualified Java class name of the
+ ControllerConfig subclass for this controller object.
+ If specified, the object must be a subclass of the
+ default class.
+ ["org.apache.struts.config.ControllerConfig"]
+
+ contentType Default content type (and optional character encoding) to
+ be set on each response. May be overridden by the Action,
+ JSP, or other resource to which the request is forwarded.
+ ["text/html"]
+
+ debug Debugging detail level for this module. [0]
+ DEPRECATED - configure the logging detail level
+ in your underlying logging implementation.
+
+ forwardPattern Replacement pattern defining how the "path" attribute of a
+ <forward> element is mapped to a context-relative URL when
+ it starts with a slash (and when the contextRelative
+ property is false). This value may consist of any
+ combination of the following:
+ - "$M" - Replaced by the module prefix of this module
+ - "$P" - Replaced by the "path" attribute of the selected
+ "forward" element
+ - "$$" - Causes a literal dollar sign to be rendered
+ - "$x" - (Where "x" is any character not defined above)
+ Silently swallowed, reserved for future use
+ If not specified, the default forwardPattern is "$M$P",
+ which is consistent with the previous behavior of
+ forwards. Since Struts 1.1. ["$M$P"]
+
+ inputForward Set to "true" if you want the "input" attribute of
+ <action> elements to be the name of a local or global
+ ActionForward, which will then be used to calculate the
+ ultimate URL. Set to "false" (the default) to treat the
+ "input" parameter of <action> elements as a
+ module-relative path to the resource
+ to be used as the input form. Since Struts 1.1.
+ [false]
+
+ locale Set to "true" if you want a Locale object stored in the
+ user's session if not already present.
+ [true]
+
+ maxFileSize The maximum size (in bytes) of a file to be accepted as a
+ file upload. Can be expressed as a number followed by a
+ "K", "M", or "G", which are interpreted to mean kilobytes,
+ megabytes, or gigabytes, respectively.
+ ["250M"]
+
+ memFileSize The maximum size (in bytes) of a file whose contents will
+ be retained in memory after uploading. Files larger than
+ this threshold will be written to some alternative storage
+ medium, typically a hard disk. Can be expressed as a number
+ followed by a "K", "M", or "G", which are interpreted to
+ mean kilobytes, megabytes, or gigabytes, respectively.
+ ["256K"]
+
+ multipartClass The fully qualified Java class name of the multipart
+ request handler class to be used with this module.
+ ["org.apache.struts.upload.CommonsMultipartRequestHandler"]
+
+ nocache Set to "true" if you want the controller to add HTTP
+ headers for defeating caching to every response from
+ this module. [false]
+
+ pagePattern Replacement pattern defining how the "page" attribute of
+ custom tags using it is mapped to a context-relative URL
+ of the corresponding resource. This value may consist of
+ any combination of the following:
+ - "$M" - Replaced by the module prefix of this module
+ - "$P" - Replaced by the value of the "page" attribute
+ - "$$" - Causes a literal dollar sign to be rendered
+ - "$x" - (Where "x" is any character not defined above)
+ Silently swallowed, reserved for future use
+ If not specified, the default forwardPattern is
+ "$M$P", which is consistent with previous hard coded
+ behavior of URL evaluation for "page" attributes.
+ ["$M$P"]
+
+ processorClass The fully qualified Java class name of the
+ RequestProcessor subclass to be used with this module.
+ ["org.apache.struts.action.RequestProcessor"]
+
+ tempDir Temporary working directory to use when processing
+ file uploads.
+ [{Directory provided by servlet container}]
+-->
+<!ELEMENT controller (set-property*)>
+<!ATTLIST controller id ID #IMPLIED>
+<!ATTLIST controller bufferSize %Integer; #IMPLIED>
+<!ATTLIST controller className %ClassName; #IMPLIED>
+<!ATTLIST controller contentType CDATA #IMPLIED>
+<!ATTLIST controller debug %Integer; #IMPLIED>
+<!ATTLIST controller forwardPattern CDATA #IMPLIED>
+<!ATTLIST controller inputForward %Boolean; #IMPLIED>
+<!ATTLIST controller locale %Boolean; #IMPLIED>
+<!ATTLIST controller maxFileSize CDATA #IMPLIED>
+<!ATTLIST controller memFileSize CDATA #IMPLIED>
+<!ATTLIST controller multipartClass %ClassName; #IMPLIED>
+<!ATTLIST controller nocache %Boolean; #IMPLIED>
+<!ATTLIST controller pagePattern CDATA #IMPLIED>
+<!ATTLIST controller processorClass %ClassName; #IMPLIED>
+<!ATTLIST controller tempDir CDATA #IMPLIED>
+
+
+<!-- The "message-resources" element describes a MessageResources object with
+ message templates for this module. The following attributes are defined:
+
+ className The configuration bean for this message resources object.
+ If specified, the object must be a subclass of the default
+ configuration bean.
+ ["org.apache.struts.config.MessageResourcesConfig"]
+
+ factory Fully qualified Java class name of the
+ MessageResourcesFactory subclass to use for this message
+ resources object.
+ ["org.apache.struts.util.PropertyMessageResourcesFactory"]
+
+ key Servlet context attribute under which this message
+ resources bundle will be stored. The default attribute is
+ the value specified by the string constant at
+ [Globals.MESSAGES_KEY]. The application module prefix (if
+ any) is appended to the key (${key}${prefix}).
+ [org.apache.struts.Globals.MESSAGES_KEY]
+
+ NOTE: The application module prefix includes the leading
+ slash, so the default message resource bundle for a module
+ named "foo" is stored under
+ "org.apache.struts.action.MESSAGE/foo".
+
+ null Set to "true" if you want our message resources to return a
+ null string for unknown message keys, or "false" to return a
+ message with the bad key value.
+
+ parameter Configuration parameter to be passed to the createResources
+ method of our factory object.
+-->
+<!ELEMENT message-resources (set-property*)>
+<!ATTLIST message-resources id ID #IMPLIED>
+<!ATTLIST message-resources className %ClassName; #IMPLIED>
+<!ATTLIST message-resources factory %ClassName; #IMPLIED>
+<!ATTLIST message-resources key %AttributeName; #IMPLIED>
+<!ATTLIST message-resources null %Boolean; #IMPLIED>
+<!ATTLIST message-resources parameter CDATA #REQUIRED>
+
+
+<!-- The "plug-in" element specifies the fully qualified class name of a
+ general-purpose application plug-in module that receives notification of
+ application startup and shutdown events. An instance of the specified class
+ is created for each element, and can be configured with nested <set-property>
+ elements. The following attributes are supported:
+
+ className Fully qualified Java class name of the plug-in class; must
+ implement [org.apache.struts.action.PlugIn].
+-->
+<!ELEMENT plug-in (set-property*)>
+<!ATTLIST plug-in id ID #IMPLIED>
+<!ATTLIST plug-in className %ClassName; #REQUIRED>
+
+
+<!-- ========== Subordinate Elements ====================================== -->
+
+
+<!-- The "description" element contains descriptive (paragraph length) text
+ about the surrounding element, suitable for use in GUI tools.
+-->
+<!ELEMENT description (#PCDATA)>
+<!ATTLIST description id ID #IMPLIED>
+
+
+<!-- The "display-name" element contains a short (one line) description of
+ the surrounding element, suitable for use in GUI tools.
+-->
+<!ELEMENT display-name (#PCDATA)>
+<!ATTLIST display-name id ID #IMPLIED>
+
+
+<!-- The "icon" element contains a small-icon and large-icon element which
+ specify the location, relative to the Struts configuration file, for small
+ and large images used to represent the surrounding element in GUI tools.
+-->
+<!ELEMENT icon (small-icon?, large-icon?)>
+<!ATTLIST icon id ID #IMPLIED>
+
+
+<!-- The "large-icon" element specifies the location, relative to the Struts
+ configuration file, of a resource containing a large (32x32 pixel)
+ icon image.
+-->
+<!ELEMENT large-icon (%Location;)>
+<!ATTLIST large-icon id ID #IMPLIED>
+
+
+<!-- The "set-property" element specifies the method name and initial value of
+ an additional JavaBean configuration property. When the object representing
+ the surrounding element is instantiated, the accessor for the indicated
+ property is called and passed the indicated value. The "set-property"
+ element is especially useful when a custom subclass is used with
+ <data-source>, <forward>, <action>, or <plug-in> elements. The subclass
+ can be passed whatever other properties may be required to configure the
+ object without changing how the struts-config is parsed.
+
+ property Name of the JavaBeans property whose setter method
+ will be called.
+
+ value String representation of the value to which this
+ property will be set, after suitable type conversion
+-->
+<!ELEMENT set-property EMPTY>
+<!ATTLIST set-property id ID #IMPLIED>
+<!ATTLIST set-property property %PropName; #REQUIRED>
+<!ATTLIST set-property value CDATA #REQUIRED>
+
+
+<!-- The "small-icon" element specifies the location, relative to the Struts
+ configuration file, of a resource containing a small (16x16 pixel)
+ icon image.
+-->
+<!ELEMENT small-icon (%Location;)>
+<!ATTLIST small-icon id ID #IMPLIED>
+
Added: trunk/struts/plugins/org.jboss.tools.struts/dtds/struts-config_1_2.dtd
===================================================================
--- trunk/struts/plugins/org.jboss.tools.struts/dtds/struts-config_1_2.dtd (rev 0)
+++ trunk/struts/plugins/org.jboss.tools.struts/dtds/struts-config_1_2.dtd 2007-07-26 09:10:34 UTC (rev 2667)
@@ -0,0 +1,686 @@
+<!--
+ DTD for the Struts Application Configuration File
+
+ To support validation of your configuration file, include the following
+ DOCTYPE element at the beginning (after the "xml" declaration):
+
+ <!DOCTYPE struts-config PUBLIC
+ "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN"
+ "http://struts.apache.org/dtds/struts-config_1_2.dtd">
+
+ $Id: struts-config_1_2.dtd,v 1.2 2004/11/18 10:34:42 glory Exp $
+-->
+
+
+<!-- ========== Defined Types ============================================= -->
+
+
+<!-- An "AttributeName" is the identifier of a page, request, session, or
+ application scope attribute.
+-->
+<!ENTITY % AttributeName "CDATA">
+
+
+<!-- A "BeanName" is the identifier of a JavaBean, such as a form bean,
+ and also serves as the name of the corresponding scripting variable
+ and the name of the JSP attribute under which the bean is accessed.
+ Therefore, it must conform to the rules for a Java identifier.
+-->
+<!ENTITY % BeanName "CDATA">
+
+
+<!-- A "Boolean" is the string representation of a boolean (true or false)
+ variable.
+-->
+<!ENTITY % Boolean "(true|false|yes|no)">
+
+
+<!-- A "ClassName" is the fully qualified name of a Java class that is
+ instantiated to provide the functionality of the enclosing element.
+-->
+<!ENTITY % ClassName "CDATA">
+
+
+<!-- An "Integer" is a character string consisting solely of numeric digits,
+ optionally preceeded by a minus sign, that can be converted to a
+ 32-bit integer.
+-->
+<!ENTITY % Integer "CDATA">
+
+
+<!-- A "Location" is a relative path, delimited by "/" characters, that
+ defines the location of a resource relative to the location of the
+ Struts configuration file itself.
+-->
+<!ENTITY % Location "#PCDATA">
+
+
+<!-- A "PropName" is the name of a JavaBeans property, and must begin with
+ a lower case letter and contain only characters that are legal in a
+ Java identifier.
+-->
+<!ENTITY % PropName "CDATA">
+
+
+<!-- A "RequestPath" is an module-relative URI path, beginning with a
+ slash, that identifies a mapped resource (such as a JSP page or a servlet)
+ within this web application.
+-->
+<!ENTITY % RequestPath "CDATA">
+
+
+<!-- The name of a JSP bean scope within which such a form bean may be
+ accessed.
+-->
+<!ENTITY % RequestScope "(request|session)">
+
+
+<!-- ========== Top Level Elements ======================================== -->
+
+
+<!-- The "struts-config" element is the root of the configuration file
+ hierarchy, and contains nested elements for all of the other
+ configuration settings.
+-->
+<!ELEMENT struts-config (display-name?, description?, data-sources?, form-beans?, global-exceptions?, global-forwards?, action-mappings?, controller?, message-resources*, plug-in*)>
+<!ATTLIST struts-config id ID #IMPLIED>
+
+
+<!-- The "data-sources" element describes a set of DataSource objects [JDBC 2.0
+ Standard Extension]. The individual DataSource objects are configured through
+ nested <data-source> elements.
+-->
+<!ELEMENT data-sources (data-source*)>
+<!ATTLIST data-sources id ID #IMPLIED>
+
+
+<!-- The "data-source" element describes a DataSource object [JDBC 2.0 Standard
+ Extension] that will be instantiated, configured, and made available as a
+ servlet context attribute (or "application-scope bean"). Any object can be
+ specified so long as it implements [javax.sql.DataSource] and can be
+ configured entirely from JavaBean properties. The following attributes
+ are required:
+
+ className The configuration bean for this DataSource object. If
+ specified, the object must be a subclass of the default
+ configuration bean.
+ ["org.apache.struts.config.DataSourceConfig"]
+
+ key Servlet context attribute key under which this data source
+ will be stored. Default is the value specified by string
+ constant defined by Globals.DATA_SOURCE_KEY. The application
+ module prefix (if any) is appended to the key
+ (${key}$prefix}).
+ [org.apache.struts.Globals.DATA_SOURCE_KEY]
+
+ NOTE: The application module prefix includes the leading
+ slash, so the default datasource for a module named "foo" is
+ stored under "org.apache.struts.action.DATA_SOURCE/foo".
+
+ type Fully qualified Java class name for this data source object.
+ The class must implement DataSource [javax.sql.DataSource],
+ and the object must be configurable entirely from JavaBean
+ properties.
+-->
+<!ELEMENT data-source (set-property*)>
+<!ATTLIST data-source id ID #IMPLIED>
+<!ATTLIST data-source className %ClassName; #IMPLIED>
+<!ATTLIST data-source key %AttributeName; #IMPLIED>
+<!ATTLIST data-source type %ClassName; #REQUIRED>
+
+
+<!-- The "form-beans" element describes the set of form bean descriptors for this
+ module. The following attributes are defined:
+
+ type Fully qualified Java class to use when instantiating
+ ActionFormBean objects. If specified, the object must be a
+ subclass of the default class type.
+
+ WARNING: For Struts 1.0, this value is ignored. You
+ can set the default implementation class name with the
+ "formBean" initialization parameter to the Struts
+ controller servlet.
+-->
+<!ELEMENT form-beans (form-bean*)>
+<!ATTLIST form-beans id ID #IMPLIED>
+<!ATTLIST form-beans type %ClassName; #IMPLIED>
+
+
+<!-- The "form-bean" element describes an ActionForm subclass
+ [org.apache.struts.action.ActionForm] that can be referenced by an "action"
+ element.
+
+
+The "form-bean" element describes a particular form bean, which is a
+ JavaBean that implements the org.apache.struts.action.ActionForm
+ class. The following attributes are defined:
+
+ className The configuration bean for this form bean object. If
+ specified, the object must be a subclass of the default
+ configuration bean.
+ ["org.apache.struts.config.FormBeanConfig"]
+
+ name The unique identifier for this form bean. Referenced by the
+ <action> element to specify which form bean to use with its
+ request.
+
+ type Fully qualified Java class name of the ActionForm subclass
+ to use with this form bean.
+-->
+<!ELEMENT form-bean (icon?, display-name?, description?, set-property*, form-property*)>
+<!ATTLIST form-bean id ID #IMPLIED>
+<!ATTLIST form-bean className %ClassName; #IMPLIED>
+<!ATTLIST form-bean dynamic %Boolean; #IMPLIED>
+<!ATTLIST form-bean name %BeanName; #REQUIRED>
+<!ATTLIST form-bean type %ClassName; #REQUIRED>
+
+
+<!-- The "form-property" element describes a JavaBean property that can be used to
+ configure an instance of a DynaActionForm or a subclass thereof. This element
+ is only utilized when the "type" attribute of the enclosing "form-bean" element
+ is [org.apache.struts.action.DynaActionForm] or a subclass of DynaActionForm. If
+ a custom DynaActionForm subclass is used, then the "dynamic" attribute of the
+ enclosing <form-bean> element must be set to "true". Since Struts 1.1.
+
+ className The configuration bean for this form property object. If
+ specified, the object must be a subclass of the default
+ configuration bean.
+ ["org.apache.struts.config.FormPropertyConfig"]
+
+ initial String representation of the initial value for this property.
+ If not specified, primitives will be initialized to zero and
+ objects initialized to the zero-argument instantiation of that
+ object class. For example, Strings will be initialized to ""
+
+
+ name The name of the JavaBean property described by this element.
+
+ size The number of array elements to create if the value of the
+ "type" attribute specifies an array, but there is no value
+ specified for the "initial" attribute.
+
+ type Fully qualified Java class name of the field underlying this
+ property, optionally followed by "[]" to indicate that the
+ field is indexed.
+-->
+<!ELEMENT form-property (set-property*)>
+<!ATTLIST form-property className %ClassName; #IMPLIED>
+<!ATTLIST form-property initial CDATA #IMPLIED>
+<!ATTLIST form-property name %PropName; #REQUIRED>
+<!ATTLIST form-property size %Integer; #IMPLIED>
+<!ATTLIST form-property type %ClassName; #REQUIRED>
+
+
+<!-- The "global-exceptions" element describes a set of exceptions that might be
+ thrown by an Action object. The handling of individual exception types is
+ configured through nested exception elements. An <action> element may
+ override a global exception handler by registering a local exception handler
+ for the same exception type. Since Struts 1.1.
+-->
+<!ELEMENT global-exceptions (exception*)>
+<!ATTLIST global-exceptions id ID #IMPLIED>
+
+
+<!-- The "exception" element registers an ExceptionHandler for an exception type.
+ The following attributes are defined:
+
+ bundle Servlet context attribute for the message resources bundle
+ associated with this handler. The default attribute is the
+ value specified by the string constant declared at
+ Globals.MESSAGES_KEY.
+ [org.apache.struts.Globals.MESSAGES_KEY]
+
+ className The configuration bean for this ExceptionHandler object.
+ If specified, className must be a subclass of the default
+ configuration bean
+ ["org.apache.struts.config.ExceptionConfig"]
+
+ handler Fully qualified Java class name for this exception handler.
+ ["org.apache.struts.action.ExceptionHandler"]
+
+ key The key to use with this handler's message resource bundle
+ that will retrieve the error message template for this
+ exception.
+
+ path The module-relative URI to the resource that will complete
+ the request/response if this exception occurs.
+
+ scope The context ("request" or "session") that is used to access
+ the ActionError object [org.apache.struts.action.ActionError]
+ for this exception.
+
+ type Fully qualified Java class name of the exception type to
+ register with this handler.
+-->
+<!ELEMENT exception (icon?, display-name?, description?, set-property*)>
+<!ATTLIST exception id ID #IMPLIED>
+<!ATTLIST exception bundle %AttributeName; #IMPLIED>
+<!ATTLIST exception className %ClassName; #IMPLIED>
+<!ATTLIST exception handler %ClassName; #IMPLIED>
+<!ATTLIST exception key CDATA #REQUIRED>
+<!ATTLIST exception path %RequestPath; #IMPLIED>
+<!ATTLIST exception scope CDATA #IMPLIED>
+<!ATTLIST exception type %ClassName; #REQUIRED>
+
+
+<!-- The "global-forwards" element describes a set of ActionForward objects
+ [org.apache.struts.action.ActionForward] that are available to all Action
+ objects as a return value. The individual ActionForwards are configured
+ through nested <forward> elements. An <action> element may override a global
+ forward by defining a local <forward> of the same name.
+
+ type Fully qualified Java class to use when instantiating
+ ActionForward objects. If specified, the object must be a
+ subclass of the default class type.
+
+ WARNING: For Struts 1.0, this value is ignored. You
+ can set the default implementation class name with the
+ "forward" initialization parameter to the Struts
+ controller servlet.
+-->
+<!ELEMENT global-forwards (forward*)>
+<!ATTLIST global-forwards id ID #IMPLIED>
+<!ATTLIST global-forwards type %ClassName; #IMPLIED>
+
+
+<!-- The "forward" element describes an ActionForward that is to be made
+ available to an Action as a return value. An ActionForward is referenced by
+ a logical name and encapsulates a URI. A "forward" element may be used to
+ describe both global and local ActionForwards. Global forwards are available
+ to all the Action objects in the module. Local forwards can be
+ nested within an <action> element and only available to an Action object
+ when it is invoked through that ActionMapping.
+
+ className Fully qualified Java class name of ActionForward
+ subclass to use for this object.
+ ["org.apache.struts.action.ActionForward"]
+
+ contextRelative Set this to "true" if, in a modular application, the path
+ attribute starts with a slash "/" and should be considered
+ relative to the entire web application rather than the module.
+ Since Struts 1.1.
+ DEPRECATED.
+ [false]
+
+ module The module prefix to use with this path. This value should
+ begin with a slash ("/").
+
+ name The unique identifier for this forward. Referenced by the
+ Action object at runtime to select - by its logical name -
+ the resource that should complete the request/response.
+
+ path The module-relative or context-relative path to the resources
+ that is encapsulated by the logical name of this ActionForward.
+ If the path is to be considered context-relative when used in
+ a modular application, then the contextRelative attribute
+ should be set to "true". This value should begin with a slash
+ ("/") character.
+
+ redirect Set to "true" if a redirect instruction should be issued to
+ the user-agent so that a new request is issued for this
+ forward's resource. If true, RequestDispatcher.Redirect is
+ called. If "false", RequestDispatcher.forward is called instead.
+ [false]
+-->
+<!ELEMENT forward (icon?, display-name?, description?, set-property*)>
+<!ATTLIST forward id ID #IMPLIED>
+<!ATTLIST forward className %ClassName; #IMPLIED>
+<!ATTLIST forward contextRelative %Boolean; #IMPLIED>
+<!ATTLIST forward module %RequestPath; #IMPLIED>
+<!ATTLIST forward name CDATA #REQUIRED>
+<!ATTLIST forward path %RequestPath; #REQUIRED>
+<!ATTLIST forward redirect %Boolean; #IMPLIED>
+
+
+<!-- The "action-mappings" element describes a set of ActionMapping objects
+ [org.apache.struts.action.ActionMapping] that are available to process
+ requests matching the url-pattern our ActionServlet registered with the
+ container. The individual ActionMappings are configured through nested
+ <action> elements. The following attributes are defined:
+
+ type Fully qualified Java class to use when instantiating
+ ActionMapping objects. If specified, the object must be a
+ subclass of the default class type.
+
+ WARNING: For Struts 1.0, this value is ignored. You
+ can set the default implementation class name with the
+ "mapping" initialization parameter to the Struts
+ controller servlet.
+-->
+<!ELEMENT action-mappings (action*)>
+<!ATTLIST action-mappings id ID #IMPLIED>
+<!ATTLIST action-mappings type %ClassName; #IMPLIED>
+
+
+<!-- The "action" element describes an ActionMapping object that is to be used
+ to process a request for a specific module-relative URI. The following
+ attributes are defined:
+
+ attribute Name of the request-scope or session-scope attribute that
+ is used to access our ActionForm bean, if it is other than
+ the bean's specified "name". Optional if "name" is specified,
+ else not valid.
+
+ className The fully qualified Java class name of the ActionMapping
+ subclass to use for this action mapping object. Defaults to
+ the type specified by the enclosing <action-mappings>
+ element or to "org.apache.struts.action.ActionMapping" if
+ not specified.
+ ["org.apache.struts.action.ActionMapping"]
+
+ forward Module-relative path of the servlet or other resource that
+ will process this request, instead of the Action class
+ specified by "type". The path WILL NOT be processed
+ through the "forwardPattern" attribute that is configured
+ on the "controller" element for this module.
+ Exactly one of "forward", "include", or "type" must be
+ specified.
+
+ include Module-relative path of the servlet or other resource that
+ will process this request, instead of the Action class
+ specified by "type". The path WILL NOT be processed
+ through the "forwardPattern" attribute that is configured
+ on the "controller" element for this module.
+ Exactly one of "forward", "include", or "type" must be
+ specified.
+
+ input Module-relative path of the action or other resource to
+ which control should be returned if a validation error is
+ encountered. Valid only when "name" is specified. Required
+ if "name" is specified and the input bean returns
+ validation errors. Optional if "name" is specified and the
+ input bean does not return validation errors.
+
+ name Name of the form bean, if any, that is associated with this
+ action mapping.
+
+ path The module-relative path of the submitted request, starting
+ with a "/" character, and without the filename extension if
+ extension mapping is used.
+
+ NOTE: Do *not* include a period in your path name,
+ because it will look like a filename extension and
+ cause your Action to not be located.
+
+ parameter General-purpose configuration parameter that can be used to
+ pass extra information to the Action object selected by
+ this action mapping.
+
+ prefix Prefix used to match request parameter names to ActionForm
+ property names, if any. Optional if "name" is specified,
+ else not allowed.
+
+ roles Comma-delimited list of security role names that are allowed
+ access to this ActionMapping object. Since Struts 1.1.
+
+ scope The context ("request" or "session") that is used to
+ access our ActionForm bean, if any. Optional if "name" is
+ specified, else not valid. [session]
+
+ suffix Suffix used to match request parameter names to ActionForm
+ bean property names, if any. Optional if "name" is
+ specified, else not valid.
+
+ type Fully qualified Java class name of the Action subclass
+ [org.apache.struts.action.Action] that will process requests
+ for this action mapping. Not valid if either the "forward"
+ or "include" attribute is specified. Exactly one of
+ "forward", "include", or "type" must be specified.
+
+ unknown Set to "true" if this object should be configured as the
+ default action mapping for this module. If a request does not
+ match another object, it will be passed to the ActionMapping
+ object with unknown set to "true". Only one ActionMapping
+ can be marked as "unknown" within a module.
+ [false]
+
+ validate Set to "true" if the validate method of the ActionForm bean
+ should be called prior to calling the Action object for this
+ action mapping, or set to "false" if you do not want the
+ validate method called.
+ [true]
+-->
+<!ELEMENT action (icon?, display-name?, description?, set-property*, exception*, forward*)>
+<!ATTLIST action id ID #IMPLIED>
+<!ATTLIST action attribute %BeanName; #IMPLIED>
+<!ATTLIST action className %ClassName; #IMPLIED>
+<!ATTLIST action forward %RequestPath; #IMPLIED>
+<!ATTLIST action include %RequestPath; #IMPLIED>
+<!ATTLIST action input %RequestPath; #IMPLIED>
+<!ATTLIST action name %BeanName; #IMPLIED>
+<!ATTLIST action parameter CDATA #IMPLIED>
+<!ATTLIST action path %RequestPath; #REQUIRED>
+<!ATTLIST action prefix CDATA #IMPLIED>
+<!ATTLIST action roles CDATA #IMPLIED>
+<!ATTLIST action scope %RequestScope; #IMPLIED>
+<!ATTLIST action suffix CDATA #IMPLIED>
+<!ATTLIST action type %ClassName; #IMPLIED>
+<!ATTLIST action unknown %Boolean; #IMPLIED>
+<!ATTLIST action validate %Boolean; #IMPLIED>
+
+
+<!-- The "controller" element describes the ControllerConfig bean
+ [org.apache.struts.config.ControllerConfig] that encapsulates
+ a module's runtime configuration. The following
+ attributes are defined:
+
+ bufferSize The size of the input buffer used when processing
+ file uploads.
+ [4096]
+
+ className Fully qualified Java class name of the
+ ControllerConfig subclass for this controller object.
+ If specified, the object must be a subclass of the
+ default class.
+ ["org.apache.struts.config.ControllerConfig"]
+
+ contentType Default content type (and optional character encoding) to
+ be set on each response. May be overridden by the Action,
+ JSP, or other resource to which the request is forwarded.
+ ["text/html"]
+
+ forwardPattern Replacement pattern defining how the "path" attribute of a
+ <forward> element is mapped to a context-relative URL when
+ it starts with a slash (and when the contextRelative
+ property is false). This value may consist of any
+ combination of the following:
+ - "$M" - Replaced by the module prefix of this module
+ - "$P" - Replaced by the "path" attribute of the selected
+ "forward" element
+ - "$$" - Causes a literal dollar sign to be rendered
+ - "$x" - (Where "x" is any character not defined above)
+ Silently swallowed, reserved for future use
+ If not specified, the default forwardPattern is "$M$P",
+ which is consistent with the previous behavior of
+ forwards. Since Struts 1.1. ["$M$P"]
+
+ inputForward Set to "true" if you want the "input" attribute of
+ <action> elements to be the name of a local or global
+ ActionForward, which will then be used to calculate the
+ ultimate URL. Set to "false" (the default) to treat the
+ "input" parameter of <action> elements as a
+ module-relative path to the resource
+ to be used as the input form. Since Struts 1.1.
+ [false]
+
+ locale Set to "true" if you want a Locale object stored in the
+ user's session if not already present.
+ [true]
+
+ maxFileSize The maximum size (in bytes) of a file to be accepted as a
+ file upload. Can be expressed as a number followed by a
+ "K", "M", or "G", which are interpreted to mean kilobytes,
+ megabytes, or gigabytes, respectively.
+ ["250M"]
+
+ memFileSize The maximum size (in bytes) of a file whose contents will
+ be retained in memory after uploading. Files larger than
+ this threshold will be written to some alternative storage
+ medium, typically a hard disk. Can be expressed as a number
+ followed by a "K", "M", or "G", which are interpreted to
+ mean kilobytes, megabytes, or gigabytes, respectively.
+ ["256K"]
+
+ multipartClass The fully qualified Java class name of the multipart
+ request handler class to be used with this module.
+ ["org.apache.struts.upload.CommonsMultipartRequestHandler"]
+
+ nocache Set to "true" if you want the controller to add HTTP
+ headers for defeating caching to every response from
+ this module. [false]
+
+ pagePattern Replacement pattern defining how the "page" attribute of
+ custom tags using it is mapped to a context-relative URL
+ of the corresponding resource. This value may consist of
+ any combination of the following:
+ - "$M" - Replaced by the module prefix of this module
+ - "$P" - Replaced by the value of the "page" attribute
+ - "$$" - Causes a literal dollar sign to be rendered
+ - "$x" - (Where "x" is any character not defined above)
+ Silently swallowed, reserved for future use
+ If not specified, the default forwardPattern is
+ "$M$P", which is consistent with previous hard coded
+ behavior of URL evaluation for "page" attributes.
+ ["$M$P"]
+
+ processorClass The fully qualified Java class name of the
+ RequestProcessor subclass to be used with this module.
+ ["org.apache.struts.action.RequestProcessor"]
+
+ tempDir Temporary working directory to use when processing
+ file uploads.
+ [{Directory provided by servlet container}]
+-->
+<!ELEMENT controller (set-property*)>
+<!ATTLIST controller id ID #IMPLIED>
+<!ATTLIST controller bufferSize %Integer; #IMPLIED>
+<!ATTLIST controller className %ClassName; #IMPLIED>
+<!ATTLIST controller contentType CDATA #IMPLIED>
+<!ATTLIST controller forwardPattern CDATA #IMPLIED>
+<!ATTLIST controller inputForward %Boolean; #IMPLIED>
+<!ATTLIST controller locale %Boolean; #IMPLIED>
+<!ATTLIST controller maxFileSize CDATA #IMPLIED>
+<!ATTLIST controller memFileSize CDATA #IMPLIED>
+<!ATTLIST controller multipartClass %ClassName; #IMPLIED>
+<!ATTLIST controller nocache %Boolean; #IMPLIED>
+<!ATTLIST controller pagePattern CDATA #IMPLIED>
+<!ATTLIST controller processorClass %ClassName; #IMPLIED>
+<!ATTLIST controller tempDir CDATA #IMPLIED>
+
+
+<!-- The "message-resources" element describes a MessageResources object with
+ message templates for this module. The following attributes are defined:
+
+ className The configuration bean for this message resources object.
+ If specified, the object must be a subclass of the default
+ configuration bean.
+ ["org.apache.struts.config.MessageResourcesConfig"]
+
+ factory Fully qualified Java class name of the
+ MessageResourcesFactory subclass to use for this message
+ resources object.
+ ["org.apache.struts.util.PropertyMessageResourcesFactory"]
+
+ key Servlet context attribute under which this message
+ resources bundle will be stored. The default attribute is
+ the value specified by the string constant at
+ [Globals.MESSAGES_KEY]. The module prefix (if
+ any) is appended to the key (${key}${prefix}).
+ [org.apache.struts.Globals.MESSAGES_KEY]
+
+ NOTE: The module prefix includes the leading
+ slash, so the default message resource bundle for a module
+ named "foo" is stored under
+ "org.apache.struts.action.MESSAGE/foo".
+
+ null Set to "true" if you want our message resources to return a
+ null string for unknown message keys, or "false" to return a
+ message with the bad key value.
+
+ parameter Configuration parameter to be passed to the createResources
+ method of our factory object.
+-->
+<!ELEMENT message-resources (set-property*)>
+<!ATTLIST message-resources id ID #IMPLIED>
+<!ATTLIST message-resources className %ClassName; #IMPLIED>
+<!ATTLIST message-resources factory %ClassName; #IMPLIED>
+<!ATTLIST message-resources key %AttributeName; #IMPLIED>
+<!ATTLIST message-resources null %Boolean; #IMPLIED>
+<!ATTLIST message-resources parameter CDATA #REQUIRED>
+
+
+<!-- The "plug-in" element specifies the fully qualified class name of a
+ general-purpose application plug-in module that receives notification of
+ application startup and shutdown events. An instance of the specified class
+ is created for each element, and can be configured with nested <set-property>
+ elements. The following attributes are supported:
+
+ className Fully qualified Java class name of the plug-in class; must
+ implement [org.apache.struts.action.PlugIn].
+-->
+<!ELEMENT plug-in (set-property*)>
+<!ATTLIST plug-in id ID #IMPLIED>
+<!ATTLIST plug-in className %ClassName; #REQUIRED>
+
+
+<!-- ========== Subordinate Elements ====================================== -->
+
+
+<!-- The "description" element contains descriptive (paragraph length) text
+ about the surrounding element, suitable for use in GUI tools.
+-->
+<!ELEMENT description (#PCDATA)>
+<!ATTLIST description id ID #IMPLIED>
+
+
+<!-- The "display-name" element contains a short (one line) description of
+ the surrounding element, suitable for use in GUI tools.
+-->
+<!ELEMENT display-name (#PCDATA)>
+<!ATTLIST display-name id ID #IMPLIED>
+
+
+<!-- The "icon" element contains a small-icon and large-icon element which
+ specify the location, relative to the Struts configuration file, for small
+ and large images used to represent the surrounding element in GUI tools.
+-->
+<!ELEMENT icon (small-icon?, large-icon?)>
+<!ATTLIST icon id ID #IMPLIED>
+
+
+<!-- The "large-icon" element specifies the location, relative to the Struts
+ configuration file, of a resource containing a large (32x32 pixel)
+ icon image.
+-->
+<!ELEMENT large-icon (%Location;)>
+<!ATTLIST large-icon id ID #IMPLIED>
+
+
+<!-- The "set-property" element specifies the method name and initial value of
+ an additional JavaBean configuration property. When the object representing
+ the surrounding element is instantiated, the accessor for the indicated
+ property is called and passed the indicated value. The "set-property"
+ element is especially useful when a custom subclass is used with
+ <data-source>, <forward>, <action>, or <plug-in> elements. The subclass
+ can be passed whatever other properties may be required to configure the
+ object without changing how the struts-config is parsed.
+
+ property Name of the JavaBeans property whose setter method
+ will be called.
+
+ value String representation of the value to which this
+ property will be set, after suitable type conversion
+-->
+<!ELEMENT set-property EMPTY>
+<!ATTLIST set-property id ID #IMPLIED>
+<!ATTLIST set-property property %PropName; #REQUIRED>
+<!ATTLIST set-property value CDATA #REQUIRED>
+
+
+<!-- The "small-icon" element specifies the location, relative to the Struts
+ configuration file, of a resource containing a small (16x16 pixel)
+ icon image.
+-->
+<!ELEMENT small-icon (%Location;)>
+<!ATTLIST small-icon id ID #IMPLIED>
+
Added: trunk/struts/plugins/org.jboss.tools.struts/dtds/tiles_config_1_1.dtd
===================================================================
--- trunk/struts/plugins/org.jboss.tools.struts/dtds/tiles_config_1_1.dtd (rev 0)
+++ trunk/struts/plugins/org.jboss.tools.struts/dtds/tiles_config_1_1.dtd 2007-07-26 09:10:34 UTC (rev 2667)
@@ -0,0 +1,280 @@
+<!--
+ DTD for the Tile Definition File, Version 1.1
+
+ To support validation of your configuration file, include the following
+ DOCTYPE element at the beginning (after the "xml" declaration):
+
+ <!DOCTYPE tiles-definitions PUBLIC
+ "-//Apache Software Foundation//DTD Tiles Configuration 1.1//EN"
+ "http://jakarta.apache.org/struts/dtds/tiles-config_1_1.dtd">
+
+ $Id: tiles_config_1_1.dtd,v 1.1 2004/11/11 12:33:07 glory Exp $
+-->
+
+
+<!-- ========== Defined Types ============================================= -->
+
+
+<!-- A "Boolean" is the string representation of a boolean (true or false)
+ variable.
+-->
+<!ENTITY % Boolean "(true|false)">
+
+
+<!-- A "ContentType" is the content type of an attribute passed to a tile
+ component.
+-->
+<!ENTITY % ContentType "(string|page|template|definition)">
+
+<!-- A "ClassName" is the fully qualified name of a Java class that is
+ instantiated to provide the functionality of the enclosing element.
+-->
+<!ENTITY % ClassName "CDATA">
+
+<!-- A "RequestPath" is an application-relative URI path, beginning with a
+ slash, that identifies a mapped resource (such as a JSP page or a servlet)
+ within this web application.
+-->
+<!ENTITY % RequestPath "CDATA">
+
+<!-- A "DefinitionName" is the unique identifier of a definition. This identifier
+ is a logical name used to reference the definition.
+-->
+<!ENTITY % DefinitionName "CDATA">
+
+<!-- A "BeanName" is the identifier of a JavaBean, such as a form bean,
+ and also serves as the name of the corresponding scripting variable
+ and the name of the JSP attribute under which the bean is accessed.
+ Therefore, it must conform to the rules for a Java identifier.
+-->
+<!ENTITY % BeanName "CDATA">
+
+<!-- A "PropName" is the name of a JavaBeans property, and must begin with
+ a lower case letter and contain only characters that are legal in a
+ Java identifier.
+-->
+<!ENTITY % PropName "CDATA">
+
+<!-- A "Location" is a relative path, delimited by "/" characters, that
+ defines the location of a resource relative to the location of the
+ configuration file itself.
+-->
+<!ENTITY % Location "#PCDATA">
+
+
+
+<!-- ========== Top Level Elements ======================================== -->
+
+
+ <!-- deprecated: use tiles-definitions instead.-->
+<!ELEMENT component-definitions (definition*)>
+
+<!-- The "tiles-definitions" element is the root of the configuration file
+ hierarchy, and contains nested elements for all of the other
+ configuration settings.
+-->
+<!ELEMENT tiles-definitions (definition*)>
+
+<!-- The "definition" element describes definition that can be inserted in a jsp
+ page. This definition is identified by its logical name. A definition allows
+ to define all the attributes that can be set in <insert> tag from a jsp page.
+
+ name The unique identifier for this definition.
+
+ path The context-relative path to the resource used as tiles to
+ insert. This tiles will be inserted and a tiles context
+ containing appropriate attributes will be available.
+
+ page Same as path.
+ template Same as path. For compatibility with the template taglib.
+
+ extends Name of a definition that is used as ancestor of this definition.
+ All attributes from the ancestor are available to the new
+ definition. Any attribute inherited from the ancestor can
+ be overloaded by providing a new value.
+
+ role security role name that is allowed access to this definition
+ object. The definition is inserted only if the role name is
+ allowed.
+
+ controllerClass The fully qualified Java class name of the controller
+ subclass to call immediately before the tiles is inserted.
+ Only one of controllerClass or controllerUrl should be
+ specified.
+
+ controllerUrl The context-relative path to the resource used as controller
+ called immediately before the tiles is inserted.
+ Only one of controllerClass or controllerUrl should be
+ specified.
+-->
+<!ELEMENT definition (icon?, display-name?, description?, put*, putList*)>
+<!ATTLIST definition id ID #IMPLIED>
+<!ATTLIST definition name %DefinitionName; #REQUIRED>
+<!ATTLIST definition page %RequestPath; #IMPLIED>
+<!ATTLIST definition path %RequestPath; #IMPLIED>
+<!ATTLIST definition extends %DefinitionName; #IMPLIED>
+<!ATTLIST definition role CDATA #IMPLIED>
+<!ATTLIST definition template %RequestPath; #IMPLIED>
+<!ATTLIST definition controllerClass %ClassName; #IMPLIED>
+<!ATTLIST definition controllerUrl %RequestPath; #IMPLIED>
+
+
+<!-- The "put" element describes an attribute of a definition. It allows to
+ specify the tiles attribute name and its value. The tiles value can be
+ specified as an xml attribute, or in the body of the <put> tag.
+
+ name The unique identifier for this tiles attribute.
+
+ value The value associated to this tiles attribute. The value should
+ be specified with this tag attribute, or in the body of the tag.
+
+ type The type of the value. Can be: string, page, template or definition.
+ By default, no type is associated to a value. If a type is
+ associated, it will be used as a hint to process the value
+ when the attribute will be used in the inserted tiles.
+
+ content Same as value. For compatibility with the template taglib.
+
+ direct Same as type="string". For compatibility with the template
+ taglib.
+-->
+<!ELEMENT put (#PCDATA)>
+<!ATTLIST put id ID #IMPLIED>
+<!ATTLIST put name CDATA #REQUIRED>
+<!ATTLIST put value CDATA #IMPLIED>
+<!ATTLIST put type %ContentType; #IMPLIED>
+<!ATTLIST put content CDATA #IMPLIED>
+<!ATTLIST put direct %Boolean; #IMPLIED>
+
+
+<!-- The "putList" element describes a list attribute of a definition. It allows to
+ specify an attribute that is a java List containing any kind of values. In
+ the config file, the list elements are specified by nested <add>, <item> or
+ <putList>.
+
+ name The unique identifier for this tiles attribute.
+-->
+<!ELEMENT putList ( (add* | item* | bean* | putList*)*) >
+<!ATTLIST putList id ID #IMPLIED>
+<!ATTLIST putList name CDATA #REQUIRED>
+
+<!-- ========== Subordinate Elements ====================================== -->
+
+<!-- The "add" element describes an element of a list. It is similar to the
+ <put> element.
+
+ value The value associated to this tiles attribute. The value should
+ be specified with this tag attribute, or in the body of the tag.
+
+ type The type of the value. Can be: string, page, template or definition.
+ By default, no type is associated to a value. If a type is
+ associated, it will be used as a hint to process the value
+ when the attribute will be used in the inserted tiles.
+
+ content Same as value. For compatibility with the template taglib.
+
+ direct Same as type="string". For compatibility with the template
+ taglib.
+-->
+<!ELEMENT add (#PCDATA)>
+<!ATTLIST add id ID #IMPLIED>
+<!ATTLIST add value CDATA #IMPLIED>
+<!ATTLIST add type %ContentType; #IMPLIED>
+<!ATTLIST add content CDATA #IMPLIED>
+<!ATTLIST add direct %Boolean; #IMPLIED>
+
+
+<!-- The "bean" element describes an element of a list. It create a bean of the
+ specified java classtype. This bean is initialized with appropriate nested
+ <set-property>.
+
+ classtype The fully qualified classname for this bean.
+-->
+<!ELEMENT bean (set-property*)>
+<!ATTLIST bean id ID #IMPLIED>
+<!ATTLIST bean classtype %ClassName; #REQUIRED>
+
+<!-- The "set-property" element specifies the method name and initial value of
+ a bean property. When the object representing
+ the surrounding element is instantiated, the accessor for the indicated
+ property is called and passed the indicated value.
+
+ property Name of the JavaBeans property whose setter method
+ will be called.
+
+ value String representation of the value to which this
+ property will be set, after suitable type conversion
+-->
+<!ELEMENT set-property EMPTY>
+<!ATTLIST set-property id ID #IMPLIED>
+<!ATTLIST set-property property %PropName; #REQUIRED>
+<!ATTLIST set-property value CDATA #REQUIRED>
+
+
+<!-- The "item" element describes an element of a list. It create a bean added as
+ element to the list. Each bean can contains different properties: value, link,
+ icon, tooltip. This properties are to be interpreted by the jsp page using
+ them.
+ By default the bean is of type
+ "org.apache.struts.tiles.beans.SimpleMenuItem". This bean is useful to
+ create list of beans used as menu items.
+
+ value The bean 'value' property.
+
+ link The bean 'link' property.
+
+ icon The bean 'icon' property.
+
+ tooltip The bean 'tooltip' property.
+
+ classtype The fully qualified classname for this bean.
+ If specified, the classname must be a subclass of the interface
+ "org.apache.struts.tiles.beans.MenuItem".
+-->
+<!ELEMENT item (#PCDATA)>
+<!ATTLIST item id ID #IMPLIED>
+<!ATTLIST item value CDATA #REQUIRED>
+<!ATTLIST item link CDATA #REQUIRED>
+<!ATTLIST item classtype %ClassName; #IMPLIED>
+<!ATTLIST item icon CDATA #IMPLIED>
+<!ATTLIST item tooltip CDATA #IMPLIED>
+
+<!-- ========== Info Elements ====================================== -->
+
+<!-- The "description" element contains descriptive (paragraph length) text
+ about the surrounding element, suitable for use in GUI tools.
+-->
+<!ELEMENT description (#PCDATA)>
+<!ATTLIST description id ID #IMPLIED>
+
+
+<!-- The "display-name" element contains a short (one line) description of
+ the surrounding element, suitable for use in GUI tools.
+-->
+<!ELEMENT display-name (#PCDATA)>
+<!ATTLIST display-name id ID #IMPLIED>
+
+
+<!-- The "icon" element contains a small-icon and large-icon element which
+ specify the location, relative to the Struts configuration file, for small
+ and large images used to represent the surrounding element in GUI tools.
+-->
+<!ELEMENT icon (small-icon?, large-icon?)>
+<!ATTLIST icon id ID #IMPLIED>
+
+
+<!-- The "large-icon" element specifies the location, relative to the Struts
+ configuration file, of a resource containing a large (32x32 pixel)
+ icon image.
+-->
+<!ELEMENT large-icon (%Location;)>
+<!ATTLIST large-icon id ID #IMPLIED>
+
+
+<!-- The "small-icon" element specifies the location, relative to the Struts
+ configuration file, of a resource containing a small (16x16 pixel)
+ icon image.
+-->
+<!ELEMENT small-icon (%Location;)>
+<!ATTLIST small-icon id ID #IMPLIED>
+
Added: trunk/struts/plugins/org.jboss.tools.struts/dtds/validator_1_0.dtd
===================================================================
--- trunk/struts/plugins/org.jboss.tools.struts/dtds/validator_1_0.dtd (rev 0)
+++ trunk/struts/plugins/org.jboss.tools.struts/dtds/validator_1_0.dtd 2007-07-26 09:10:34 UTC (rev 2667)
@@ -0,0 +1,247 @@
+<!--
+ DTD for the Validator Rules Configuration File, Version 1.0
+
+ To allow for XML validation of your rules configuration
+ file, include the following DOCTYPE element at the beginning (after
+ the "xml" declaration):
+
+ <!DOCTYPE form-validation PUBLIC
+ "-//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.0//EN"
+ "http://jakarta.apache.org/commons/dtds/validator_1_0.dtd">
+
+ $Id: validator_1_0.dtd,v 1.1.1.1 2004/10/06 17:32:28 sim Exp $
+-->
+
+
+<!-- =================================================== Top Level Elements -->
+
+
+<!--
+ The "form-validation" element is the root of the configuration file
+ hierarchy, and contains nested elements for all of the other
+ configuration settings.
+-->
+<!ELEMENT form-validation (global*, formset*)>
+
+
+<!--
+ The elements defined here are all global and must be nested within a
+ "global" element.
+-->
+<!ELEMENT global (validator*, constant*)>
+
+
+<!--
+ The "validator" element defines what validators objects can be used with
+ the fields referenced by the formset elements. The validator element can
+ accept 4 properties: name, classname, method, methodparams, msg, depends,
+ and jsFunctionName.
+-->
+<!ELEMENT validator (javascript?)>
+<!ATTLIST validator name CDATA #REQUIRED
+ classname CDATA #REQUIRED
+ method CDATA #REQUIRED
+ methodParams CDATA #REQUIRED
+ msg CDATA #REQUIRED
+ depends CDATA #IMPLIED
+ jsFunctionName CDATA #IMPLIED >
+
+
+<!--
+ The "javascript" element defines a JavaScript that can be used to perform
+ client-side validators.
+-->
+<!ELEMENT javascript (#PCDATA)>
+
+
+<!--
+ The "constant" element defines a static value that can be used as
+ replacement parameters within "field" elements. The "constant-name" and
+ "constant-value" elements define the constant's reference id and replacement
+ value.
+-->
+<!ELEMENT constant (constant-name, constant-value)>
+<!ELEMENT constant-name (#PCDATA)>
+<!ELEMENT constant-value (#PCDATA)>
+
+
+<!--
+ The "formset" element defines a set of forms for a locale. Formsets for
+ specific locales can override only those fields that change. The
+ localization is properly scoped, so that a formset can override just the
+ language, or just the country, or both.
+-->
+<!ELEMENT formset (constant*, form*)>
+<!ATTLIST formset language CDATA #IMPLIED
+ country CDATA #IMPLIED >
+
+
+<!--
+ The "form" element defines a set of fields to be validated. The name
+ corresponds to the identifer the application assigns to the form.
+-->
+<!ELEMENT form (field* )>
+<!ATTLIST form name CDATA #REQUIRED>
+
+
+<!--
+ The "field" element defines the properties to be validated. In a
+ web application, a field would also correspond to a control on
+ a HTML form. To validate the properties, the validator works through
+ a JavaBean representation. The field element can accept up to 4
+ attributes:
+
+ property The property on the JavaBean corresponding to this
+ field element.
+
+ depends The comma-delimited list of validators to apply against
+ this field. For the field to succeed, all the
+ validators must succeed.
+
+ page The JavaBean corresponding to this form may include
+ a page property. Only fields with a "page" attribute
+ value that is equal to or less than the page property
+ on the form JavaBean are processed. This is useful when
+ using a "wizard" approach to completing a large form,
+ to ensure that a page is not skipped.
+ [0]
+
+ indexedListProperty
+ The "indexedListProperty" is the method name that will
+ return an array or a Collection used to retrieve the
+ list and then loop through the list performing the
+ validations for this field.
+
+-->
+<!ELEMENT field (msg|arg0|arg1|arg2|arg3|var)*>
+<!ATTLIST field property CDATA #REQUIRED
+ depends CDATA #IMPLIED
+ page CDATA #IMPLIED
+ indexedListProperty CDATA #IMPLIED >
+
+
+<!--
+ The "msg" element defines a custom message key to use when one of the
+ validators for this field fails. Each validator has a default message
+ property that is used when a corresonding field msg is not specified.
+ Each validator applied to a field may have its own msg element.
+ The msg element accepts up to three attributes.
+
+ name The name of the validator corresponding to this msg.
+
+ key The key that will return the message template from a
+ resource bundle.
+
+ resource If set to "false", the key is taken to be a literal
+ value rather than a bundle key.
+ [true]
+-->
+<!ELEMENT msg EMPTY>
+<!ATTLIST msg name CDATA #IMPLIED
+ key CDATA #IMPLIED
+ resource CDATA #IMPLIED >
+
+
+<!--
+ The "arg0" element defines the first replacement value to use with the
+ message template for this validator or this field.
+ The arg0 element accepts up to three attributes.
+
+ name The name of the validator corresponding to this msg.
+
+ key The key that will return the message template from a
+ resource bundle.
+
+ resource If set to "false", the key is taken to be a literal
+ value rather than a bundle key.
+ [true]
+-->
+<!ELEMENT arg0 EMPTY>
+<!ATTLIST arg0 name CDATA #IMPLIED
+ key CDATA #IMPLIED
+ resource CDATA #IMPLIED >
+
+
+<!--
+ The "arg1" element defines the second replacement value to use with the
+ message template for this validator or this field.
+ The arg1 element accepts up to three attributes.
+
+ name The name of the validator corresponding to this msg.
+
+ key The key that will return the message template from a
+ resource bundle.
+
+ resource If set to "false", the key is taken to be a literal
+ value rather than a bundle key.
+ [true]
+-->
+<!ELEMENT arg1 EMPTY>
+<!ATTLIST arg1 name CDATA #IMPLIED
+ key CDATA #IMPLIED
+ resource CDATA #IMPLIED >
+
+
+<!--
+ The "arg2" element defines the third replacement value to use with the
+ message template for this validator or this field.
+ The arg2 element accepts up to three attributes.
+
+ name The name of the validator corresponding to this msg.
+
+ key The key that will return the message template from a
+ resource bundle.
+
+ resource If set to "false", the key is taken to be a literal
+ value rather than a bundle key.
+ [true]
+-->
+<!ELEMENT arg2 EMPTY>
+<!ATTLIST arg2 name CDATA #IMPLIED
+ key CDATA #IMPLIED
+ resource CDATA #IMPLIED >
+
+<!--
+ The "arg3" element defines the fourth replacement value to use with the
+ message template for this validator or this field.
+ The arg0 element accepts up to three attributes.
+
+ name The name of the validator corresponding to this msg.
+
+ key The key that will return the message template from a
+ resource bundle.
+
+ resource If set to "false", the key is taken to be a literal
+ value rather than a bundle key.
+ [true]
+-->
+<!ELEMENT arg3 EMPTY>
+<!ATTLIST arg3 name CDATA #IMPLIED
+ key CDATA #IMPLIED
+ resource CDATA #IMPLIED >
+
+
+<!--
+ The "var" element can set parameters that a field may need to pass to
+ one of its validators, such as the minimum and maximum values in a
+ range validation. These parameters may also be referenced by one of the
+ arg? elements using a shell syntax: ${var:var-name}.
+-->
+<!ELEMENT var (var-name, var-value)>
+
+
+
+<!--
+ The name of the var parameter to provide to a field's validators.
+-->
+<!ELEMENT var-name (#PCDATA)>
+
+
+
+<!--
+ The value of the var parameter to provide to a field's validators.
+-->
+<!ELEMENT var-value (#PCDATA)>
+
+<!-- eof -->
+
Modified: trunk/struts/plugins/org.jboss.tools.struts/plugin.xml
===================================================================
--- trunk/struts/plugins/org.jboss.tools.struts/plugin.xml 2007-07-26 08:49:02 UTC (rev 2666)
+++ trunk/struts/plugins/org.jboss.tools.struts/plugin.xml 2007-07-26 09:10:34 UTC (rev 2667)
@@ -39,6 +39,21 @@
<extension point="org.eclipse.wst.xml.core.catalogContributions">
<catalogContribution id="default">
+ <public
+ publicId="-//Apache Software Foundation//DTD Struts Configuration 1.0//EN"
+ uri="dtds/struts-config_1_0.dtd"/>
+ <public
+ publicId="-//Apache Software Foundation//DTD Struts Configuration 1.1//EN"
+ uri="dtds/struts-config_1_1.dtd"/>
+ <public
+ publicId="-//Apache Software Foundation//DTD Struts Configuration 1.2//EN"
+ uri="dtds/struts-config_1_2.dtd"/>
+ <public
+ publicId="-//Apache Software Foundation//DTD Tiles Configuration 1.1//EN"
+ uri="dtds/tiles-config_1_1.dtd"/>
+ <public
+ publicId="-//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.0//EN"
+ uri="dtds/validator_1_0.dtd"/>
</catalogContribution>
</extension>
16 years, 11 months