JBoss Tools SVN: r16951 - trunk/bpel/features/org.jboss.tools.bpel.tests.feature.
by jbosstools-commits@lists.jboss.org
Author: dgolovin
Date: 2009-08-03 14:59:52 -0400 (Mon, 03 Aug 2009)
New Revision: 16951
Modified:
trunk/bpel/features/org.jboss.tools.bpel.tests.feature/feature.xml
Log:
org.eclipse.ant.optional.junit plugin removed from bpel.test feature to fix build errors
Modified: trunk/bpel/features/org.jboss.tools.bpel.tests.feature/feature.xml
===================================================================
--- trunk/bpel/features/org.jboss.tools.bpel.tests.feature/feature.xml 2009-08-03 14:04:33 UTC (rev 16950)
+++ trunk/bpel/features/org.jboss.tools.bpel.tests.feature/feature.xml 2009-08-03 18:59:52 UTC (rev 16951)
@@ -33,13 +33,6 @@
</requires>
<plugin
- id="org.eclipse.ant.optional.junit"
- download-size="0"
- install-size="0"
- version="0.0.0"
- fragment="true"/>
-
- <plugin
id="org.eclipse.test"
download-size="0"
install-size="0"
16 years, 4 months
JBoss Tools SVN: r16950 - in trunk: jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/customFaceletsTestProject/WebContent/pages and 5 other directories.
by jbosstools-commits@lists.jboss.org
Author: mareshkau
Date: 2009-08-03 10:04:33 -0400 (Mon, 03 Aug 2009)
New Revision: 16950
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/customFaceletsTestProject/WebContent/pages/testOutputText.xhtml
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/src/org/jboss/tools/jsf/vpe/jsf/template/AbstractEditableJsfTemplate.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE4373Test.java
trunk/vpe/plugins/org.jboss.tools.vpe.html/src/org/jboss/tools/vpe/html/template/HtmlTextTemplate.java
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeController.java
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeSourceDomBuilder.java
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/VpeAbstractTemplate.java
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/VpeHtmlTemplate.java
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/VpeTemplate.java
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/TextUtil.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-3197
Modified: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/src/org/jboss/tools/jsf/vpe/jsf/template/AbstractEditableJsfTemplate.java
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/src/org/jboss/tools/jsf/vpe/jsf/template/AbstractEditableJsfTemplate.java 2009-08-03 13:26:50 UTC (rev 16949)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/src/org/jboss/tools/jsf/vpe/jsf/template/AbstractEditableJsfTemplate.java 2009-08-03 14:04:33 UTC (rev 16950)
@@ -13,13 +13,23 @@
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
+import java.util.regex.Matcher;
+import java.util.regex.Pattern;
+import org.eclipse.jface.text.IRegion;
+import org.eclipse.jface.text.Region;
+import org.eclipse.wst.xml.core.internal.document.AttrImpl;
import org.jboss.tools.jsf.vpe.jsf.template.util.JSF;
+import org.jboss.tools.vpe.editor.context.VpePageContext;
import org.jboss.tools.vpe.editor.template.VpeAbstractTemplate;
import org.jboss.tools.vpe.editor.util.HTML;
+import org.jboss.tools.vpe.editor.util.TextUtil;
import org.mozilla.interfaces.nsIDOMElement;
+import org.mozilla.interfaces.nsIDOMNode;
import org.w3c.dom.Attr;
import org.w3c.dom.Element;
+import org.w3c.dom.Node;
+import org.w3c.dom.Text;
/**
* general class for jsf templates.
@@ -27,7 +37,7 @@
* @author Sergey Dzmitrovich
*/
public abstract class AbstractEditableJsfTemplate extends VpeAbstractTemplate {
-
+
/**
* Gets the output attribute node.
*
@@ -88,4 +98,16 @@
.getAttribute(sourceAttributeName));
}
+ @Override
+ public IRegion getSourceRegionForOpenOn(VpePageContext pageContext, Node sourceNode ,nsIDOMNode domNode) {
+
+ final Attr attr= getOutputAttributeNode((Element) sourceNode);
+ int offset = TextUtil.getStartELDocumentPosition(attr);
+ if(offset!=-1){
+ return new Region(offset, 0);
+ } else {
+ return super.getSourceRegionForOpenOn(pageContext, sourceNode, domNode);
+ }
+
+ }
}
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/customFaceletsTestProject/WebContent/pages/testOutputText.xhtml
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/customFaceletsTestProject/WebContent/pages/testOutputText.xhtml (rev 0)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/customFaceletsTestProject/WebContent/pages/testOutputText.xhtml 2009-08-03 14:04:33 UTC (rev 16950)
@@ -0,0 +1,15 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:c="http://java.sun.com/jstl/core"
+ xmlns:ma="http://mareshkau/tags">
+
+<head>
+<f:loadBundle basename="resources" var="msg" />
+</head>
+<body>#{msg.prompt}
+<h:outputText value="#{msg.greeting}" />
+</body>
+</html>
\ 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/jbide/JBIDE4373Test.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE4373Test.java 2009-08-03 13:26:50 UTC (rev 16949)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE4373Test.java 2009-08-03 14:04:33 UTC (rev 16950)
@@ -78,6 +78,33 @@
}
/**
+ * test open on for following case <h:outputText value="#{msg.greeting}" />
+ * @throws CoreException
+ */
+ public void testOpenOnForMessageBundlesInJSFElements() throws CoreException{
+ VpeController vpeController = openInVpe(JsfAllTests.IMPORT_CUSTOM_FACELETS_PROJECT, "testOutputText.xhtml"); //$NON-NLS-1$
+ int position = TestUtil.getLinePositionOffcet(vpeController.getSourceEditor().getTextViewer(), 13, 30);
+ Node sourceNode = SelectionUtil.getNodeBySourcePosition(vpeController.getSourceEditor(), position);
+ nsIDOMNode domNode = vpeController.getDomMapping().getNearVisualNode(sourceNode);
+ vpeController.getSourceBuilder().openOn(domNode);
+ IEditorPart activeEditor = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().getActiveEditor();
+ assertEquals("file should be opened","resources.properties", activeEditor.getEditorInput().getName()); //$NON-NLS-1$//$NON-NLS-2$
+ }
+ /**
+ * test open on for following case #{msg.prompt}
+ * @throws CoreException
+ */
+ public void testOpenOnForTextNodesMessageBundles() throws CoreException{
+ VpeController vpeController = openInVpe(JsfAllTests.IMPORT_CUSTOM_FACELETS_PROJECT, "testOutputText.xhtml"); //$NON-NLS-1$
+ int position = TestUtil.getLinePositionOffcet(vpeController.getSourceEditor().getTextViewer(), 12, 15);
+ Node sourceNode = SelectionUtil.getNodeBySourcePosition(vpeController.getSourceEditor(), position);
+ nsIDOMNode domNode = vpeController.getDomMapping().getNearVisualNode(sourceNode);
+ vpeController.getSourceBuilder().openOn(domNode);
+ IEditorPart activeEditor = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().getActiveEditor();
+ assertEquals("file should be opened","resources.properties", activeEditor.getEditorInput().getName()); //$NON-NLS-1$//$NON-NLS-2$
+
+ }
+ /**
* Test openOn mechanism for VpeDefineContainerTemplate
* in facelets' ui:composition template (VpeCompositionTemplate).
*
Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeController.java
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeController.java 2009-08-03 13:26:50 UTC (rev 16949)
+++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeController.java 2009-08-03 14:04:33 UTC (rev 16950)
@@ -1162,13 +1162,8 @@
}
try {
nsIDOMNode visualNode = VisualDomUtil.getTargetNode(mouseEvent);
-
if (visualNode != null) {
-
- if (!sourceBuilder.openBundleEditors(visualNode)) {
sourceBuilder.openOn(visualNode);
-// sourceBuilder.openIncludeEditor(visualNode);
- }
if (VpeDebug.PRINT_VISUAL_MOUSE_EVENT) {
System.out.println("<<< mouseDblClick visualNode: " + visualNode.getNodeName() + //$NON-NLS-1$
" (" + visualNode + ")"); //$NON-NLS-1$ //$NON-NLS-2$
Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeSourceDomBuilder.java
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeSourceDomBuilder.java 2009-08-03 13:26:50 UTC (rev 16949)
+++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeSourceDomBuilder.java 2009-08-03 14:04:33 UTC (rev 16950)
@@ -284,40 +284,7 @@
}
}
- boolean openBundleEditors(nsIDOMNode visualNode) {
-
- VpeNodeMapping nodeMapping = NodesManagingUtil.getNodeMapping(
- domMapping, visualNode);
- if (nodeMapping != null
- && nodeMapping instanceof VpeElementMapping) {
-
- VpeElementMapping elementMapping = (VpeElementMapping) nodeMapping;
-
- VpeTemplate template = elementMapping.getTemplate();
-
- // as all templates implement new method
- template.openBundle(pageContext, visualNode, elementMapping);
- // if (!template.openBundle(pageContext, visualNode,
- // elementMapping))
- // template.openBundleEditors(pageContext,
- // (Element) elementMapping.getSourceNode(),
- // elementMapping.getData());
- }
- return false;
- }
-// boolean openIncludeEditor(nsIDOMNode visualNode) {
-// Node sourceNode = domMapping.getNearSourceNode(visualNode);
-// if (sourceNode != null && sourceNode.getNodeType() == Node.ELEMENT_NODE) {
-// VpeElementMapping elementMapping = (VpeElementMapping)domMapping.getNodeMapping(sourceNode);
-// if (elementMapping != null) {
-// VpeTemplate template = elementMapping.getTemplate();
-// template.openIncludeEditor(pageContext, (Element)sourceNode, elementMapping.getData());
-// }
-// }
-// return false;
-// }
-
boolean isEmptyDocument() {
if (sourceDocument == null) return true;
boolean empty = false;
Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/VpeAbstractTemplate.java
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/VpeAbstractTemplate.java 2009-08-03 13:26:50 UTC (rev 16949)
+++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/VpeAbstractTemplate.java 2009-08-03 14:04:33 UTC (rev 16950)
@@ -16,6 +16,7 @@
import org.eclipse.jface.text.IRegion;
import org.eclipse.jface.text.Region;
+import org.eclipse.swt.graphics.Point;
import org.eclipse.wst.sse.core.internal.provisional.IndexedRegion;
import org.eclipse.wst.sse.ui.StructuredTextEditor;
import org.eclipse.wst.sse.ui.internal.StructuredTextViewer;
@@ -1214,18 +1215,8 @@
Element sourceElement, Object data) {
}
- /**
- * Opens proprties editor for bundle value Is invoked at double mouse click
- * on visual element.
- *
- * @param sourceElement The current element of the source tree.
- * @param data The arbitrary data, built by a method <code>create</code>
- * @param pageContext Contains the information on edited page.
- */
- public void openBundleEditors(VpePageContext pageContext,
- Element sourceElement, Object data) {
- }
+
// /**
// * Opens editor of source file for include-element.
// *
@@ -1466,6 +1457,7 @@
* @author mareshkau
*/
public IRegion getSourceRegionForOpenOn(VpePageContext pageContext, Node sourceNode ,nsIDOMNode domNode) {
+
int offset = NodesManagingUtil.getStartOffsetNode(sourceNode);
//calculate openOnPosition,prefixLengght+>+":"
offset+=sourceNode.getPrefix().length()+1+1;
Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/VpeHtmlTemplate.java
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/VpeHtmlTemplate.java 2009-08-03 13:26:50 UTC (rev 16949)
+++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/VpeHtmlTemplate.java 2009-08-03 14:04:33 UTC (rev 16950)
@@ -302,33 +302,6 @@
return dependencyFromBundle;
}
- /**
- *
- * Deprecated
- */
- @Override
- public void openBundleEditors(VpePageContext pageContext, Element sourceElement, Object data) {
- openBundleEditors(pageContext, sourceElement, (Map<VpeTemplate,nsIDOMElement>) data);
- }
-
- private void openBundleEditors(VpePageContext pageContext, Element sourceElement, Map<VpeTemplate,nsIDOMElement> visualNodeMap) {
- if (dependencyFromBundle) {
- VpeCreator[] creators = dependencyMap.getCreators(VpeExpressionBuilder.SIGNATURE_JSF_VALUE);
- for (int i = 0; i < creators.length; i++) {
- if (creators[i] instanceof VpeOutputAttributes) {
- String[] outputAttrs = ((VpeOutputAttributes)creators[i]).getOutputAttributes();
- if (outputAttrs != null) {
- for (int j = 0; j < outputAttrs.length; j++) {
- String value = sourceElement.getAttribute(outputAttrs[j]);
- if (value != null) {
- pageContext.getBundle().openBundle(value, getPageLocale(pageContext, (IDOMElement)sourceElement));
- }
- }
- }
- }
- }
- }
- }
private static final String VIEW_TAGNAME = "view"; //$NON-NLS-1$
private static final String LOCALE_ATTRNAME = "locale"; //$NON-NLS-1$
Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/VpeTemplate.java
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/VpeTemplate.java 2009-08-03 13:26:50 UTC (rev 16949)
+++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/VpeTemplate.java 2009-08-03 14:04:33 UTC (rev 16950)
@@ -346,21 +346,6 @@
void refreshBundleValues(VpePageContext pageContext, Element sourceElement,
Object data);
- /**
- * @deprecated
- * Opens proprties editor for bundle value Is invoked at double mouse click
- * on visual element
- *
- * @param pageContext
- * Contains the information on edited page.
- * @param sourceElement
- * The current element of the source tree.
- * @param data
- * The arbitrary data, built by a method <code>create</code>
- */
- void openBundleEditors(VpePageContext pageContext, Element sourceElement,
- Object data);
-
// /**
// * Opens editor of source file for include-element
// *
Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/TextUtil.java
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/TextUtil.java 2009-08-03 13:26:50 UTC (rev 16949)
+++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/TextUtil.java 2009-08-03 14:04:33 UTC (rev 16950)
@@ -16,9 +16,12 @@
import java.util.Map;
import java.util.Properties;
import java.util.Map.Entry;
+import java.util.regex.Matcher;
+import java.util.regex.Pattern;
import org.jboss.tools.vpe.VpePlugin;
import org.mozilla.interfaces.nsIDOMKeyEvent;
+import org.w3c.dom.Node;
public class TextUtil {
@@ -37,6 +40,8 @@
private final static char CHR_ESC_STOP = ';';
private final static char CHR_HEX_FLAG = 'x';
private final static String SPCHARS = "\f\n\r\t\u0020\u2028\u2029"; //$NON-NLS-1$
+ private static final Pattern elPattern = Pattern.compile("(#|\\$)\\{\\s*([^\\s])"); //$NON-NLS-1$
+
private final static Map<Character, String> textSet = new HashMap<Character, String>();
static {
try {
@@ -428,7 +433,30 @@
return str;
}
+ /**
+ * @author mareshkau
+ * @param node or attribute for which we want calculate position start el position
+ *
+ * @return position if we can find position
+ * -1 if we can't find pisition, <document_offcet>'#{el}', return start position of el
+ */
+ public static int getStartELDocumentPosition(Node node) {
+ if (node != null && node.getNodeValue() != null
+ && node.getNodeValue().length() > 0) {
+ int elPosition = 0;
+ Matcher beginELExpresion = elPattern.matcher(node.getNodeValue());
+ if (beginELExpresion.find()) {
+ // +1 becouse we should have position of first symbol
+ elPosition = beginELExpresion.start(2) + 1;
+ }
+ int offset = NodesManagingUtil.getStartOffsetNode(node)
+ + elPosition;
+ return offset;
+ }
+ return -1;
+ }
+
/**
* @param value
* @return
Modified: trunk/vpe/plugins/org.jboss.tools.vpe.html/src/org/jboss/tools/vpe/html/template/HtmlTextTemplate.java
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe.html/src/org/jboss/tools/vpe/html/template/HtmlTextTemplate.java 2009-08-03 13:26:50 UTC (rev 16949)
+++ trunk/vpe/plugins/org.jboss.tools.vpe.html/src/org/jboss/tools/vpe/html/template/HtmlTextTemplate.java 2009-08-03 14:04:33 UTC (rev 16950)
@@ -68,7 +68,11 @@
public IRegion getSourceRegionForOpenOn(VpePageContext pageContext, Node sourceNode, nsIDOMNode domNode) {
Point selection = pageContext.getSourceBuilder().getSelectionRange();
-
+ //processing for el expressions
+ int offset = TextUtil.getStartELDocumentPosition(sourceNode);
+ if(offset!=-1) {
+ return new Region(offset,0);
+ }
return new Region(selection.x,0);
}
16 years, 4 months
JBoss Tools SVN: r16949 - trunk/jsf/docs/userguide/en/modules.
by jbosstools-commits@lists.jboss.org
Author: ochikvina
Date: 2009-08-03 09:26:50 -0400 (Mon, 03 Aug 2009)
New Revision: 16949
Modified:
trunk/jsf/docs/userguide/en/modules/editors.xml
Log:
https://jira.jboss.org/jira/browse/JBDS-441 - updating the 'Graphical Web Application File (web.xml) Editor' section;
Modified: trunk/jsf/docs/userguide/en/modules/editors.xml
===================================================================
--- trunk/jsf/docs/userguide/en/modules/editors.xml 2009-08-03 13:20:45 UTC (rev 16948)
+++ trunk/jsf/docs/userguide/en/modules/editors.xml 2009-08-03 13:26:50 UTC (rev 16949)
@@ -1996,8 +1996,12 @@
<title>Graphical Web Application File (web.xml) Editor</title>
- <para>The Web Application File editor comes with the same features you will find in all
- other JBoss Developer Studio editors:</para>
+ <para>The deployment descriptor <emphasis>
+ <property>web.xml</property></emphasis> file is intended for describing the servlets, container-managed
+ security constraints and various deployment properties specific for your Web Application.</para>
+
+ <para>To edit the deployment descriptor <property>JBoss Developer Studio</property> provides its own
+ <property>web.xml editor</property> that comes with the same features you will find in all other <property>JBDS</property> editors:</para>
<itemizedlist>
<listitem>
@@ -2010,6 +2014,11 @@
<section id="TreeView1">
<title>Tree View</title>
+ <para>Switch to the <property>Tree view</property> if you want to edit <emphasis>
+ <property>web.xml</property></emphasis> in a graphical mode.
+ All elements that <emphasis>
+ <property>web.xml</property></emphasis> could include are located in the left area of the editor in a tree format.
+ Click a node on the left to display and edit its properties that will appear in the right-hand area.</para>
<figure>
<title>Tree View</title>
<mediaobject>
16 years, 4 months
JBoss Tools SVN: r16948 - trunk/struts/docs/struts_tools_ref_guide/en/modules.
by jbosstools-commits@lists.jboss.org
Author: ochikvina
Date: 2009-08-03 09:20:45 -0400 (Mon, 03 Aug 2009)
New Revision: 16948
Modified:
trunk/struts/docs/struts_tools_ref_guide/en/modules/editors.xml
Log:
https://jira.jboss.org/jira/browse/JBDS-441 - adding new section about web.xml editor;
Modified: trunk/struts/docs/struts_tools_ref_guide/en/modules/editors.xml
===================================================================
--- trunk/struts/docs/struts_tools_ref_guide/en/modules/editors.xml 2009-08-03 13:15:00 UTC (rev 16947)
+++ trunk/struts/docs/struts_tools_ref_guide/en/modules/editors.xml 2009-08-03 13:20:45 UTC (rev 16948)
@@ -13,7 +13,21 @@
<title>Editors</title>
<para>In this chapter we'll introduce you to featured graphical editors for specific
- Struts files such as Struts Configuration files, Tiles files and Struts Validation files.</para>
+ Struts files such as Struts Configuration files, Tiles files, Struts Validation files and web.xml.</para>
+
+ <section id="webxml_editor">
+ <title>Web.xml Editor</title>
+
+ <para>The <emphasis>
+ <property>web.xml</property></emphasis> file inside the <emphasis>
+ <property>WEB-INF</property></emphasis> folder is a deployment descriptor file for a Web Application. It
+ describes the servlets and other components and deployment properties that make up your application.</para>
+
+ <para><property>JBoss Tools</property> add the <emphasis>
+ <property>web.xml</property></emphasis> file to created Struts project automatically and provides a special editor for its editing.
+ See the Visual Web Tools guide that gives a descriptive information on the <ulink url="&jsflink;#GraphicalWebApplicationFileEditor">web.xml editor</ulink>.</para>
+ </section>
+
<section id="struts_config_editor">
<title>Graphical Editor for Struts Configuration Files</title>
@@ -98,9 +112,8 @@
<title>Tree View</title>
- <para>The Tree view represents the different elements of the Struts application that are
- organized into functional categories on the left-hand side and a form for editing
- the properties of currently selected items on the right-hand side.</para>
+ <para>The Tree view represents the different elements of the Struts application that are organized into functional categories
+ on the left-hand side and a form for editing the properties of currently selected items on the right-hand side.</para>
<figure>
<title>Tree View</title>
@@ -109,9 +122,9 @@
<imagedata fileref="images/struts/struts_17.png"/>
</imageobject>
</mediaobject>
- </figure>
-
- <para>You can also right-click on any node in the category tree and perform appropriate
+ </figure>
+
+ <para>You can right-click on any node in the category tree and perform appropriate
operations through a context menu. For instance, by right-clicking on the
action-mappings category node, you can add new actions to the application.</para>
@@ -123,6 +136,41 @@
</imageobject>
</mediaobject>
</figure>
+
+ <para>Let's consider the tree on the left more closely.</para>
+
+ <itemizedlist>
+ <listitem><para>Under the <emphasis>
+ <property>data-sources</property></emphasis> node you can create a Data Source object that will be configured
+ and made available as a servlet context attribute.</para></listitem>
+
+ <listitem><para>The <emphasis>
+ <property>form-beans</property></emphasis> node is meant for creating a set of form bean descriptors for this module.
+ Every created element under this node is a JavaBean that implements the org.apache.struts.action.ActionForm class.
+ Use the Properties editor on the right to adjust properties specific to every created form-bean.</para></listitem>
+
+ <listitem><para>The <emphasis>
+ <property>global-exceptions</property></emphasis> node is intended for registering the handlers for the exceptions
+ that might be thrown by an Action object.</para></listitem>
+
+ <listitem><para>Use the <emphasis>
+ <property>global-forwards</property></emphasis> node to add, edit or delete a global forwards that represent
+ ActionForward objects available to all Action objects as a return value.</para></listitem>
+
+ <listitem><para>The <emphasis>
+ <property>controller</property></emphasis> node allows you to configure the controller properties.</para></listitem>
+
+ <listitem><para>Under the <emphasis>
+ <property>resources</property></emphasis> node you can add, delete, or edit message resources.</para></listitem>
+
+ <listitem><para>Under the <emphasis>
+ <property>plug-ins</property></emphasis> node you can define a Struts plug-in. Right-click the node, select <emphasis>
+ <property>Create Plug-in</property></emphasis>
+ and specify the plug-ib <emphasis>
+ <property>Id</property></emphasis> and <emphasis>
+ <property>ClassName</property></emphasis> by pointing to the Java class which implements the org.apache.struts.action.PlugIn interface. </para></listitem>
+
+ </itemizedlist>
</section>
<section id="StrutsSourceMode9655">
16 years, 4 months
JBoss Tools SVN: r16947 - trunk/jsf/docs/jsf_tools_ref_guide/en.
by jbosstools-commits@lists.jboss.org
Author: ochikvina
Date: 2009-08-03 09:15:00 -0400 (Mon, 03 Aug 2009)
New Revision: 16947
Modified:
trunk/jsf/docs/jsf_tools_ref_guide/en/master.xml
Log:
https://jira.jboss.org/jira/browse/JBDS-441 - adding new chapter;
Modified: trunk/jsf/docs/jsf_tools_ref_guide/en/master.xml
===================================================================
--- trunk/jsf/docs/jsf_tools_ref_guide/en/master.xml 2009-08-03 13:14:30 UTC (rev 16946)
+++ trunk/jsf/docs/jsf_tools_ref_guide/en/master.xml 2009-08-03 13:15:00 UTC (rev 16947)
@@ -6,6 +6,7 @@
<!ENTITY introduction SYSTEM "modules/introduction.xml">
<!ENTITY jsf_support SYSTEM "modules/jsf_support.xml">
<!ENTITY projects SYSTEM "modules/projects.xml">
+<!ENTITY webxml_editor SYSTEM "modules/webxml_editor.xml">
<!ENTITY jsf_config_file SYSTEM "modules/jsf_config_file.xml">
<!ENTITY managed_beans SYSTEM "modules/managed_beans.xml">
<!ENTITY creation_and_registration SYSTEM "modules/creation_and_registration.xml">
@@ -67,6 +68,7 @@
&introduction;
&jsf_support;
&projects;
+ &webxml_editor;
&jsf_config_file;
&managed_beans;
&creation_and_registration;
16 years, 4 months
JBoss Tools SVN: r16946 - trunk/jsf/docs/jsf_tools_ref_guide/en/modules.
by jbosstools-commits@lists.jboss.org
Author: ochikvina
Date: 2009-08-03 09:14:30 -0400 (Mon, 03 Aug 2009)
New Revision: 16946
Added:
trunk/jsf/docs/jsf_tools_ref_guide/en/modules/webxml_editor.xml
Log:
https://jira.jboss.org/jira/browse/JBDS-441 - adding new chapter;
Added: trunk/jsf/docs/jsf_tools_ref_guide/en/modules/webxml_editor.xml
===================================================================
--- trunk/jsf/docs/jsf_tools_ref_guide/en/modules/webxml_editor.xml (rev 0)
+++ trunk/jsf/docs/jsf_tools_ref_guide/en/modules/webxml_editor.xml 2009-08-03 13:14:30 UTC (rev 16946)
@@ -0,0 +1,21 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<chapter id="webxml_editor" xreflabel="webxml_editor">
+ <?dbhtml filename="webxml_editor.html"?>
+ <chapterinfo>
+ <keywordset>
+ <keyword>JBoss Tools</keyword>
+ <keyword>JSF Tools</keyword>
+ </keywordset>
+ </chapterinfo>
+
+ <title>Web.xml Editor</title>
+
+ <para>The <emphasis>
+ <property>web.xml</property></emphasis> file inside the <emphasis>
+ <property>WEB-INF</property></emphasis> folder is a deployment descriptor file for a Web Application. It
+ describes the servlets and other components and deployment properties that make up your application.</para>
+
+ <para><property>JBoss Tools</property> add the <emphasis>
+ <property>web.xml</property></emphasis> file to created JSF project automatically and provides a special editor for its editing.
+ See the Visual Web Tools guide that gives a descriptive information on the <ulink url="&jsflink;#GraphicalWebApplicationFileEditor">web.xml editor</ulink>.</para>
+</chapter>
\ No newline at end of file
16 years, 4 months
JBoss Tools SVN: r16945 - trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/contentassist.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2009-08-03 09:07:22 -0400 (Mon, 03 Aug 2009)
New Revision: 16945
Modified:
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/contentassist/AbstractXMLContentAssistProcessor.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-4603
Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/contentassist/AbstractXMLContentAssistProcessor.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/contentassist/AbstractXMLContentAssistProcessor.java 2009-08-03 12:48:45 UTC (rev 16944)
+++ trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/contentassist/AbstractXMLContentAssistProcessor.java 2009-08-03 13:07:22 UTC (rev 16945)
@@ -673,7 +673,7 @@
// Get Fixed Structured Document Region
IStructuredDocumentRegion sdFixedRegion = this.getStructuredDocumentRegion(getOffset());
if (sdFixedRegion == null)
- return null;
+ return EMPTY_TAGS;
n = findNodeForOffset(xmlDocument, sdFixedRegion.getStartOffset());
}
16 years, 4 months
JBoss Tools SVN: r16944 - in trunk/jst: tests/org.jboss.tools.jst.css.test and 23 other directories.
by jbosstools-commits@lists.jboss.org
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
16 years, 4 months
JBoss Tools SVN: r16943 - trunk/jst/tests.
by jbosstools-commits@lists.jboss.org
Author: sdzmitrovich
Date: 2009-08-03 08:44:02 -0400 (Mon, 03 Aug 2009)
New Revision: 16943
Added:
trunk/jst/tests/org.jboss.tools.jst.css.test/
Log:
adding of tests for css views
16 years, 4 months
JBoss Tools SVN: r16942 - workspace/yzhishko/org.jboss.tools.ui.bot.test/src/org/jboss/tools/ui/bot/test.
by jbosstools-commits@lists.jboss.org
Author: yzhishko
Date: 2009-08-03 08:42:47 -0400 (Mon, 03 Aug 2009)
New Revision: 16942
Modified:
workspace/yzhishko/org.jboss.tools.ui.bot.test/src/org/jboss/tools/ui/bot/test/JBTSWTBotTestCase.java
Log:
waitForJobs() method was fixed to run tests under Linux.
Modified: workspace/yzhishko/org.jboss.tools.ui.bot.test/src/org/jboss/tools/ui/bot/test/JBTSWTBotTestCase.java
===================================================================
--- workspace/yzhishko/org.jboss.tools.ui.bot.test/src/org/jboss/tools/ui/bot/test/JBTSWTBotTestCase.java 2009-08-03 12:18:12 UTC (rev 16941)
+++ workspace/yzhishko/org.jboss.tools.ui.bot.test/src/org/jboss/tools/ui/bot/test/JBTSWTBotTestCase.java 2009-08-03 12:42:47 UTC (rev 16942)
@@ -147,6 +147,7 @@
// }
protected void waitForJobs(){
+ delay();
while (!Job.getJobManager().isIdle()) {
delay();
}
16 years, 4 months