Author: sdzmitrovich
Date: 2009-08-03 08:48:45 -0400 (Mon, 03 Aug 2009)
New Revision: 16944
Added:
trunk/jst/tests/org.jboss.tools.jst.css.test/.classpath
trunk/jst/tests/org.jboss.tools.jst.css.test/.project
trunk/jst/tests/org.jboss.tools.jst.css.test/.settings/
trunk/jst/tests/org.jboss.tools.jst.css.test/.settings/org.eclipse.jdt.core.prefs
trunk/jst/tests/org.jboss.tools.jst.css.test/META-INF/
trunk/jst/tests/org.jboss.tools.jst.css.test/META-INF/MANIFEST.MF
trunk/jst/tests/org.jboss.tools.jst.css.test/build.properties
trunk/jst/tests/org.jboss.tools.jst.css.test/plugin.properties
trunk/jst/tests/org.jboss.tools.jst.css.test/plugin.xml
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/.classpath
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/.project
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/.settings/
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/.settings/.jsdtscope
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/.settings/org.eclipse.jdt.core.prefs
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/.settings/org.eclipse.wst.common.component
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/.settings/org.eclipse.wst.common.project.facet.core.xml
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/.settings/org.eclipse.wst.jsdt.ui.superType.container
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/.settings/org.eclipse.wst.jsdt.ui.superType.name
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/JavaSource/
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/JavaSource/demo/
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/JavaSource/demo/Person.java
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/JavaSource/resources.properties
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/WebContent/
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/WebContent/META-INF/
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/WebContent/META-INF/MANIFEST.MF
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/WebContent/WEB-INF/
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/WebContent/WEB-INF/classes/
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/WebContent/WEB-INF/classes/demo/
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/WebContent/WEB-INF/classes/demo/Person.class
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/WebContent/WEB-INF/classes/resources.properties
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/WebContent/WEB-INF/faces-config.xml
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/WebContent/WEB-INF/lib/
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/WebContent/WEB-INF/lib/common-annotations.jar
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/WebContent/WEB-INF/lib/commons-beanutils.jar
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/WebContent/WEB-INF/lib/commons-collections.jar
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/WebContent/WEB-INF/lib/commons-digester.jar
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/WebContent/WEB-INF/lib/commons-logging.jar
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/WebContent/WEB-INF/lib/jsf-facelets.jar
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/WebContent/WEB-INF/lib/jsf-tlds.jar
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/WebContent/WEB-INF/lib/jstl.jar
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/WebContent/WEB-INF/lib/standard.jar
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/WebContent/WEB-INF/web.xml
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/WebContent/index.jsp
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/WebContent/pages/
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/WebContent/pages/greeting.xhtml
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/WebContent/pages/inputname.xhtml
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/WebContent/pages/test.css
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/WebContent/templates/
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/WebContent/templates/common.xhtml
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/ant/
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/ant/build.properties
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/ant/build.xml
trunk/jst/tests/org.jboss.tools.jst.css.test/src/
trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/
trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/
trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/
trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/
trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/css/
trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/css/test/
trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/css/test/AbstractCSSViewTest.java
trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/css/test/CSSAllTests.java
trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/css/test/CSSTestPlugin.java
trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/css/test/CSSViewTest.java
Modified:
trunk/jst/plugins/org.jboss.tools.jst.css/META-INF/MANIFEST.MF
Log:
Modified: trunk/jst/plugins/org.jboss.tools.jst.css/META-INF/MANIFEST.MF
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.css/META-INF/MANIFEST.MF 2009-08-03 12:44:02 UTC
(rev 16943)
+++ trunk/jst/plugins/org.jboss.tools.jst.css/META-INF/MANIFEST.MF 2009-08-03 12:48:45 UTC
(rev 16944)
@@ -6,11 +6,14 @@
Bundle-Activator: org.jboss.tools.jst.css.CssPlugin
Bundle-Vendor: %Bundle-Vendor
Bundle-Localization: plugin
-Require-Bundle: org.eclipse.ui,
- org.eclipse.core.runtime,
- org.jboss.tools.jst.jsp;bundle-version="2.0.0",
- org.eclipse.ui.views.properties.tabbed;bundle-version="3.5.0",
- org.eclipse.core.databinding;bundle-version="1.2.0",
- org.eclipse.wst.css.core;bundle-version="1.1.300"
+Require-Bundle: org.eclipse.core.runtime,
+ org.jboss.tools.jst.jsp,
+ org.eclipse.ui.views.properties.tabbed,
+ org.eclipse.core.databinding,
+ org.eclipse.wst.css.core
Bundle-RequiredExecutionEnvironment: J2SE-1.5
Bundle-ActivationPolicy: lazy
+Export-Package: org.jboss.tools.jst.css,
+ org.jboss.tools.jst.css.messages,
+ org.jboss.tools.jst.css.properties,
+ org.jboss.tools.jst.css.view
Added: trunk/jst/tests/org.jboss.tools.jst.css.test/.classpath
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.css.test/.classpath (rev
0)
+++ trunk/jst/tests/org.jboss.tools.jst.css.test/.classpath 2009-08-03 12:48:45 UTC (rev
16944)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="con"
path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
+ <classpathentry exported="true" kind="con"
path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
Property changes on: trunk/jst/tests/org.jboss.tools.jst.css.test/.classpath
___________________________________________________________________
Name: svn:mime-type
+ text/xml
Name: svn:eol-style
+ native
Added: trunk/jst/tests/org.jboss.tools.jst.css.test/.project
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.css.test/.project (rev 0)
+++ trunk/jst/tests/org.jboss.tools.jst.css.test/.project 2009-08-03 12:48:45 UTC (rev
16944)
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.jboss.tools.jst.css.test</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.ManifestBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.SchemaBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.pde.PluginNature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
Property changes on: trunk/jst/tests/org.jboss.tools.jst.css.test/.project
___________________________________________________________________
Name: svn:mime-type
+ text/xml
Name: svn:eol-style
+ native
Added: trunk/jst/tests/org.jboss.tools.jst.css.test/.settings/org.eclipse.jdt.core.prefs
===================================================================
Property changes on:
trunk/jst/tests/org.jboss.tools.jst.css.test/.settings/org.eclipse.jdt.core.prefs
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:eol-style
+ native
Added: trunk/jst/tests/org.jboss.tools.jst.css.test/META-INF/MANIFEST.MF
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.css.test/META-INF/MANIFEST.MF
(rev 0)
+++ trunk/jst/tests/org.jboss.tools.jst.css.test/META-INF/MANIFEST.MF 2009-08-03 12:48:45
UTC (rev 16944)
@@ -0,0 +1,26 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: %Bundle-Name.0
+Bundle-SymbolicName: org.jboss.tools.jst.css.test;singleton:=true
+Bundle-Version: 1.0.0
+Bundle-Activator: org.jboss.tools.jst.css.test.CSSTestPlugin
+Bundle-ClassPath: css-test.jar
+Require-Bundle: org.eclipse.core.runtime,
+ org.junit,
+ org.jboss.tools.tests,
+ org.eclipse.ui.workbench,
+ org.eclipse.core.resources,
+ org.eclipse.ui.ide,
+ org.eclipse.swt,
+ org.eclipse.wst.sse.core,
+ org.eclipse.wst.css.core,
+ org.eclipse.wst.sse.ui,
+ org.eclipse.core.commands,
+ org.eclipse.jface.text,
+ org.jboss.tools.jst.css,
+ org.eclipse.core.databinding,
+ org.eclipse.ui.views.properties.tabbed
+Bundle-Vendor: %Bundle-Vendor.0
+Bundle-Localization: plugin
+Bundle-ActivationPolicy: lazy
+Bundle-RequiredExecutionEnvironment: J2SE-1.5
Property changes on: trunk/jst/tests/org.jboss.tools.jst.css.test/META-INF/MANIFEST.MF
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:eol-style
+ native
Added: trunk/jst/tests/org.jboss.tools.jst.css.test/build.properties
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.css.test/build.properties
(rev 0)
+++ trunk/jst/tests/org.jboss.tools.jst.css.test/build.properties 2009-08-03 12:48:45 UTC
(rev 16944)
@@ -0,0 +1,7 @@
+bin.includes = META-INF/,\
+ css-test.jar,\
+ plugin.properties,\
+ resources/
+source.css-test.jar = src/
+jars.compile.order = css-test.jar
+output.css-test.jar = bin/
Property changes on: trunk/jst/tests/org.jboss.tools.jst.css.test/build.properties
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:eol-style
+ native
Added: trunk/jst/tests/org.jboss.tools.jst.css.test/plugin.properties
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.css.test/plugin.properties
(rev 0)
+++ trunk/jst/tests/org.jboss.tools.jst.css.test/plugin.properties 2009-08-03 12:48:45 UTC
(rev 16944)
@@ -0,0 +1,3 @@
+#Properties file for org.jboss.tools.jst.jsp.test
+Bundle-Vendor.0 = JBoss by Red Hat
+Bundle-Name.0 = Test
\ No newline at end of file
Property changes on: trunk/jst/tests/org.jboss.tools.jst.css.test/plugin.properties
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:eol-style
+ native
Added: trunk/jst/tests/org.jboss.tools.jst.css.test/plugin.xml
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.css.test/plugin.xml (rev
0)
+++ trunk/jst/tests/org.jboss.tools.jst.css.test/plugin.xml 2009-08-03 12:48:45 UTC (rev
16944)
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?eclipse version="3.2"?>
+<plugin>
+ <extension
+ point="org.jboss.tools.vpe.ui.tests">
+ <tests
+ name="CSS Views test "
+ testSuite="org.jboss.tools.jst.css.test.CSSAllTests">
+ </tests>
+ </extension>
+
+</plugin>
Property changes on: trunk/jst/tests/org.jboss.tools.jst.css.test/plugin.xml
___________________________________________________________________
Name: svn:mime-type
+ text/xml
Name: svn:eol-style
+ native
Added: trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/.classpath
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/.classpath
(rev 0)
+++ trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/.classpath 2009-08-03
12:48:45 UTC (rev 16944)
@@ -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.eclipse.jst.server.generic.runtimeTarget/JBoss
v4.2">
+ <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/jdk1.5.0_15">
+ <attributes>
+ <attribute name="owner.project.facets" value="jst.java"/>
+ </attributes>
+ </classpathentry>
+ <classpathentry kind="output"
path="WebContent/WEB-INF/classes"/>
+</classpath>
Property changes on:
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/.classpath
___________________________________________________________________
Name: svn:mime-type
+ text/xml
Name: svn:eol-style
+ native
Added: trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/.project
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/.project
(rev 0)
+++ trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/.project 2009-08-03
12:48:45 UTC (rev 16944)
@@ -0,0 +1,48 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>cssTest</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>
Property changes on:
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/.project
___________________________________________________________________
Name: svn:mime-type
+ text/xml
Name: svn:eol-style
+ native
Added:
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/.settings/.jsdtscope
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/.settings/.jsdtscope
(rev 0)
+++
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/.settings/.jsdtscope 2009-08-03
12:48:45 UTC (rev 16944)
@@ -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.css.test/resources/cssTest/.settings/org.eclipse.jdt.core.prefs
===================================================================
---
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/.settings/org.eclipse.jdt.core.prefs
(rev 0)
+++
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/.settings/org.eclipse.jdt.core.prefs 2009-08-03
12:48:45 UTC (rev 16944)
@@ -0,0 +1,7 @@
+#Wed Jul 29 15:30:23 EEST 2009
+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
Property changes on:
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/.settings/org.eclipse.jdt.core.prefs
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:eol-style
+ native
Added:
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/.settings/org.eclipse.wst.common.component
===================================================================
---
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/.settings/org.eclipse.wst.common.component
(rev 0)
+++
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/.settings/org.eclipse.wst.common.component 2009-08-03
12:48:45 UTC (rev 16944)
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project-modules id="moduleCoreId" project-version="1.5.0">
+<wb-module deploy-name="cssTest">
+<wb-resource deploy-path="/" source-path="/WebContent"/>
+<wb-resource deploy-path="/WEB-INF/classes"
source-path="/JavaSource"/>
+<property name="context-root" value="cssTest"/>
+<property name="java-output-path"/>
+</wb-module>
+</project-modules>
Added:
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/.settings/org.eclipse.wst.common.project.facet.core.xml
===================================================================
---
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/.settings/org.eclipse.wst.common.project.facet.core.xml
(rev 0)
+++
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/.settings/org.eclipse.wst.common.project.facet.core.xml 2009-08-03
12:48:45 UTC (rev 16944)
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<faceted-project>
+ <runtime name="JBoss v4.2"/>
+ <fixed facet="jst.java"/>
+ <fixed facet="jst.web"/>
+ <installed facet="jst.java" version="5.0"/>
+ <installed facet="jst.web" version="2.5"/>
+</faceted-project>
Property changes on:
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/.settings/org.eclipse.wst.common.project.facet.core.xml
___________________________________________________________________
Name: svn:mime-type
+ text/xml
Name: svn:eol-style
+ native
Added:
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/.settings/org.eclipse.wst.jsdt.ui.superType.container
===================================================================
---
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/.settings/org.eclipse.wst.jsdt.ui.superType.container
(rev 0)
+++
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/.settings/org.eclipse.wst.jsdt.ui.superType.container 2009-08-03
12:48:45 UTC (rev 16944)
@@ -0,0 +1 @@
+org.eclipse.wst.jsdt.launching.baseBrowserLibrary
\ No newline at end of file
Added:
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/.settings/org.eclipse.wst.jsdt.ui.superType.name
===================================================================
---
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/.settings/org.eclipse.wst.jsdt.ui.superType.name
(rev 0)
+++
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/.settings/org.eclipse.wst.jsdt.ui.superType.name 2009-08-03
12:48:45 UTC (rev 16944)
@@ -0,0 +1 @@
+Window
\ No newline at end of file
Added:
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/JavaSource/demo/Person.java
===================================================================
---
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/JavaSource/demo/Person.java
(rev 0)
+++
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/JavaSource/demo/Person.java 2009-08-03
12:48:45 UTC (rev 16944)
@@ -0,0 +1,29 @@
+/*******************************************************************************
+ * 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 Tools
+ */
+public class Person {
+ private String name;
+
+ public Person() {
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+}
\ No newline at end of file
Property changes on:
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/JavaSource/demo/Person.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:eol-style
+ native
Added:
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/JavaSource/resources.properties
===================================================================
---
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/JavaSource/resources.properties
(rev 0)
+++
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/JavaSource/resources.properties 2009-08-03
12:48:45 UTC (rev 16944)
@@ -0,0 +1,2 @@
+prompt=Your Name\:
+greeting=Hello
Property changes on:
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/JavaSource/resources.properties
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:eol-style
+ native
Added:
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/WebContent/META-INF/MANIFEST.MF
===================================================================
---
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/WebContent/META-INF/MANIFEST.MF
(rev 0)
+++
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/WebContent/META-INF/MANIFEST.MF 2009-08-03
12:48:45 UTC (rev 16944)
@@ -0,0 +1,3 @@
+Manifest-Version: 1.0
+Class-Path:
+
Property changes on:
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/WebContent/META-INF/MANIFEST.MF
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:eol-style
+ native
Added:
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/WebContent/WEB-INF/classes/demo/Person.class
===================================================================
(Binary files differ)
Property changes on:
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/WebContent/WEB-INF/classes/demo/Person.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/WebContent/WEB-INF/classes/resources.properties
===================================================================
---
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/WebContent/WEB-INF/classes/resources.properties
(rev 0)
+++
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/WebContent/WEB-INF/classes/resources.properties 2009-08-03
12:48:45 UTC (rev 16944)
@@ -0,0 +1,2 @@
+prompt=Your Name\:
+greeting=Hello
Property changes on:
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/WebContent/WEB-INF/classes/resources.properties
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:eol-style
+ native
Added:
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/WebContent/WEB-INF/faces-config.xml
===================================================================
---
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/WebContent/WEB-INF/faces-config.xml
(rev 0)
+++
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/WebContent/WEB-INF/faces-config.xml 2009-08-03
12:48:45 UTC (rev 16944)
@@ -0,0 +1,27 @@
+<?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">
+ <managed-bean>
+ <managed-bean-name>person</managed-bean-name>
+ <managed-bean-class>demo.Person</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ <managed-property>
+ <property-name>name</property-name>
+ <value/>
+ </managed-property>
+ </managed-bean>
+ <navigation-rule>
+ <from-view-id>/pages/inputname.xhtml</from-view-id>
+ <navigation-case>
+ <from-outcome>greeting</from-outcome>
+ <to-view-id>/pages/greeting.xhtml</to-view-id>
+ </navigation-case>
+ </navigation-rule>
+ <application>
+ <view-handler>com.sun.facelets.FaceletViewHandler</view-handler>
+ <locale-config/>
+ </application>
+ <factory/>
+ <lifecycle/>
+</faces-config>
\ No newline at end of file
Property changes on:
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/WebContent/WEB-INF/faces-config.xml
___________________________________________________________________
Name: svn:mime-type
+ text/xml
Name: svn:eol-style
+ native
Added:
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/WebContent/WEB-INF/lib/common-annotations.jar
===================================================================
(Binary files differ)
Property changes on:
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/WebContent/WEB-INF/lib/common-annotations.jar
___________________________________________________________________
Name: svn:mime-type
+ application/x-jar
Added:
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/WebContent/WEB-INF/lib/commons-beanutils.jar
===================================================================
(Binary files differ)
Property changes on:
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/WebContent/WEB-INF/lib/commons-beanutils.jar
___________________________________________________________________
Name: svn:mime-type
+ application/x-jar
Added:
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/WebContent/WEB-INF/lib/commons-collections.jar
===================================================================
(Binary files differ)
Property changes on:
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/WebContent/WEB-INF/lib/commons-collections.jar
___________________________________________________________________
Name: svn:mime-type
+ application/x-jar
Added:
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/WebContent/WEB-INF/lib/commons-digester.jar
===================================================================
(Binary files differ)
Property changes on:
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/WebContent/WEB-INF/lib/commons-digester.jar
___________________________________________________________________
Name: svn:mime-type
+ application/x-jar
Added:
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/WebContent/WEB-INF/lib/commons-logging.jar
===================================================================
(Binary files differ)
Property changes on:
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/WebContent/WEB-INF/lib/commons-logging.jar
___________________________________________________________________
Name: svn:mime-type
+ application/x-jar
Added:
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/WebContent/WEB-INF/lib/jsf-facelets.jar
===================================================================
(Binary files differ)
Property changes on:
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/WebContent/WEB-INF/lib/jsf-facelets.jar
___________________________________________________________________
Name: svn:mime-type
+ application/x-jar
Added:
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/WebContent/WEB-INF/lib/jsf-tlds.jar
===================================================================
(Binary files differ)
Property changes on:
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/WebContent/WEB-INF/lib/jsf-tlds.jar
___________________________________________________________________
Name: svn:mime-type
+ application/x-jar
Added:
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/WebContent/WEB-INF/lib/jstl.jar
===================================================================
(Binary files differ)
Property changes on:
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/WebContent/WEB-INF/lib/jstl.jar
___________________________________________________________________
Name: svn:mime-type
+ application/x-jar
Added:
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/WebContent/WEB-INF/lib/standard.jar
===================================================================
(Binary files differ)
Property changes on:
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/WebContent/WEB-INF/lib/standard.jar
___________________________________________________________________
Name: svn:mime-type
+ application/x-jar
Added:
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/WebContent/WEB-INF/web.xml
===================================================================
---
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/WebContent/WEB-INF/web.xml
(rev 0)
+++
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/WebContent/WEB-INF/web.xml 2009-08-03
12:48:45 UTC (rev 16944)
@@ -0,0 +1,42 @@
+<?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">
+ <description>Facelets StarterKit</description>
+ <display-name>cssTest</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>
Property changes on:
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/WebContent/WEB-INF/web.xml
___________________________________________________________________
Name: svn:mime-type
+ text/xml
Name: svn:eol-style
+ native
Added:
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/WebContent/index.jsp
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/WebContent/index.jsp
(rev 0)
+++
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/WebContent/index.jsp 2009-08-03
12:48:45 UTC (rev 16944)
@@ -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
Property changes on:
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/WebContent/index.jsp
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:eol-style
+ native
Added:
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/WebContent/pages/greeting.xhtml
===================================================================
(Binary files differ)
Property changes on:
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/WebContent/pages/greeting.xhtml
___________________________________________________________________
Name: svn:mime-type
+ application/xhtml+xml
Added:
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/WebContent/pages/inputname.xhtml
===================================================================
(Binary files differ)
Property changes on:
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/WebContent/pages/inputname.xhtml
___________________________________________________________________
Name: svn:mime-type
+ application/xhtml+xml
Added:
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/WebContent/pages/test.css
===================================================================
---
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/WebContent/pages/test.css
(rev 0)
+++
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/WebContent/pages/test.css 2009-08-03
12:48:45 UTC (rev 16944)
@@ -0,0 +1,4 @@
+/* test */
+.test {
+ color: red;
+}
\ No newline at end of file
Property changes on:
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/WebContent/pages/test.css
___________________________________________________________________
Name: svn:mime-type
+ text/css
Name: svn:eol-style
+ native
Added:
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/WebContent/templates/common.xhtml
===================================================================
(Binary files differ)
Property changes on:
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/WebContent/templates/common.xhtml
___________________________________________________________________
Name: svn:mime-type
+ application/xhtml+xml
Added:
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/ant/build.properties
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/ant/build.properties
(rev 0)
+++
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/ant/build.properties 2009-08-03
12:48:45 UTC (rev 16944)
@@ -0,0 +1,3 @@
+#
+#Wed Jul 29 15:30:23 EEST 2009
+classpath.external=
Property changes on:
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/ant/build.properties
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:eol-style
+ native
Added: trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/ant/build.xml
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/ant/build.xml
(rev 0)
+++
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/ant/build.xml 2009-08-03
12:48:45 UTC (rev 16944)
@@ -0,0 +1,87 @@
+<project name="cssTest" basedir="../"
default="deploy">
+
+ <!-- Project settings -->
+ <property name="project.distname" value="cssTest"/>
+
+ <!-- Local system paths -->
+ <property file="${basedir}/ant/build.properties"/>
+ <property name="webroot.dir"
value="${basedir}/WebContent"/>
+ <property name="webinf.dir"
value="${webroot.dir}/WEB-INF"/>
+ <property name="build.dir" value="build"/>
+
+
+ <!-- classpath for JSF 1.0 -->
+ <path id="compile.classpath">
+ <pathelement path ="${webinf.dir}/lib/commons-beanutils.jar"/>
+ <pathelement path ="${webinf.dir}/lib/commons-collections.jar"/>
+ <pathelement path ="${webinf.dir}/lib/commons-digester.jar"/>
+ <pathelement path ="${webinf.dir}/lib/commons-logging.jar"/>
+ <pathelement path ="${webinf.dir}/lib/jsf-api.jar"/>
+ <pathelement path ="${webinf.dir}/lib/jsf-impl.jar"/>
+ <pathelement path ="${webinf.dir}/lib/jstl.jar"/>
+ <pathelement path ="${webinf.dir}/lib/standard.jar"/>
+ <pathelement path ="${webinf.dir}/classes"/>
+ <pathelement path ="${classpath.external}"/>
+ <pathelement path ="${classpath}"/>
+ </path>
+
+ <!-- define your folder for deployment -->
+ <property name="deploy.dir" value="deploy"/>
+
+ <!-- Check timestamp on files -->
+ <target name="prepare">
+ <tstamp/>
+ </target>
+
+ <!-- Copy any resource or configuration files -->
+ <target name="resources">
+ <copy todir="${webinf.dir}/classes"
includeEmptyDirs="no">
+ <fileset dir="JavaSource">
+ <patternset>
+ <include name="**/*.conf"/>
+ <include name="**/*.properties"/>
+ <include name="**/*.xml"/>
+ </patternset>
+ </fileset>
+ </copy>
+ </target>
+
+ <!-- Normal build of application -->
+ <target name="compile" depends="prepare,resources">
+ <javac srcdir="JavaSource"
destdir="${webinf.dir}/classes">
+ <classpath refid="compile.classpath"/>
+ </javac>
+ </target>
+
+ <!-- Remove classes directory for clean build -->
+ <target name="clean"
+ description="Prepare for clean build">
+ <delete dir="${webinf.dir}/classes"/>
+ <mkdir dir="${webinf.dir}/classes"/>
+ </target>
+
+ <!-- Build entire project -->
+ <target name="build" depends="prepare,compile"/>
+ <target name="rebuild" depends="clean,prepare,compile"/>
+
+ <!-- Create binary distribution -->
+ <target name="war" depends="build">
+ <mkdir dir="${build.dir}"/>
+ <war
+ basedir="${webroot.dir}"
+ warfile="${build.dir}/${project.distname}.war"
+ webxml="${webinf.dir}/web.xml">
+ <exclude name="WEB-INF/${build.dir}/**"/>
+ <exclude name="WEB-INF/src/**"/>
+ <exclude name="WEB-INF/web.xml"/>
+ </war>
+
+ </target>
+
+ <target name="deploy" depends="war">
+ <delete file="${deploy.dir}/${project.distname}.war"/>
+ <delete dir="${deploy.dir}/${project.distname}"/>
+ <copy file="${build.dir}/${project.distname}.war"
todir="${deploy.dir}"/>
+ </target>
+
+</project>
Property changes on:
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/ant/build.xml
___________________________________________________________________
Name: svn:mime-type
+ text/xml
Name: svn:eol-style
+ native
Added:
trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/css/test/AbstractCSSViewTest.java
===================================================================
---
trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/css/test/AbstractCSSViewTest.java
(rev 0)
+++
trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/css/test/AbstractCSSViewTest.java 2009-08-03
12:48:45 UTC (rev 16944)
@@ -0,0 +1,175 @@
+/*******************************************************************************
+ * 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.jst.css.test;
+
+import java.lang.reflect.Field;
+
+import junit.framework.TestCase;
+
+import org.eclipse.core.resources.IFile;
+import org.eclipse.core.resources.IProject;
+import org.eclipse.core.resources.ResourcesPlugin;
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.ui.IEditorPart;
+import org.eclipse.ui.IViewPart;
+import org.eclipse.ui.PartInitException;
+import org.eclipse.ui.PlatformUI;
+import org.eclipse.ui.part.FileEditorInput;
+import org.eclipse.wst.sse.core.StructuredModelManager;
+import org.eclipse.wst.sse.core.internal.provisional.IStructuredModel;
+import org.eclipse.wst.sse.ui.StructuredTextEditor;
+
+/**
+ * @author Sergey Dzmitrovich
+ *
+ */
+public abstract class AbstractCSSViewTest extends TestCase {
+
+ public static final String COMPONENTS_PATH = "WebContent/pages";
//$NON-NLS-1$
+ public static final String CSS_EDITOR_VIEW =
"org.jboss.tools.jst.css.view.editor"; //$NON-NLS-1$
+ public static final String CSS_PREVIEW_VIEW =
"org.jboss.tools.jst.css.view.preview"; //$NON-NLS-1$
+ public static final String CSS_EDITOR_ID =
"org.eclipse.wst.css.core.csssource.source"; //$NON-NLS-1$
+
+ /**
+ *
+ * @param componentPage
+ * @param projectName
+ * @return
+ * @throws CoreException
+ */
+ public static IFile getComponentPath(String componentPage,
+ String projectName) throws CoreException {
+ IProject project = ResourcesPlugin.getWorkspace().getRoot().getProject(
+ projectName);
+ if (project != null) {
+ return (IFile) project.getFolder(COMPONENTS_PATH).findMember(
+ componentPage);
+ }
+
+ return null;
+ }
+
+ /**
+ *
+ * @param input
+ * @param editorId
+ * @return
+ * @throws PartInitException
+ */
+ public IEditorPart openEditor(IFile file, String editorId)
+ throws PartInitException {
+
+ return PlatformUI.getWorkbench().getActiveWorkbenchWindow()
+ .getActivePage().openEditor(new FileEditorInput(file),
+ editorId, true);
+
+ }
+
+ /**
+ *
+ * @param textEditor
+ * @param offset
+ * @param length
+ */
+ public void setSelection(StructuredTextEditor textEditor, int offset,
+ int length) {
+
+ PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage()
+ .activate(textEditor);
+
+ textEditor.selectAndReveal(offset, length);
+
+ }
+
+ /**
+ *
+ */
+ public void closeAllEditors() {
+ PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage()
+ .closeAllEditors(false);
+ }
+
+ /**
+ *
+ * @param viewId
+ * @return
+ * @throws PartInitException
+ */
+ public IViewPart openView(String viewId) throws PartInitException {
+
+ return PlatformUI.getWorkbench().getActiveWorkbenchWindow()
+ .getActivePage().showView(viewId);
+
+ }
+
+ /**
+ *
+ * @param file
+ * @return
+ */
+ public IStructuredModel getStructuredModel(IFile file) {
+
+ return StructuredModelManager.getModelManager()
+ .getExistingModelForRead(file);
+ }
+
+ /**
+ *
+ * @param object
+ * @param fieldName
+ * @return
+ * @throws SecurityException
+ * @throws NoSuchFieldException
+ * @throws IllegalArgumentException
+ * @throws IllegalAccessException
+ */
+ public Object getFieldValue(Object object, String fieldName)
+ throws SecurityException, NoSuchFieldException,
+ IllegalArgumentException, IllegalAccessException {
+ Field selectedObjectField = object.getClass().getDeclaredField(
+ fieldName);
+ selectedObjectField.setAccessible(true);
+ return getFieldValue(object, object.getClass(), fieldName);
+ }
+
+ /**
+ *
+ * @param object
+ * @param className
+ * @param fieldName
+ * @return
+ * @throws SecurityException
+ * @throws NoSuchFieldException
+ * @throws IllegalArgumentException
+ * @throws IllegalAccessException
+ */
+ public Object getFieldValue(Object object, Class className, String fieldName)
+ throws SecurityException, NoSuchFieldException,
+ IllegalArgumentException, IllegalAccessException {
+ Field selectedObjectField = className.getDeclaredField(fieldName);
+ selectedObjectField.setAccessible(true);
+ return selectedObjectField.get(object);
+ }
+
+ @Override
+ protected void tearDown() throws Exception {
+ closeAllEditors();
+ super.tearDown();
+ }
+
+ /**
+ *
+ * @return
+ */
+ public abstract String getProjectName();
+
+}
Property changes on:
trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/css/test/AbstractCSSViewTest.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:eol-style
+ native
Added:
trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/css/test/CSSAllTests.java
===================================================================
---
trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/css/test/CSSAllTests.java
(rev 0)
+++
trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/css/test/CSSAllTests.java 2009-08-03
12:48:45 UTC (rev 16944)
@@ -0,0 +1,40 @@
+/*******************************************************************************
+ * 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.jst.css.test;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+
+import org.jboss.tools.test.util.ProjectImportTestSetup;
+
+/**
+ * @author Sergey Dzmitrovich
+ *
+ */
+public class CSSAllTests {
+
+ public static final String RESOURCE_PATH = "resources/"; //$NON-NLS-1$
+
+ public static Test suite() {
+
+ TestSuite suite = new TestSuite("Tests for CSS views"); //$NON-NLS-1$
+ // $JUnit-BEGIN$
+ suite.addTestSuite(CSSViewTest.class);
+ // $JUnit-END$
+
+ return new ProjectImportTestSetup(
+ suite,
+ CSSTestPlugin.PLUGIN_ID,
+ new String[] { RESOURCE_PATH + CSSViewTest.IMPORT_PROJECT_NAME },
+ new String[] { CSSViewTest.IMPORT_PROJECT_NAME });
+ }
+}
Property changes on:
trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/css/test/CSSAllTests.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:eol-style
+ native
Added:
trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/css/test/CSSTestPlugin.java
===================================================================
---
trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/css/test/CSSTestPlugin.java
(rev 0)
+++
trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/css/test/CSSTestPlugin.java 2009-08-03
12:48:45 UTC (rev 16944)
@@ -0,0 +1,65 @@
+/*******************************************************************************
+ * 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.jst.css.test;
+
+import org.eclipse.core.runtime.Plugin;
+import org.osgi.framework.BundleContext;
+
+/**
+ * The activator class controls the plug-in life cycle
+ */
+public class CSSTestPlugin extends Plugin {
+
+ // The plug-in ID
+ public static final String PLUGIN_ID = "org.jboss.tools.jst.css.test";
+
+ // The shared instance
+ private static CSSTestPlugin plugin;
+
+ /**
+ * The constructor
+ */
+ public CSSTestPlugin() {
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see
+ * org.eclipse.core.runtime.Plugins#start(org.osgi.framework.BundleContext)
+ */
+ public void start(BundleContext context) throws Exception {
+ super.start(context);
+ plugin = this;
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see
+ * org.eclipse.core.runtime.Plugin#stop(org.osgi.framework.BundleContext)
+ */
+ public void stop(BundleContext context) throws Exception {
+ plugin = null;
+ super.stop(context);
+ }
+
+ /**
+ * Returns the shared instance
+ *
+ * @return the shared instance
+ */
+ public static CSSTestPlugin getDefault() {
+ return plugin;
+ }
+
+}
Property changes on:
trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/css/test/CSSTestPlugin.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:eol-style
+ native
Added:
trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/css/test/CSSViewTest.java
===================================================================
---
trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/css/test/CSSViewTest.java
(rev 0)
+++
trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/css/test/CSSViewTest.java 2009-08-03
12:48:45 UTC (rev 16944)
@@ -0,0 +1,226 @@
+/*******************************************************************************
+ * 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.jst.css.test;
+
+import java.lang.reflect.InvocationTargetException;
+import java.lang.reflect.Method;
+
+import org.eclipse.core.resources.IFile;
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.jface.viewers.SelectionChangedEvent;
+import org.eclipse.jface.viewers.StructuredSelection;
+import org.eclipse.jface.viewers.Viewer;
+import org.eclipse.ui.PartInitException;
+import org.eclipse.ui.internal.views.properties.tabbed.view.TabbedPropertyRegistry;
+import org.eclipse.ui.internal.views.properties.tabbed.view.TabbedPropertyViewer;
+import org.eclipse.ui.views.properties.tabbed.ITabDescriptor;
+import org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPage;
+import org.eclipse.wst.css.core.internal.document.CSSStructuredDocumentRegionContainer;
+import org.eclipse.wst.css.core.internal.provisional.document.ICSSModel;
+import org.eclipse.wst.css.core.internal.provisional.document.ICSSStyleSheet;
+import org.eclipse.wst.sse.ui.StructuredTextEditor;
+import org.jboss.tools.jst.css.properties.CSSPropertyPage;
+import org.jboss.tools.jst.css.view.CSSEditorView;
+import org.jboss.tools.jst.css.view.CSSPreview;
+import org.jboss.tools.test.util.JobUtils;
+import org.w3c.dom.css.CSSRule;
+
+/**
+ *
+ * @author Sergey Dzmitrovich
+ *
+ */
+public class CSSViewTest extends AbstractCSSViewTest {
+
+ public static final String IMPORT_PROJECT_NAME = "cssTest"; //$NON-NLS-1$
+
+ public static final String TEST_PAGE_NAME = "test.css"; //$NON-NLS-1$
+
+ public static final int COUNT_TABS = 5; //$NON-NLS-1$
+
+ @Override
+ public String getProjectName() {
+ return IMPORT_PROJECT_NAME;
+ }
+
+ /**
+ *
+ * @throws PartInitException
+ * @throws CoreException
+ * @throws NoSuchFieldException
+ * @throws SecurityException
+ * @throws IllegalAccessException
+ * @throws IllegalArgumentException
+ */
+ public void testEditorViewSelection() throws PartInitException,
+ CoreException, SecurityException, NoSuchFieldException,
+ IllegalArgumentException, IllegalAccessException {
+
+ IFile pageFile = getComponentPath(TEST_PAGE_NAME, getProjectName());
+
+ assertNotNull(pageFile);
+
+ StructuredTextEditor editor = (StructuredTextEditor) openEditor(
+ pageFile, CSS_EDITOR_ID);
+
+ assertNotNull(editor);
+
+ CSSEditorView view = (CSSEditorView) openView(CSS_EDITOR_VIEW);
+
+ assertNotNull(view);
+
+ CSSPropertyPage page = (CSSPropertyPage) view.getCurrentPage();
+
+ assertNotNull(page);
+
+ ICSSModel model = (ICSSModel) getStructuredModel(pageFile);
+
+ assertNotNull(model);
+
+ ICSSStyleSheet document = (ICSSStyleSheet) model.getDocument();
+
+ assertNotNull(document);
+
+ CSSRule cssRule = document.getCssRules().item(0);
+
+ assertNotNull(cssRule);
+
+ int offset = ((CSSStructuredDocumentRegionContainer) cssRule)
+ .getStartOffset();
+
+ setSelection(editor, offset, 0);
+
+ JobUtils.delay(1000);
+
+ Object selectedObject = getFieldValue(page, "selectedObject"); //$NON-NLS-1$
+
+ setSelection(editor, 0, 0);
+
+ JobUtils.delay(1000);
+
+ selectedObject = getFieldValue(page, "selectedObject"); //$NON-NLS-1$
+
+ assertNotSame(cssRule, selectedObject);
+
+ }
+
+ public void testEditorViewTabs() throws CoreException, SecurityException,
+ IllegalArgumentException, NoSuchFieldException,
+ IllegalAccessException, NoSuchMethodException,
+ InvocationTargetException {
+
+ IFile pageFile = getComponentPath(TEST_PAGE_NAME, getProjectName());
+
+ assertNotNull(pageFile);
+
+ StructuredTextEditor editor = (StructuredTextEditor) openEditor(
+ pageFile, CSS_EDITOR_ID);
+
+ assertNotNull(editor);
+
+ CSSEditorView view = (CSSEditorView) openView(CSS_EDITOR_VIEW);
+
+ assertNotNull(view);
+
+ CSSPropertyPage page = (CSSPropertyPage) view.getCurrentPage();
+
+ assertNotNull(page);
+
+ ICSSModel model = (ICSSModel) getStructuredModel(pageFile);
+
+ assertNotNull(model);
+
+ ICSSStyleSheet document = (ICSSStyleSheet) model.getDocument();
+
+ assertNotNull(document);
+
+ CSSRule cssRule = document.getCssRules().item(0);
+
+ assertNotNull(cssRule);
+
+ int offset = ((CSSStructuredDocumentRegionContainer) cssRule)
+ .getStartOffset();
+
+ setSelection(editor, offset, 0);
+
+ JobUtils.delay(1000);
+
+ TabbedPropertyRegistry registry = (TabbedPropertyRegistry) getFieldValue(
+ page, TabbedPropertySheetPage.class, "registry");//$NON-NLS-1$
+
+ ITabDescriptor[] descriptors = (ITabDescriptor[]) getFieldValue(
+ registry, "tabDescriptors");//$NON-NLS-1$
+
+ TabbedPropertyViewer tabbedPropertyViewer = (TabbedPropertyViewer) getFieldValue(
+ page, TabbedPropertySheetPage.class, "tabbedPropertyViewer");//$NON-NLS-1$
+
+ Method method = Viewer.class.getDeclaredMethod("fireSelectionChanged",
+ SelectionChangedEvent.class);
+ method.setAccessible(true);
+
+ for (int i = 0; i < descriptors.length; i++) {
+
+ method.invoke(tabbedPropertyViewer, new SelectionChangedEvent(
+ tabbedPropertyViewer, new StructuredSelection(
+ descriptors[i])));
+ JobUtils.delay(2000);
+
+ }
+
+ }
+
+ /**
+ *
+ * @throws PartInitException
+ * @throws CoreException
+ */
+ public void testPreviewView() throws PartInitException, CoreException {
+
+ IFile pageFile = getComponentPath(TEST_PAGE_NAME, getProjectName());
+
+ assertNotNull(pageFile);
+
+ StructuredTextEditor editor = (StructuredTextEditor) openEditor(
+ pageFile, CSS_EDITOR_ID);
+
+ assertNotNull(editor);
+
+ CSSPreview view = (CSSPreview) openView(CSS_PREVIEW_VIEW);
+
+ String browserPage = view.generateBrowserPage();
+
+ assertNotNull(view);
+
+ ICSSModel model = (ICSSModel) getStructuredModel(pageFile);
+
+ assertNotNull(model);
+
+ ICSSStyleSheet document = (ICSSStyleSheet) model.getDocument();
+
+ assertNotNull(document);
+
+ CSSRule cssRule = document.getCssRules().item(0);
+
+ assertNotNull(cssRule);
+
+ int offset = ((CSSStructuredDocumentRegionContainer) cssRule)
+ .getStartOffset();
+
+ setSelection(editor, offset, 0);
+
+ JobUtils.delay(1000);
+
+ assertFalse(browserPage.equals(view.generateBrowserPage()));
+
+ }
+
+}
Property changes on:
trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/css/test/CSSViewTest.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:eol-style
+ native