JBoss Tools SVN: r15779 - in trunk/jst/tests/org.jboss.tools.jst.web.test: src/org/jboss/tools/jst/web/test and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2009-06-08 11:23:06 -0400 (Mon, 08 Jun 2009)
New Revision: 15779
Removed:
trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/
trunk/jst/tests/org.jboss.tools.jst.web.test/src/org/jboss/tools/jst/web/test/KbModelTest.java
Modified:
trunk/jst/tests/org.jboss.tools.jst.web.test/src/org/jboss/tools/jst/web/test/JstWebAllTests.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-2808
Modified: trunk/jst/tests/org.jboss.tools.jst.web.test/src/org/jboss/tools/jst/web/test/JstWebAllTests.java
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.web.test/src/org/jboss/tools/jst/web/test/JstWebAllTests.java 2009-06-08 15:22:07 UTC (rev 15778)
+++ trunk/jst/tests/org.jboss.tools.jst.web.test/src/org/jboss/tools/jst/web/test/JstWebAllTests.java 2009-06-08 15:23:06 UTC (rev 15779)
@@ -18,7 +18,6 @@
public static Test suite() {
TestSuite suite = new TestSuite(JstWebAllTests.class.getName());
suite.addTest(WebContentAssistProviderTest.suite());
- suite.addTestSuite(KbModelTest.class);
return suite;
}
}
\ No newline at end of file
Deleted: trunk/jst/tests/org.jboss.tools.jst.web.test/src/org/jboss/tools/jst/web/test/KbModelTest.java
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.web.test/src/org/jboss/tools/jst/web/test/KbModelTest.java 2009-06-08 15:22:07 UTC (rev 15778)
+++ trunk/jst/tests/org.jboss.tools.jst.web.test/src/org/jboss/tools/jst/web/test/KbModelTest.java 2009-06-08 15:23:06 UTC (rev 15779)
@@ -1,121 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Exadel, Inc. and 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
- *
- * Contributors:
- * Exadel, Inc. and Red Hat, Inc. - initial API and implementation
- ******************************************************************************/
-package org.jboss.tools.jst.web.test;
-
-import java.util.List;
-
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.resources.IResource;
-import org.eclipse.core.resources.IncrementalProjectBuilder;
-import org.eclipse.core.runtime.NullProgressMonitor;
-import org.jboss.tools.common.test.util.TestProjectProvider;
-import org.jboss.tools.jst.web.kb.IKbProject;
-import org.jboss.tools.jst.web.kb.internal.scanner.LoadedDeclarations;
-import org.jboss.tools.jst.web.kb.internal.scanner.ScannerException;
-import org.jboss.tools.jst.web.kb.internal.scanner.XMLScanner;
-import org.jboss.tools.jst.web.kb.taglib.ITagLibrary;
-import org.jboss.tools.test.util.JUnitUtils;
-
-import junit.framework.TestCase;
-
-public class KbModelTest extends TestCase {
-
- TestProjectProvider provider = null;
- IProject project = null;
- boolean makeCopy = true;
-
- public KbModelTest() {
- super("Kb Model Test");
- }
-
- public void setUp() throws Exception {
- provider = new TestProjectProvider("org.jboss.tools.jst.web.test",
- null,"TestKbModel" ,true);
- project = provider.getProject();
- project.refreshLocal(IResource.DEPTH_INFINITE, new NullProgressMonitor());
- this.project.build(IncrementalProjectBuilder.FULL_BUILD, null);
- }
-
- private IKbProject getKbProject() {
- IKbProject kbProject = null;
- try {
- kbProject = (IKbProject)project.getNature(IKbProject.NATURE_ID);
- } catch (Exception e) {
- JUnitUtils.fail("Cannot get seam nature.",e);
- }
- return kbProject;
- }
-
- public void testXMLScanner() {
- IKbProject kbProject = getKbProject();
-
- IFile f = project.getFile("WebContent/WEB-INF/faces-config.xml");
- assertNotNull(f);
- XMLScanner scanner = new XMLScanner();
- List<ITagLibrary> ls = null;
- try {
- LoadedDeclarations ds = scanner.parse(f, kbProject);
- ls = ds.getLibraries();
- } catch (ScannerException e) {
- JUnitUtils.fail("Error in xml scanner",e);
- }
- assertEquals(1, ls.size());
- assertTrue(ls.get(0).getComponents().length > 0);
-
- ls = null;
- f = project.getFile("WebContent/facelet-taglib.xml");
- assertNotNull(f);
- try {
- LoadedDeclarations ds = scanner.parse(f, kbProject);
- ls = ds.getLibraries();
- } catch (ScannerException e) {
- JUnitUtils.fail("Error in xml scanner",e);
- }
- assertEquals(1, ls.size());
- assertTrue(ls.get(0).getComponents().length > 0);
-
- ls = null;
- f = project.getFile("WebContent/WEB-INF/taglib2.tld");
- assertNotNull(f);
- try {
- LoadedDeclarations ds = scanner.parse(f, kbProject);
- ls = ds.getLibraries();
- } catch (ScannerException e) {
- JUnitUtils.fail("Error in xml scanner",e);
- }
- assertEquals(1, ls.size());
- assertTrue(ls.get(0).getComponents().length > 0);
-
-// System.out.println("Libraries found=" + ls.length);
-// for (int i = 0; i < ls.length; i++) {
-// System.out.println(ls[i] + ":=>" + ls[i].getComponents().length + " " + ls[i].getURI());
-// }
- }
-
- public void testKbProjectObjects() {
-
- }
-
- public void testXMLSerialization() {
-
- }
-
- public void testCleanBuild() {
-
- }
-
- protected void tearDown() throws Exception {
- if(provider != null) {
- provider.dispose();
- }
- }
-}
15 years, 6 months
JBoss Tools SVN: r15778 - in trunk/jst/tests/org.jboss.tools.jst.web.kb.test: projects and 13 other directories.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2009-06-08 11:22:07 -0400 (Mon, 08 Jun 2009)
New Revision: 15778
Added:
trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/
trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/.classpath
trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/.project
trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/.settings/
trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/.settings/.jsdtscope
trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/.settings/org.eclipse.jdt.core.prefs
trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/.settings/org.eclipse.wst.common.component
trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/.settings/org.eclipse.wst.common.project.facet.core.xml
trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/.settings/org.eclipse.wst.jsdt.ui.superType.container
trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/.settings/org.eclipse.wst.jsdt.ui.superType.name
trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/JavaSource/
trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/JavaSource/demo/
trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/JavaSource/demo/Messages.properties
trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/JavaSource/demo/User.java
trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/WebContent/
trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/WebContent/META-INF/
trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/WebContent/META-INF/MANIFEST.MF
trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/WebContent/WEB-INF/
trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/WebContent/WEB-INF/.faces-config.xml.jsfdia
trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/WebContent/WEB-INF/classes/
trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/WebContent/WEB-INF/classes/demo/
trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/WebContent/WEB-INF/classes/demo/Messages.properties
trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/WebContent/WEB-INF/classes/demo/User.class
trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/WebContent/WEB-INF/faces-config.xml
trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/WebContent/WEB-INF/lib/
trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/WebContent/WEB-INF/lib/common-annotations.jar
trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/WebContent/WEB-INF/lib/commons-beanutils.jar
trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/WebContent/WEB-INF/lib/commons-collections.jar
trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/WebContent/WEB-INF/lib/commons-digester.jar
trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/WebContent/WEB-INF/lib/commons-logging.jar
trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/WebContent/WEB-INF/lib/jsf-api.jar
trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/WebContent/WEB-INF/lib/jsf-impl.jar
trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/WebContent/WEB-INF/lib/jstl.jar
trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/WebContent/WEB-INF/lib/standard.jar
trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/WebContent/WEB-INF/taglib2.tld
trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/WebContent/WEB-INF/web.xml
trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/WebContent/facelet-taglib.xml
trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/WebContent/index.jsp
trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/WebContent/pages/
trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/WebContent/pages/hello.jsp
trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/WebContent/pages/inputUserName.jsp
trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/ant/
trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/ant/build.properties
trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/ant/build.xml
trunk/jst/tests/org.jboss.tools.jst.web.kb.test/src/org/jboss/tools/jst/web/kb/test/KbModelTest.java
Modified:
trunk/jst/tests/org.jboss.tools.jst.web.kb.test/META-INF/MANIFEST.MF
trunk/jst/tests/org.jboss.tools.jst.web.kb.test/src/org/jboss/tools/jst/web/kb/test/JstWebKbAllTests.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-2808
Modified: trunk/jst/tests/org.jboss.tools.jst.web.kb.test/META-INF/MANIFEST.MF
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.web.kb.test/META-INF/MANIFEST.MF 2009-06-08 15:08:14 UTC (rev 15777)
+++ trunk/jst/tests/org.jboss.tools.jst.web.kb.test/META-INF/MANIFEST.MF 2009-06-08 15:22:07 UTC (rev 15778)
@@ -5,9 +5,13 @@
Bundle-Version: 1.0.0
Require-Bundle: org.eclipse.ui,
org.eclipse.core.runtime,
+ org.eclipse.core.resources,
org.jboss.tools.jst.web.kb,
- org.junit
+ org.junit,
+ org.jboss.tools.common.test,
+ org.jboss.tools.tests;bundle-version="2.0.0"
Bundle-ActivationPolicy: lazy
Bundle-RequiredExecutionEnvironment: J2SE-1.5
Bundle-Vendor: %Bundle-Vendor.0
Export-Package: org.jboss.tools.jst.web.kb.test
+Bundle-ClassPath: jst-web-kb-tests.jar
Added: trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/.classpath
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/.classpath (rev 0)
+++ trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/.classpath 2009-06-08 15:22:07 UTC (rev 15778)
@@ -0,0 +1,17 @@
+<?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.jst.server.core.container/org.jboss.ide.eclipse.as.core.server.runtime.runtimeTarget/JBoss 4.2 Runtime">
+ <attributes>
+ <attribute name="owner.project.facets" value="jst.web"/>
+ </attributes>
+ </classpathentry>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jre1.6.0_04">
+ <attributes>
+ <attribute name="owner.project.facets" value="jst.java"/>
+ </attributes>
+ </classpathentry>
+ <classpathentry kind="output" path="WebContent/WEB-INF/classes"/>
+</classpath>
Added: trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/.project
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/.project (rev 0)
+++ trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/.project 2009-06-08 15:22:07 UTC (rev 15778)
@@ -0,0 +1,48 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>TestKbModel</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.wst.jsdt.core.javascriptValidator</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <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>
+ <buildCommand>
+ <name>org.jboss.tools.jst.web.kb.kbbuilder</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>
+ <nature>org.eclipse.wst.jsdt.core.jsNature</nature>
+ <nature>org.jboss.tools.jst.web.kb.kbnature</nature>
+ </natures>
+</projectDescription>
Added: trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/.settings/.jsdtscope
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/.settings/.jsdtscope (rev 0)
+++ trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/.settings/.jsdtscope 2009-06-08 15:22:07 UTC (rev 15778)
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.JRE_CONTAINER"/>
+ <classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.WebProject">
+ <attributes>
+ <attribute name="hide" value="true"/>
+ </attributes>
+ </classpathentry>
+ <classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.baseBrowserLibrary"/>
+ <classpathentry kind="output" path=""/>
+</classpath>
Added: trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/.settings/org.eclipse.jdt.core.prefs
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/.settings/org.eclipse.jdt.core.prefs (rev 0)
+++ trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/.settings/org.eclipse.jdt.core.prefs 2009-06-08 15:22:07 UTC (rev 15778)
@@ -0,0 +1,7 @@
+#Thu Jun 04 11:17:46 MSD 2009
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
+org.eclipse.jdt.core.compiler.compliance=1.6
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.source=1.6
Added: trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/.settings/org.eclipse.wst.common.component
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/.settings/org.eclipse.wst.common.component (rev 0)
+++ trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/.settings/org.eclipse.wst.common.component 2009-06-08 15:22:07 UTC (rev 15778)
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project-modules id="moduleCoreId" project-version="1.5.0">
+<wb-module deploy-name="TestKbModel">
+<wb-resource deploy-path="/" source-path="/WebContent"/>
+<wb-resource deploy-path="/WEB-INF/classes" source-path="/JavaSource"/>
+<property name="context-root" value="TestKbModel"/>
+<property name="java-output-path"/>
+</wb-module>
+</project-modules>
Added: trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/.settings/org.eclipse.wst.common.project.facet.core.xml
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/.settings/org.eclipse.wst.common.project.facet.core.xml (rev 0)
+++ trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/.settings/org.eclipse.wst.common.project.facet.core.xml 2009-06-08 15:22:07 UTC (rev 15778)
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<faceted-project>
+ <runtime name="JBoss 4.2 Runtime"/>
+ <fixed facet="jst.web"/>
+ <fixed facet="jst.java"/>
+ <installed facet="jst.java" version="6.0"/>
+ <installed facet="jst.web" version="2.5"/>
+</faceted-project>
Added: trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/.settings/org.eclipse.wst.jsdt.ui.superType.container
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/.settings/org.eclipse.wst.jsdt.ui.superType.container (rev 0)
+++ trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/.settings/org.eclipse.wst.jsdt.ui.superType.container 2009-06-08 15:22:07 UTC (rev 15778)
@@ -0,0 +1 @@
+org.eclipse.wst.jsdt.launching.baseBrowserLibrary
\ No newline at end of file
Added: trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/.settings/org.eclipse.wst.jsdt.ui.superType.name
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/.settings/org.eclipse.wst.jsdt.ui.superType.name (rev 0)
+++ trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/.settings/org.eclipse.wst.jsdt.ui.superType.name 2009-06-08 15:22:07 UTC (rev 15778)
@@ -0,0 +1 @@
+Window
\ No newline at end of file
Added: trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/JavaSource/demo/Messages.properties
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/JavaSource/demo/Messages.properties (rev 0)
+++ trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/JavaSource/demo/Messages.properties 2009-06-08 15:22:07 UTC (rev 15778)
@@ -0,0 +1,3 @@
+header=Hello Demo Application
+prompt_message=Name:
+hello_message=Hello
\ No newline at end of file
Added: trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/JavaSource/demo/User.java
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/JavaSource/demo/User.java (rev 0)
+++ trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/JavaSource/demo/User.java 2009-06-08 15:22:07 UTC (rev 15778)
@@ -0,0 +1,33 @@
+/*******************************************************************************
+ * Copyright (c) 2007 Exadel, Inc. and 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
+ *
+ * Contributors:
+ * Exadel, Inc. and Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package demo;
+
+/**
+ * Created by JBoss Developer Studio
+ */
+public class User {
+
+ private String name;
+
+ /**
+ * @return User Name
+ */
+ public String getName() {
+ return name;
+ }
+
+ /**
+ * @param User Name
+ */
+ public void setName(String name) {
+ this.name = name;
+ }
+}
\ No newline at end of file
Added: trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/WebContent/META-INF/MANIFEST.MF
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/WebContent/META-INF/MANIFEST.MF (rev 0)
+++ trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/WebContent/META-INF/MANIFEST.MF 2009-06-08 15:22:07 UTC (rev 15778)
@@ -0,0 +1,3 @@
+Manifest-Version: 1.0
+Class-Path:
+
Added: trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/WebContent/WEB-INF/.faces-config.xml.jsfdia
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/WebContent/WEB-INF/.faces-config.xml.jsfdia (rev 0)
+++ trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/WebContent/WEB-INF/.faces-config.xml.jsfdia 2009-06-08 15:22:07 UTC (rev 15778)
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<PROCESS model-entity="JSFProcess">
+ <PROCESS-ITEM NAME="rules:#pages#inputUserName.jsp"
+ PATH="/pages/inputUserName.jsp" SHAPE="32,17,0,0" model-entity="JSFProcessGroup">
+ <PROCESS-ITEM ID="rules:#pages#inputUserName.jsp:0" NAME="item"
+ PATH="/pages/inputUserName.jsp" model-entity="JSFProcessItem">
+ <PROCESS-ITEM-OUTPUT ID="hello::#pages#hello.jsp" NAME="output"
+ PATH="/pages/hello.jsp" TARGET="rules:#pages#hello.jsp"
+ TITLE="hello" model-entity="JSFProcessItemOutput"/>
+ </PROCESS-ITEM>
+ </PROCESS-ITEM>
+ <PROCESS-ITEM NAME="rules:#pages#hello.jsp" PATH="/pages/hello.jsp"
+ SHAPE="240,33,0,0" model-entity="JSFProcessGroup"/>
+</PROCESS>
Added: trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/WebContent/WEB-INF/classes/demo/Messages.properties
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/WebContent/WEB-INF/classes/demo/Messages.properties (rev 0)
+++ trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/WebContent/WEB-INF/classes/demo/Messages.properties 2009-06-08 15:22:07 UTC (rev 15778)
@@ -0,0 +1,3 @@
+header=Hello Demo Application
+prompt_message=Name:
+hello_message=Hello
\ No newline at end of file
Added: trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/WebContent/WEB-INF/classes/demo/User.class
===================================================================
(Binary files differ)
Property changes on: trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/WebContent/WEB-INF/classes/demo/User.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/WebContent/WEB-INF/faces-config.xml
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/WebContent/WEB-INF/faces-config.xml (rev 0)
+++ trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/WebContent/WEB-INF/faces-config.xml 2009-06-08 15:22:07 UTC (rev 15778)
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
+ "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
+<faces-config>
+ <component>
+ <component-type>Component1</component-type>
+ <component-class>com.Component1</component-class>
+ </component>
+ <managed-bean>
+ <description>User Name Bean</description>
+ <managed-bean-name>user</managed-bean-name>
+ <managed-bean-class>demo.User</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ <managed-property>
+ <property-name>name</property-name>
+ <property-class>java.lang.String</property-class>
+ <value/>
+ </managed-property>
+ </managed-bean>
+ <navigation-rule>
+ <from-view-id>/pages/inputUserName.jsp</from-view-id>
+ <navigation-case>
+ <from-outcome>hello</from-outcome>
+ <to-view-id>/pages/hello.jsp</to-view-id>
+ </navigation-case>
+ </navigation-rule>
+</faces-config>
Added: trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/WebContent/WEB-INF/lib/common-annotations.jar
===================================================================
(Binary files differ)
Property changes on: trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/WebContent/WEB-INF/lib/common-annotations.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/WebContent/WEB-INF/lib/commons-beanutils.jar
===================================================================
(Binary files differ)
Property changes on: trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/WebContent/WEB-INF/lib/commons-beanutils.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/WebContent/WEB-INF/lib/commons-collections.jar
===================================================================
(Binary files differ)
Property changes on: trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/WebContent/WEB-INF/lib/commons-collections.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/WebContent/WEB-INF/lib/commons-digester.jar
===================================================================
(Binary files differ)
Property changes on: trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/WebContent/WEB-INF/lib/commons-digester.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/WebContent/WEB-INF/lib/commons-logging.jar
===================================================================
(Binary files differ)
Property changes on: trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/WebContent/WEB-INF/lib/commons-logging.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/WebContent/WEB-INF/lib/jsf-api.jar
===================================================================
(Binary files differ)
Property changes on: trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/WebContent/WEB-INF/lib/jsf-api.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/WebContent/WEB-INF/lib/jsf-impl.jar
===================================================================
(Binary files differ)
Property changes on: trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/WebContent/WEB-INF/lib/jsf-impl.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/WebContent/WEB-INF/lib/jstl.jar
===================================================================
(Binary files differ)
Property changes on: trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/WebContent/WEB-INF/lib/jstl.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/WebContent/WEB-INF/lib/standard.jar
===================================================================
(Binary files differ)
Property changes on: trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/WebContent/WEB-INF/lib/standard.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/WebContent/WEB-INF/taglib2.tld
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/WebContent/WEB-INF/taglib2.tld (rev 0)
+++ trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/WebContent/WEB-INF/taglib2.tld 2009-06-08 15:22:07 UTC (rev 15778)
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN"
+ "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd">
+<taglib>
+ <tlib-version>1.0</tlib-version>
+ <jsp-version>1.2</jsp-version>
+ <short-name>taglib2</short-name>
+ <uri>taglib2</uri>
+ <tag>
+ <name>tagA</name>
+ <tag-class>com.TagA</tag-class>
+ <body-content>empty</body-content>
+ <description>Tag A</description>
+ </tag>
+</taglib>
Added: trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/WebContent/WEB-INF/web.xml
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/WebContent/WEB-INF/web.xml (rev 0)
+++ trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/WebContent/WEB-INF/web.xml 2009-06-08 15:22:07 UTC (rev 15778)
@@ -0,0 +1,26 @@
+<?xml version="1.0"?>
+<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">
+ <display-name>TestKbModel</display-name>
+ <context-param>
+ <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
+ <param-value>server</param-value>
+ </context-param>
+ <listener>
+ <listener-class>com.sun.faces.config.ConfigureListener</listener-class>
+ </listener>
+ <!-- Faces Servlet -->
+ <servlet>
+ <servlet-name>Faces Servlet</servlet-name>
+ <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
+ <load-on-startup>1</load-on-startup>
+ </servlet>
+ <!-- Faces Servlet Mapping -->
+ <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/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/WebContent/facelet-taglib.xml
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/WebContent/facelet-taglib.xml (rev 0)
+++ trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/WebContent/facelet-taglib.xml 2009-06-08 15:22:07 UTC (rev 15778)
@@ -0,0 +1,17 @@
+<?xml version="1.0"?>
+<!DOCTYPE facelet-taglib PUBLIC "-//Sun Microsystems, Inc.//DTD Facelet Taglib 1.0//EN"
+ "facelet-taglib_1_0.dtd">
+<facelet-taglib>
+ <namespace>facelet_taglib</namespace>
+ <tag>
+ <tag-name>tag1</tag-name>
+ <handler-class/>
+ </tag>
+ <tag>
+ <tag-name>tag2</tag-name>
+ <component>
+ <component-type>ctype1</component-type>
+ <handler-class/>
+ </component>
+ </tag>
+</facelet-taglib>
Added: trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/WebContent/index.jsp
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/WebContent/index.jsp (rev 0)
+++ trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/WebContent/index.jsp 2009-06-08 15:22:07 UTC (rev 15778)
@@ -0,0 +1,7 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+
+<html>
+ <body>
+ <jsp:forward page="/pages/inputUserName.jsf" />
+ </body>
+</html>
\ No newline at end of file
Added: trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/WebContent/pages/hello.jsp
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/WebContent/pages/hello.jsp (rev 0)
+++ trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/WebContent/pages/hello.jsp 2009-06-08 15:22:07 UTC (rev 15778)
@@ -0,0 +1,20 @@
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+
+<f:loadBundle var="Message" basename="demo.Messages" />
+
+<html>
+ <head>
+ <title>Hello!</title>
+ </head>
+
+ <body>
+ <f:view>
+ <h3>
+ <h:outputText value="#{Message.hello_message}" />,
+ <h:outputText value="#{user.name}" />!
+ </h3>
+ </f:view>
+ </body>
+
+</html>
\ No newline at end of file
Added: trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/WebContent/pages/inputUserName.jsp
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/WebContent/pages/inputUserName.jsp (rev 0)
+++ trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/WebContent/pages/inputUserName.jsp 2009-06-08 15:22:07 UTC (rev 15778)
@@ -0,0 +1,28 @@
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
+
+<f:loadBundle var="Message" basename="demo.Messages"/>
+
+<html>
+ <head>
+ <title>Input User Name Page</title>
+ </head>
+ <body>
+
+ <f:view>
+ <h1><h:outputText value="#{Message.header}"/></h1>
+
+ <h:messages style="color: red"/>
+
+ <h:form id="greetingForm">
+ <h:outputText value="#{Message.prompt_message}"/>
+ <h:inputText value="#{user.name}" required="true">
+ <f:validateLength maximum="30" minimum="3"/>
+ </h:inputText>
+
+ <h:commandButton action="hello" value="Say Hello!" />
+
+ </h:form>
+ </f:view>
+ </body>
+</html>
\ No newline at end of file
Added: trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/ant/build.properties
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/ant/build.properties (rev 0)
+++ trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/ant/build.properties 2009-06-08 15:22:07 UTC (rev 15778)
@@ -0,0 +1,3 @@
+#
+#Thu Jun 04 11:17:44 MSD 2009
+classpath.external=
Added: trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/ant/build.xml
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/ant/build.xml (rev 0)
+++ trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/ant/build.xml 2009-06-08 15:22:07 UTC (rev 15778)
@@ -0,0 +1,74 @@
+<project name="KickStart" default="deploy" basedir="../">
+
+ <!-- Project settings -->
+ <property file="${basedir}/ant/build.properties" />
+
+ <property name="project.name" value="KickStart" />
+ <property name="web.content.dir" value="${basedir}/WebContent" />
+ <property name="web-inf.dir" value="${web.content.dir}/WEB-INF" />
+ <property name="build.dir" value="build" />
+ <property name="war.name" value="${build.dir}/${project.name}.war" />
+
+ <!-- Define a folder for deployment -->
+ <property name="deploy.dir" value="deploy" />
+
+ <!-- Compile classpath -->
+ <path id="compile.classpath">
+ <fileset dir="${webinf.dir}/lib">
+ <include name="**/*.jar" />
+ </fileset>
+ <pathelement path="${classpath}" />
+ <pathelement path="${classpath.external}" />
+ <pathelement path="${webinf.dir}/classes" />
+ </path>
+
+ <!-- Copy any resource or configuration files -->
+ <target name="copyResources">
+ <copy todir="${web-inf.dir}/classes" includeEmptyDirs="no">
+ <fileset dir="JavaSource">
+ <patternset>
+ <include name="**/*.*" />
+ <exclude name="**/*.java" />
+ </patternset>
+ </fileset>
+ </copy>
+ </target>
+
+ <!-- Check timestamp on files -->
+ <target name="prepare">
+ <tstamp />
+ </target>
+
+ <!-- Remove classes directory for clean build -->
+ <target name="clean" description="Prepare for clean build">
+ <delete dir="${web-inf.dir}/classes" failonerror="false"/>
+ <mkdir dir="${web-inf.dir}/classes" />
+ </target>
+
+ <!-- Normal build of application -->
+ <target name="compile" depends="prepare, copyResources">
+ <javac srcdir="JavaSource" destdir="${web-inf.dir}/classes">
+ <classpath refid="compile.classpath" />
+ </javac>
+ </target>
+
+ <!-- Build Project -->
+ <target name="build" depends="prepare, compile" />
+
+ <!-- Rebuild Project -->
+ <target name="rebuild" depends="clean, prepare, compile" />
+
+ <!-- Build WAR -->
+ <target name="war" depends="build">
+ <mkdir dir="${build.dir}" />
+ <war warfile="${war.name}" basedir="${web.content.dir}" webxml="${web-inf.dir}/web.xml">
+ <exclude name="WEB-INF/web.xml" />
+ </war>
+ </target>
+
+ <target name="deploy" depends="war">
+ <delete dir="${deploy.dir}/${project.name}" failonerror="false"/>
+ <copy file="${war.name}" todir="${deploy.dir}" />
+ </target>
+
+</project>
\ No newline at end of file
Modified: trunk/jst/tests/org.jboss.tools.jst.web.kb.test/src/org/jboss/tools/jst/web/kb/test/JstWebKbAllTests.java
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.web.kb.test/src/org/jboss/tools/jst/web/kb/test/JstWebKbAllTests.java 2009-06-08 15:08:14 UTC (rev 15777)
+++ trunk/jst/tests/org.jboss.tools.jst.web.kb.test/src/org/jboss/tools/jst/web/kb/test/JstWebKbAllTests.java 2009-06-08 15:22:07 UTC (rev 15778)
@@ -21,6 +21,7 @@
public static Test suite() {
TestSuite suite = new TestSuite(JstWebKbAllTests.class.getName());
suite.addTest(WebKbTest.suite());
+ suite.addTestSuite(KbModelTest.class);
return suite;
}
}
\ No newline at end of file
Added: trunk/jst/tests/org.jboss.tools.jst.web.kb.test/src/org/jboss/tools/jst/web/kb/test/KbModelTest.java
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.web.kb.test/src/org/jboss/tools/jst/web/kb/test/KbModelTest.java (rev 0)
+++ trunk/jst/tests/org.jboss.tools.jst.web.kb.test/src/org/jboss/tools/jst/web/kb/test/KbModelTest.java 2009-06-08 15:22:07 UTC (rev 15778)
@@ -0,0 +1,121 @@
+/*******************************************************************************
+ * Copyright (c) 2007 Exadel, Inc. and 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
+ *
+ * Contributors:
+ * Exadel, Inc. and Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.jst.web.kb.test;
+
+import java.util.List;
+
+import org.eclipse.core.resources.IFile;
+import org.eclipse.core.resources.IProject;
+import org.eclipse.core.resources.IResource;
+import org.eclipse.core.resources.IncrementalProjectBuilder;
+import org.eclipse.core.runtime.NullProgressMonitor;
+import org.jboss.tools.common.test.util.TestProjectProvider;
+import org.jboss.tools.jst.web.kb.IKbProject;
+import org.jboss.tools.jst.web.kb.internal.scanner.LoadedDeclarations;
+import org.jboss.tools.jst.web.kb.internal.scanner.ScannerException;
+import org.jboss.tools.jst.web.kb.internal.scanner.XMLScanner;
+import org.jboss.tools.jst.web.kb.taglib.ITagLibrary;
+import org.jboss.tools.test.util.JUnitUtils;
+
+import junit.framework.TestCase;
+
+public class KbModelTest extends TestCase {
+
+ TestProjectProvider provider = null;
+ IProject project = null;
+ boolean makeCopy = true;
+
+ public KbModelTest() {
+ super("Kb Model Test");
+ }
+
+ public void setUp() throws Exception {
+ provider = new TestProjectProvider("org.jboss.tools.jst.web.kb.test",
+ null,"TestKbModel" ,true);
+ project = provider.getProject();
+ project.refreshLocal(IResource.DEPTH_INFINITE, new NullProgressMonitor());
+ this.project.build(IncrementalProjectBuilder.FULL_BUILD, null);
+ }
+
+ private IKbProject getKbProject() {
+ IKbProject kbProject = null;
+ try {
+ kbProject = (IKbProject)project.getNature(IKbProject.NATURE_ID);
+ } catch (Exception e) {
+ JUnitUtils.fail("Cannot get seam nature.",e);
+ }
+ return kbProject;
+ }
+
+ public void testXMLScanner() {
+ IKbProject kbProject = getKbProject();
+
+ IFile f = project.getFile("WebContent/WEB-INF/faces-config.xml");
+ assertNotNull(f);
+ XMLScanner scanner = new XMLScanner();
+ List<ITagLibrary> ls = null;
+ try {
+ LoadedDeclarations ds = scanner.parse(f, kbProject);
+ ls = ds.getLibraries();
+ } catch (ScannerException e) {
+ JUnitUtils.fail("Error in xml scanner",e);
+ }
+ assertEquals(1, ls.size());
+ assertTrue(ls.get(0).getComponents().length > 0);
+
+ ls = null;
+ f = project.getFile("WebContent/facelet-taglib.xml");
+ assertNotNull(f);
+ try {
+ LoadedDeclarations ds = scanner.parse(f, kbProject);
+ ls = ds.getLibraries();
+ } catch (ScannerException e) {
+ JUnitUtils.fail("Error in xml scanner",e);
+ }
+ assertEquals(1, ls.size());
+ assertTrue(ls.get(0).getComponents().length > 0);
+
+ ls = null;
+ f = project.getFile("WebContent/WEB-INF/taglib2.tld");
+ assertNotNull(f);
+ try {
+ LoadedDeclarations ds = scanner.parse(f, kbProject);
+ ls = ds.getLibraries();
+ } catch (ScannerException e) {
+ JUnitUtils.fail("Error in xml scanner",e);
+ }
+ assertEquals(1, ls.size());
+ assertTrue(ls.get(0).getComponents().length > 0);
+
+// System.out.println("Libraries found=" + ls.size());
+// for (ITagLibrary l: ls) {
+// System.out.println(l + ":=>" + l.getComponents().length + " " + l.getURI());
+// }
+ }
+
+ public void testKbProjectObjects() {
+
+ }
+
+ public void testXMLSerialization() {
+
+ }
+
+ public void testCleanBuild() {
+
+ }
+
+ protected void tearDown() throws Exception {
+ if(provider != null) {
+ provider.dispose();
+ }
+ }
+}
15 years, 6 months
JBoss Tools SVN: r15777 - trunk/jst/tests/org.jboss.tools.jst.web.kb.test.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2009-06-08 11:08:14 -0400 (Mon, 08 Jun 2009)
New Revision: 15777
Added:
trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/
Modified:
trunk/jst/tests/org.jboss.tools.jst.web.kb.test/build.properties
Log:
https://jira.jboss.org/jira/browse/JBIDE-2808
Modified: trunk/jst/tests/org.jboss.tools.jst.web.kb.test/build.properties
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.web.kb.test/build.properties 2009-06-08 14:48:14 UTC (rev 15776)
+++ trunk/jst/tests/org.jboss.tools.jst.web.kb.test/build.properties 2009-06-08 15:08:14 UTC (rev 15777)
@@ -1,5 +1,10 @@
-source.. = src/
output.. = bin/
bin.includes = META-INF/,\
- .,\
+ projects/,\
+ jst-web-kb-tests.jar,\
plugin.properties
+src.includes = src/,\
+ projects/,\
+ build.properties,\
+ META-INF/
+source.jst-web-kb-tests.jar = src/
15 years, 6 months
JBoss Tools SVN: r15776 - trunk/jst/plugins/org.jboss.tools.jst.web.tiles.ui/src/org/jboss/tools/jst/web/tiles/ui/editor/model/impl.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2009-06-08 10:48:14 -0400 (Mon, 08 Jun 2009)
New Revision: 15776
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web.tiles.ui/src/org/jboss/tools/jst/web/tiles/ui/editor/model/impl/TilesModel.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-4433
Modified: trunk/jst/plugins/org.jboss.tools.jst.web.tiles.ui/src/org/jboss/tools/jst/web/tiles/ui/editor/model/impl/TilesModel.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.web.tiles.ui/src/org/jboss/tools/jst/web/tiles/ui/editor/model/impl/TilesModel.java 2009-06-08 14:47:52 UTC (rev 15775)
+++ trunk/jst/plugins/org.jboss.tools.jst.web.tiles.ui/src/org/jboss/tools/jst/web/tiles/ui/editor/model/impl/TilesModel.java 2009-06-08 14:48:14 UTC (rev 15776)
@@ -199,8 +199,10 @@
public void disconnectFromModel() {
if (listener != null)
source.getModel().removeModelTreeListener(listener);
- options.disconnectFromModel();
- map.disconnectFromModel();
+ if (options != null)
+ options.disconnectFromModel();
+ if (map != null)
+ map.disconnectFromModel();
}
public boolean isEditable() {
15 years, 6 months
JBoss Tools SVN: r15775 - trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/editor.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2009-06-08 10:47:52 -0400 (Mon, 08 Jun 2009)
New Revision: 15775
Modified:
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/editor/AbstractSectionEditor.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-4433
Modified: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/editor/AbstractSectionEditor.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/editor/AbstractSectionEditor.java 2009-06-08 13:58:18 UTC (rev 15774)
+++ trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/editor/AbstractSectionEditor.java 2009-06-08 14:47:52 UTC (rev 15775)
@@ -156,7 +156,7 @@
public void setFocus() {
if(control == null) return;
- wrapper.setFocus();
+ if(!wrapper.isDisposed()) wrapper.setFocus();
}
public Object getAdapter(Class adapter) {
15 years, 6 months
JBoss Tools SVN: r15774 - in trunk: jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebContent/pages/JBIDE/4179 and 4 other directories.
by jbosstools-commits@lists.jboss.org
Author: mareshkau
Date: 2009-06-08 09:58:18 -0400 (Mon, 08 Jun 2009)
New Revision: 15774
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebContent/pages/JBIDE/4179/
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebContent/pages/JBIDE/4179/jbide4179.xhtml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebContent/pages/JBIDE/4179/jbide4179.xhtml.xml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE4179Test.java
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/VpeRenderingTemplate.java
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/JsfAllTests.java
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/VpeLinkCreator.java
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/VpeTemplateManager.java
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/SourceDomUtil.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-4179
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebContent/pages/JBIDE/4179/jbide4179.xhtml
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebContent/pages/JBIDE/4179/jbide4179.xhtml (rev 0)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebContent/pages/JBIDE/4179/jbide4179.xhtml 2009-06-08 13:58:18 UTC (rev 15774)
@@ -0,0 +1,16 @@
+<!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></head>
+<body>
+ <div id="jbide4179">
+ <h:outputText value="False" rendered="false" />
+ <h:outputText value="FalseEL" rendered="#{false}" />
+ <h:outputText value="TrueEL" rendered="#{true}" />
+ <h:outputText value="True" />
+ <h:outputText value="FalseEL2" rendered="#{false}" />
+ </div>
+</body>
+</html>
\ No newline at end of file
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebContent/pages/JBIDE/4179/jbide4179.xhtml.xml
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebContent/pages/JBIDE/4179/jbide4179.xhtml.xml (rev 0)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebContent/pages/JBIDE/4179/jbide4179.xhtml.xml 2009-06-08 13:58:18 UTC (rev 15774)
@@ -0,0 +1,15 @@
+<tests>
+ <test id="jbide4179">
+ <DIV ID="jbide4179" STYLE="-moz-user-modify: read-write;">
+ <SPAN CLASS="vpe-text">
+ TrueEL
+</SPAN>
+ <SPAN CLASS="vpe-text">
+ True
+</SPAN>
+ <SPAN CLASS="vpe-text">
+ FalseEL2
+</SPAN>
+ </DIV>
+ </test>
+</tests>
\ No newline at end of file
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/JsfAllTests.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/JsfAllTests.java 2009-06-08 13:42:28 UTC (rev 15773)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/JsfAllTests.java 2009-06-08 13:58:18 UTC (rev 15774)
@@ -57,6 +57,7 @@
import org.jboss.tools.jsf.vpe.jsf.test.jbide.JBIDE3734Test;
import org.jboss.tools.jsf.vpe.jsf.test.jbide.JBIDE3969Test;
import org.jboss.tools.jsf.vpe.jsf.test.jbide.JBIDE4037Test;
+import org.jboss.tools.jsf.vpe.jsf.test.jbide.JBIDE4179Test;
import org.jboss.tools.jsf.vpe.jsf.test.jbide.JBIDE4337Test;
import org.jboss.tools.jsf.vpe.jsf.test.jbide.JBIDE4373Test;
import org.jboss.tools.jsf.vpe.jsf.test.jbide.JBIDE675Test;
@@ -144,6 +145,7 @@
suite.addTestSuite(JBIDE675Test.class);
suite.addTestSuite(JBIDE3969Test.class);
suite.addTestSuite(JBIDE4337Test.class);
+ suite.addTestSuite(JBIDE4179Test.class);
// $JUnit-END$
// added by Max Areshkau
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE4179Test.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE4179Test.java (rev 0)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE4179Test.java 2009-06-08 13:58:18 UTC (rev 15774)
@@ -0,0 +1,98 @@
+/*******************************************************************************
+ * Copyright (c) 2007-2009 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.jboss.tools.jsf.vpe.jsf.test.jbide;
+
+import java.io.File;
+import java.util.List;
+
+import org.eclipse.core.resources.IFile;
+import org.eclipse.swt.custom.StyledText;
+import org.jboss.tools.common.el.core.ELReferenceList;
+import org.jboss.tools.common.resref.core.ResourceReference;
+import org.jboss.tools.jsf.vpe.jsf.test.JsfAllTests;
+import org.jboss.tools.vpe.editor.VpeController;
+import org.jboss.tools.vpe.ui.test.ComponentContentTest;
+import org.jboss.tools.vpe.ui.test.TestDomUtil;
+import org.jboss.tools.vpe.ui.test.TestUtil;
+import org.w3c.dom.Document;
+
+/**
+ * @author mareshkau
+ *
+ */
+public class JBIDE4179Test extends ComponentContentTest{
+
+ private static final String testName = "JBIDE/4179/jbide4179.xhtml"; //$NON-NLS-1$
+
+ private IFile file;
+
+ /* (non-Javadoc)
+ * @see org.jboss.tools.vpe.ui.test.VpeTest#setUp()
+ */
+ @Override
+ protected void setUp() throws Exception {
+ super.setUp();
+ this.file = (IFile) TestUtil.getComponentPath(JBIDE4179Test.testName,JsfAllTests.IMPORT_PROJECT_NAME);
+ ResourceReference[] entries = new ResourceReference[1];
+ entries[0] = new ResourceReference("false", ResourceReference.FILE_SCOPE); //$NON-NLS-1$
+ entries[0].setProperties("false"); //$NON-NLS-1$
+ ELReferenceList.getInstance().setAllResources(this.file,entries);
+ }
+
+ /* (non-Javadoc)
+ * @see org.jboss.tools.vpe.ui.test.VpeTest#tearDown()
+ */
+ @Override
+ protected void tearDown() throws Exception {
+ ELReferenceList.getInstance().setAllResources(this.file, new ResourceReference[0]);
+ super.tearDown();
+ }
+
+ public JBIDE4179Test(String name) {
+ super(name);
+ }
+
+ public void testJBIDE4179Test() throws Throwable {
+ VpeController vpeController =openInVpe(JsfAllTests.IMPORT_PROJECT_NAME, "JBIDE/4179/jbide4179.xhtml"); //$NON-NLS-1$
+ StyledText styledText = vpeController.getSourceEditor().getTextViewer()
+ .getTextWidget();
+ styledText.setCaretOffset(TestUtil.getLinePositionOffcet( vpeController.getSourceEditor().getTextViewer(),
+ 13, 51));
+ styledText.insert("b"); //$NON-NLS-1$
+ //wait when update job finished
+ TestUtil.delay(500);
+ File xmlTestFile = TestUtil.getComponentPath(
+ JBIDE4179Test.testName + XML_FILE_EXTENSION, getTestProjectName())
+ .getLocation().toFile();
+
+ // get document
+ Document xmlTestDocument = TestDomUtil.getDocument(xmlTestFile);
+ assertNotNull("Can't get test file, possibly file not exists "+xmlTestFile,xmlTestDocument); //$NON-NLS-1$
+
+ List<String> ids = TestDomUtil.getTestIds(xmlTestDocument);
+
+ for (String id : ids) {
+
+ compareElements(vpeController, xmlTestDocument, id, id);
+ }
+
+ if (getException() != null) {
+ throw getException();
+ }
+ }
+
+ @Override
+ protected String getTestProjectName() {
+ return JsfAllTests.IMPORT_PROJECT_NAME;
+ }
+
+
+}
Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/VpeLinkCreator.java
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/VpeLinkCreator.java 2009-06-08 13:42:28 UTC (rev 15773)
+++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/VpeLinkCreator.java 2009-06-08 13:58:18 UTC (rev 15774)
@@ -67,7 +67,7 @@
}
}
}
-
+ @Override
public VpeCreatorInfo create(VpePageContext pageContext, Node sourceNode, nsIDOMDocument visualDocument, nsIDOMElement visualElement, Map visualNodeMap) {
String href_value = getExprValue(pageContext, hrefExpr, sourceNode);
String rel_value = getExprValue(pageContext, relExpr, sourceNode);
Added: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/VpeRenderingTemplate.java
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/VpeRenderingTemplate.java (rev 0)
+++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/VpeRenderingTemplate.java 2009-06-08 13:58:18 UTC (rev 15774)
@@ -0,0 +1,54 @@
+/*******************************************************************************
+ * Copyright (c) 2007-2009 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.jboss.tools.vpe.editor.template;
+
+import org.jboss.tools.vpe.editor.context.VpePageContext;
+import org.mozilla.interfaces.nsIDOMDocument;
+import org.mozilla.interfaces.nsIDOMNode;
+import org.w3c.dom.Node;
+
+/**
+ * Used for processing templates with renderd="false" attribute.
+ *
+ * @author mareshkau
+ *
+ */
+public class VpeRenderingTemplate extends VpeAbstractTemplate{
+
+ private static VpeRenderingTemplate instance;
+
+ private VpeRenderingTemplate(){
+
+ }
+
+ public static synchronized VpeRenderingTemplate getInstance(){
+ if(instance==null) {
+ instance = new VpeRenderingTemplate();
+ }
+ return instance;
+ }
+
+ public VpeCreationData create(VpePageContext pageContext, Node sourceNode,
+ nsIDOMDocument visualDocument) {
+ return new VpeCreationData(null);
+ }
+
+ /* (non-Javadoc)
+ * @see org.jboss.tools.vpe.editor.template.VpeAbstractTemplate#getNodeForUpdate(org.jboss.tools.vpe.editor.context.VpePageContext, org.w3c.dom.Node, org.mozilla.interfaces.nsIDOMNode, java.lang.Object)
+ */
+ @Override
+ public Node getNodeForUpdate(VpePageContext pageContext, Node sourceNode,
+ nsIDOMNode visualNode, Object data) {
+ //if rendered=false, template hasn't visual presentations
+ //so we should upadte parent node
+ return sourceNode.getParentNode();
+ }
+}
Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/VpeTemplateManager.java
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/VpeTemplateManager.java 2009-06-08 13:42:28 UTC (rev 15773)
+++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/VpeTemplateManager.java 2009-06-08 13:58:18 UTC (rev 15774)
@@ -28,6 +28,7 @@
import org.eclipse.core.runtime.IConfigurationElement;
import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.Platform;
+import org.eclipse.jdt.core.dom.ThisExpression;
import org.eclipse.wst.xml.core.internal.provisional.document.IDOMElement;
import org.jboss.tools.common.xml.XMLUtilities;
import org.jboss.tools.jst.web.tld.TaglibData;
@@ -36,6 +37,7 @@
import org.jboss.tools.vpe.editor.template.custom.CustomTLDReference;
import org.jboss.tools.vpe.editor.template.textformating.TextFormatingData;
import org.jboss.tools.vpe.editor.util.HTML;
+import org.jboss.tools.vpe.editor.util.SourceDomUtil;
import org.jboss.tools.vpe.editor.util.XmlUtil;
import org.osgi.framework.Bundle;
import org.w3c.dom.Document;
@@ -315,12 +317,17 @@
VpeTemplate template = getTemplateImpl(pageContext, sourceNode, dependencySet);
if (template != null) {
return template;
- } else {
- return defTemplate;
}
+ return this.defTemplate;
}
private VpeTemplate getTemplateImpl(VpePageContext pageContext, Node sourceNode, Set<?> dependencySet) {
+ //Fix for JBIDE-4179, mareshkau
+ if((sourceNode instanceof Element) &&
+ SourceDomUtil.isRenderedAttrEqFalse(pageContext,(Element) sourceNode)){
+ return VpeRenderingTemplate.getInstance();
+ }
+
String name = getTemplateName(pageContext, sourceNode);
if (name == null) {
return null;
Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/SourceDomUtil.java
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/SourceDomUtil.java 2009-06-08 13:42:28 UTC (rev 15773)
+++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/SourceDomUtil.java 2009-06-08 13:58:18 UTC (rev 15774)
@@ -7,35 +7,55 @@
*
* Contributors:
* Exadel, Inc. and Red Hat, Inc. - initial API and implementation
- ******************************************************************************/
+ ******************************************************************************/
package org.jboss.tools.vpe.editor.util;
+import java.util.HashSet;
+import java.util.Set;
+
+import org.jboss.tools.vpe.editor.context.VpePageContext;
import org.jboss.tools.vpe.editor.mapping.VpeDomMapping;
import org.jboss.tools.vpe.editor.mapping.VpeNodeMapping;
+import org.jboss.tools.vpe.editor.proxy.VpeProxyUtil;
+import org.jboss.tools.vpe.editor.template.VpeTemplateManager;
+import org.w3c.dom.Element;
import org.w3c.dom.Node;
public class SourceDomUtil {
- static public Node getAncestorNode(Node sourceNode, String tagName){
- if(tagName == null)return null;
+ private static final Set<String> templatesNamespacesWithRendered=new HashSet<String>();
+ static {
+ templatesNamespacesWithRendered.add("h:"); //$NON-NLS-1$
+ templatesNamespacesWithRendered.add("a4j:"); //$NON-NLS-1$
+ templatesNamespacesWithRendered.add("rich:"); //$NON-NLS-1$
+ templatesNamespacesWithRendered.add("seam:"); //$NON-NLS-1$
+ }
+
+ static public Node getAncestorNode(Node sourceNode, String tagName) {
+ if (tagName == null)
+ return null;
Node element = sourceNode;
- while(true){
- if(tagName.equalsIgnoreCase(element.getNodeName())) return element;
+ while (true) {
+ if (tagName.equalsIgnoreCase(element.getNodeName()))
+ return element;
element = element.getParentNode();
- if(element == null) break;
+ if (element == null)
+ break;
}
return null;
}
-
-
- /** Finds first n-th parent of <code>sourceNode</code> that has
- * a linked non-null nodeMaping in <code>domMapping</code>.
+
+ /**
+ * Finds first n-th parent of <code>sourceNode</code> that has a linked
+ * non-null nodeMaping in <code>domMapping</code>.
*
- * @param domMapping
+ * @param domMapping
* @param sourceNode
- * @return first n-th parent of <code>sourceNode</code> that has
- * a linked non-null nodeMaping in <code>domMapping</code>
- * or <code>null</code> if there is not any. */
- public static Node getParentHavingDomMapping(final Node sourceNode, final VpeDomMapping domMapping) {
+ * @return first n-th parent of <code>sourceNode</code> that has a linked
+ * non-null nodeMaping in <code>domMapping</code> or
+ * <code>null</code> if there is not any.
+ */
+ public static Node getParentHavingDomMapping(final Node sourceNode,
+ final VpeDomMapping domMapping) {
VpeNodeMapping nodeMapping = null;
Node parent = sourceNode;
do {
@@ -45,4 +65,30 @@
return parent;
}
+
+ /**
+ * @author mareshkau FIX for JBIDE-4179 check if node have rendered=false
+ * attribute, checks el expresion to
+ * @return true if rendered="false"
+ */
+ public static boolean isRenderedAttrEqFalse(VpePageContext pageContext,
+ Element sourceNode) {
+ boolean result = false;
+ final String attrName = "rendered"; //$NON-NLS-1$
+ Element tempElement = sourceNode;
+ if (sourceNode.hasAttribute(attrName)) {
+ if (ElService.getInstance().isELNode(pageContext, sourceNode)) {
+ tempElement = (Element) VpeProxyUtil
+ .createProxyForELExpressionNode(pageContext, sourceNode);
+ }
+ if ("false".equals(tempElement.getAttribute(attrName))) { //$NON-NLS-1$
+ String templateName = VpeTemplateManager.getInstance().getTemplateName(pageContext, sourceNode);
+ String [] templatePrefix = templateName.split(":"); //$NON-NLS-1$
+ if(templatePrefix.length>1 && templatesNamespacesWithRendered.contains(templatePrefix[0]+":")) { //$NON-NLS-1$
+ result = true;
+ }
+ }
+ }
+ return result;
+ }
}
15 years, 6 months
JBoss Tools SVN: r15773 - trunk/hibernatetools/tests/org.jboss.tools.hibernate.jpt.core.test/src/org/jboss/tools/hibernate/jpt/core/test.
by jbosstools-commits@lists.jboss.org
Author: vyemialyanchyk
Date: 2009-06-08 09:42:28 -0400 (Mon, 08 Jun 2009)
New Revision: 15773
Modified:
trunk/hibernatetools/tests/org.jboss.tools.hibernate.jpt.core.test/src/org/jboss/tools/hibernate/jpt/core/test/HibernateJPACoreTests.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-4438
Modified: trunk/hibernatetools/tests/org.jboss.tools.hibernate.jpt.core.test/src/org/jboss/tools/hibernate/jpt/core/test/HibernateJPACoreTests.java
===================================================================
--- trunk/hibernatetools/tests/org.jboss.tools.hibernate.jpt.core.test/src/org/jboss/tools/hibernate/jpt/core/test/HibernateJPACoreTests.java 2009-06-08 13:38:01 UTC (rev 15772)
+++ trunk/hibernatetools/tests/org.jboss.tools.hibernate.jpt.core.test/src/org/jboss/tools/hibernate/jpt/core/test/HibernateJPACoreTests.java 2009-06-08 13:42:28 UTC (rev 15773)
@@ -336,7 +336,7 @@
will(returnValue(genericGeneratorAnnotation));
allowing(javaResourcePersistentType)
- .getSuperClassQualifiedName();
+ .getSuperclassQualifiedName();
will(returnValue(null));
allowing(javaResourcePersistentType).getAccess();
15 years, 6 months
JBoss Tools SVN: r15772 - trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/META-INF.
by jbosstools-commits@lists.jboss.org
Author: vyemialyanchyk
Date: 2009-06-08 09:38:01 -0400 (Mon, 08 Jun 2009)
New Revision: 15772
Modified:
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/META-INF/MANIFEST.MF
Log:
https://jira.jboss.org/jira/browse/JBIDE-4438
Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/META-INF/MANIFEST.MF
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/META-INF/MANIFEST.MF 2009-06-08 13:01:51 UTC (rev 15771)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/META-INF/MANIFEST.MF 2009-06-08 13:38:01 UTC (rev 15772)
@@ -25,4 +25,5 @@
org.jboss.tools.hibernate.ui.veditor.editors.figures,
org.jboss.tools.hibernate.ui.veditor.editors.model,
org.jboss.tools.hibernate.ui.veditor.editors.parts
+Import-Package: org.eclipse.ui.actions
15 years, 6 months
JBoss Tools SVN: r15771 - trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/refactoring.
by jbosstools-commits@lists.jboss.org
Author: dazarov
Date: 2009-06-08 09:01:51 -0400 (Mon, 08 Jun 2009)
New Revision: 15771
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/refactoring/SeamRenameProcessor.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-4437
Modified: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/refactoring/SeamRenameProcessor.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/refactoring/SeamRenameProcessor.java 2009-06-08 12:34:47 UTC (rev 15770)
+++ trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/refactoring/SeamRenameProcessor.java 2009-06-08 13:01:51 UTC (rev 15771)
@@ -152,6 +152,10 @@
return;
ISeamProject seamProject = SeamCorePlugin.getSeamProject(declarationFile.getProject(), true);
+
+ if(seamProject == null)
+ return;
+
files.clear();
findAnnotations(seamProject, true);
@@ -343,7 +347,8 @@
IProject[] projects = projectsSet.getAllProjects();
for (IProject project : projects) {
- scan(project);
+ if(project != null)
+ scan(project);
}
}
15 years, 6 months
JBoss Tools SVN: r15770 - in trunk/documentation/whatsnew: esb and 2 other directories.
by jbosstools-commits@lists.jboss.org
Author: max.andersen(a)jboss.com
Date: 2009-06-08 08:34:47 -0400 (Mon, 08 Jun 2009)
New Revision: 15770
Added:
trunk/documentation/whatsnew/esb/esb-news-1.1.0.M1.html
trunk/documentation/whatsnew/images/smooksconfigstyleeditor.png
trunk/documentation/whatsnew/smooks/smooks-news-1.1.0.M1.html
Removed:
trunk/documentation/whatsnew/esb/esb-1.1.0.GA.html
trunk/documentation/whatsnew/esb/x.html
Modified:
trunk/documentation/whatsnew/index.html
Log:
update whatsnew for M1
Deleted: trunk/documentation/whatsnew/esb/esb-1.1.0.GA.html
===================================================================
--- trunk/documentation/whatsnew/esb/esb-1.1.0.GA.html 2009-06-08 10:42:26 UTC (rev 15769)
+++ trunk/documentation/whatsnew/esb/esb-1.1.0.GA.html 2009-06-08 12:34:47 UTC (rev 15770)
@@ -1,71 +0,0 @@
-<?xml version="1.0" encoding="iso-8859-1"?>
-<!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">
-<head>
-<meta http-equiv="Content-Language" content="en-us" />
-<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
-<link rel="stylesheet" href="../whatsnew.css"/>
-<title>ESB tools 1.1.0.CR2 What's New</title>
-</head>
-<body>
-<h1>ESB tools 1.1.0.CR2 What's New</h1>
-
-<p align="right"><a href="../index.html">< Main Index</a> <a href="../seam/seam-news-2.0.0.CR2.html">Seam Tools ></a></p>
-
-<table border="0" cellpadding="10" cellspacing="0" width="80%">
-
- <tr>
- <td colspan="2">
- <hr/>
- <h3>Editors</h3>
- <hr/>
- </td>
- </tr>
-
- <tr>
- <td valign="top" align="right"><a name="itemname3" id="itemname3"></a><b>Smooks Action</b></td>
- <td valign="top">
- <p>The the wizard of creating the out of the box action SmooksTransformer is now deprecated, and replaced by new Smooks Action wizard.</p>
-
- <p><small><a href="https://jira.jboss.org/jira/browse/JBIDE-4187">Related Jira</a></small></p>
- </td>
- </tr>
- <tr>
- <td colspan="2">
- <hr/>
- </td>
- </tr>
-
- <tr>
- <td valign="top" align="right"><a name="itemname3" id="itemname3"></a><b>ESB 4.5 support in ESB Tools</b></td>
- <td valign="top">
- <p>ESB 4.5 supports two jboss-esb.xsd versions for jboss-esb.xml configuration file , ESB project creation wizard allows you to choose the version for configuration file, and the jboss-esb.xml editor supports the new versoin as well.</p>
-
- <p><small><a href="https://jira.jboss.org/jira/browse/JBIDE-3847">Related Jira</a></small></p>
- </td>
- </tr>
-
-
- <tr>
- <td colspan="2">
- <hr/>
- </td>
- </tr>
-
- <tr>
- <td valign="top" align="right"><a name="itemname3" id="itemname3"></a><b>Open On feature for jboss-esb.xml files</b></td>
- <td valign="top">
- <p>This feature allows you to open different types of file/pages inside <action> using OpenOn.</p>
-
- <p><small><a href="https://jira.jboss.org/jira/browse/JBIDE-3665">Related Jira</a></small></p>
- </td>
- </tr>
-
-</table>
-
-</body>
-
-</html>
-
-
Added: trunk/documentation/whatsnew/esb/esb-news-1.1.0.M1.html
===================================================================
--- trunk/documentation/whatsnew/esb/esb-news-1.1.0.M1.html (rev 0)
+++ trunk/documentation/whatsnew/esb/esb-news-1.1.0.M1.html 2009-06-08 12:34:47 UTC (rev 15770)
@@ -0,0 +1,71 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!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">
+<head>
+<meta http-equiv="Content-Language" content="en-us" />
+<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+<link rel="stylesheet" href="../whatsnew.css"/>
+<title>ESB tools 1.1.0.CR2 What's New</title>
+</head>
+<body>
+<h1>ESB tools 1.1.0.CR2 What's New</h1>
+
+<p align="right"><a href="../index.html">< Main Index</a> <a href="../smooks/smooks-news-1.1.0.M1.html">Smooks Tools ></a></p>
+
+<table border="0" cellpadding="10" cellspacing="0" width="80%">
+
+ <tr>
+ <td colspan="2">
+ <hr/>
+ <h3>Editors</h3>
+ <hr/>
+ </td>
+ </tr>
+
+ <tr>
+ <td valign="top" align="right"><a name="itemname3" id="itemname3"></a><b>Smooks Action</b></td>
+ <td valign="top">
+ <p>The the wizard of creating the out of the box action SmooksTransformer is now deprecated, and replaced by new Smooks Action wizard.</p>
+
+ <p><small><a href="https://jira.jboss.org/jira/browse/JBIDE-4187">Related Jira</a></small></p>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="2">
+ <hr/>
+ </td>
+ </tr>
+
+ <tr>
+ <td valign="top" align="right"><a name="itemname3" id="itemname3"></a><b>ESB 4.5 support in ESB Tools</b></td>
+ <td valign="top">
+ <p>ESB 4.5 supports two jboss-esb.xsd versions for jboss-esb.xml configuration file , ESB project creation wizard allows you to choose the version for configuration file, and the jboss-esb.xml editor supports the new versoin as well.</p>
+
+ <p><small><a href="https://jira.jboss.org/jira/browse/JBIDE-3847">Related Jira</a></small></p>
+ </td>
+ </tr>
+
+
+ <tr>
+ <td colspan="2">
+ <hr/>
+ </td>
+ </tr>
+
+ <tr>
+ <td valign="top" align="right"><a name="itemname3" id="itemname3"></a><b>Open On feature for jboss-esb.xml files</b></td>
+ <td valign="top">
+ <p>This feature allows you to open different types of file/pages inside <action> using OpenOn.</p>
+
+ <p><small><a href="https://jira.jboss.org/jira/browse/JBIDE-3665">Related Jira</a></small></p>
+ </td>
+ </tr>
+
+</table>
+
+</body>
+
+</html>
+
+
Deleted: trunk/documentation/whatsnew/esb/x.html
===================================================================
--- trunk/documentation/whatsnew/esb/x.html 2009-06-08 10:42:26 UTC (rev 15769)
+++ trunk/documentation/whatsnew/esb/x.html 2009-06-08 12:34:47 UTC (rev 15770)
@@ -1,244 +0,0 @@
-<?xml version="1.0" encoding="iso-8859-1"?>
-<!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">
-<head>
-<meta http-equiv="Content-Language" content="en-us" />
-<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
-<link rel="stylesheet" href="../whatsnew.css"/>
-<title>ESB tools 1.0.0.Beta1 What's New</title>
-</head>
-<body>
-<h1>ESB tools 1.0.0.Beta1 What's New</h1>
-
-<p align="right"><a href="../index.html">< Main Index</a> <a href="../as/as-news-1.1.0.beta1.html">JBoss AS Tools News ></a></p>
-
-
-<table border="0" cellpadding="10" cellspacing="0" width="80%">
-
- <tr>
- <td colspan="2">
- <hr/>
- <h3>ESB</h3>
- <hr/>
- </td>
- </tr>
- <tr>
- <td valign="top" align="right"><a name="itemname3" id="itemname3"></a><b>jboss-esb.xml editor</b></td>
- <td valign="top">
- <p>We added an structured xml editor for the jboss-esb.xml file used in JBoss ESB.</p>
- <p><img src="../images/esbxmleditor.png"/></p>
- </td>
- </tr>
- <tr>
- <td colspan="2"><hr />
- </td>
- </tr>
-
-</table>
-
-</body>
-
-</html>
-
-
-<?xml version="1.0" encoding="iso-8859-1"?>
-<!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">
-<head>
-<meta http-equiv="Content-Language" content="en-us" />
-<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
-<link rel="stylesheet" href="../whatsnew.css"/>
-<title>ESB tools 1.1.0.Beta1 What's New</title>
-</head>
-<body>
-<h1>ESB tools 1.1.0.Beta1 What's New</h1>
-
-<p align="right"><a href="../index.html">< Main Index</a> <a href="../smooks/smooks-news-1.0.0.Beta1.html">Smooks Tools News ></a></p>
-
-
-<table border="0" cellpadding="10" cellspacing="0" width="80%">
-
- <tr>
- <td colspan="2">
- <hr/>
- <h3>Projects</h3>
- <hr/>
- </td>
- </tr>
-
- <tr>
- <td valign="top" align="right"><a name="itemname3" id="itemname3"></a><b>ESB Project Deployment</b></td>
- <td valign="top">
- <p>There is now a ESB project Wizard which creates a project that can be deployed as an .esb archive to a JBoss AS based server with JBoss ESB installed.</p>
- <p><img src="../images/esb_projwiz.png"/></p>
- </td>
- </tr>
-
- <tr>
- <td colspan="2">
- <hr/>
- <h3>BPMN</h3>
- <hr/>
- </td>
- </tr>
-
- <tr>
- <td valign="top" align="right"><a name="itemname3" id="itemname3"></a><b>BPMN to jPDL Export Wizard</b></td>
- <td valign="top">
- <p>We added an export wizard for translating BPMN files created by Eclipse STP BPMN editor to jPDL that can be executed with the JBoss jBPM process engine.</p>
- <p><img src="../images/bpmn2jpdl_exportwiz.png"/></p>
-
- <p>The wizard can be activated from the <b>File > Export</b> menu.</p>
- </td>
- </tr>
-
-</table>
-
-</body>
-
-</html>
-
-
-<?xml version="1.0" encoding="iso-8859-1"?>
-<!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">
-<head>
-<meta http-equiv="Content-Language" content="en-us" />
-<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
-<link rel="stylesheet" href="../whatsnew.css"/>
-<title>ESB tools 1.1.0.CR1 What's New</title>
-</head>
-<body>
-<h1>ESB tools 1.1.0.CR1 What's New</h1>
-
-<p align="right"><a href="../index.html">< Main Index</a> <a href="../hibernate/hibernate-news-3.2.4.CR1.html">Hibernate Tools ></a></p>
-
-<table border="0" cellpadding="10" cellspacing="0" width="80%">
-
- <tr>
- <td colspan="2">
- <hr/>
- <h3>General</h3>
- <hr/>
- </td>
- </tr>
-
- <tr>
- <td valign="top" align="right"><a name="itemname3" id="itemname3"></a><b>Reference guide</b></td>
- <td valign="top">
- <p>There is now a reference guide for the ESB functionallity.</p>
- </td>
- </tr>
-
- <tr>
- <td colspan="2">
- <hr/>
- <h3>Projects</h3>
- <hr/>
- </td>
- </tr>
-
- <tr>
- <td valign="top" align="right"><a name="itemname3" id="itemname3"></a><b>"Finger touch" now for ESB projects</b></td>
- <td valign="top">
- <p>The "Finger" touches descriptors dependent on project (i.e. web.xml for WAR, application.xml for EAR) and now it also touches jboss-esb.xml for ESB projects. This allows for a quick restart of just the project without having to restart server.</p>
-<p><img src="../images/esb_touch.png"/></p>
- </td>
- </tr>
-
- <tr>
- <td colspan="2">
- <hr/>
- </td>
- </tr>
-
- <tr>
- <td valign="top" align="right"><a name="itemname3" id="itemname3"></a><b>ESB classpath container</b></td>
- <td valign="top">
- <p>The classpath container for ESB projects is now configurable allowing you to more easily change ESB runtime for a project.
-Furthermore the classpath container now also allow modification of source and JavaDoc location.</p>
- <p><img src="../images/esb_classpathcontainer.png"/></p>
- </td>
- </tr>
-
- <tr>
- <td colspan="2">
- <hr/>
- </td>
- </tr>
-
- <tr>
- <td valign="top" align="right"><a name="itemname3" id="itemname3"></a><b>"Run/Debug" a ESB project</b></td>
- <td valign="top">
- <p>The Run On and Debug On actions now work on ESB projects causing a (re)deploy for a user designated server.</p>
- </td>
- </tr>
-
- <tr>
- <td colspan="2">
- <hr/>
- </td>
- </tr>
-
- <tr>
- <td valign="top" align="right"><a name="itemname3" id="itemname3"></a><b>"Missing runtime" warning</b></td>
- <td valign="top">
- <p>If server runtime does not contain ESB runtime jars the project wizard now shows a warning to inform the user that
-the required runtime functionallity.</p>
- <p><img src="../images/esb_missingruntime.png"/></p>
- </td>
- </tr>
-
-
-</table>
-
-</body>
-
-</html>
-
-
-<?xml version="1.0" encoding="iso-8859-1"?>
-<!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">
-<head>
-<meta http-equiv="Content-Language" content="en-us" />
-<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
-<link rel="stylesheet" href="../whatsnew.css"/>
-<title>ESB tools 1.1.0.CR2 What's New</title>
-</head>
-<body>
-<h1>ESB tools 1.1.0.CR2 What's New</h1>
-
-<p align="right"><a href="../index.html">< Main Index</a> <a href="../seam/seam-news-2.0.0.CR2.html">Seam Tools ></a></p>
-
-<table border="0" cellpadding="10" cellspacing="0" width="80%">
-
- <tr>
- <td colspan="2">
- <hr/>
- <h3>Editors</h3>
- <hr/>
- </td>
- </tr>
-
- <tr>
- <td valign="top" align="right"><a name="itemname3" id="itemname3"></a><b>XSD</b></td>
- <td valign="top">
- <p>The schema used behind ESB editor now uses the latest version available (from SOA-P 4.3). This removes the errors/warnings some users have reported seeing when using SOA-P specific esb.xml files.</p>
-
- <p><small><a href="https://jira.jboss.org/jira/browse/JBIDE-3556">Related Jira</a></small></p>
- </td>
- </tr>
-
-
-</table>
-
-</body>
-
-</html>
-
-
Added: trunk/documentation/whatsnew/images/smooksconfigstyleeditor.png
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/whatsnew/images/smooksconfigstyleeditor.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Modified: trunk/documentation/whatsnew/index.html
===================================================================
--- trunk/documentation/whatsnew/index.html 2009-06-08 10:42:26 UTC (rev 15769)
+++ trunk/documentation/whatsnew/index.html 2009-06-08 12:34:47 UTC (rev 15770)
@@ -34,6 +34,8 @@
<p><a href="jst/jst-news-3.1.0.M1.html">JST/JSF Tools</a></p>
<p><a href="hibernate/hibernate-news-3.3.0.M1.html">Hibernate Tools</a></p>
<p><a href="examples/examples-news-1.1.0.M1.html">Project Examples</a></p>
+ <p><a href="esb/esb-news-1.1.0.M1.html">ESB Tools</a></p>
+ <p><a href="smooks/smooks-news-1.1.0.M1.html">Smooks Tools</a></p>
</td>
</tr>
Added: trunk/documentation/whatsnew/smooks/smooks-news-1.1.0.M1.html
===================================================================
--- trunk/documentation/whatsnew/smooks/smooks-news-1.1.0.M1.html (rev 0)
+++ trunk/documentation/whatsnew/smooks/smooks-news-1.1.0.M1.html 2009-06-08 12:34:47 UTC (rev 15770)
@@ -0,0 +1,47 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!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">
+<head>
+<meta http-equiv="Content-Language" content="en-us" />
+<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+<link rel="stylesheet" href="../whatsnew.css"/>
+<title>Smooks tools 1.1.0.M1 What's New</title>
+</head>
+<body>
+<h1>Smooks tools 1.1.0.M1 What's New</h1>
+
+<p align="right"><a href="../index.html">< Main Index</a> <a href="../core/core-news-3.1.0.M1.html">Core ></a></p>
+
+
+<table border="0" cellpadding="10" cellspacing="0" width="80%">
+
+ <tr>
+ <td colspan="2">
+ <hr/>
+ <h3>Smooks</h3>
+ <hr/>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top" align="right"><a name="itemname3" id="itemname3"></a><b>Smooks Configuration File Editor</b></td>
+ <td valign="top">
+ <p>Based on feedback the "mapping style" editor for Smooks were dropped and replaced with a more configuration close Smooks editor.</p>
+
+<p><img src="../images/smooksconfigstyleeditor.png"/></p>
+
+<p>The new editor supports both Smooks 1.0 and 1.1 style config.</p>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="2">
+ <hr/>
+ </td>
+ </tr>
+</table>
+
+</body>
+
+</html>
+
+
15 years, 6 months