JBoss Tools SVN: r5570 - trunk/tests/features/org.jboss.tools.test.feature.
by jbosstools-commits@lists.jboss.org
Author: dgolovin
Date: 2008-01-09 16:32:32 -0500 (Wed, 09 Jan 2008)
New Revision: 5570
Modified:
trunk/tests/features/org.jboss.tools.test.feature/feature.xml
Log:
New test plugins have been added to the test beature
Modified: trunk/tests/features/org.jboss.tools.test.feature/feature.xml
===================================================================
--- trunk/tests/features/org.jboss.tools.test.feature/feature.xml 2008-01-09 21:00:20 UTC (rev 5569)
+++ trunk/tests/features/org.jboss.tools.test.feature/feature.xml 2008-01-09 21:32:32 UTC (rev 5570)
@@ -308,4 +308,31 @@
install-size="0"
version="0.0.0"/>
+ <plugin
+ id="org.jboss.tools.jsf.vpe.ui.test"
+ download-size="0"
+ install-size="0"
+ version="0.0.0"
+ unpack="false"/>
+
+ <plugin
+ id="org.jboss.tools.jsf.vpe.facelets.test"
+ download-size="0"
+ install-size="0"
+ version="0.0.0"
+ unpack="false"/>
+
+ <plugin
+ id="org.jboss.tools.jsf.vpe.jsf.test"
+ download-size="0"
+ install-size="0"
+ version="0.0.0"/>
+
+ <plugin
+ id="org.jboss.tools.jsf.vpe.seam.test"
+ download-size="0"
+ install-size="0"
+ version="0.0.0"
+ unpack="false"/>
+
</feature>
16 years, 5 months
JBoss Tools SVN: r5569 - in trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test: META-INF and 12 other directories.
by jbosstools-commits@lists.jboss.org
Author: dsakovich
Date: 2008-01-09 16:00:20 -0500 (Wed, 09 Jan 2008)
New Revision: 5569
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/
trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/.classpath
trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/.project
trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/.settings/
trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/.settings/org.eclipse.jdt.core.prefs
trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/.settings/org.eclipse.jst.common.project.facet.core.prefs
trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/.settings/org.eclipse.wst.common.component
trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/.settings/org.eclipse.wst.common.project.facet.core.xml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/.settings/org.jboss.tools.jst.web.xml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/JavaSource/
trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/JavaSource/resources.properties
trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/
trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/META-INF/
trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/META-INF/MANIFEST.MF
trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/WEB-INF/
trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/WEB-INF/.faces-config.xml.jsfdia
trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/WEB-INF/classes/
trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/WEB-INF/classes/resources.properties
trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/WEB-INF/faces-config.xml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/WEB-INF/lib/
trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/WEB-INF/lib/common-annotations.jar
trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/WEB-INF/lib/commons-beanutils.jar
trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/WEB-INF/lib/commons-collections.jar
trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/WEB-INF/lib/commons-digester.jar
trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/WEB-INF/lib/commons-logging.jar
trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/WEB-INF/lib/el-api.jar
trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/WEB-INF/lib/el-ri.jar
trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/WEB-INF/lib/jsf-api.jar
trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/WEB-INF/lib/jsf-facelets.jar
trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/WEB-INF/lib/jsf-impl.jar
trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/WEB-INF/lib/jsf-tlds.jar
trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/WEB-INF/lib/jstl.jar
trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/WEB-INF/lib/standard.jar
trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/WEB-INF/web.xml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/index.jsp
trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/pages/
trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/pages/components/
trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/pages/components/component.xhtml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/pages/components/composition.xhtml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/pages/components/debug.xhtml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/pages/components/decorate.xhtml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/pages/components/define.xhtml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/pages/components/fragment.xhtml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/pages/components/include.xhtml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/pages/components/insert.xhtml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/pages/components/param.xhtml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/pages/components/remove.xhtml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/pages/components/repeat.xhtml
Removed:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletstest.jar
trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/src/org/jboss/tools/jsf/vpe/facelets/test/ImportFaceletsComponents.java
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/META-INF/MANIFEST.MF
trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/build.properties
trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/src/org/jboss/tools/jsf/vpe/facelets/test/FaceletsAllTests.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/src/org/jboss/tools/jsf/vpe/facelets/test/FaceletsComponentTest.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-1504
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/META-INF/MANIFEST.MF
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/META-INF/MANIFEST.MF 2008-01-09 19:05:11 UTC (rev 5568)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/META-INF/MANIFEST.MF 2008-01-09 21:00:20 UTC (rev 5569)
@@ -10,5 +10,9 @@
org.junit,
org.eclipse.core.resources,
org.eclipse.ui.ide,
- org.jboss.tools.common
+ org.jboss.tools.common,
+ org.jboss.tools.jsf.vpe.ui.test,
+ org.jboss.tools.jst.jsp,
+ org.jboss.tools.vpe.xulrunner,
+ org.mozilla.xpcom
Eclipse-LazyStart: true
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/build.properties
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/build.properties 2008-01-09 19:05:11 UTC (rev 5568)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/build.properties 2008-01-09 21:00:20 UTC (rev 5569)
@@ -1,4 +1,9 @@
-source.. = src/
-output.. = bin/
+source.facelets-tests.jar = src/
+output.facelets-tests.jar = bin/
bin.includes = META-INF/,\
- .
+ facelets-tests.jar,\
+ resources/
+src.includes = META-INF/,\
+ build.properties,\
+ resources/,\
+ src/
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/.classpath
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/.classpath (rev 0)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/.classpath 2008-01-09 21:00:20 UTC (rev 5569)
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="JavaSource"/>
+ <classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/>
+ <classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.module.container"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+ <classpathentry kind="output" path="WebContent/WEB-INF/classes"/>
+</classpath>
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/.project
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/.project (rev 0)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/.project 2008-01-09 21:00:20 UTC (rev 5569)
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>faceletsTest</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.wst.common.project.facet.core.builder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.wst.validation.validationbuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.jboss.tools.common.verification.verifybuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ <nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
+ <nature>org.jboss.tools.jsf.jsfnature</nature>
+ <nature>org.eclipse.wst.common.project.facet.core.nature</nature>
+ </natures>
+</projectDescription>
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/.settings/org.eclipse.jdt.core.prefs
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/.settings/org.eclipse.jdt.core.prefs (rev 0)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/.settings/org.eclipse.jdt.core.prefs 2008-01-09 21:00:20 UTC (rev 5569)
@@ -0,0 +1,7 @@
+#Fri Jan 04 16:25:56 GMT+02:00 2008
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
+org.eclipse.jdt.core.compiler.compliance=1.5
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.source=1.5
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/.settings/org.eclipse.jst.common.project.facet.core.prefs
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/.settings/org.eclipse.jst.common.project.facet.core.prefs (rev 0)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/.settings/org.eclipse.jst.common.project.facet.core.prefs 2008-01-09 21:00:20 UTC (rev 5569)
@@ -0,0 +1,4 @@
+#Fri Jan 04 16:25:56 GMT+02:00 2008
+classpath.helper/org.eclipse.jdt.launching.JRE_CONTAINER/owners=jst.java\:5.0
+classpath.helper/org.eclipse.jst.server.core.container\:\:org.eclipse.jst.server.tomcat.runtimeTarget\:\:Apache\ Tomcat\ v6.0/owners=jst.web\:2.4
+eclipse.preferences.version=1
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/.settings/org.eclipse.wst.common.component
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/.settings/org.eclipse.wst.common.component (rev 0)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/.settings/org.eclipse.wst.common.component 2008-01-09 21:00:20 UTC (rev 5569)
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project-modules id="moduleCoreId" project-version="1.5.0">
+<wb-module deploy-name="faceletsTest">
+<wb-resource deploy-path="/" source-path="/WebContent"/>
+<wb-resource deploy-path="/WEB-INF/classes" source-path="/JavaSource"/>
+<property name="context-root" value="faceletsTest"/>
+<property name="java-output-path" value="build/classes"/>
+</wb-module>
+</project-modules>
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/.settings/org.eclipse.wst.common.project.facet.core.xml
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/.settings/org.eclipse.wst.common.project.facet.core.xml (rev 0)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/.settings/org.eclipse.wst.common.project.facet.core.xml 2008-01-09 21:00:20 UTC (rev 5569)
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<faceted-project>
+ <runtime name="Apache Tomcat v6.0"/>
+ <fixed facet="jst.java"/>
+ <fixed facet="jst.web"/>
+ <installed facet="jst.java" version="5.0"/>
+ <installed facet="jst.web" version="2.4"/>
+</faceted-project>
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/.settings/org.jboss.tools.jst.web.xml
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/.settings/org.jboss.tools.jst.web.xml (rev 0)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/.settings/org.jboss.tools.jst.web.xml 2008-01-09 21:00:20 UTC (rev 5569)
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<file-systems VERSION="2.0.0" application-name="faceletsTest"
+ model-entity="FileSystems" workspace-home="./WebContent/WEB-INF">
+ <file-system NAME="WEB-INF" location="%workspace.home%" model-entity="FileSystemFolder"/>
+ <file-system NAME="WEB-ROOT" info="Content-Type=Web"
+ location="%workspace.home%/.." model-entity="FileSystemFolder"/>
+ <file-system NAME="src" location="%workspace.home%/../../JavaSource" model-entity="FileSystemFolder"/>
+ <file-system NAME="lib" location="%workspace.home%/lib" model-entity="FileSystemFolder"/>
+ <file-system NAME="classes" location="%workspace.home%/classes" model-entity="FileSystemFolder"/>
+ <file-system NAME="lib-commons-beanutils.jar" info="hidden=yes"
+ location="%workspace.home%/lib/commons-beanutils.jar" model-entity="FileSystemJar"/>
+ <file-system NAME="lib-commons-collections.jar" info="hidden=yes"
+ location="%workspace.home%/lib/commons-collections.jar" model-entity="FileSystemJar"/>
+ <file-system NAME="lib-commons-digester.jar" info="hidden=yes"
+ location="%workspace.home%/lib/commons-digester.jar" model-entity="FileSystemJar"/>
+ <file-system NAME="lib-commons-logging.jar" info="hidden=yes"
+ location="%workspace.home%/lib/commons-logging.jar" model-entity="FileSystemJar"/>
+ <file-system NAME="lib-jsf-api.jar" info="hidden=yes"
+ location="%workspace.home%/lib/jsf-api.jar" model-entity="FileSystemJar"/>
+ <file-system NAME="lib-jsf-impl.jar" info="hidden=yes"
+ location="%workspace.home%/lib/jsf-impl.jar" model-entity="FileSystemJar"/>
+ <file-system NAME="lib-jstl.jar" info="hidden=yes"
+ location="%workspace.home%/lib/jstl.jar" model-entity="FileSystemJar"/>
+ <file-system NAME="lib-standard.jar" info="hidden=yes"
+ location="%workspace.home%/lib/standard.jar" model-entity="FileSystemJar"/>
+ <file-system NAME="lib-jsf-facelets.jar"
+ location="%workspace.home%/lib/jsf-facelets.jar" model-entity="FileSystemJar"/>
+ <file-system NAME="lib-el-api.jar"
+ location="%workspace.home%/lib/el-api.jar" model-entity="FileSystemJar"/>
+ <file-system NAME="lib-el-ri.jar"
+ location="%workspace.home%/lib/el-ri.jar" model-entity="FileSystemJar"/>
+ <file-system NAME="flet001" location="%eclipse.project%" model-entity="FileSystemFolder"/>
+ <file-system NAME="lib-jsf-tlds.jar" info="hidden=yes"
+ location="%workspace.home%/lib/jsf-tlds.jar" model-entity="FileSystemJar"/>
+ <file-system NAME="lib-common-annotations.jar" info="hidden=yes"
+ location="%workspace.home%/lib/common-annotations.jar" model-entity="FileSystemJar"/>
+ <web SERVLET_VERSION="2.5" model-entity="JstWeb" model-path="/web.xml">
+ <module URI="/WEB-INF/faces-config.xml" model-entity="WebJSFModule"
+ model-path="/faces-config.xml" root="WEB-ROOT" src="src"/>
+ </web>
+</file-systems>
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/JavaSource/resources.properties
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/JavaSource/resources.properties (rev 0)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/JavaSource/resources.properties 2008-01-09 21:00:20 UTC (rev 5569)
@@ -0,0 +1,2 @@
+prompt=Your Name\:
+greeting=Hello
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/META-INF/MANIFEST.MF
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/META-INF/MANIFEST.MF (rev 0)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/META-INF/MANIFEST.MF 2008-01-09 21:00:20 UTC (rev 5569)
@@ -0,0 +1,3 @@
+Manifest-Version: 1.0
+Class-Path:
+
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/WEB-INF/.faces-config.xml.jsfdia
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/WEB-INF/.faces-config.xml.jsfdia (rev 0)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/WEB-INF/.faces-config.xml.jsfdia 2008-01-09 21:00:20 UTC (rev 5569)
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<PROCESS model-entity="JSFProcess">
+ <PROCESS-ITEM NAME="rules:" SHAPE="32,17,0,0" model-entity="JSFProcessGroup">
+ <PROCESS-ITEM ID="rules::0" NAME="item" model-entity="JSFProcessItem"/>
+ </PROCESS-ITEM>
+</PROCESS>
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/WEB-INF/classes/resources.properties
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/WEB-INF/classes/resources.properties (rev 0)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/WEB-INF/classes/resources.properties 2008-01-09 21:00:20 UTC (rev 5569)
@@ -0,0 +1,2 @@
+prompt=Your Name\:
+greeting=Hello
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/WEB-INF/faces-config.xml
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/WEB-INF/faces-config.xml (rev 0)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/WEB-INF/faces-config.xml 2008-01-09 21:00:20 UTC (rev 5569)
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<faces-config version="1.2" xmlns="http://java.sun.com/xml/ns/javaee"
+ xmlns:xi="http://www.w3.org/2001/XInclude"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd">
+ <navigation-rule/>
+ <application>
+ <view-handler>com.sun.facelets.FaceletViewHandler</view-handler>
+ </application>
+</faces-config>
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/WEB-INF/lib/common-annotations.jar
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/WEB-INF/lib/common-annotations.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/WEB-INF/lib/commons-beanutils.jar
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/WEB-INF/lib/commons-beanutils.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/WEB-INF/lib/commons-collections.jar
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/WEB-INF/lib/commons-collections.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/WEB-INF/lib/commons-digester.jar
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/WEB-INF/lib/commons-digester.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/WEB-INF/lib/commons-logging.jar
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/WEB-INF/lib/commons-logging.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/WEB-INF/lib/el-api.jar
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/WEB-INF/lib/el-api.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/WEB-INF/lib/el-ri.jar
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/WEB-INF/lib/el-ri.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/WEB-INF/lib/jsf-api.jar
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/WEB-INF/lib/jsf-api.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/WEB-INF/lib/jsf-facelets.jar
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/WEB-INF/lib/jsf-facelets.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/WEB-INF/lib/jsf-impl.jar
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/WEB-INF/lib/jsf-impl.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/WEB-INF/lib/jsf-tlds.jar
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/WEB-INF/lib/jsf-tlds.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/WEB-INF/lib/jstl.jar
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/WEB-INF/lib/jstl.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/WEB-INF/lib/standard.jar
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/WEB-INF/lib/standard.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/WEB-INF/web.xml
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/WEB-INF/web.xml (rev 0)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/WEB-INF/web.xml 2008-01-09 21:00:20 UTC (rev 5569)
@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
+ <description>Facelets StarterKit</description>
+ <display-name>faceletsTest</display-name>
+ <context-param>
+ <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
+ <param-value>.xhtml</param-value>
+ </context-param>
+ <context-param>
+ <param-name>facelets.REFRESH_PERIOD</param-name>
+ <param-value>2</param-value>
+ </context-param>
+ <context-param>
+ <param-name>facelets.DEVELOPMENT</param-name>
+ <param-value>true</param-value>
+ </context-param>
+ <context-param>
+ <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
+ <param-value>client</param-value>
+ </context-param>
+ <context-param>
+ <param-name>com.sun.faces.validateXml</param-name>
+ <param-value>true</param-value>
+ </context-param>
+ <context-param>
+ <param-name>com.sun.faces.verifyObjects</param-name>
+ <param-value>true</param-value>
+ </context-param>
+ <servlet>
+ <servlet-name>Faces Servlet</servlet-name>
+ <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
+ <load-on-startup>1</load-on-startup>
+ </servlet>
+ <servlet-mapping>
+ <servlet-name>Faces Servlet</servlet-name>
+ <url-pattern>*.jsf</url-pattern>
+ </servlet-mapping>
+ <login-config>
+ <auth-method>BASIC</auth-method>
+ </login-config>
+</web-app>
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/index.jsp
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/index.jsp (rev 0)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/index.jsp 2008-01-09 21:00:20 UTC (rev 5569)
@@ -0,0 +1,7 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+<html>
+<head></head>
+ <body>
+ <jsp:forward page="pages/inputname.jsf" />
+ </body>
+</html>
\ No newline at end of file
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/pages/components/component.xhtml
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/pages/components/component.xhtml (rev 0)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/pages/components/component.xhtml 2008-01-09 21:00:20 UTC (rev 5569)
@@ -0,0 +1,18 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core">
+
+<head>
+<title>Component Test</title>
+</head>
+
+<body bgcolor="#ffffff">
+<ui:component binding="#{backingBean.menu}">
+ <ul id="mainMenu">
+ <li><a href="#{link.uri}">#{link.text}</a></li>
+ </ul>
+</ui:component>
+</body>
+</html>
\ No newline at end of file
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/pages/components/composition.xhtml
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/pages/components/composition.xhtml (rev 0)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/pages/components/composition.xhtml 2008-01-09 21:00:20 UTC (rev 5569)
@@ -0,0 +1,14 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core">
+
+ <ui:composition template="insert.xhtml">
+
+ <ui:define name="pageTitle">JSF 1.2 and Facelets under Tomcat. KickStart Application</ui:define>
+
+ <ui:define name="pageHeader">JSF 1.2 Hello Application</ui:define>
+
+ </ui:composition>
+</html>
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/pages/components/debug.xhtml
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/pages/components/debug.xhtml (rev 0)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/pages/components/debug.xhtml 2008-01-09 21:00:20 UTC (rev 5569)
@@ -0,0 +1,14 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core">
+
+<head>
+<title>Debug Test</title>
+</head>
+
+<body bgcolor="#ffffff">
+ <ui:debug hotkey="d" rendered="#{initParam.debugMode}"/>
+</body>
+</html>
\ No newline at end of file
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/pages/components/decorate.xhtml
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/pages/components/decorate.xhtml (rev 0)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/pages/components/decorate.xhtml 2008-01-09 21:00:20 UTC (rev 5569)
@@ -0,0 +1,14 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core">
+
+ <ui:decorate template="insert.xhtml">
+
+ <ui:define name="pageTitle">JSF 1.2 and Facelets under Tomcat. KickStart Application</ui:define>
+
+ <ui:define name="pageHeader">JSF 1.2 Hello Application</ui:define>
+
+ </ui:decorate>
+</html>
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/pages/components/define.xhtml
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/pages/components/define.xhtml (rev 0)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/pages/components/define.xhtml 2008-01-09 21:00:20 UTC (rev 5569)
@@ -0,0 +1,13 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core">
+ <ui:composition template="insert.xhtml">
+ <ui:define name="pageTitle">JSF 1.2 and Facelets under Tomcat. KickStart Application</ui:define>
+ <ui:define name="pageHeader">Greeting Page</ui:define>
+ <ui:define name="body">
+ #{person.name}!
+ </ui:define>
+ </ui:composition>
+</html>
\ No newline at end of file
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/pages/components/fragment.xhtml
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/pages/components/fragment.xhtml (rev 0)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/pages/components/fragment.xhtml 2008-01-09 21:00:20 UTC (rev 5569)
@@ -0,0 +1,18 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core">
+
+<head>
+<title>Fragment Test</title>
+</head>
+
+<body bgcolor="#ffffff">
+ <ui:fragment binding="#{uiCache['searchResult']}">
+ <ul id="mainMenu">
+ <li><a href="#{link.uri}">#{link.text}</a></li>
+ </ul>
+</ui:fragment>
+</body>
+</html>
\ No newline at end of file
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/pages/components/include.xhtml
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/pages/components/include.xhtml (rev 0)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/pages/components/include.xhtml 2008-01-09 21:00:20 UTC (rev 5569)
@@ -0,0 +1,15 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core">
+
+<head>
+<title>Debug Test</title>
+</head>
+
+<body bgcolor="#ffffff">
+ <h3 align="center">ui:include test page</h3>
+ <ui:include src="insert.xhtml" />
+</body>
+</html>
\ No newline at end of file
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/pages/components/insert.xhtml
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/pages/components/insert.xhtml (rev 0)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/pages/components/insert.xhtml 2008-01-09 21:00:20 UTC (rev 5569)
@@ -0,0 +1,66 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core">
+
+<head>
+<title><ui:insert name="pageTitle">Page Title</ui:insert></title>
+<style type="text/css">
+body {
+ font-family: Verdana, Arial, Helvetica, sans-serif;
+ font-size: 14px;
+}
+
+.header {
+ font-family: Verdana, Arial, Helvetica, sans-serif;
+ font-size: 18px;
+}
+
+.bottom {
+ font-family: Verdana, Arial, Helvetica, sans-serif;
+ font-size: 9px;
+ text-align: center;
+ vertical-align: middle;
+ color: #8E969D;
+}
+</style>
+</head>
+
+<body bgcolor="#ffffff">
+<table style="border: 1px solid #CAD6E0" align="center" cellpadding="0"
+ cellspacing="0" border="0" width="400">
+ <tbody>
+
+ <tr>
+ <td class="header" height="42" align="center" valign="middle"
+ width="100%" bgcolor="#E4EBEB"><ui:insert name="pageHeader">Page Header</ui:insert>
+ </td>
+ </tr>
+ <tr>
+ <td height="1" width="100%" bgcolor="#CAD6E0"></td>
+ </tr>
+
+ <tr>
+ <td width="100%" colspan="2">
+ <table width="100%" style="height: 150px" align="left"
+ cellpadding="0" cellspacing="0" border="0">
+ <tbody>
+ <tr>
+ <td align="center" width="100%" valign="middle"><ui:insert
+ name="body">Page Body</ui:insert></td>
+ </tr>
+ </tbody>
+ </table>
+ </td>
+ </tr>
+
+ <tr>
+ <td colspan="2" valign="bottom" height="1" width="100%"
+ bgcolor="#CAD6E0"></td>
+ </tr>
+ </tbody>
+</table>
+</body>
+
+</html>
\ No newline at end of file
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/pages/components/param.xhtml
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/pages/components/param.xhtml (rev 0)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/pages/components/param.xhtml 2008-01-09 21:00:20 UTC (rev 5569)
@@ -0,0 +1,17 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core">
+
+<head>
+<title>Param Test</title>
+</head>
+
+<body bgcolor="#ffffff">
+ <ui:include src="insert.xhtml">
+ <ui:param name="user" value="#{currentUser}" />
+ <ui:param name="page" value="home"/>
+ </ui:include>
+</body>
+</html>
\ No newline at end of file
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/pages/components/remove.xhtml
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/pages/components/remove.xhtml (rev 0)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/pages/components/remove.xhtml 2008-01-09 21:00:20 UTC (rev 5569)
@@ -0,0 +1,18 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core">
+
+<head>
+<title>Remove Test</title>
+</head>
+
+<body bgcolor="#ffffff">
+<ui:remove>
+ This will be removed.
+</ui:remove>
+<span jsfc="ui:remove"> This won't be compiled either <h:outputText
+ value="#{foo.bar}" /> </span>
+</body>
+</html>
\ No newline at end of file
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/pages/components/repeat.xhtml
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/pages/components/repeat.xhtml (rev 0)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/pages/components/repeat.xhtml 2008-01-09 21:00:20 UTC (rev 5569)
@@ -0,0 +1,20 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core">
+
+<head>
+<title>Repeat Test</title>
+</head>
+<body bgcolor="#ffffff">
+ <dl>
+ <ui:repeat value="#{company.departments}" var="dept">
+ <dt>#{dept.name}</dt>
+ <ui:repeat value="#{dept.employees}" var="emp">
+ <dd>#{emp.lastName}, #{emp.firstName}</dd>
+ </ui:repeat>
+ </ui:repeat>
+</dl>
+</body>
+</html>
\ No newline at end of file
Deleted: trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletstest.jar
===================================================================
(Binary files differ)
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/src/org/jboss/tools/jsf/vpe/facelets/test/FaceletsAllTests.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/src/org/jboss/tools/jsf/vpe/facelets/test/FaceletsAllTests.java 2008-01-09 19:05:11 UTC (rev 5568)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/src/org/jboss/tools/jsf/vpe/facelets/test/FaceletsAllTests.java 2008-01-09 21:00:20 UTC (rev 5569)
@@ -7,7 +7,7 @@
public static Test suite() {
- TestSuite suite = new TestSuite("Tests for Vpe Facelets components"); // $NON-NLS-1$
+ TestSuite suite = new TestSuite("Tests for Vpe Facelets components");
// $JUnit-BEGIN$
suite.addTestSuite(FaceletsComponentTest.class);
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/src/org/jboss/tools/jsf/vpe/facelets/test/FaceletsComponentTest.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/src/org/jboss/tools/jsf/vpe/facelets/test/FaceletsComponentTest.java 2008-01-09 19:05:11 UTC (rev 5568)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/src/org/jboss/tools/jsf/vpe/facelets/test/FaceletsComponentTest.java 2008-01-09 21:00:20 UTC (rev 5569)
@@ -10,20 +10,19 @@
******************************************************************************/
package org.jboss.tools.jsf.vpe.facelets.test;
-import junit.framework.TestCase;
+import java.util.ArrayList;
+import java.util.List;
import org.eclipse.core.resources.IFile;
-import org.eclipse.core.resources.ResourcesPlugin;
-import org.eclipse.core.runtime.ILogListener;
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Platform;
-import org.eclipse.core.runtime.jobs.Job;
-import org.eclipse.swt.widgets.Display;
import org.eclipse.ui.IEditorInput;
-import org.eclipse.ui.PartInitException;
-import org.eclipse.ui.PlatformUI;
import org.eclipse.ui.part.FileEditorInput;
+import org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageEditor;
+import org.jboss.tools.vpe.editor.util.HTML;
+import org.jboss.tools.vpe.ui.test.TestUtil;
+import org.jboss.tools.vpe.ui.test.VpeTest;
+import org.mozilla.interfaces.nsIDOMDocument;
+import org.mozilla.interfaces.nsIDOMElement;
+import org.mozilla.interfaces.nsIDOMNode;
/**
* Class for testing all Seam components
@@ -31,187 +30,79 @@
* @author dsakovich(a)exadel.com
*
*/
-public class FaceletsComponentTest extends TestCase implements ILogListener {
+public class FaceletsComponentTest extends VpeTest {
- private final static String EDITOR_ID = "org.jboss.tools.jst.jsp.jspeditor.JSPTextEditor"; // $NON-NLS-1$
- private final static String TEST_PROJECT_JAR_PATH = "/faceletstest.jar"; // $NON-NLS-1$
+ // import project name
+ private static final String IMPORT_PROJECT_NAME = "faceletsTest";
- // check warning log
- private final static boolean checkWarning = false;
- private Throwable exception;
-
public FaceletsComponentTest(String name) {
- super(name);
+ super(name, IMPORT_PROJECT_NAME, FaceletsTestPlugin
+ .getPluginResourcePath());
}
- /**
- * Perform pre-test initialization.
- *
- * @throws Exception
- *
- * @see TestCase#setUp()
- */
- protected void setUp() throws Exception {
- super.setUp();
-
- // TODO: Use TestSetup to create and remove project once for all tests
- // not for every one
- if (ResourcesPlugin.getWorkspace().getRoot().findMember("faceletsTest") == null) {
-
- ImportFaceletsComponents.importFaceletsPages(FaceletsTestPlugin
- .getPluginResourcePath()
- + TEST_PROJECT_JAR_PATH);
-
- waitForJobs();
- delay(5000);
- }
- Platform.addLogListener(this);
+ public void testDebug() throws Throwable {
+ performTestForJsfComponent("components/debug.xhtml"); // $NON-NLS-1$
}
- /**
- * Perform post-test cleanup.
- *
- * @throws Exception
- *
- * @see TestCase#tearDown()
- */
- protected void tearDown() throws Exception {
- super.tearDown();
- if (ResourcesPlugin.getWorkspace().getRoot().findMember("faceletsTest") != null) {
- ImportFaceletsComponents.removeProject();
- }
- Platform.removeLogListener(this);
- }
+ public void testDefine() throws Throwable {
+ TestUtil.waitForJobs();
+ // set exception
+ setException(null);
- /**
- * Process UI input but do not return for the specified time interval.
- *
- * @param waitTimeMillis
- * the number of milliseconds
- */
- private void delay(long waitTimeMillis) {
- Display display = Display.getCurrent();
- if (display != null) {
- long endTimeMillis = System.currentTimeMillis() + waitTimeMillis;
- while (System.currentTimeMillis() < endTimeMillis) {
- if (!display.readAndDispatch())
- display.sleep();
- }
- display.update();
- }
- // Otherwise, perform a simple sleep.
- else {
- try {
- Thread.sleep(waitTimeMillis);
- } catch (InterruptedException e) {
- // Ignored.
- }
- }
- }
+ // get test page path
+ IFile file = (IFile) TestUtil.getComponentPath(
+ "components/define.xhtml", getImportProjectName());
- /**
- * Wait until all background tasks are complete.
- */
- public void waitForJobs() {
- while (Job.getJobManager().currentJob() != null)
- delay(5000);
- }
+ assertNotNull("Could not open specified file " + file.getFullPath(),
+ file);
- public void testInsert() throws PartInitException, Throwable {
- performTestForFaceletComponent("insert.xhtml"); // $NON-NLS-1$
- }
+ IEditorInput input = new FileEditorInput(file);
- public void testDefine() throws PartInitException, Throwable {
- performTestForFaceletComponent("define.xhtml"); // $NON-NLS-1$
- // TODO check that content from ui:defime element is shown
- assertTrue("Defined content is not shown",false);
- }
+ assertNotNull("Editor input is null", input);
+ // open and get editor
+ JSPMultiPageEditor part = openEditor(input);
- public void testComposite() throws PartInitException, Throwable {
- performTestForFaceletComponent("composition.xhtml"); // $NON-NLS-1$
- // TODO check that related and absolute path is processed
- assertTrue("Template with absolute path is not included",false);
- assertTrue("Template with related path is not included",false);
- }
+ // get dom document
+ nsIDOMDocument document = getVpeVisualDocument(part);
+ nsIDOMElement element = document.getDocumentElement();
- public void testComponent() throws PartInitException, Throwable {
- performTestForFaceletComponent("component.xhtml"); // $NON-NLS-1$
- // TODO check that content from ui:defime element is shown
- //assertTrue("Component's content is not shown",false);
- }
-
- public void testRemove() throws PartInitException, Throwable {
- performTestForFaceletComponent("remove.xhtml"); // $NON-NLS-1$
- // TODO check that content in ui:remove isn't shown in VPE
- assertTrue("Content inside ui:remove tag shouldn't be shown",false);
- }
-
- public void testDecorate() throws PartInitException, Throwable {
- performTestForFaceletComponent("decorate.xhtml"); // $NON-NLS-1$
- // TODO check that related and absolute path is processed
- assertTrue("Template with absolute path is not included",false);
- assertTrue("Template with related path is not included",false);
- }
+ // check that element is not null
+ assertNotNull(element);
- public void testRepeat() throws PartInitException, Throwable {
- performTestForFaceletComponent("repeat.xhtml"); // $NON-NLS-1$
- assertTrue("Component's content is not shown",false);
- }
-
- public void testDebug() throws PartInitException, Throwable {
- performTestForFaceletComponent("debug.xhtml"); // $NON-NLS-1$
- }
-
- public void testInclude() throws PartInitException, Throwable {
- performTestForFaceletComponent("include.xhtml"); // $NON-NLS-1$
- // TODO check that absolute and related path is processed
- assertTrue("Template with absolute path is not included",false);
- assertTrue("Template with related path is not included",false);
- }
-
- public void testFragment() throws PartInitException, Throwable {
- performTestForFaceletComponent("fragment.xhtml"); // $NON-NLS-1$
- // TODO check that fragment's content is showed
- assertTrue("Fragment's content is not sown",false);
- }
- private void performTestForFaceletComponent(String componentPage)
- throws PartInitException, Throwable {
- waitForJobs();
+ // get root node
+ nsIDOMNode node = (nsIDOMNode) element
+ .queryInterface(nsIDOMNode.NS_IDOMNODE_IID);
- exception = null;
- IPath componentPath = ImportFaceletsComponents
- .getComponentPath(componentPage);
+ List<nsIDOMNode> elements = new ArrayList<nsIDOMNode>();
- IFile file = ResourcesPlugin.getWorkspace().getRoot().getFile(
- componentPath);
- IEditorInput input = new FileEditorInput(file);
+ // find "span" elements
+ TestUtil.findElementsByName(node, elements, HTML.TAG_SPAN);
- PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage()
- .openEditor(input, EDITOR_ID, true);
+ assertEquals(2, elements.size());
- waitForJobs();
- delay(5000);
- PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage()
- .closeAllEditors(true);
+ nsIDOMElement elementSpan0 = (nsIDOMElement) elements.get(0)
+ .queryInterface(nsIDOMElement.NS_IDOMELEMENT_IID);
+ nsIDOMElement elementSpan1 = (nsIDOMElement) elements.get(1)
+ .queryInterface(nsIDOMElement.NS_IDOMELEMENT_IID);
- if (exception != null) {
- throw exception;
+ /*
+ * nsIDOMText text0 = (nsIDOMText) elementSpan0.getFirstChild();
+ * nsIDOMText text1 = (nsIDOMText) elementSpan1.getFirstChild();
+ * System.out.println(text0.getNodeValue());
+ * assertEquals(elementInput0.getAttribute("value"), "");
+ * assertNotNull(elementInput1.getAttribute("value"), "");
+ * assertNotNull(elementInput2.getAttribute("value"), "test");
+ */
+
+ // TODO Dzmitry Sakovich Test not complete
+ assertTrue("Defined content is not shown", false);
+ if (getException() != null) {
+ throw getException();
}
}
- public void logging(IStatus status, String plugin) {
- switch (status.getSeverity()) {
- case IStatus.ERROR:
- exception = status.getException();
- break;
- case IStatus.WARNING:
- if (checkWarning)
- exception = status.getException();
- break;
- default:
- break;
- }
-
+ public void testInsert() throws Throwable {
+ performTestForJsfComponent("components/insert.xhtml"); // $NON-NLS-1$
}
}
Deleted: trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/src/org/jboss/tools/jsf/vpe/facelets/test/ImportFaceletsComponents.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/src/org/jboss/tools/jsf/vpe/facelets/test/ImportFaceletsComponents.java 2008-01-09 19:05:11 UTC (rev 5568)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/src/org/jboss/tools/jsf/vpe/facelets/test/ImportFaceletsComponents.java 2008-01-09 21:00:20 UTC (rev 5569)
@@ -1,92 +0,0 @@
-package org.jboss.tools.jsf.vpe.facelets.test;
-
-import java.io.IOException;
-import java.lang.reflect.InvocationTargetException;
-import java.util.zip.ZipFile;
-
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.resources.IResource;
-import org.eclipse.core.resources.ResourcesPlugin;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.core.runtime.NullProgressMonitor;
-import org.eclipse.ui.PlatformUI;
-import org.eclipse.ui.dialogs.IOverwriteQuery;
-import org.eclipse.ui.internal.wizards.datatransfer.ZipLeveledStructureProvider;
-import org.eclipse.ui.wizards.datatransfer.ImportOperation;
-
-/**
- * Class for importing project from jar file
- *
- * @author dsakovich(a)exadel.com
- *
- */
-public class ImportFaceletsComponents {
- private static final String PROJECT_NAME = "faceletsTest"; // $NON-NLS-1$
- private static final String COMPONENTS_PATH = "WebContent/pages"; // $NON-NLS-1$
-
- @SuppressWarnings("restriction")
- static void importFaceletsPages(String path) {
- IProject project = ResourcesPlugin.getWorkspace().getRoot().getProject(
- PROJECT_NAME);
- ZipLeveledStructureProvider zipStructureProvider;
- try {
- zipStructureProvider = new ZipLeveledStructureProvider(new ZipFile(
- path));
-
- IOverwriteQuery overwrite = new IOverwriteQuery() {
- public String queryOverwrite(String pathString) {
- return ALL;
- }
- };
-
- ImportOperation importOp = new ImportOperation(project
- .getFullPath(), zipStructureProvider.getRoot(),
- zipStructureProvider, overwrite);
-
- importOp.setContext(PlatformUI.getWorkbench()
- .getActiveWorkbenchWindow().getShell());
-
- importOp.run(new NullProgressMonitor());
- } catch (InvocationTargetException ite) {
- FaceletsTestPlugin.getPluginLog().logError(ite.getCause());
- } catch (InterruptedException ie) {
- FaceletsTestPlugin.getPluginLog().logError(ie);
- } catch (IOException e) {
- FaceletsTestPlugin.getPluginLog().logError(e);
- }
- }
-
- /**
- *
- * @return
- * @throws CoreException
- */
- static IPath getComponentPath(String componentPage) throws CoreException {
- IProject project = ResourcesPlugin.getWorkspace().getRoot().getProject(
- PROJECT_NAME);
- if (project != null) {
- IResource resource = project.getFolder(COMPONENTS_PATH).findMember(
- componentPage);
- if (resource != null) {
- return resource.getFullPath();
- }
-
- }
-
- return null;
- }
-
- /**
- *
- * @throws CoreException
- */
- static void removeProject() throws CoreException {
- IProject project = ResourcesPlugin.getWorkspace().getRoot().getProject(
- PROJECT_NAME);
- if (project != null) {
- project.delete(IResource.ALWAYS_DELETE_PROJECT_CONTENT,
- new NullProgressMonitor());
- }
- }
-}
16 years, 5 months
JBoss Tools SVN: r5568 - in trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console: viewers and 1 other directories.
by jbosstools-commits@lists.jboss.org
Author: vyemialyanchyk
Date: 2008-01-09 14:05:11 -0500 (Wed, 09 Jan 2008)
New Revision: 5568
Added:
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/viewers/
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/viewers/MTreeViewer.java
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/views/KnownConfigurationsView.java
Log:
http://jira.jboss.org/jira/browse/JBIDE-1482
Added: trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/viewers/MTreeViewer.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/viewers/MTreeViewer.java (rev 0)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/viewers/MTreeViewer.java 2008-01-09 19:05:11 UTC (rev 5568)
@@ -0,0 +1,196 @@
+/*******************************************************************************
+ * Copyright (c) 2007 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributor:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.hibernate.eclipse.console.viewers;
+
+import java.lang.reflect.InvocationTargetException;
+import java.lang.reflect.Method;
+import java.util.ArrayList;
+
+import org.eclipse.core.runtime.Assert;
+import org.eclipse.jface.viewers.AbstractTreeViewer;
+import org.eclipse.jface.viewers.TreePath;
+import org.eclipse.jface.viewers.TreeViewer;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Item;
+import org.eclipse.swt.widgets.Widget;
+
+public class MTreeViewer extends TreeViewer {
+
+ public MTreeViewer(Composite parent, int style) {
+ super(parent, style);
+ }
+
+ // some little hack
+ public boolean isBusy() {
+
+ Object obj = null;
+ Class clazz = org.eclipse.jface.viewers.ColumnViewer.class;
+ try {
+ Method hiddenMethod = clazz.getDeclaredMethod("isBusy");
+ if (null != hiddenMethod) {
+ hiddenMethod.setAccessible(true);
+ obj = hiddenMethod.invoke(this);
+ }
+ } catch (IllegalArgumentException e) {
+ e.printStackTrace();
+ } catch (IllegalAccessException e) {
+ e.printStackTrace();
+ } catch (InvocationTargetException e) {
+ e.printStackTrace();
+ } catch (SecurityException e) {
+ e.printStackTrace();
+ } catch (NoSuchMethodException e) {
+ e.printStackTrace();
+ }
+ if (obj instanceof Boolean) {
+ return ((Boolean)obj).booleanValue();
+ }
+ return false;
+ }
+
+ /**
+ * Adds the given child elements to this viewer as children of the given
+ * parent element. If this viewer does not have a sorter, the elements are
+ * added at the end of the parent's list of children in the order given;
+ * otherwise, the elements are inserted at the appropriate positions.
+ * <p>
+ * This method should be called (by the content provider) when elements have
+ * been added to the model, in order to cause the viewer to accurately
+ * reflect the model. This method only affects the viewer, not the model.
+ * </p>
+ *
+ * @param parentElementOrTreePath
+ * the parent element
+ * @param childElements
+ * the child elements to add
+ */
+ public void add(Object parentElementOrTreePath, Object[] childElements) {
+ Assert.isNotNull(parentElementOrTreePath);
+ assertElementsNotNull(childElements);
+ if (isBusy())
+ return;
+ Widget[] widgets = internalFindItems2(parentElementOrTreePath);
+ // If parent hasn't been realized yet, just ignore the add.
+ if (widgets.length == 0) {
+ return;
+ }
+
+ for (int i = 0; i < widgets.length; i++) {
+ internalAdd(widgets[i], parentElementOrTreePath, childElements);
+ }
+ }
+
+ /**
+ * Find the items for the given element of tree path
+ *
+ * @param parentElementOrTreePath
+ * the element or tree path
+ * @return the items for that element
+ */
+ protected Widget[] internalFindItems2(Object parentElementOrTreePath) {
+ Widget[] widgets;
+ if (parentElementOrTreePath instanceof TreePath) {
+ widgets = internalFindItems(parentElementOrTreePath);
+ } else {
+ widgets = findItems2(parentElementOrTreePath);
+ }
+ return widgets;
+ }
+
+ /**
+ * Finds the widgets which represent the given element. The returned array
+ * must not be changed by clients; it might change upon calling other
+ * methods on this viewer.
+ * <p>
+ * This method was introduced to support multiple equal elements in a viewer
+ * (@see {@link AbstractTreeViewer}). Multiple equal elements are only
+ * supported if the element map is enabled by calling
+ * {@link #setUseHashlookup(boolean)} and passing <code>true</code>.
+ * </p>
+ * <p>
+ * The default implementation of this method tries first to find the widget
+ * for the given element assuming that it is the viewer's input; this is
+ * done by calling <code>doFindInputItem</code>. If it is not found
+ * there, the widgets are looked up in the internal element map provided
+ * that this feature has been enabled. If the element map is disabled, the
+ * widget is found via <code>doFindInputItem</code>.
+ * </p>
+ *
+ * @param element
+ * the element
+ * @return the corresponding widgets
+ */
+ protected Widget[] findItems2(Object element) {
+ Widget result = doFindInputItem(element);
+ if (result != null) {
+ return new Widget[] { result };
+ }
+ // if we have an element map use it, otherwise search for the item.
+ if (usingElementMap()) {
+ return findItems2(element);
+ }
+ return doFindItems(element);
+ }
+
+ /**
+ * Recursively tries to find the given element.
+ *
+ * @param parent
+ * the parent item
+ * @param element
+ * the element
+ * @return Widget
+ */
+ protected ArrayList<Widget> internalFindItem(Item parent, Object element) {
+
+ ArrayList<Widget> ret = new ArrayList<Widget>();
+ // compare with node
+ Object data = parent.getData();
+ if (data != null) {
+ if (equals(data, element)) {
+ ret.add(parent);
+ return ret;
+ }
+ }
+ // recurse over children
+ Item[] items = getChildren(parent);
+ for (int i = 0; i < items.length; i++) {
+ Item item = items[i];
+ ArrayList<Widget> o = internalFindItem(item, element);
+ if (null != o) {
+ ret.addAll(o);
+ }
+ }
+ return ret;
+ }
+
+ protected Widget[] doFindItems(Object element) {
+ Widget[] ret = new Widget[0];
+ // compare with root
+ Object root = getRoot();
+ if (null == root) {
+ return ret;
+ }
+ ArrayList<Widget> res = new ArrayList<Widget>();
+ Item[] items = getChildren(getControl());
+ if (items != null) {
+ for (int i = 0; i < items.length; i++) {
+ ArrayList<Widget> o = internalFindItem(items[i], element);
+ if (null != o) {
+ res.addAll(o);
+ }
+ }
+ }
+ ret = res.toArray(ret);
+ return ret;
+ }
+
+}
Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/views/KnownConfigurationsView.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/views/KnownConfigurationsView.java 2008-01-09 17:21:15 UTC (rev 5567)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/views/KnownConfigurationsView.java 2008-01-09 19:05:11 UTC (rev 5568)
@@ -49,6 +49,7 @@
import org.hibernate.console.node.BaseNode;
import org.hibernate.eclipse.console.actions.EditConsoleConfiguration;
import org.hibernate.eclipse.console.actions.OpenMappingAction;
+import org.hibernate.eclipse.console.viewers.MTreeViewer;
import org.hibernate.eclipse.console.workbench.xpl.AnyAdaptableLabelProvider;
import org.hibernate.mapping.Property;
import org.hibernate.mapping.RootClass;
@@ -74,7 +75,8 @@
}
public void createPartControl(Composite parent) {
- viewer = new TreeViewer(parent, SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL);
+ //viewer = new TreeViewer(parent, SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL);
+ viewer = new MTreeViewer(parent, SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL);
/*viewer.setContentProvider(new ConfigurationsContentProvider() );*/
16 years, 5 months
JBoss Tools SVN: r5567 - in trunk/jsf/docs/userguide/en/images: web_projects and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: ykryvinchanka
Date: 2008-01-09 12:21:15 -0500 (Wed, 09 Jan 2008)
New Revision: 5567
Modified:
trunk/jsf/docs/userguide/en/images/more_editors/more_editors_25.png
trunk/jsf/docs/userguide/en/images/web_projects/web_projects_14.png
trunk/jsf/docs/userguide/en/images/web_projects/web_projects_15.png
trunk/jsf/docs/userguide/en/images/web_projects/web_projects_16.png
Log:
http://jira.jboss.com/jira/browse/JBDS-226 Screens retaken in 96 resolution + scale parameter is defined
Modified: trunk/jsf/docs/userguide/en/images/more_editors/more_editors_25.png
===================================================================
(Binary files differ)
Modified: trunk/jsf/docs/userguide/en/images/web_projects/web_projects_14.png
===================================================================
(Binary files differ)
Modified: trunk/jsf/docs/userguide/en/images/web_projects/web_projects_15.png
===================================================================
(Binary files differ)
Modified: trunk/jsf/docs/userguide/en/images/web_projects/web_projects_16.png
===================================================================
(Binary files differ)
16 years, 5 months
JBoss Tools SVN: r5566 - trunk/jsf/docs/userguide/en/modules.
by jbosstools-commits@lists.jboss.org
Author: ykryvinchanka
Date: 2008-01-09 11:58:53 -0500 (Wed, 09 Jan 2008)
New Revision: 5566
Modified:
trunk/jsf/docs/userguide/en/modules/editors.xml
Log:
http://jira.jboss.com/jira/browse/JBDS-226 Screens retaken in 96 resolution + scale parameter is defined
Modified: trunk/jsf/docs/userguide/en/modules/editors.xml
===================================================================
--- trunk/jsf/docs/userguide/en/modules/editors.xml 2008-01-09 16:58:44 UTC (rev 5565)
+++ trunk/jsf/docs/userguide/en/modules/editors.xml 2008-01-09 16:58:53 UTC (rev 5566)
@@ -1196,7 +1196,7 @@
<title>Adding a New Tag</title>
<mediaobject>
<imageobject>
- <imagedata fileref="images/more_editors/more_editors_6.png"/>
+ <imagedata fileref="images/more_editors/more_editors_6.png" scale="85"/>
</imageobject>
</mediaobject>
</figure>
@@ -1207,7 +1207,7 @@
<title>Adding a New Attribute</title>
<mediaobject>
<imageobject>
- <imagedata fileref="images/more_editors/more_editors_7.png"/>
+ <imagedata fileref="images/more_editors/more_editors_7.png" scale="85"/>
</imageobject>
</mediaobject>
</figure>
@@ -1217,7 +1217,7 @@
<title>Content Assist</title>
<mediaobject>
<imageobject>
- <imagedata fileref="images/more_editors/more_editors_8.png"/>
+ <imagedata fileref="images/more_editors/more_editors_8.png" scale="65"/>
</imageobject>
</mediaobject>
</figure>
@@ -1303,7 +1303,7 @@
<title>Content Assist</title>
<mediaobject>
<imageobject>
- <imagedata fileref="images/more_editors/more_editors_13.png"/>
+ <imagedata fileref="images/more_editors/more_editors_13.png" scale="85"/>
</imageobject>
</mediaobject>
</figure>
16 years, 5 months
JBoss Tools SVN: r5565 - trunk/jsf/docs/userguide/en/images/more_editors.
by jbosstools-commits@lists.jboss.org
Author: ykryvinchanka
Date: 2008-01-09 11:58:44 -0500 (Wed, 09 Jan 2008)
New Revision: 5565
Modified:
trunk/jsf/docs/userguide/en/images/more_editors/more_editors_1.png
trunk/jsf/docs/userguide/en/images/more_editors/more_editors_10.png
trunk/jsf/docs/userguide/en/images/more_editors/more_editors_11.png
trunk/jsf/docs/userguide/en/images/more_editors/more_editors_12.png
trunk/jsf/docs/userguide/en/images/more_editors/more_editors_13.png
trunk/jsf/docs/userguide/en/images/more_editors/more_editors_14.png
trunk/jsf/docs/userguide/en/images/more_editors/more_editors_2.png
trunk/jsf/docs/userguide/en/images/more_editors/more_editors_3.png
trunk/jsf/docs/userguide/en/images/more_editors/more_editors_4.png
trunk/jsf/docs/userguide/en/images/more_editors/more_editors_5.png
trunk/jsf/docs/userguide/en/images/more_editors/more_editors_6.png
trunk/jsf/docs/userguide/en/images/more_editors/more_editors_7.png
trunk/jsf/docs/userguide/en/images/more_editors/more_editors_9.png
Log:
http://jira.jboss.com/jira/browse/JBDS-226 Screens retaken in 96 resolution + scale parameter is defined
Modified: trunk/jsf/docs/userguide/en/images/more_editors/more_editors_1.png
===================================================================
(Binary files differ)
Modified: trunk/jsf/docs/userguide/en/images/more_editors/more_editors_10.png
===================================================================
(Binary files differ)
Modified: trunk/jsf/docs/userguide/en/images/more_editors/more_editors_11.png
===================================================================
(Binary files differ)
Modified: trunk/jsf/docs/userguide/en/images/more_editors/more_editors_12.png
===================================================================
(Binary files differ)
Modified: trunk/jsf/docs/userguide/en/images/more_editors/more_editors_13.png
===================================================================
(Binary files differ)
Modified: trunk/jsf/docs/userguide/en/images/more_editors/more_editors_14.png
===================================================================
(Binary files differ)
Modified: trunk/jsf/docs/userguide/en/images/more_editors/more_editors_2.png
===================================================================
(Binary files differ)
Modified: trunk/jsf/docs/userguide/en/images/more_editors/more_editors_3.png
===================================================================
(Binary files differ)
Modified: trunk/jsf/docs/userguide/en/images/more_editors/more_editors_4.png
===================================================================
(Binary files differ)
Modified: trunk/jsf/docs/userguide/en/images/more_editors/more_editors_5.png
===================================================================
(Binary files differ)
Modified: trunk/jsf/docs/userguide/en/images/more_editors/more_editors_6.png
===================================================================
(Binary files differ)
Modified: trunk/jsf/docs/userguide/en/images/more_editors/more_editors_7.png
===================================================================
(Binary files differ)
Modified: trunk/jsf/docs/userguide/en/images/more_editors/more_editors_9.png
===================================================================
(Binary files differ)
16 years, 5 months
JBoss Tools SVN: r5564 - trunk/hibernatetools/docs/reference/en/modules.
by jbosstools-commits@lists.jboss.org
Author: ochikvina
Date: 2008-01-09 11:27:32 -0500 (Wed, 09 Jan 2008)
New Revision: 5564
Modified:
trunk/hibernatetools/docs/reference/en/modules/ant.xml
trunk/hibernatetools/docs/reference/en/modules/codegen.xml
Log:
http://jira.jboss.com/jira/browse/JBDS-173 - highlighting some meaningful words
Modified: trunk/hibernatetools/docs/reference/en/modules/ant.xml
===================================================================
--- trunk/hibernatetools/docs/reference/en/modules/ant.xml 2008-01-09 16:20:46 UTC (rev 5563)
+++ trunk/hibernatetools/docs/reference/en/modules/ant.xml 2008-01-09 16:27:32 UTC (rev 5564)
@@ -142,6 +142,10 @@
<para>
<programlisting><![CDATA[<hibernatetool destdir="${build.dir}/generated">
+ <classpath>
+ <path location="${build.dir}/classes"/>
+ </classpath>
+
<configuration configurationfile="hibernate.cfg.xml"/>
<hbm2java/>
</hibernatetool>]]></programlisting>
Modified: trunk/hibernatetools/docs/reference/en/modules/codegen.xml
===================================================================
--- trunk/hibernatetools/docs/reference/en/modules/codegen.xml 2008-01-09 16:20:46 UTC (rev 5563)
+++ trunk/hibernatetools/docs/reference/en/modules/codegen.xml 2008-01-09 16:27:32 UTC (rev 5564)
@@ -2,34 +2,34 @@
<chapter id="codegen">
<title>Controlling POJO code generation</title>
- <para>When using <emphasis>
- <property><hbm2java></property></emphasis> or the eclipse plugin to generate POJO
- java code you have the possibility to control certain aspects of the code
- generation. This is primarily done through the <meta> tag in the
- mapping files. The following section describes the possible meta tags and
- their use.</para>
+ <para>When using <emphasis>
+ <property><hbm2java></property>
+ </emphasis> or the eclipse plugin to generate POJO java code you have the possibility to control
+ certain aspects of the code generation. This is primarily done through the <meta>
+ tag in the mapping files. The following section describes the possible meta tags and their use.</para>
<section>
<title>The <literal><meta></literal> attribute</title>
- <para>The <emphasis>
- <property><meta></property></emphasis> tag is a simple way of
- annotating the <emphasis>
- <property>hbm.xml</property></emphasis> with information, so tools have
- a natural place to store/read information that is not directly related to
- the Hibernate core.</para>
+ <para>The <emphasis>
+ <property><meta></property>
+ </emphasis> tag is a simple way of annotating the <emphasis>
+ <property>hbm.xml</property>
+ </emphasis> with information, so tools have a natural place to store/read information that is
+ not directly related to the Hibernate core.</para>
- <para>You can use the <emphasis>
- <property><meta></property></emphasis> tag to e.g. tell
- <emphasis>
- <property><hbm2java></property></emphasis> to only generate <emphasis>
- <property>"protected"</property></emphasis> setters, have
- classes always implement a certain set of interfaces or even have them
- extend a certain base class and even more.</para>
+ <para>You can use the <emphasis>
+ <property><meta></property>
+ </emphasis> tag to e.g. tell <emphasis>
+ <property><hbm2java></property>
+ </emphasis> to only generate <emphasis>
+ <property>"protected"</property>
+ </emphasis> setters, have classes always implement a certain set of interfaces or even have
+ them extend a certain base class and even more.</para>
<para>The following example shows how to use various <emphasis>
- <property><meta></property></emphasis>
- attributes and the resulting java code.</para>
+ <property><meta></property>
+ </emphasis> attributes and the resulting java code.</para>
<programlisting><class name="Person">
<meta attribute="class-description">
@@ -47,9 +47,9 @@
</class></programlisting>
<para>The above <emphasis>
- <property>hbm.xml</property></emphasis> will produce something like the following (code
- shortened for better understanding). Notice the Javadoc comment and the
- protected set methods:</para>
+ <property>hbm.xml</property>
+ </emphasis> will produce something like the following (code shortened for better
+ understanding). Notice the Javadoc comment and the protected set methods:</para>
<programlisting>// default package
@@ -100,9 +100,9 @@
<title>Supported meta tags</title>
<tgroup cols="2">
- <colspec colwidth="1.5*" />
+ <colspec colwidth="1.5*"/>
- <colspec colwidth="2*" />
+ <colspec colwidth="2*"/>
<thead>
<row>
@@ -114,172 +114,200 @@
<tbody>
<row>
- <entry><literal>class-description</literal></entry>
+ <entry>
+ <literal>class-description</literal>
+ </entry>
<entry>inserted into the javadoc for classes</entry>
</row>
<row>
- <entry><literal>field-description</literal></entry>
+ <entry>
+ <literal>field-description</literal>
+ </entry>
<entry>inserted into the javadoc for fields/properties</entry>
</row>
<row>
- <entry><literal>interface</literal></entry>
+ <entry>
+ <literal>interface</literal>
+ </entry>
- <entry>If true an interface is generated instead of an
- class.</entry>
+ <entry>If true an interface is generated instead of an class.</entry>
</row>
<row>
- <entry><literal>implements</literal></entry>
+ <entry>
+ <literal>implements</literal>
+ </entry>
<entry>interface the class should implement</entry>
</row>
<row>
- <entry><literal>extends</literal></entry>
+ <entry>
+ <literal>extends</literal>
+ </entry>
- <entry>class the class should extend (ignored for
- subclasses)</entry>
+ <entry>class the class should extend (ignored for subclasses)</entry>
</row>
<row>
- <entry><literal>generated-class</literal></entry>
+ <entry>
+ <literal>generated-class</literal>
+ </entry>
<entry>overrule the name of the actual class generated</entry>
</row>
<row>
- <entry><literal>scope-class</literal></entry>
+ <entry>
+ <literal>scope-class</literal>
+ </entry>
<entry>scope for class</entry>
</row>
<row>
- <entry><literal>scope-set</literal></entry>
+ <entry>
+ <literal>scope-set</literal>
+ </entry>
<entry>scope for setter method</entry>
</row>
<row>
- <entry><literal>scope-get</literal></entry>
+ <entry>
+ <literal>scope-get</literal>
+ </entry>
<entry>scope for getter method</entry>
</row>
<row>
- <entry><literal>scope-field</literal></entry>
+ <entry>
+ <literal>scope-field</literal>
+ </entry>
<entry>scope for actual field</entry>
</row>
<row>
- <entry><literal>default-value</literal></entry>
+ <entry>
+ <literal>default-value</literal>
+ </entry>
<entry>default initialization value for a field</entry>
</row>
<row>
- <entry><literal>use-in-tostring</literal></entry>
+ <entry>
+ <literal>use-in-tostring</literal>
+ </entry>
- <entry>include this property in the
- <literal>toString()</literal></entry>
+ <entry>include this property in the <literal>toString()</literal></entry>
</row>
<row>
- <entry><literal>use-in-equals</literal></entry>
+ <entry>
+ <literal>use-in-equals</literal>
+ </entry>
- <entry>include this property in the <literal>equals()</literal>
- and <literal>hashCode()</literal> method. If no use-in-equals is
- specified, no equals/hashcode will be generated.</entry>
+ <entry>include this property in the <literal>equals()</literal> and
+ <literal>hashCode()</literal> method. If no use-in-equals is specified, no
+ equals/hashcode will be generated.</entry>
</row>
<row>
- <entry><literal>gen-property</literal></entry>
+ <entry>
+ <literal>gen-property</literal>
+ </entry>
- <entry>property will not be generated if false (use with
- care)</entry>
+ <entry>property will not be generated if false (use with care)</entry>
</row>
<row>
- <entry><literal>property-type</literal></entry>
+ <entry>
+ <literal>property-type</literal>
+ </entry>
- <entry>Overrides the default type of property. Use this with any
- tag's to specify the concrete type instead of just Object.</entry>
+ <entry>Overrides the default type of property. Use this with any tag's to specify the
+ concrete type instead of just Object.</entry>
</row>
<row>
- <entry><literal>class-code</literal></entry>
+ <entry>
+ <literal>class-code</literal>
+ </entry>
- <entry>Extra code that will inserted at the end of the
- class</entry>
+ <entry>Extra code that will inserted at the end of the class</entry>
</row>
<row>
- <entry><literal>extra-import</literal></entry>
+ <entry>
+ <literal>extra-import</literal>
+ </entry>
- <entry>Extra import that will inserted at the end of all other
- imports</entry>
+ <entry>Extra import that will inserted at the end of all other imports</entry>
</row>
</tbody>
</tgroup>
</table>
<para>Attributes declared via the <emphasis>
- <property><meta></property></emphasis> tag are
- per default <emphasis>
- <property>"inherited"</property></emphasis> inside an <emphasis>
- <property>hbm.xml</property></emphasis> file.</para>
+ <property><meta></property>
+ </emphasis> tag are per default <emphasis>
+ <property>"inherited"</property>
+ </emphasis> inside an <emphasis>
+ <property>hbm.xml</property>
+ </emphasis> file.</para>
- <para>What does that mean? It means that if you e.g want to have all your
- classes implement <literal>IAuditable</literal> then you just add an
- <emphasis>
- <meta
- attribute="implements">IAuditable</meta></emphasis> in the top of
- the <emphasis>
- <property>hbm.xml</property></emphasis> file, just after
- <emphasis>
- <property><hibernate-mapping></property></emphasis>. Now all classes defined in
- that <emphasis>
- <property>hbm.xml</property></emphasis> file will implement
- <literal>IAuditable</literal>!</para>
+ <para>What does that mean? It means that if you e.g want to have all your classes implement
+ <literal>IAuditable</literal> then you just add an <emphasis> <meta
+ attribute="implements">IAuditable</meta></emphasis> in the top of the <emphasis>
+ <property>hbm.xml</property>
+ </emphasis> file, just after <emphasis>
+ <property><hibernate-mapping></property>
+ </emphasis>. Now all classes defined in that <emphasis>
+ <property>hbm.xml</property>
+ </emphasis> file will implement <literal>IAuditable</literal>!</para>
- <note><para>This applies to <emphasis>all</emphasis>
- <literal><meta></literal>-tags. Thus it can also e.g. be used to
- specify that all fields should be declare protected, instead of the
- default private. This is done by adding <literal><meta
- attribute="scope-field">protected</meta></literal> at e.g. just
- under the <literal><class></literal> tag and all fields of that
- class will be protected.</para>
- </note>
+ <note>
+ <para>This applies to <emphasis>all</emphasis>
+ <literal><meta></literal>-tags. Thus it can also e.g. be used to specify that
+ all fields should be declare protected, instead of the default private. This is done by
+ adding <literal><meta
+ attribute="scope-field">protected</meta></literal> at e.g. just under
+ the <literal><class></literal> tag and all fields of that class will be
+ protected.</para>
+ </note>
<para>To avoid having a <emphasis>
- <property><meta></property></emphasis> tag inherited then
- you can simply specify <emphasis>
- inherit = "false"</emphasis> for the
- attribute, e.g. <emphasis>
- <meta attribute = "scope-class"
- inherit = "false">public abstract</meta></emphasis> will restrict
- the <emphasis>
- <property>"class-scope"</property></emphasis> to the current class, not the subclasses.</para>
+ <property><meta></property>
+ </emphasis> tag inherited then you can simply specify <emphasis> inherit = "false"</emphasis>
+ for the attribute, e.g. <emphasis> <meta attribute = "scope-class" inherit =
+ "false">public abstract</meta></emphasis> will restrict the <emphasis>
+ <property>"class-scope"</property>
+ </emphasis> to the current class, not the subclasses.</para>
<section>
<title>Recommendations</title>
- <para>The following are some good practices when using
- <emphasis>
- <property><meta></property></emphasis> attributes.</para>
+ <para>The following are some good practices when using <emphasis>
+ <property><meta></property>
+ </emphasis> attributes.</para>
<section>
- <title>Dangers of a class level <literal>use-in-string and
- use-in-equals</literal> meta attributes when having bi-directional
- associations</title>
+ <title>Dangers of a class level <literal>use-in-string and use-in-equals</literal> meta
+ attributes when having bi-directional associations</title>
- <para>If we have two entities with a bi-directional association
- between them and define at class scope level the meta attributes:
- <literal>use-in-string, use-in-equals</literal>:</para>
+ <para>If we have two entities with a bi-directional association between them and define at
+ class scope level the meta attributes: <emphasis>
+ <property>use-in-string</property>
+ </emphasis>, <emphasis>
+ <property>use-in-equals</property>
+ </emphasis>:</para>
<programlisting><hibernate-mapping>
<class name="Person">
@@ -290,7 +318,8 @@
</hibernate-mapping></programlisting>
<para>And for <emphasis>
- <property>Event.hbm</property></emphasis> file:</para>
+ <property>Event.hbm</property>
+ </emphasis> file:</para>
<programlisting><hibernate-mapping>
<class name="events.Event" table="EVENTS">
@@ -309,19 +338,21 @@
</hibernate-mapping></programlisting>
<para>Then <emphasis>
- <property><hbm2java></property></emphasis> will assume you want to
- include all properties and collections in the
- <literal>toString()/equals()</literal> methods and this can result in
- infinite recursive calls.</para>
+ <property><hbm2java></property>
+ </emphasis> will assume you want to include all properties and collections in the
+ <property>toString()</property>/<property>equals()</property> methods and this can
+ result in infinite recursive calls.</para>
- <para>To remedy this you have to decide which side of the association
- will include the other part (if at all) in the
- <literal>toString()/equals()</literal> methods. Therefore it is not a
- good practice to put at class scope such meta attributes, unless you
- are defining a class without bi-directional associations.</para>
+ <para>To remedy this you have to decide which side of the association will include the other
+ part (if at all) in the <property>toString()/equals()</property>
+ methods. Therefore it is not a good practice to put at class scope such <emphasis>
+ <property>meta</property>
+ </emphasis> attributes, unless you are defining a class without bi-directional
+ associations.</para>
- <para>We recomend instead to add the <literal>meta</literal>
- attributes at the property level:</para>
+ <para>We recomend instead to add the <emphasis>
+ <property>meta</property>
+ </emphasis> attributes at the property level:</para>
<programlisting><hibernate-mapping>
<class name="events.Event" table="EVENTS">
@@ -364,75 +395,68 @@
</section>
<section>
- <title>Be aware of putting at class scope level
- <literal><meta></literal> attribute
- <literal>use-in-equals</literal></title>
+ <title>Be aware of putting at class scope level <literal><meta></literal>
+ attribute <literal>use-in-equals</literal></title>
- <para>For <literal>equal()/hashCode()</literal> method generation, you
- have to take into account that the attributes that participate on such
- method definition, should take into account only attributes with
- business meaning (the name, social security number, etc, but no
- generated id's, for example).</para>
+ <para>For <property>equal()/hashCode()</property> method generation,
+ you have to take into account that the attributes that participate on such method
+ definition, should take into account only attributes with business meaning (the name,
+ social security number, etc, but no generated id's, for example).</para>
<para>This is important because Java's hashbased collections, such as
- java.util.Set relies on equals() and hashcode() to be correct and not
- change for objects in the set; this can be a problem if the id gets
- assigned for an object after you inserted it into a set.</para>
+ <property>java.util.Set</property> relies on <property>equals()</property> and
+ <property>hashcode()</property> to be correct and not change for objects in the set;
+ this can be a problem if the id gets assigned for an object after you inserted it into a
+ set.</para>
<para>Therefore automatically configuration the generation of
- <literal>equals()/hashCode()</literal> methods specifying at class
- scope level the <emphasis>
- <property><meta></property></emphasis> attribute
- <literal>use-in-equals</literal> could be a dangerous decision that
- could produce non expected side-effect.</para>
+ <property>equals()/hashCode()</property> methods specifying at class scope level the <emphasis>
+ <property><meta></property>
+ </emphasis> attribute <emphasis><property>use-in-equals</property></emphasis> could be a dangerous decision that
+ could produce non expected side-effect.</para>
- <para><ulink
- url="http://www.hibernate.org/109.html">Here</ulink> you can get more in-depth
- explanation on the subject of equals() and hashcode().</para>
+ <para><ulink url="http://www.hibernate.org/109.html">Here</ulink> you can get more in-depth
+ explanation on the subject of <property>equals()</property> and <property>hashcode()</property>.</para>
</section>
</section>
<section>
- <title>Advanced <literal><meta></literal> attribute
- examples</title>
+ <title>Advanced <emphasis><property><meta></property></emphasis> attribute examples</title>
- <para>This section shows an example for using meta attributes (including
- userspecific attributes) together with the code generation features in
- <property>Hibernate Tools</property>.</para>
+ <para>This section shows an example for using meta attributes (including userspecific
+ attributes) together with the code generation features in <property>Hibernate
+ Tools</property>.</para>
- <para>The usecase being implemented is to automatically insert some pre-
- and post-conditions into the getter and setters of the generated POJO.
- </para>
+ <para>The usecase being implemented is to automatically insert some pre- and post-conditions
+ into the getter and setters of the generated POJO. </para>
<section>
<title>Generate pre/post-conditions for methods</title>
- <para>With an <emphasis>
- <meta attribute="class-code"></emphasis>,
- you can add additional methods on a given class, nevertheless such
- <emphasis>
- <property><meta></property></emphasis> attribute can not be used at property
- scope level and <property>Hibernate Tools</property> does not provide such
- <emphasis>
- <property><meta></property></emphasis> attributes.</para>
+ <para>With an <emphasis> <meta attribute="class-code"></emphasis>, you can add
+ additional methods on a given class, nevertheless such <emphasis>
+ <property><meta></property>
+ </emphasis> attribute can not be used at property scope level and <property>Hibernate
+ Tools</property> does not provide such <emphasis>
+ <property><meta></property>
+ </emphasis> attributes.</para>
- <para>A possibly solution for this is to modify the freemarker
- templates responsible for generating the POJO's. If you look inside
- <emphasis>
- <property>hibernate-tools.jar</property></emphasis>, you can find the template:
- <emphasis>
- <property>pojo/PojoPropertyAccessor.ftl</property></emphasis></para>
+ <para>A possibly solution for this is to modify the freemarker templates responsible for
+ generating the POJO's. If you look inside <emphasis>
+ <property>hibernate-tools.jar</property>
+ </emphasis>, you can find the template: <emphasis>
+ <property>pojo/PojoPropertyAccessor.ftl</property>
+ </emphasis></para>
- <para>This file is as the named indicates used to generate property
- accessors for pojo's.</para>
+ <para>This file is as the named indicates used to generate property accessors for pojo's.</para>
<para>Extract the <emphasis>
- <property>PojoPropertyAccessor.ftl</property></emphasis> into a
- local folder i.e. <emphasis>
- <property>${hbm.template.path}</property></emphasis>, respecting
- the whole path, for example:
- <emphasis>
- <property>${hbm.template.path}/pojo/PojoPropertyAccessor.ftl</property></emphasis></para>
+ <property>PojoPropertyAccessor.ftl</property>
+ </emphasis> into a local folder i.e. <emphasis>
+ <property>${hbm.template.path}</property>
+ </emphasis>, respecting the whole path, for example: <emphasis>
+ <property>${hbm.template.path}/pojo/PojoPropertyAccessor.ftl</property>
+ </emphasis></para>
<para>The contents of the file is something like this:</para>
@@ -446,9 +470,8 @@
}
</#foreach></programlisting>
- <para>We can add conditionally pre/post-conditions on our
- <literal>set</literal> method generation just adding a little
- Freemarker syntax to the above source code:</para>
+ <para>We can add conditionally pre/post-conditions on our <literal>set</literal> method
+ generation just adding a little Freemarker syntax to the above source code:</para>
<programlisting><#foreach property in pojo.getAllPropertiesIterator()>
${pojo.getPropertyGetModifiers(property)} ${pojo.getJavaTypeName(property, jdk5)} ${pojo.getGetterSignature(property)}() {
@@ -468,18 +491,16 @@
</programlisting>
<para>Now if in any <emphasis>
- <property>*hbm.xml</property></emphasis> file we define the
- <emphasis>
- <property><meta></property></emphasis> attributes:
- <literal>pre-cond</literal> or <literal>post-cond</literal>, their
- contents will be generated into the body of the relevant
- <literal>set</literal> method.</para>
+ <property>*hbm.xml</property>
+ </emphasis> file we define the <emphasis>
+ <property><meta></property>
+ </emphasis> attributes: <literal>pre-cond</literal> or <literal>post-cond</literal>, their
+ contents will be generated into the body of the relevant <literal>set</literal> method.</para>
- <para>As an example let us add a pre-condition for property
- <literal>name</literal> preventing no <literal>Person</literal> can
- have an empty name. So we have to modify the
- <emphasis>
- <property>Person.hbm.xml</property></emphasis> file like this:</para>
+ <para>As an example let us add a pre-condition for property <literal>name</literal>
+ preventing no <literal>Person</literal> can have an empty name. So we have to modify the <emphasis>
+ <property>Person.hbm.xml</property>
+ </emphasis> file like this:</para>
<programlisting><hibernate-mapping>
<class name="Person">
@@ -496,20 +517,19 @@
</class>
</hibernate-mapping></programlisting>
- <note> <para>I) If you don'' use <literal><[[CDATA[]]></literal>
- you have to scape the & symbol, i.e.: &amp; </para>
- <para>II). Note that we
- are referring to "firstName" directly and this is the parameter name
- not the actual field name. If you want to refer the field you have to
- use "this.firstName" instead. </para>
- </note>
+ <note>
+ <para>I) If you don'' use <literal><[[CDATA[]]></literal> you have
+ to scape the & symbol, i.e.: &amp; </para>
+ <para>II). Note that we are referring to "firstName" directly and this is the parameter
+ name not the actual field name. If you want to refer the field you have to use
+ "this.firstName" instead. </para>
+ </note>
- <para>Finally we have to generate the <property>Person.java</property>
- class, for this we can use both Eclipse and Ant as long as you
- remember to set or fill in the templatepath setting. For Ant we
- configure <emphasis>
- <property><hibernatetool></property></emphasis> task via
- <literal>the templatepath</literal> attribute as in:</para>
+ <para>Finally we have to generate the <property>Person.java</property> class, for this we
+ can use both Eclipse and Ant as long as you remember to set or fill in the templatepath
+ setting. For Ant we configure <emphasis>
+ <property><hibernatetool></property>
+ </emphasis> task via <literal>the templatepath</literal> attribute as in:</para>
<programlisting>
<target name="hbm2java">
@@ -531,10 +551,10 @@
</target></programlisting>
<para>Invoking the target <emphasis>
- <property><hbm2java></property></emphasis> will
- generate on the <emphasis>
- <property>${hbm2java.dest.dir}</property></emphasis> the file
- <property>Person.java</property>:</para>
+ <property><hbm2java></property>
+ </emphasis> will generate on the <emphasis>
+ <property>${hbm2java.dest.dir}</property>
+ </emphasis> the file <property>Person.java</property>:</para>
<programlisting>// default package
import java.io.Serializable;
@@ -571,8 +591,8 @@
}
}</programlisting>
- <para></para>
+ <para/>
</section>
</section>
</section>
-</chapter>
\ No newline at end of file
+</chapter>
16 years, 5 months
JBoss Tools SVN: r5563 - trunk/common/plugins/org.jboss.tools.common.projecttemplates/lib/RichFaces.
by jbosstools-commits@lists.jboss.org
Author: akazakov
Date: 2008-01-09 11:20:46 -0500 (Wed, 09 Jan 2008)
New Revision: 5563
Added:
trunk/common/plugins/org.jboss.tools.common.projecttemplates/lib/RichFaces/richfaces-api-3.1.3.GA.jar
trunk/common/plugins/org.jboss.tools.common.projecttemplates/lib/RichFaces/richfaces-impl-3.1.3.GA.jar
trunk/common/plugins/org.jboss.tools.common.projecttemplates/lib/RichFaces/richfaces-ui-3.1.3.GA.jar
Removed:
trunk/common/plugins/org.jboss.tools.common.projecttemplates/lib/RichFaces/richfaces-api-3.1.0.jar
trunk/common/plugins/org.jboss.tools.common.projecttemplates/lib/RichFaces/richfaces-impl-3.1.0.jar
trunk/common/plugins/org.jboss.tools.common.projecttemplates/lib/RichFaces/richfaces-ui-3.1.0.jar
Log:
http://jira.jboss.com/jira/browse/JBIDE-1599 Updated RichFaces jars.
Deleted: trunk/common/plugins/org.jboss.tools.common.projecttemplates/lib/RichFaces/richfaces-api-3.1.0.jar
===================================================================
(Binary files differ)
Added: trunk/common/plugins/org.jboss.tools.common.projecttemplates/lib/RichFaces/richfaces-api-3.1.3.GA.jar
===================================================================
(Binary files differ)
Property changes on: trunk/common/plugins/org.jboss.tools.common.projecttemplates/lib/RichFaces/richfaces-api-3.1.3.GA.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Deleted: trunk/common/plugins/org.jboss.tools.common.projecttemplates/lib/RichFaces/richfaces-impl-3.1.0.jar
===================================================================
(Binary files differ)
Added: trunk/common/plugins/org.jboss.tools.common.projecttemplates/lib/RichFaces/richfaces-impl-3.1.3.GA.jar
===================================================================
(Binary files differ)
Property changes on: trunk/common/plugins/org.jboss.tools.common.projecttemplates/lib/RichFaces/richfaces-impl-3.1.3.GA.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Deleted: trunk/common/plugins/org.jboss.tools.common.projecttemplates/lib/RichFaces/richfaces-ui-3.1.0.jar
===================================================================
(Binary files differ)
Added: trunk/common/plugins/org.jboss.tools.common.projecttemplates/lib/RichFaces/richfaces-ui-3.1.3.GA.jar
===================================================================
(Binary files differ)
Property changes on: trunk/common/plugins/org.jboss.tools.common.projecttemplates/lib/RichFaces/richfaces-ui-3.1.3.GA.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
16 years, 5 months
JBoss Tools SVN: r5562 - trunk/jsf/docs/userguide/en/modules.
by jbosstools-commits@lists.jboss.org
Author: ykryvinchanka
Date: 2008-01-09 10:26:20 -0500 (Wed, 09 Jan 2008)
New Revision: 5562
Modified:
trunk/jsf/docs/userguide/en/modules/editors.xml
Log:
http://jira.jboss.com/jira/browse/JBDS-226 Screens retaken in 96 resolution + scale parameter is defined
Modified: trunk/jsf/docs/userguide/en/modules/editors.xml
===================================================================
--- trunk/jsf/docs/userguide/en/modules/editors.xml 2008-01-09 15:17:45 UTC (rev 5561)
+++ trunk/jsf/docs/userguide/en/modules/editors.xml 2008-01-09 15:26:20 UTC (rev 5562)
@@ -191,7 +191,7 @@
<mediaobject>
<imageobject>
<imagedata
- fileref="images/editors_features/editors_features_9.png"/>
+ fileref="images/editors_features/editors_features_9.png" scale="85"/>
</imageobject>
</mediaobject>
</figure>
@@ -201,7 +201,7 @@
<mediaobject>
<imageobject>
<imagedata
- fileref="images/editors_features/editors_features_10.png"/>
+ fileref="images/editors_features/editors_features_10.png" scale="85"/>
</imageobject>
</mediaobject>
</figure>
@@ -211,7 +211,7 @@
<mediaobject>
<imageobject>
<imagedata
- fileref="images/editors_features/editors_features_11.png"/>
+ fileref="images/editors_features/editors_features_11.png" scale="85"/>
</imageobject>
</mediaobject>
</figure>
@@ -299,7 +299,7 @@
<mediaobject>
<imageobject>
<imagedata
- fileref="images/editors_features/editors_features_15.png"/>
+ fileref="images/editors_features/editors_features_15.png" scale="85"/>
</imageobject>
</mediaobject>
</figure>
16 years, 5 months
JBoss Tools SVN: r5561 - trunk/hibernatetools.
by jbosstools-commits@lists.jboss.org
Author: max.andersen(a)jboss.com
Date: 2008-01-09 10:17:45 -0500 (Wed, 09 Jan 2008)
New Revision: 5561
Removed:
trunk/hibernatetools/.project
Log:
There should not be a overall hibernatetools project since that will confuse one-shot import of plugins.
Deleted: trunk/hibernatetools/.project
===================================================================
--- trunk/hibernatetools/.project 2008-01-09 14:58:54 UTC (rev 5560)
+++ trunk/hibernatetools/.project 2008-01-09 15:17:45 UTC (rev 5561)
@@ -1,11 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>hibernatetools</name>
- <comment></comment>
- <projects>
- </projects>
- <buildSpec>
- </buildSpec>
- <natures>
- </natures>
-</projectDescription>
16 years, 5 months