JBoss Tools SVN: r12073 - trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline.
by jbosstools-commits@lists.jboss.org
Author: izhukov
Date: 2008-11-26 07:25:06 -0500 (Wed, 26 Nov 2008)
New Revision: 12073
Modified:
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/JSPDialogCellEditor.java
Log:
Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/JSPDialogCellEditor.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/JSPDialogCellEditor.java 2008-11-26 11:46:32 UTC (rev 12072)
+++ trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/JSPDialogCellEditor.java 2008-11-26 12:25:06 UTC (rev 12073)
@@ -138,25 +138,26 @@
context.put("value", value);
- if (attributeName.equalsIgnoreCase(CSSConstants.STYLE)
- || attributeName.endsWith(CSSConstants.STYLE.toLowerCase())) {
- CSSStyleDialog dialog = new CSSStyleDialog(cellEditorWindow.getShell(),
- ((value == null) ? Constants.EMPTY : value));
+ attributeName = attributeName.toLowerCase();
+ if (attributeName.equalsIgnoreCase(CSSConstants.CLASS)
+ || attributeName.endsWith(CSSConstants.CLASS.toLowerCase())) {
+ CSSClassDialog dialog = new CSSClassDialog(cellEditorWindow.getShell(), null, false);
+ dialog.setCurrentStyleClass(value);
if (dialog.open() == Window.OK) {
externalEditing = false;
- return dialog.getNewStyle();
+ return dialog.getSelectorName();
}
- } else if (attributeName.equalsIgnoreCase(CSSConstants.CLASS)
- || attributeName.endsWith(CSSConstants.CLASS.toLowerCase())) {
- CSSClassDialog dialog = new CSSClassDialog(cellEditorWindow.getShell(), null, false);
- dialog.setCurrentStyleClass(value);
+ } else if (attributeName.equalsIgnoreCase(CSSConstants.STYLE)
+ || attributeName.endsWith(CSSConstants.STYLE.toLowerCase())) {
+ CSSStyleDialog dialog = new CSSStyleDialog(cellEditorWindow.getShell(),
+ ((value == null) ? Constants.EMPTY : value));
if (dialog.open() == Window.OK) {
externalEditing = false;
- return dialog.getSelectorName();
+ return dialog.getNewStyle();
}
} else {
JSPTreeDialog dialog = new JSPTreeDialog();
16 years, 3 months
JBoss Tools SVN: r12072 - trunk/portlet/docs/reference/en/modules.
by jbosstools-commits@lists.jboss.org
Author: ochikvina
Date: 2008-11-26 06:46:32 -0500 (Wed, 26 Nov 2008)
New Revision: 12072
Removed:
trunk/portlet/docs/reference/en/modules/portlets_support.xml
Log:
https://jira.jboss.org/jira/browse/JBDS-479 - deleting old chapter;
Deleted: trunk/portlet/docs/reference/en/modules/portlets_support.xml
===================================================================
--- trunk/portlet/docs/reference/en/modules/portlets_support.xml 2008-11-26 11:39:52 UTC (rev 12071)
+++ trunk/portlet/docs/reference/en/modules/portlets_support.xml 2008-11-26 11:46:32 UTC (rev 12072)
@@ -1,228 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<chapter id="portlets_support" xreflabel="portlets_support">
- <?dbhtml filename="portlets_support.html"?>
- <title>JBoss Portlet Support</title>
-
- <para><property>JBoss Tools</property> (starting from 3.0 Alpha) support the JSR-168 Portlet
- Specification (Portlet 1.0), JSR-286 Portlet Specification (Portlet 2.0) and work with
- <property>Portlet Bridge</property> for supporting Portlets in JSF/Seam applications.
- All these are performed through the Create New Portlet wizards.</para>
-
- <para>There are two kinds of the Create Portlet wizards: <property>Java Portlet</property> and
- <property>JSF/Seam Portlet</property>.</para>
-
- <para>How to create Java Portlet within just organized Dynamic Web Project we will show you
- further in this chapter.</para>
-
- <section id="adding_java_portlet">
- <title>Adding a Java Portlet to the Project</title>
-
- <para>Here, we'll show how you can add a new Java Portlet to our project.</para>
-
- <para>Call the New Java Portlet wizard by selecting <emphasis>
- <property>New > Other > JBoss Tools Web > Portlet > Java
- Portlet</property>.</emphasis></para>
-
- <figure>
- <title>New Java Portlet</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/portlets_support/portlets_support_1.png"/>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>The wizard fills in The Web Project and Source Folder fields for you. Then you need to
- specify the Java package and the Class name and click <emphasis>
- <property>Next</property>
- </emphasis>.</para>
-
- <figure>
- <title>Specifying Class File Destination</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/portlets_support/portlets_support_2.png"/>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>On the other page you will be able to set the display name of the Portlet, a title, a
- description, the supported modes and init parameters.</para>
-
- <figure>
- <title>Specifying Class File Destination</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/portlets_support/portlets_support_3.png"/>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>On the next screen you can define which methods from
- <emphasis>GenericPortlet</emphasis> you want to override.</para>
-
- <figure>
- <title>Specifying Class File Destination</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/portlets_support/portlets_support_4.png"/>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>The last screen lets you build <property>JBoss Portal</property> specific descriptors
- to create an instance during the deployment and place it directly on the Portal.</para>
-
- <figure>
- <title>Specifying Class File Destination</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/portlets_support/portlets_support_5.png"/>
- </imageobject>
- </mediaobject>
- </figure>
-
- <tip>
- <title>Tip:</title>
-
- <para>If you uncheck the <emphasis> Create Portlet Instance</emphasis> checkbox,
- <property>JBoss Tools</property> won't create the deployment elements
- in the <emphasis> default-object.xml</emphasis> and <emphasis>
- portlet-instances.xml</emphasis> files.</para>
- </tip>
-
- <para>Once Java Portlet is created, new resources have been added to the project structure.
- As you can see on the figure below, it adds a Java Portlet class (<emphasis>
- <property>TestPortlet.java</property>
- </emphasis> in our case), <emphasis>
- <property>default-object.xml</property>
- </emphasis> and <emphasis>
- <property>portlet-instances.xml</property>
- </emphasis> files and updates <emphasis>
- <property>portlet.xml</property>
- </emphasis> as well.</para>
-
- <figure>
- <title>The structure of Web Project with Java Portlet created</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/portlets_support/portlets_support_6.png"/>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>Thus, now the Project is ready to be built and deployed.</para>
- </section>
-
- <section id="adding_JsfSeam_portlet">
- <title>Adding JSF/Seam Portlets</title>
-
- <para>What comes to JSF/Seam Portlets, you need to have a Web Project with enabled JSF/Seam
- Portlet Facets. Thus in this case when starting a new Dynamic Web Project, you should
- point to <emphasis>JBoss JSF/Seam Portlet Project v1.0</emphasis> (or
- <emphasis>v2.0</emphasis>) Configuration respectively.</para>
-
- <figure>
- <title>Dynamic Web Project with JSF/Seam Portlet Facet</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/portlets_support/portlets_support_7.png"/>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>To create Portlet in the JSF/Seam Project you should go to <emphasis>
- <property>New > Other > JBoss Tools Web > Portlet > JSF/Seam
- Portlet</property>.</emphasis></para>
-
- <figure>
- <title>Calling the JSF/Seam Portlet Wizard</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/portlets_support/portlets_support_8.png"/>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>If a project contains the Seam Portlet facet, default values in the wizard will be set
- as for a Seam Portlet.</para>
-
- <figure>
- <title>JBoss JSF/Seam Portlet Wizard Page with JSF defaults</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/portlets_support/portlets_support_9.png"/>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>Otherwise, the default values are as defined for a JSF Portlet.</para>
-
- <figure>
- <title>JBoss JSF/Seam Portlet Wizard Page with Seam defaults</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/portlets_support/portlets_support_10.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- </section>
-
- <section>
- <title>Deploying a Portlet to JBoss Portal</title>
-
- <para>You can deploy the created project in the way you deploy any other Web Application.
- Right click on the project and do <emphasis>
- <property>Run As > Run On Server</property>
- </emphasis> and accept the defaults. On the <emphasis>
- <property>Add and Remove Projects</property>
- </emphasis> page move the created Project to the right and click <emphasis>
- <property>Finish</property>.</emphasis></para>
-
- <figure>
- <title>Deploying the Portlet Application</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/portlets_support/portlets_support_11.png"/>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>It will deploy the Portlet Web Application and start <property>JBoss AS</property>.</para>
-
- <tip>
- <title>Tip:</title>
-
- <para>You should use <emphasis>http://localhost:8080/portal</emphasis> URL to see your
- Portlet in the Browser.</para>
- </tip>
-
- <figure>
- <title>Java Portlet in the Browser Window</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/portlets_support/portlets_support_12.png"/>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>The JSF Portlet looks in the Browser as follows.</para>
-
- <figure>
- <title>JSF Portlet in the Browser Window</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/portlets_support/portlets_support_13.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- <para>With this document you've learnt how to get started with <property>JBoss
- Portal</property> using <property>JBoss Tools</property> suite of Eclipse plugins. The
- above chapters walked you through the steps on how to organize a web project with portlets
- which includes a sample staff and deploy it onto the <property>JBoss Portal</property>.</para>
-
- <para>If you still have questions or suggestions you are always welcome on our <ulink
- url="http://www.jboss.com/index.html?module=bb&op=viewforum&f=201"
- >Forum</ulink>. Your feedback will be very much appreciated.</para>
- </section>
-</chapter>
16 years, 3 months
JBoss Tools SVN: r12071 - in trunk/portlet/docs/reference/en/images: jsf_portlet and 1 other directories.
by jbosstools-commits@lists.jboss.org
Author: ochikvina
Date: 2008-11-26 06:39:52 -0500 (Wed, 26 Nov 2008)
New Revision: 12071
Added:
trunk/portlet/docs/reference/en/images/jsf_portlet/
trunk/portlet/docs/reference/en/images/jsf_portlet/jsf_portlet1.png
trunk/portlet/docs/reference/en/images/jsf_portlet/jsf_portlet10.png
trunk/portlet/docs/reference/en/images/jsf_portlet/jsf_portlet11.png
trunk/portlet/docs/reference/en/images/jsf_portlet/jsf_portlet2.png
trunk/portlet/docs/reference/en/images/jsf_portlet/jsf_portlet3.png
trunk/portlet/docs/reference/en/images/jsf_portlet/jsf_portlet4.png
trunk/portlet/docs/reference/en/images/jsf_portlet/jsf_portlet5.png
trunk/portlet/docs/reference/en/images/jsf_portlet/jsf_portlet6.png
trunk/portlet/docs/reference/en/images/jsf_portlet/jsf_portlet7.png
trunk/portlet/docs/reference/en/images/jsf_portlet/jsf_portlet8.png
trunk/portlet/docs/reference/en/images/jsf_portlet/jsf_portlet9.png
trunk/portlet/docs/reference/en/images/seam_portlet/
trunk/portlet/docs/reference/en/images/seam_portlet/seam_portlet1.png
trunk/portlet/docs/reference/en/images/seam_portlet/seam_portlet2.png
trunk/portlet/docs/reference/en/images/seam_portlet/seam_portlet3.png
trunk/portlet/docs/reference/en/images/seam_portlet/seam_portlet4.png
trunk/portlet/docs/reference/en/images/seam_portlet/seam_portlet5.png
trunk/portlet/docs/reference/en/images/seam_portlet/seam_portlet6.png
trunk/portlet/docs/reference/en/images/seam_portlet/seam_portlet7.png
trunk/portlet/docs/reference/en/images/seam_portlet/seam_portlet8.png
Log:
https://jira.jboss.org/jira/browse/JBDS-479 - adding folders with screens;
Added: trunk/portlet/docs/reference/en/images/jsf_portlet/jsf_portlet1.png
===================================================================
(Binary files differ)
Property changes on: trunk/portlet/docs/reference/en/images/jsf_portlet/jsf_portlet1.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/portlet/docs/reference/en/images/jsf_portlet/jsf_portlet10.png
===================================================================
(Binary files differ)
Property changes on: trunk/portlet/docs/reference/en/images/jsf_portlet/jsf_portlet10.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/portlet/docs/reference/en/images/jsf_portlet/jsf_portlet11.png
===================================================================
(Binary files differ)
Property changes on: trunk/portlet/docs/reference/en/images/jsf_portlet/jsf_portlet11.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/portlet/docs/reference/en/images/jsf_portlet/jsf_portlet2.png
===================================================================
(Binary files differ)
Property changes on: trunk/portlet/docs/reference/en/images/jsf_portlet/jsf_portlet2.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/portlet/docs/reference/en/images/jsf_portlet/jsf_portlet3.png
===================================================================
(Binary files differ)
Property changes on: trunk/portlet/docs/reference/en/images/jsf_portlet/jsf_portlet3.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/portlet/docs/reference/en/images/jsf_portlet/jsf_portlet4.png
===================================================================
(Binary files differ)
Property changes on: trunk/portlet/docs/reference/en/images/jsf_portlet/jsf_portlet4.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/portlet/docs/reference/en/images/jsf_portlet/jsf_portlet5.png
===================================================================
(Binary files differ)
Property changes on: trunk/portlet/docs/reference/en/images/jsf_portlet/jsf_portlet5.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/portlet/docs/reference/en/images/jsf_portlet/jsf_portlet6.png
===================================================================
(Binary files differ)
Property changes on: trunk/portlet/docs/reference/en/images/jsf_portlet/jsf_portlet6.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/portlet/docs/reference/en/images/jsf_portlet/jsf_portlet7.png
===================================================================
(Binary files differ)
Property changes on: trunk/portlet/docs/reference/en/images/jsf_portlet/jsf_portlet7.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/portlet/docs/reference/en/images/jsf_portlet/jsf_portlet8.png
===================================================================
(Binary files differ)
Property changes on: trunk/portlet/docs/reference/en/images/jsf_portlet/jsf_portlet8.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/portlet/docs/reference/en/images/jsf_portlet/jsf_portlet9.png
===================================================================
(Binary files differ)
Property changes on: trunk/portlet/docs/reference/en/images/jsf_portlet/jsf_portlet9.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/portlet/docs/reference/en/images/seam_portlet/seam_portlet1.png
===================================================================
(Binary files differ)
Property changes on: trunk/portlet/docs/reference/en/images/seam_portlet/seam_portlet1.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/portlet/docs/reference/en/images/seam_portlet/seam_portlet2.png
===================================================================
(Binary files differ)
Property changes on: trunk/portlet/docs/reference/en/images/seam_portlet/seam_portlet2.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/portlet/docs/reference/en/images/seam_portlet/seam_portlet3.png
===================================================================
(Binary files differ)
Property changes on: trunk/portlet/docs/reference/en/images/seam_portlet/seam_portlet3.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/portlet/docs/reference/en/images/seam_portlet/seam_portlet4.png
===================================================================
(Binary files differ)
Property changes on: trunk/portlet/docs/reference/en/images/seam_portlet/seam_portlet4.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/portlet/docs/reference/en/images/seam_portlet/seam_portlet5.png
===================================================================
(Binary files differ)
Property changes on: trunk/portlet/docs/reference/en/images/seam_portlet/seam_portlet5.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/portlet/docs/reference/en/images/seam_portlet/seam_portlet6.png
===================================================================
(Binary files differ)
Property changes on: trunk/portlet/docs/reference/en/images/seam_portlet/seam_portlet6.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/portlet/docs/reference/en/images/seam_portlet/seam_portlet7.png
===================================================================
(Binary files differ)
Property changes on: trunk/portlet/docs/reference/en/images/seam_portlet/seam_portlet7.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/portlet/docs/reference/en/images/seam_portlet/seam_portlet8.png
===================================================================
(Binary files differ)
Property changes on: trunk/portlet/docs/reference/en/images/seam_portlet/seam_portlet8.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
16 years, 3 months
JBoss Tools SVN: r12070 - trunk/portlet/docs/reference/en.
by jbosstools-commits@lists.jboss.org
Author: ochikvina
Date: 2008-11-26 06:38:55 -0500 (Wed, 26 Nov 2008)
New Revision: 12070
Modified:
trunk/portlet/docs/reference/en/master.xml
Log:
https://jira.jboss.org/jira/browse/JBDS-479 - adding new chapters;
Modified: trunk/portlet/docs/reference/en/master.xml
===================================================================
--- trunk/portlet/docs/reference/en/master.xml 2008-11-26 11:34:29 UTC (rev 12069)
+++ trunk/portlet/docs/reference/en/master.xml 2008-11-26 11:38:55 UTC (rev 12070)
@@ -5,7 +5,9 @@
[<!ENTITY intro SYSTEM "modules/intro.xml">
<!ENTITY installation SYSTEM "modules/installation.xml">
<!ENTITY starting_project SYSTEM "modules/starting_project.xml">
-<!ENTITY portlets_support SYSTEM "modules/portlets_support.xml">
+<!ENTITY jsf_portlet SYSTEM "modules/jsf_portlet.xml">
+<!ENTITY seam_portlet SYSTEM "modules/seam_portlet.xml">
+<!ENTITY portlets_to_nonWTP_projects SYSTEM "modules/portlets_to_nonWTP_projects.xml">
<!ENTITY seamlink "../../seam/html_single/index.html">
<!ENTITY aslink "../../as/html_single/index.html">
@@ -54,6 +56,8 @@
&intro;
&installation;
&starting_project;
- &portlets_support;
+ &jsf_portlet;
+ &seam_portlet;
+ &portlets_to_nonWTP_projects;
</book>
16 years, 3 months
JBoss Tools SVN: r12069 - trunk/portlet/docs/reference/en/modules.
by jbosstools-commits@lists.jboss.org
Author: ochikvina
Date: 2008-11-26 06:34:29 -0500 (Wed, 26 Nov 2008)
New Revision: 12069
Modified:
trunk/portlet/docs/reference/en/modules/intro.xml
trunk/portlet/docs/reference/en/modules/starting_project.xml
Log:
https://jira.jboss.org/jira/browse/JBDS-479 - updating the screens and links according to new structure;
Modified: trunk/portlet/docs/reference/en/modules/intro.xml
===================================================================
--- trunk/portlet/docs/reference/en/modules/intro.xml 2008-11-26 11:32:51 UTC (rev 12068)
+++ trunk/portlet/docs/reference/en/modules/intro.xml 2008-11-26 11:34:29 UTC (rev 12069)
@@ -73,12 +73,11 @@
<para>Create JSF/Seam Portlet wizard</para>
</entry>
<entry>
- <para>This wizard creates a JSF/Seam portlet that uses JBoss Portlet
- Bridge</para>
+ <para>This wizard allows to create JSF/Seam portlets</para>
</entry>
<entry>
- <link linkend="adding_JsfSeam_portlet">Adding JSF/Seam Portlet to a
- project</link>
+ <link linkend="jsf_portlet">Creating JSF Portlet</link>
+ <link linkend="seam_portlet">Creating Seam Portlet</link>
</entry>
</row>
Modified: trunk/portlet/docs/reference/en/modules/starting_project.xml
===================================================================
--- trunk/portlet/docs/reference/en/modules/starting_project.xml 2008-11-26 11:32:51 UTC (rev 12068)
+++ trunk/portlet/docs/reference/en/modules/starting_project.xml 2008-11-26 11:34:29 UTC (rev 12069)
@@ -5,7 +5,8 @@
<para>To get started with <property>JBoss Portal</property> and <property>JBoss
Tools</property>, you should first have a Web Project pointed to the JBoss Portal Runtime.
- Thus, this chapter is intended to give you a detail look at how you can get it.</para>
+ Thus, in this chapter we are going to show you how to create a Dynamic Web Project, add Java
+ Portlet to it and deploy it to the <property>JBoss Portal</property>.</para>
<section id="creating_project_with_jbossportal">
<title>Creating a Dynamic Web Project</title>
@@ -25,12 +26,13 @@
</mediaobject>
</figure>
- <para>Fill in the name of your project. Next, click on the <emphasis>
- <property>New...</property>
+ <para>Fill out the name of your project. Next, click the <emphasis>
+ <property>New</property>
</emphasis> button in the <emphasis>
<property>Target Runtime</property>
- </emphasis> section to specify a new Target Runtime. Click <emphasis>Jboss 4.2
- Runtime</emphasis> and press <emphasis>
+ </emphasis> section to specify a new Target Runtime. Click <emphasis>
+ <property>JBoss 4.2 Runtime</property>
+ </emphasis> and press <emphasis>
<property>Next</property>.</emphasis></para>
<figure>
@@ -42,9 +44,10 @@
</mediaobject>
</figure>
- <para>On the next page you should give a name to the runtime. Let's call it
- <emphasis>JBoss Portal 2.7 Runtime</emphasis>, and then point it to the location of
- your JBoss AS + Portal installation.</para>
+ <para>On the next page you should give a name to the runtime. Let's call it <emphasis>
+ <property>JBoss Portal 2.7 Runtime</property>
+ </emphasis>, and then point it to the location of your JBoss AS + Portal
+ installation.</para>
<note>
<title>Note:</title>
@@ -63,13 +66,19 @@
</mediaobject>
</figure>
- <para>Click on <emphasis>
- <property>Finish</property>.</emphasis> It returns you to the <property>New Dynamic
- Web Project</property> wizard where it's also necessary to set the project
+ <para>Click <emphasis>
+ <property>Finish</property>.</emphasis></para>
+
+ <para>On the next step you should click the <emphasis>
+ <property>Modify</property>
+ </emphasis> button next to the <property>Configuration</property> section to enable
+ Portlet Facets for the project.</para>
+
+ <!--para>where it's also necessary to set the project
Configuration. <property>JBoss Tools</property> (starting from 3.0.0.Alpha1) support the
JSR-168 Portlet Specification (Portlet 1.0), JSR-286 Portlet Specification (Portlet
2.0). Thus you can choose <emphasis>Portlet Project v1.0</emphasis> or <emphasis>Portlet
- Project v2.0</emphasis>.</para>
+ Project v2.0</emphasis>.</para-->
<figure>
<title>Setting the Project Configuration</title>
@@ -80,6 +89,21 @@
</mediaobject>
</figure>
+ <para>On this page you should check the <emphasis>
+ <property>JBoss Core Portlet</property>
+ </emphasis> and press <emphasis>
+ <property>OK</property>
+ </emphasis>.</para>
+
+ <figure>
+ <title>Enabling the Portlet Facet</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/starting_project/starting_project_4_a.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
<para>The last wizard page is for configuring web modules. Here all values are set, so you
can leave everything as it is.</para>
@@ -114,10 +138,156 @@
</mediaobject>
</figure>
- <para>Here <property>JBoos Tools</property> have added JBoss
- Portlet facet to the project, created an empty <emphasis>
+ <para>Here <property>JBoos Tools</property> added JBoss Portlet facet to the project,
+ created an empty <emphasis>
<property>portlet.xml</property>
- </emphasis> file and added the portlet library to the project classpath.</para>
+ </emphasis> file and added the Portlet library to the project classpath.</para>
</section>
+ <section id="adding_java_portlet">
+ <title>Adding a Java Portlet to the Project</title>
+
+ <para>At this point we'll show what the steps you need to proceed to add a new Java
+ Portlet to the project.</para>
+
+ <para>Call the <property>Create Portlet wizard</property> by selecting <emphasis>
+ <property>New > Other > JBoss Tools Web > Portlet > Java
+ Portlet</property>.</emphasis></para>
+
+ <figure>
+ <title>New Java Portlet</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/starting_project/starting_project_7.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>The wizard fills in the Web Project and Source Folder fields for you. Then you need to
+ specify the Java package and the Class name and click <emphasis>
+ <property>Next</property>
+ </emphasis>.</para>
+
+ <figure>
+ <title>Specifying Class File Destination</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/starting_project/starting_project_8.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>On the other page you will be able to set the display name of the Portlet, a title, a
+ description, the supported modes and init parameters.</para>
+
+ <figure>
+ <title>Specifying Class File Destination</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/starting_project/starting_project_9.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>On the next screen you can define which methods from
+ <emphasis>GenericPortlet</emphasis> you want to override.</para>
+
+ <figure>
+ <title>Specifying Class File Destination</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/starting_project/starting_project_10.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>The last screen lets you build <property>JBoss Portal</property> specific descriptors
+ to create an instance during the deployment and place it directly on the Portal.</para>
+
+ <figure>
+ <title>Specifying Class File Destination</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/starting_project/starting_project_11.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <tip>
+ <title>Tip:</title>
+
+ <para>If you uncheck the <emphasis> Create Portlet Instance</emphasis> checkbox,
+ <property>JBoss Tools</property> won't create the deployment elements
+ in the <emphasis> default-object.xml</emphasis> and <emphasis>
+ portlet-instances.xml</emphasis> files.</para>
+ </tip>
+
+ <para>Once Java Portlet is created, new resources have been added to the project structure.
+ As you can see on the figure below, it adds a Java Portlet class (<emphasis>
+ <property>TestPortlet.java</property>
+ </emphasis> in our case), <emphasis>
+ <property>default-object.xml</property>
+ </emphasis> and <emphasis>
+ <property>portlet-instances.xml</property>
+ </emphasis> files and updates <emphasis>
+ <property>portlet.xml</property>
+ </emphasis> as well.</para>
+
+ <figure>
+ <title>The structure of Web Project with Java Portlet created</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/starting_project/starting_project_12.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>Thus, now the Project is ready to be built and deployed.</para>
+ </section>
+
+ <section id="deploying_to_portal">
+ <title>Deploying a Portlet to JBoss Portal</title>
+
+ <para>You can deploy the created project in the way you deploy any other Web Application.
+ Right click on the project and do <emphasis>
+ <property>Run As > Run On Server</property>
+ </emphasis> and accept the defaults. On the <emphasis>
+ <property>Add and Remove Projects</property>
+ </emphasis> page move the created Project to the right and click <emphasis>
+ <property>Finish</property>.</emphasis></para>
+
+ <figure>
+ <title>Deploying the Portlet Application</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/starting_project/starting_project_13.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>It will deploy the Portlet Web Application and start <property>JBoss
+ AS</property>.</para>
+
+ <tip>
+ <title>Tip:</title>
+
+ <para>You should use <emphasis>http://localhost:8080/portal</emphasis> URL to see your
+ Portlet in the Browser.</para>
+ </tip>
+
+ <para>In the Browser the Portlet looks as follows:</para>
+
+ <figure>
+ <title>Java Portlet in the Browser Window</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/starting_project/starting_project_14.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>Consequently, here you learnt how to create a Dynamic Web Project, add Java Portlet to
+ it and deploy the project to <property>JBoss Portal</property>.</para>
+ </section>
+
</chapter>
16 years, 3 months
JBoss Tools SVN: r12068 - trunk/portlet/docs/reference/en/modules.
by jbosstools-commits@lists.jboss.org
Author: ochikvina
Date: 2008-11-26 06:32:51 -0500 (Wed, 26 Nov 2008)
New Revision: 12068
Added:
trunk/portlet/docs/reference/en/modules/jsf_portlet.xml
trunk/portlet/docs/reference/en/modules/portlets_to_nonWTP_projects.xml
trunk/portlet/docs/reference/en/modules/seam_portlet.xml
Log:
https://jira.jboss.org/jira/browse/JBDS-479 - restructuring and adding new info;
Added: trunk/portlet/docs/reference/en/modules/jsf_portlet.xml
===================================================================
--- trunk/portlet/docs/reference/en/modules/jsf_portlet.xml (rev 0)
+++ trunk/portlet/docs/reference/en/modules/jsf_portlet.xml 2008-11-26 11:32:51 UTC (rev 12068)
@@ -0,0 +1,190 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<chapter id="jsf_portlet" xreflabel="jsf_portlet">
+ <?dbhtml filename="jsf_portlet.html"?>
+ <title>Creating JSF Portlet</title>
+
+ <para>This chapter will explain how you can configure JSF Portlet within Dynamic Web
+ Project and JSF Project by using the wizards <property>JBoss Tools</property> provides.</para>
+
+ <section id="jsf_portlet1">
+ <title>Adding JSF Portlet to Dynamic Web Project</title>
+
+ <para>To add JSF Portlet to a Dynamic Web Project, you should set the Configuration to <emphasis>
+ <property>JavaServer Faces v1.1 Project</property>
+ </emphasis> or <emphasis>
+ <property>JavaServer Faces v1.2 Project</property>
+ </emphasis> and configure the JSF Portlet Facets in the <property>New Dynamic Web
+ Project wizard</property> by clicking the <emphasis>
+ <property>Modify</property>
+ </emphasis> button.</para>
+
+ <figure>
+ <title>Setting the JSF Configuration</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/jsf_portlet/jsf_portlet1.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>On the Project Facets dialog you should select <property>JBoss Core Portlet</property>
+ and <property>JBoss JSF Portlet</property> check boxes.</para>
+
+ <figure>
+ <title>Enabling the Portlet Facets</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/jsf_portlet/jsf_portlet2.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>Next wizard page is for configuring JSF Capabilities. You can leave everything as it
+ is here.</para>
+
+ <figure>
+ <title>JSF Capabilities</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/jsf_portlet/jsf_portlet3.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>To support Portlets in JSF/Seam applications <property>JBoss Tools</property> works
+ with <property>JBoss Portlet Bridge</property>. Thus on the next page you should add JSF Portlet
+ capabilities by pointing to the Portletbridge Runtime location.</para>
+
+ <figure>
+ <title>JSF Capabilities</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/jsf_portlet/jsf_portlet4.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <tip>
+ <title>Tip:</title>
+
+ <para>You can download JBoss Portlet Bridge 1.0.0.B4 from <ulink
+ url="http://www.jboss.org/portletbridge/download/">here</ulink>.</para>
+ </tip>
+
+ <para>Next click <emphasis>
+ <property>Finish</property>
+ </emphasis> to organize the Project.</para>
+ <para id="add_jsf_portlet">To add JSF Portlet to generated project you should call the
+ <property>Create Portlet wizard</property> by navigating to <emphasis>
+ <property>New > Other > JBoss Tools Web > Portlet > JSF/Seam
+ Portlet</property>.</emphasis></para>
+
+ <figure>
+ <title>Calling New Portlet Wizard</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/jsf_portlet/jsf_portlet5.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>As you see, the Seam and JSF Portlet wizards are merged into one. We set JSF
+ Configuration for the project, so default values in this wizard will be set as for a JSF
+ portlet.</para>
+
+ <figure>
+ <title>Creating JSF Portlet</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/jsf_portlet/jsf_portlet6.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>Click <emphasis>
+ <property>Finish</property>
+ </emphasis> to complete JSF Portlet creation. Now you can deploy the project the same
+ way as it was <link linkend="deploying_to_portal">described above</link>.</para>
+
+ <para>In the Browser JSF Portlet looks as follows.</para>
+
+ <figure>
+ <title>JSF Portlet in the Browser</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/jsf_portlet/jsf_portlet7.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </section>
+
+ <section id="jsf_portlet_to_JSF_project">
+ <title>Adding JSF Portlet to JSF Project</title>
+
+ <para>How to organize a JSF Project you can find out in our <ulink
+ url="&jsfreflink;#new_jsf_project">JSF Tools Reference Guide</ulink>. Just
+ remember to point Target Runtime to JBoss Portal directory location.</para>
+
+ <figure>
+ <title>Creating New JSF Project</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/jsf_portlet/jsf_portlet8.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>Before adding a Portlet to the project you should enable necessary facets for it.
+ Right-click the created project and click <emphasis>
+ <property>Preferences</property>
+ </emphasis> to open the <property>Project Preferences</property> screen.</para>
+ <para>On the <property>Project Facets</property> page select the <emphasis>
+ <property>JBoss Core Portlet</property>
+ </emphasis> and <emphasis>
+ <property>JBoss JSF Portlet</property>
+ </emphasis> checkboxes. And then the screen will ask you to enable <emphasis>
+ <property>JavaServer Faces</property>
+ </emphasis> facet as well.</para>
+
+ <figure>
+ <title>Project Facets</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/jsf_portlet/jsf_portlet9.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>Notice, <emphasis>
+ <property>"Further configuration required..."</property>
+ </emphasis> warning appears at the bottom of the screen. It means that you should click
+ it to configure JSF and JSF Portlet Capabilities in the project.</para>
+
+ <figure>
+ <title>JSF Capabilities</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/jsf_portlet/jsf_portlet10.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <figure>
+ <title>Project Facets</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/jsf_portlet/jsf_portlet11.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>After setting the path to Portletbridge Runtime location, click <emphasis>
+ <property>OK</property>
+ </emphasis> and then <emphasis>
+ <property>OK</property>
+ </emphasis> again.</para>
+
+ <para>Now you can add JSF Portlet to the generated JSF Project. How to do it we showed in
+ <link linkend="add_jsf_portlet">the previous section</link>.</para>
+ </section>
+</chapter>
Added: trunk/portlet/docs/reference/en/modules/portlets_to_nonWTP_projects.xml
===================================================================
--- trunk/portlet/docs/reference/en/modules/portlets_to_nonWTP_projects.xml (rev 0)
+++ trunk/portlet/docs/reference/en/modules/portlets_to_nonWTP_projects.xml 2008-11-26 11:32:51 UTC (rev 12068)
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<chapter id="portlets_to_nonWTP_projects" xreflabel="portlets_to_nonWTP_projects">
+ <?dbhtml filename="portlets_to_nonWTP_projects.html"?>
+ <title>Adding Portlets to non-WTP Projects</title>
+
+ <para>Starting from <property>JBoss Tools 3.0.0.Beta1</property> version the JBoss Portlet
+ wizards no longer require a WTP project to be able to create Portlets.</para>
+
+ <note>
+ <title>Note:</title>
+ <para>Please note, if the project does not have the proper portlet API jar's, the generated
+ classes will have compile errors.</para>
+ </note>
+
+ <para>In conclusion, with this document you've learnt how to get started with <property>JBoss
+ Portal</property> using <property>JBoss Tools</property> suite of Eclipse plugins.
+ The above chapters walked you through the steps on how to organize a web project with
+ portlets which includes a sample staff and deploy it onto the <property>JBoss
+ Portal</property>.</para>
+
+ <para>If you still have questions or suggestions you are always welcome on our <ulink
+ url="http://www.jboss.com/index.html?module=bb&op=viewforum&f=201"
+ >Forum</ulink>. Your feedback will be very much appreciated.</para>
+
+</chapter>
Added: trunk/portlet/docs/reference/en/modules/seam_portlet.xml
===================================================================
--- trunk/portlet/docs/reference/en/modules/seam_portlet.xml (rev 0)
+++ trunk/portlet/docs/reference/en/modules/seam_portlet.xml 2008-11-26 11:32:51 UTC (rev 12068)
@@ -0,0 +1,139 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<chapter id="seam_portlet" xreflabel="seam_portlet">
+ <?dbhtml filename="seam_portlet.html"?>
+ <title>Creating Seam Portlet</title>
+
+ <para>This chapter covers the steps on how to configure Seam Portlet within Dynamic Web
+ Project and Seam Project by using the wizards <property>JBoss Tools</property> provides.</para>
+
+ <section id="seam_portlet1">
+ <title>Adding Seam Portlet to Dynamic Web Project</title>
+
+ <para>To add Seam Portlet to a Dynamic Web Project first you should organize New Dynamic Web
+ Project with the Configuration setting to <emphasis>
+ <property>JBoss Seam Portlet Project v2.0</property>.</emphasis></para>
+
+ <figure>
+ <title>Calling New Portlet Wizard</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/seam_portlet/seam_portlet1.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>It will add all needed facets to your project. By clicking the <emphasis>
+ <property>Modify</property>
+ </emphasis> button you can observe the chosen configuration of facets as well as modify
+ it. As you can see, all JBoss Portlets are checked.</para>
+
+ <figure>
+ <title>Project Facets</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/seam_portlet/seam_portlet2.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>Next wizard pages are for adjusting the Project Web Modules and JSF Configuration.
+ They include default values, so you can skip them by pressing <emphasis>
+ <property>Next</property>.</emphasis></para>
+
+ <para>On the <property>Seam Facet</property> page <ulink url="&seamlink;#seamFacet">set
+ Connection Profile</ulink> and hit <emphasis>
+ <property>Next</property>.</emphasis></para>
+
+ <figure>
+ <title>Seam Facet Settings</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/seam_portlet/seam_portlet3.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>Last wizard page will prompt you to set the path to Portletbridge Runtime
+ location.</para>
+
+ <figure>
+ <title>Setting the Portletbridge Runtime</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/seam_portlet/seam_portlet4.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <tip>
+ <title>Tip:</title>
+
+ <para>Thus you should have JBoss Portlet Bridge downloaded and extracted somewhere on
+ your hard drive. You can download JBoss Portlet Bridge 1.0.0.B4 from <ulink
+ url="http://www.jboss.org/portletbridge/download/">here</ulink>.</para>
+ </tip>
+
+ <para>Now, to add Seam Portlet to the project you should follow to <emphasis>
+ <property>New > Other > JBoss Tools Web > Portlet > JSF/Seam
+ Portlet</property>.</emphasis> This will call the wizard for creating JSF/Seam
+ Portlets.</para>
+
+ <figure>
+ <title>Calling the Create Portlet Wizard</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/seam_portlet/seam_portlet5.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>As we set Seam Configuration for the Dynamic Web Project, the wizard puts the values
+ as for Seam Portlet.</para>
+
+ <figure>
+ <title>Creating Seam Portlet</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/seam_portlet/seam_portlet6.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>After creating the Seam Portlet, you should <link linkend="deploying_to_portal">deploy
+ the project to JBoss Portal</link> and start the Server. In a Browser
+ you'll see the following:</para>
+
+ <figure>
+ <title>Seam Portlet in the Browser</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/seam_portlet/seam_portlet7.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </section>
+
+ <section id="seam_portlet_to_seam_project">
+ <title>Adding Seam Portlet to Seam Project</title>
+
+ <para>First start a Seam Project by following to <emphasis>
+ <property>New > Other > Seam > Seam Web Project</property>. </emphasis> On the first
+ wizard page specify JBoss Portal directory location as <property>Target
+ Runtime</property> and <emphasis>
+ <property>JBoss Seam Portlet Project v2.0</property>
+ </emphasis> as <property>Configuration</property>.</para>
+
+ <figure>
+ <title>Project Facets</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/seam_portlet/seam_portlet8.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>Next steps will be the same as we did for the Dynamic Web Project in the <link
+ linkend="seam_portlet1">Adding Seam Portlet to Dynamic Web Project</link>
+ section.</para>
+ </section>
+</chapter>
16 years, 3 months
JBoss Tools SVN: r12067 - in trunk/jst/plugins: org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog and 2 other directories.
by jbosstools-commits@lists.jboss.org
Author: izhukov
Date: 2008-11-26 05:59:13 -0500 (Wed, 26 Nov 2008)
New Revision: 12067
Modified:
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/messages/messages.properties
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/CSSClassDialog.java
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/StyleComposite.java
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/common/Util.java
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/css/NewCSSClassWizard.java
Log:
JBIDE-3164, JBIDE-3150, JBIDE-2648, JBIDE-2648
Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/messages/messages.properties
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/messages/messages.properties 2008-11-26 09:50:06 UTC (rev 12066)
+++ trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/messages/messages.properties 2008-11-26 10:59:13 UTC (rev 12067)
@@ -43,7 +43,7 @@
BACKGROUND_TAB_NAME=Background
BOXES_TAB_NAME=Boxes
PROPERTY_SHEET_TAB_NAME=Property Sheet
-QUICK_EDIT_TAB_NAME=Quick Edit
+QUICK_EDIT_TAB_NAME=Edited properties
PREVIEW_SHEET_TAB_NAME=Preview
TEXT_DECORATION=Text Decoration:
Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/CSSClassDialog.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/CSSClassDialog.java 2008-11-26 09:50:06 UTC (rev 12066)
+++ trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/CSSClassDialog.java 2008-11-26 10:59:13 UTC (rev 12067)
@@ -78,8 +78,7 @@
public static final String ID = "org.jboss.tools.jst.jsp.outline.cssdialog.CSSClassDialog"; //$NON-NLS-1$
private static String notUsed = "not_used"; //$NON-NLS-1$
- private static final String CSS_FILE_EXTENTION = "css"; //$NON-NLS-1$
- private final static String[] fileExtensions = { CSS_FILE_EXTENTION };
+ private final static String[] fileExtensions = { Util.CSS_FILE_EXTENTION };
private final static String SKIP_FIRST_CHAR = "."; //$NON-NLS-1$
private Composite browserContainer = null;
@@ -149,7 +148,7 @@
Object element = iterator.next();
if (element instanceof IResource) {
if (element instanceof IFile) {
- if (((IFile) element).getName().toLowerCase().endsWith(CSS_FILE_EXTENTION)) {
+ if (((IFile) element).getName().toLowerCase().endsWith(Util.CSS_FILE_EXTENTION)) {
currentFile = (IFile)element;
}
}
@@ -581,7 +580,14 @@
* @return selector name
*/
public String getSelectorName() {
- return currentClassStyle;
+ String className = currentClassStyle;
+ if (currentClassStyle != null) {
+ className = currentClassStyle.replaceAll("\\.", Constants.EMPTY); //$NON-NLS-1$
+ className = className.replaceAll("\\,", Constants.EMPTY);
+ className = className.replaceAll("\\s++", Constants.WHITE_SPACE); //$NON-NLS-1$
+ }
+
+ return className;
}
/**
Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/StyleComposite.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/StyleComposite.java 2008-11-26 09:50:06 UTC (rev 12066)
+++ trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/StyleComposite.java 2008-11-26 10:59:13 UTC (rev 12067)
@@ -344,7 +344,14 @@
sc.setExpandHorizontal(true);
sc.setExpandVertical(true);
+ ManualChangeStyleListener[] listeners = null;
+ if (tabQuickEditControl != null) {
+ listeners = tabQuickEditControl.getManualChangeStyleListeners();
+ }
tabQuickEditControl = new TabQuickEditControl(sc, comboMap, styleAttributes);
+ if (listeners != null && listeners.length > 0) {
+ tabQuickEditControl.addManualChangeStyleListener(listeners[0]);
+ }
sc.setContent(tabQuickEditControl);
sc.setMinSize(tabQuickEditControl.computeSize(SWT.DEFAULT, SWT.DEFAULT));
Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/common/Util.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/common/Util.java 2008-11-26 09:50:06 UTC (rev 12066)
+++ trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/common/Util.java 2008-11-26 10:59:13 UTC (rev 12067)
@@ -39,6 +39,8 @@
*/
public class Util {
+ public static final String CSS_FILE_EXTENTION = "css"; //$NON-NLS-1$
+
private static String RGB = "rgb"; //$NON-NLS-1$
private static String THIN = "thin"; //$NON-NLS-1$
@@ -310,7 +312,7 @@
IEditorInput input = page.getActiveEditor().getEditorInput();
if (input instanceof IFileEditorInput) {
IFile file = ((IFileEditorInput) input).getFile();
- if (file.getName().toLowerCase().endsWith("css")) {
+ if (file.getName().toLowerCase().endsWith(CSS_FILE_EXTENTION)) {
return file;
}
}
@@ -319,7 +321,9 @@
}
/**
+ * Method return the name of CSS selector in opened CSS file.
*
+ * @return selector name
*/
public static String getActivePageCSSSelectorIfAny() {
IWorkbenchPage page = JspEditorPlugin.getDefault().getWorkbench().getActiveWorkbenchWindow().getActivePage();
Modified: trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/css/NewCSSClassWizard.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/css/NewCSSClassWizard.java 2008-11-26 09:50:06 UTC (rev 12066)
+++ trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/css/NewCSSClassWizard.java 2008-11-26 10:59:13 UTC (rev 12067)
@@ -79,7 +79,7 @@
*/
@Override
public boolean canFinish() {
- return page.showFinish;
+ return page.canFinish;
}
/**
@@ -102,7 +102,7 @@
private CSSClassDialog dialog;
- boolean showFinish = false;
+ boolean canFinish = false;
/**
* Constructor for SampleNewWizardPage.
@@ -167,22 +167,22 @@
case IStatus.OK:
setErrorMessage(null);
setMessage(message);
- showFinish = true;
+ canFinish = true;
break;
case IStatus.WARNING:
setErrorMessage(null);
- showFinish = true;
+ canFinish = true;
setMessage(message, WizardPage.WARNING);
break;
case IStatus.INFO:
setErrorMessage(null);
- showFinish = true;
+ canFinish = true;
setMessage(message, WizardPage.INFORMATION);
break;
default:
setErrorMessage(message);
setMessage(null);
- showFinish = false;
+ canFinish = false;
break;
}
}
16 years, 3 months
JBoss Tools SVN: r12066 - in trunk/vpe: plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor and 8 other directories.
by jbosstools-commits@lists.jboss.org
Author: sdzmitrovich
Date: 2008-11-26 04:50:06 -0500 (Wed, 26 Nov 2008)
New Revision: 12066
Added:
trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/core/img/
trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/core/img/image.jpeg
trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/form/button.html.xml
trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/form/fieldset.html.xml
trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/form/form.html.xml
trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/form/input.html.xml
trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/form/label.html.xml
trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/form/legend.html
trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/form/legend.html.xml
trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/form/optgroup.html
trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/form/optgroup.html.xml
trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/form/option.html
trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/form/option.html.xml
trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/form/select.html.xml
trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/form/textArea.html.xml
trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/frames/frame.html
trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/frames/frame.html.xml
trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/frames/frameset.html.xml
trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/frames/iframe.html.xml
trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/frames/noframes.html
trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/frames/noframes.html.xml
trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/scripts/noscript.html
trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/table/caption.html
trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/table/caption.html.xml
trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/table/col.html
trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/table/col.html.xml
trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/table/colgroup.html
trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/table/colgroup.html.xml
trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/table/table.html.xml
trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/table/tbody.html
trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/table/tbody.html.xml
trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/table/td.html
trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/table/td.html.xml
trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/table/tfoot.html
trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/table/tfoot.html.xml
trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/table/th.html
trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/table/th.html.xml
trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/table/thead.html
trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/table/thead.html.xml
trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/table/tr.html
trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/table/tr.html.xml
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe.html/templates/vpe-templates-html.xml
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/VpeDebug.java
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeController.java
trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/form/button.html
trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/form/fieldset.html
trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/form/form.html
trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/form/input.html
trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/form/label.html
trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/form/select.html
trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/form/textArea.html
trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/frames/frameset.html
trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/frames/iframe.html
trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/scripts/script.html
trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/table/table.html
trunk/vpe/tests/org.jboss.tools.vpe.html.test/src/org/jboss/tools/vpe/html/test/HtmlComponentContentTest.java
trunk/vpe/tests/org.jboss.tools.vpe.html.test/src/org/jboss/tools/vpe/html/test/HtmlComponentTest.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-2854, corrected templates of html tags, added option for debugging
Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/VpeDebug.java
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/VpeDebug.java 2008-11-26 09:21:56 UTC (rev 12065)
+++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/VpeDebug.java 2008-11-26 09:50:06 UTC (rev 12066)
@@ -10,7 +10,11 @@
******************************************************************************/
package org.jboss.tools.vpe;
+import java.util.Arrays;
+import java.util.List;
+
import org.eclipse.core.runtime.Platform;
+import org.jboss.tools.vpe.editor.util.Constants;
public class VpeDebug {
public static final boolean PRINT_SOURCE_MUTATION_EVENT;
@@ -33,6 +37,8 @@
public static final boolean VISUAL_DUMP_PRINT_HASH;
public static final boolean VISUAL_CONTEXTMENU_TEST;
+
+ public static final List<String> VISUAL_DUMP_IGNORED_ATTRIBUTES ;
// usePrintStackTrace = false - The exception is sent on our site
// usePrintStackTrace = true - The exception is printed through printStackTrace
@@ -57,9 +63,16 @@
VISUAL_CONTEXTMENU_DUMP_SELECTED_ELEMENT = "true".equals(Platform.getDebugOption(VpePlugin.PLUGIN_ID + "/debug/visual/contextmenu/dump_selected_element")); //$NON-NLS-1$ //$NON-NLS-2$
VISUAL_CONTEXTMENU_DUMP_MAPPING = "true".equals(Platform.getDebugOption(VpePlugin.PLUGIN_ID + "/debug/visual/contextmenu/dump_mapping")); //$NON-NLS-1$ //$NON-NLS-2$
VISUAL_DUMP_PRINT_HASH = "true".equals(Platform.getDebugOption(VpePlugin.PLUGIN_ID + "/debug/visual/dump_print_hash")); //$NON-NLS-1$ //$NON-NLS-2$
-
+ VISUAL_DUMP_IGNORED_ATTRIBUTES = Platform
+ .getDebugOption(VpePlugin.PLUGIN_ID
+ + "/debug/visual/ignored_attributes") != null ? Arrays
+ .asList(Platform.getDebugOption(
+ VpePlugin.PLUGIN_ID
+ + "/debug/visual/ignored_attributes").split(
+ Constants.COMMA)) : null;
VISUAL_CONTEXTMENU_TEST = "true".equals(Platform.getDebugOption(VpePlugin.PLUGIN_ID + "/debug/visual/contextmenu/show_test")); //$NON-NLS-1$ //$NON-NLS-2$
USE_PRINT_STACK_TRACE = "true".equals(Platform.getDebugOption(VpePlugin.PLUGIN_ID + "/debug/use_PrintStackTrace")); //$NON-NLS-1$ //$NON-NLS-2$
+
}
}
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 2008-11-26 09:21:56 UTC (rev 12065)
+++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeController.java 2008-11-26 09:50:06 UTC (rev 12066)
@@ -1623,6 +1623,7 @@
public void run() {
DOMTreeDumper dumper = new DOMTreeDumper(
VpeDebug.VISUAL_DUMP_PRINT_HASH);
+ dumper.setIgnoredAttributes(VpeDebug.VISUAL_DUMP_IGNORED_ATTRIBUTES);
dumper.dumpToStream(System.out, visualEditor
.getDomDocument());
}
@@ -1641,9 +1642,7 @@
DOMTreeDumper dumper = new DOMTreeDumper(
VpeDebug.VISUAL_DUMP_PRINT_HASH);
- List<String> ignoredAttributes = new ArrayList<String>();
- ignoredAttributes.add(HTML.ATTR_TITLE);
- dumper.setIgnoredAttributes(ignoredAttributes);
+ dumper.setIgnoredAttributes(VpeDebug.VISUAL_DUMP_IGNORED_ATTRIBUTES);
dumper.dumpNode(nodeMapping.getVisualNode());
}
}
Modified: trunk/vpe/plugins/org.jboss.tools.vpe.html/templates/vpe-templates-html.xml
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe.html/templates/vpe-templates-html.xml 2008-11-26 09:21:56 UTC (rev 12065)
+++ trunk/vpe/plugins/org.jboss.tools.vpe.html/templates/vpe-templates-html.xml 2008-11-26 09:50:06 UTC (rev 12066)
@@ -808,11 +808,17 @@
</vpe:tag>
<vpe:tag name="frame" case-sensitive="no">
- <vpe:template children="yes" modify="no" />
+ <vpe:template children="no" modify="no">
+ <frame src="{src(@src)}" bordercolor="{@bordercolor}"
+ frameborder="{@frameborder}" name="{@name}" noresize="{@noresize}"
+ scrolling="{@scrolling}" />
+ </vpe:template>
</vpe:tag>
<vpe:tag name="frameset" case-sensitive="no">
- <vpe:template children="yes" modify="no" />
+ <vpe:template children="yes" modify="no" >
+ <vpe:copy attrs="border,bordercolor,cols,frameborder,framespacing,rows" />
+ </vpe:template>
</vpe:tag>
<vpe:tag name="h1" case-sensitive="no">
@@ -1078,6 +1084,9 @@
<vpe:tag name="iframe" case-sensitive="no">
<vpe:template children="yes" modify="no">
+ <iframe src="{src(@src)}" align="{@align}" frameborder="{@frameborder}"
+ height="{@height}" hspace="{@hspace}" name="{@name}" scrolling="{@scrolling}"
+ vspace="{@vspace}" width="{@width}" />
<vpe:dnd>
<vpe:drag start-enable="yes" />
</vpe:dnd>
@@ -1172,7 +1181,9 @@
</vpe:if>
<vpe:if test="@type='image'">
<vpe:template children="no" modify="no">
- <img src="{@src}" width="20" height="20" />
+ <!-- <img src="{@src}" width="20" height="20" />-->
+ <input type="image" value="{@value}" class="{@class}" style="{@style}"
+ size="{@size}" disabled="{@disabled}" width="{@width}" height="{@height}" border="{@border}" dir="{@dir}" src="{src(@src)}" />
</vpe:template>
</vpe:if>
<vpe:template children="no" modify="no">
@@ -1395,7 +1406,9 @@
</vpe:tag>
<vpe:tag name="noframes" case-sensitive="no">
- <vpe:template children="yes" modify="no" />
+ <vpe:template children="yes" modify="no" >
+ <vpe:copy />
+ </vpe:template>
</vpe:tag>
<vpe:tag name="noscript" case-sensitive="no">
@@ -1403,7 +1416,6 @@
</vpe:tag>
<vpe:tag name="object" case-sensitive="no">
- <!-- <vpe:template children="no" modify="no" />-->
<vpe:template children="yes" modify="no">
<vpe:copy
attrs="align,classid,code,codebase,codetype,data,height,hspace,type,vspace,width" />
Added: trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/core/img/image.jpeg
===================================================================
(Binary files differ)
Property changes on: trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/core/img/image.jpeg
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Modified: trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/form/button.html
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/form/button.html 2008-11-26 09:21:56 UTC (rev 12065)
+++ trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/form/button.html 2008-11-26 09:50:06 UTC (rev 12066)
@@ -5,7 +5,7 @@
<h1>button</h1>
-<button>button</button>
+<button id="button" class="buttonClass" dir="ltr" type="button" value="value" style="color:red;" >button</button>
</body>
</html>
\ No newline at end of file
Added: trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/form/button.html.xml
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/form/button.html.xml (rev 0)
+++ trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/form/button.html.xml 2008-11-26 09:50:06 UTC (rev 12066)
@@ -0,0 +1,9 @@
+<tests>
+ <test id="button">
+ <BUTTON ID="button" CLASS="buttonClass" DIR="ltr" VALUE="value" STYLE="color: red; -moz-user-modify: read-only;">
+<SPAN>
+button
+</SPAN>
+</BUTTON>
+ </test>
+</tests>
\ No newline at end of file
Modified: trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/form/fieldset.html
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/form/fieldset.html 2008-11-26 09:21:56 UTC (rev 12065)
+++ trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/form/fieldset.html 2008-11-26 09:50:06 UTC (rev 12066)
@@ -3,14 +3,13 @@
<body>
-<h1>fieldset,legend</h1>
+<h1>fieldset</h1>
-<fieldset>
- <legend>legend</legend>
- <input type="checkbox"> one <br>
- <input type="checkbox"> two<br>
- <input type="submit" value="submit">
-</fieldset>
+<fieldset id="fieldset" class="fieldsetClass" dir="ltr"
+ style="color: red;"><legend>legend</legend> <input
+ type="checkbox"> one <br>
+<input type="checkbox"> two<br>
+<input type="submit" value="submit"></fieldset>
</body>
</html>
\ No newline at end of file
Added: trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/form/fieldset.html.xml
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/form/fieldset.html.xml (rev 0)
+++ trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/form/fieldset.html.xml 2008-11-26 09:50:06 UTC (rev 12066)
@@ -0,0 +1,29 @@
+<tests>
+ <test id="fieldset">
+
+ <FIELDSET ID="fieldset" CLASS="fieldsetClass" DIR="ltr"
+ STYLE="color: red; -moz-user-modify: read-only;">
+ <LEGEND STYLE="-moz-user-modify: read-write;">
+ <SPAN>
+ legend
+</SPAN>
+ </LEGEND>
+ <INPUT TYPE="checkbox" STYLE="-moz-user-modify: read-only;" />
+
+ <SPAN>
+ one
+</SPAN>
+ <BR STYLE="-moz-user-modify: read-write;" />
+
+ <INPUT TYPE="checkbox" STYLE="-moz-user-modify: read-only;" />
+
+ <SPAN>
+ two
+</SPAN>
+ <BR STYLE="-moz-user-modify: read-write;" />
+
+ <INPUT TYPE="submit" VALUE="submit" STYLE="-moz-user-modify: read-write;" />
+
+ </FIELDSET>
+ </test>
+</tests>
\ No newline at end of file
Modified: trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/form/form.html
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/form/form.html 2008-11-26 09:21:56 UTC (rev 12065)
+++ trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/form/form.html 2008-11-26 09:50:06 UTC (rev 12066)
@@ -5,7 +5,7 @@
<h1>form</h1>
-<form>
+<form class="formClass" dir="ltr" id="form" style="color:red;" >
<button>button</button>
Added: trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/form/form.html.xml
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/form/form.html.xml (rev 0)
+++ trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/form/form.html.xml 2008-11-26 09:50:06 UTC (rev 12066)
@@ -0,0 +1,13 @@
+<tests>
+ <test id="form">
+
+ <FORM CLASS="formClass" DIR="ltr" ID="form"
+ STYLE="color: red; -moz-user-modify: read-write;">
+ <BUTTON STYLE="-moz-user-modify: read-only;">
+ <SPAN>
+ button
+ </SPAN>
+ </BUTTON>
+ </FORM>
+ </test>
+</tests>
\ No newline at end of file
Modified: trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/form/input.html
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/form/input.html 2008-11-26 09:21:56 UTC (rev 12065)
+++ trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/form/input.html 2008-11-26 09:50:06 UTC (rev 12066)
@@ -7,15 +7,15 @@
<h4>input</h4>
-<input name="unput" value="input">
+<input id="input" name="input" value="input" class="inputClass" style="color:red;" >
<h4>checkbox</h4>
-<input type="checkbox" name="" value="">
+<input id="checkbox" type="checkbox" name="checkbox" value="checkbox" class="checkboxClass" dir="ltr" checked="checked" style="color: red;">
<h4>file</h4>
-<input type="file" name="">
+<input id="file" align="top" dir="ltr" class="fileClass" value="value" width="50" height="20" type="file" name="name" style="color:red" size="30" disabled="disabled" readonly="readonly" src="src">
<h4>hidden</h4>
@@ -23,31 +23,31 @@
<h4>input button</h4>
-<input type="button" value="input button">
+<input id="button" type="button" value="input button" dir="ltr" class="buttonClass" style="color:red;" >
-<h4>input image</h4>
+<h4><input id="image" type="image" src="/img/image.jpeg" class="imageClass" style="color:red;" width="40" height="40">input image</h4>
-<input type=image src="img/image.jpeg">
+
<h4>password</h4>
-<input type="password" name="someName" value="password">
+<input id="password" type="password" name="someName" value="password" class="passwordClass" style="color:red;" dir="ltr" size="40">
<h4>radio</h4>
-<input type="radio" name="someName" value="someValue">
+<input id="radio" style="color:red;" checked="checked" dir="ltr" type="radio" name="someName" value="someValue">
-<h4>reset</h4>
+<h5>reset</h5>
-<input type="reset">
+<input type="reset" id="reset" style="color:red" class="resetClass">
<h4>submit</h4>
-<input type="submit" value="submit">
+<input id="submit" type="submit" value="submit" class="submitClass" dir="ltr" style="color:red;">
<h4>text</h4>
-<input type="text" name="someName" value="value">
+<input type="text" name="someName" value="value" id="text" class="textClass" style="color:red;" size="40" dir="ltr">
</body>
</html>
\ No newline at end of file
Added: trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/form/input.html.xml
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/form/input.html.xml (rev 0)
+++ trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/form/input.html.xml 2008-11-26 09:50:06 UTC (rev 12066)
@@ -0,0 +1,47 @@
+<tests>
+ <test id="checkbox">
+ <INPUT TYPE="checkbox" ID="checkbox" CLASS="checkboxClass"
+ CHECKED="checked" STYLE="color: red; -moz-user-modify: read-only;" />
+ </test>
+ <test id="file">
+ <INPUT TYPE="file" SIZE="30"
+ STYLE="color: red; -moz-user-modify: read-only;" VALUE="value" />
+ </test>
+ <test id="input">
+ <INPUT ID="input" VALUE="input" CLASS="inputClass"
+ STYLE="color: red; -moz-user-modify: read-only;" />
+ </test>
+ <test id="button">
+ <INPUT TYPE="button" ID="button" VALUE="input button" DIR="ltr"
+ CLASS="buttonClass" STYLE="color: red; -moz-user-modify: read-write;" />
+
+ </test>
+ <test id="image">
+ <INPUT WIDTH="40" TYPE="image" HEIGHT="40" CLASS="imageClass"
+ SRC="/.*ve/unresolved_image.gif/" STYLE="color: red; -moz-user-modify: read-only;" />
+ </test>
+ <test id="password">
+ <INPUT TYPE="password" ID="password" VALUE="password" CLASS="passwordClass"
+ STYLE="color: red; -moz-user-modify: read-only;" DIR="ltr" SIZE="40" />
+ </test>
+ <test id="radio">
+ <INPUT TYPE="radio" ID="radio"
+ STYLE="color: red; -moz-user-modify: read-only;" CHECKED="checked" />
+ </test>
+
+ <test id="reset">
+ <INPUT TYPE="reset" ID="reset"
+ STYLE="color: red; -moz-user-modify: read-write;" CLASS="resetClass"
+ VALUE="Reset" />
+ </test>
+ <test id="submit">
+ <INPUT TYPE="submit" ID="submit" VALUE="submit" CLASS="submitClass"
+ DIR="ltr" STYLE="color: red; -moz-user-modify: read-write;" />
+
+ </test>
+ <test id="text">
+ <INPUT TYPE="text" VALUE="value" ID="text" CLASS="textClass"
+ STYLE="color: red; -moz-user-modify: read-only;" SIZE="40" DIR="ltr" />
+
+ </test>
+</tests>
\ No newline at end of file
Modified: trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/form/label.html
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/form/label.html 2008-11-26 09:21:56 UTC (rev 12065)
+++ trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/form/label.html 2008-11-26 09:50:06 UTC (rev 12066)
@@ -5,7 +5,7 @@
<h1>label</h1>
-<label> label Value </label>
+<label id="label" class="labelClass" dir="ltr" style="color:red;"> label Value </label>
</body>
</html>
\ No newline at end of file
Added: trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/form/label.html.xml
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/form/label.html.xml (rev 0)
+++ trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/form/label.html.xml 2008-11-26 09:50:06 UTC (rev 12066)
@@ -0,0 +1,10 @@
+<tests>
+ <test id="label">
+ <LABEL ID="label" CLASS="labelClass" DIR="ltr"
+ STYLE="color: red; -moz-user-modify: read-write;">
+ <SPAN>
+ label Value
+ </SPAN>
+ </LABEL>
+ </test>
+</tests>
\ No newline at end of file
Added: trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/form/legend.html
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/form/legend.html (rev 0)
+++ trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/form/legend.html 2008-11-26 09:50:06 UTC (rev 12066)
@@ -0,0 +1,16 @@
+<html>
+<head></head>
+
+<body>
+
+<h1>legend</h1>
+
+<fieldset>
+ <legend dir="ltr" id="legend" class="legendClass" style="color:red;" >legend</legend>
+ <input type="checkbox"> one <br>
+ <input type="checkbox"> two<br>
+ <input type="submit" value="submit">
+</fieldset>
+
+</body>
+</html>
\ No newline at end of file
Added: trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/form/legend.html.xml
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/form/legend.html.xml (rev 0)
+++ trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/form/legend.html.xml 2008-11-26 09:50:06 UTC (rev 12066)
@@ -0,0 +1,10 @@
+<tests>
+ <test id="legend">
+ <LEGEND DIR="ltr" ID="legend" CLASS="legendClass"
+ STYLE="color: red; -moz-user-modify: read-write;">
+ <SPAN>
+ legend
+ </SPAN>
+ </LEGEND>
+ </test>
+</tests>
\ No newline at end of file
Added: trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/form/optgroup.html
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/form/optgroup.html (rev 0)
+++ trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/form/optgroup.html 2008-11-26 09:50:06 UTC (rev 12066)
@@ -0,0 +1,22 @@
+<html>
+<head></head>
+
+<body>
+
+<h1>optgroup</h1>
+
+<select>
+ <optgroup label="color" class="optgroupClass" id="optgroup" dir="ltr" style="color:red;">
+ <option value="c1">orange</option>
+ <option value="c2">lemon</option>
+ </optgroup>
+
+ <optgroup label="tone">
+ <option value="s1">light</option>
+ <option value="s2">normal</option>
+ <option value="s3">deep</option>
+ </optgroup>
+</select>
+
+</body>
+</html>
\ No newline at end of file
Added: trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/form/optgroup.html.xml
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/form/optgroup.html.xml (rev 0)
+++ trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/form/optgroup.html.xml 2008-11-26 09:50:06 UTC (rev 12066)
@@ -0,0 +1,17 @@
+<tests>
+ <test id="optgroup">
+ <OPTGROUP LABEL="color" CLASS="optgroupClass" ID="optgroup"
+ DIR="ltr" STYLE="color: red; -moz-user-modify: read-only;">
+ <OPTION VALUE="c1" STYLE="-moz-user-modify: read-write;">
+ <SPAN>
+ orange
+ </SPAN>
+ </OPTION>
+ <OPTION VALUE="c2" STYLE="-moz-user-modify: read-write;">
+ <SPAN>
+ lemon
+ </SPAN>
+ </OPTION>
+ </OPTGROUP>
+ </test>
+</tests>
\ No newline at end of file
Added: trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/form/option.html
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/form/option.html (rev 0)
+++ trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/form/option.html 2008-11-26 09:50:06 UTC (rev 12066)
@@ -0,0 +1,22 @@
+<html>
+<head></head>
+
+<body>
+
+<h1>option</h1>
+
+<select>
+ <optgroup label="color">
+ <option id="option" class="optionClass" dir="ltr" disabled="disabled" selected="selected" style="color:red" value="c1" >orange</option>
+ <option value="c2">lemon</option>
+ </optgroup>
+
+ <optgroup label="tone">
+ <option value="s1">light</option>
+ <option value="s2">normal</option>
+ <option value="s3">deep</option>
+ </optgroup>
+</select>
+
+</body>
+</html>
\ No newline at end of file
Added: trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/form/option.html.xml
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/form/option.html.xml (rev 0)
+++ trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/form/option.html.xml 2008-11-26 09:50:06 UTC (rev 12066)
@@ -0,0 +1,11 @@
+<tests>
+ <test id="option">
+ <OPTION ID="option" CLASS="optionClass" DIR="ltr" DISABLED="disabled"
+ SELECTED="selected" STYLE="color: red; -moz-user-modify: read-write;"
+ VALUE="c1">
+ <SPAN>
+ orange
+ </SPAN>
+ </OPTION>
+ </test>
+</tests>
\ No newline at end of file
Modified: trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/form/select.html
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/form/select.html 2008-11-26 09:21:56 UTC (rev 12065)
+++ trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/form/select.html 2008-11-26 09:50:06 UTC (rev 12066)
@@ -3,9 +3,9 @@
<body>
-<h1>select,optgroup,option</h1>
+<h1>select</h1>
-<select>
+<select class="selectClass" dir="ltr" id="select" size="10" multiple="multiple" disabled="disabled" style="color:red;">
<optgroup label="color">
<option value="c1">orange</option>
<option value="c2">lemon</option>
Added: trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/form/select.html.xml
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/form/select.html.xml (rev 0)
+++ trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/form/select.html.xml 2008-11-26 09:50:06 UTC (rev 12066)
@@ -0,0 +1,36 @@
+<tests>
+ <test id="select">
+ <SELECT CLASS="selectClass" DIR="ltr" ID="select" SIZE="10"
+ DISABLED="disabled" STYLE="color: red; -moz-user-modify: read-write;">
+ <OPTGROUP LABEL="color" STYLE="-moz-user-modify: read-only;">
+ <OPTION VALUE="c1" STYLE="-moz-user-modify: read-write;">
+ <SPAN>
+ orange
+</SPAN>
+ </OPTION>
+ <OPTION VALUE="c2" STYLE="-moz-user-modify: read-write;">
+ <SPAN>
+ lemon
+</SPAN>
+ </OPTION>
+ </OPTGROUP>
+ <OPTGROUP LABEL="tone" STYLE="-moz-user-modify: read-only;">
+ <OPTION VALUE="s1" STYLE="-moz-user-modify: read-write;">
+ <SPAN>
+ light
+</SPAN>
+ </OPTION>
+ <OPTION VALUE="s2" STYLE="-moz-user-modify: read-write;">
+ <SPAN>
+ normal
+</SPAN>
+ </OPTION>
+ <OPTION VALUE="s3" STYLE="-moz-user-modify: read-write;">
+ <SPAN>
+ deep
+</SPAN>
+ </OPTION>
+ </OPTGROUP>
+ </SELECT>
+ </test>
+</tests>
\ No newline at end of file
Modified: trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/form/textArea.html
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/form/textArea.html 2008-11-26 09:21:56 UTC (rev 12065)
+++ trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/form/textArea.html 2008-11-26 09:50:06 UTC (rev 12066)
@@ -5,8 +5,9 @@
<h1>textArea</h1>
-<textarea cols="10" rows="2">
-
+<textarea cols="10" rows="2" id="textArea" class="textAreaClass"
+ dir="ltr" style="color: red;" disabled="disabled">
+ value
</textarea>
</body>
Added: trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/form/textArea.html.xml
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/form/textArea.html.xml (rev 0)
+++ trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/form/textArea.html.xml 2008-11-26 09:50:06 UTC (rev 12066)
@@ -0,0 +1,8 @@
+<tests>
+ <test id="textArea">
+ <TEXTAREA COLS="10" ROWS="2" ID="textArea" CLASS="textAreaClass"
+ STYLE="color: red; -moz-user-modify: read-only;">
+ value
+ </TEXTAREA>
+ </test>
+</tests>
\ No newline at end of file
Added: trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/frames/frame.html
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/frames/frame.html (rev 0)
+++ trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/frames/frame.html 2008-11-26 09:50:06 UTC (rev 12066)
@@ -0,0 +1,13 @@
+<html>
+<head></head>
+
+<frameset cols="100,*,20%">
+ <frame id="frame" src="temp/left.html" name="leftFrame">
+ <frame src="temp/right.html" name="mainFrame"
+ frameborder="0">
+ <noframes >
+ your browser don't support frames
+ </noframes>
+</frameset>
+
+</html>
\ No newline at end of file
Added: trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/frames/frame.html.xml
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/frames/frame.html.xml (rev 0)
+++ trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/frames/frame.html.xml 2008-11-26 09:50:06 UTC (rev 12066)
@@ -0,0 +1,5 @@
+<tests>
+ <test id="frame">
+ <FRAME NAME="leftFrame" SRC="/.*temp/left.html/" STYLE="-moz-user-modify: read-only;" />
+ </test>
+</tests>
\ No newline at end of file
Modified: trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/frames/frameset.html
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/frames/frameset.html 2008-11-26 09:21:56 UTC (rev 12065)
+++ trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/frames/frameset.html 2008-11-26 09:50:06 UTC (rev 12066)
@@ -1,11 +1,11 @@
<html>
<head></head>
-<frameset cols="100,*,20%">
- <frame src="pages/html/frames/temp/left.html" name="leftFrame">
- <frame src="pages/html/frames/temp/right.html" name="mainFrame"
+<frameset id="frameset" cols="100,*,20%">
+ <frame src="temp/left.html" name="leftFrame">
+ <frame src="temp/right.html" name="mainFrame"
frameborder="0">
- <noframes>
+ <noframes >
your browser don't support frames
</noframes>
</frameset>
Added: trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/frames/frameset.html.xml
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/frames/frameset.html.xml (rev 0)
+++ trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/frames/frameset.html.xml 2008-11-26 09:50:06 UTC (rev 12066)
@@ -0,0 +1,16 @@
+<tests>
+ <test id="frameset">
+ <FRAMESET COLS="100,*,20%" STYLE="-moz-user-modify: read-only;">
+ <FRAME NAME="leftFrame" SRC="/.*temp/left.html/" STYLE="-moz-user-modify: read-only;" />
+
+ <FRAME FRAMEBORDER="0" NAME="mainFrame" SRC="/.*temp/right.html/"
+ STYLE="-moz-user-modify: read-only;" />
+
+ <NOFRAMES STYLE="-moz-user-modify: read-only;">
+ <SPAN>
+ your browser don't support frames
+ </SPAN>
+ </NOFRAMES>
+ </FRAMESET>
+ </test>
+</tests>
\ No newline at end of file
Modified: trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/frames/iframe.html
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/frames/iframe.html 2008-11-26 09:21:56 UTC (rev 12065)
+++ trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/frames/iframe.html 2008-11-26 09:50:06 UTC (rev 12066)
@@ -5,7 +5,7 @@
<h1>iframe</h1>
-<iframe src="pages/html/frames/temp/ifr.html" width="468" height="60"
+<iframe id="iframe" src="temp/ifr.html" width="468" height="60"
align="left"> your browser doesn't support iframes </iframe>
</body>
Added: trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/frames/iframe.html.xml
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/frames/iframe.html.xml (rev 0)
+++ trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/frames/iframe.html.xml 2008-11-26 09:50:06 UTC (rev 12066)
@@ -0,0 +1,11 @@
+<tests>
+ <test id="iframe">
+ <IFRAME WIDTH="468" HEIGHT="60" ALIGN="left"
+ SRC="/.*temp/ifr.html/"
+ STYLE="-moz-user-modify: read-only;">
+ <SPAN>
+ your browser doesn't support iframes
+ </SPAN>
+ </IFRAME>
+ </test>
+</tests>
\ No newline at end of file
Added: trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/frames/noframes.html
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/frames/noframes.html (rev 0)
+++ trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/frames/noframes.html 2008-11-26 09:50:06 UTC (rev 12066)
@@ -0,0 +1,13 @@
+<html>
+<head></head>
+
+<frameset cols="100,*,20%">
+ <frame src="temp/left.html" name="leftFrame">
+ <frame src="temp/right.html" name="mainFrame"
+ frameborder="0">
+ <noframes id="noframes" >
+ your browser don't support frames
+ </noframes>
+</frameset>
+
+</html>
\ No newline at end of file
Added: trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/frames/noframes.html.xml
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/frames/noframes.html.xml (rev 0)
+++ trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/frames/noframes.html.xml 2008-11-26 09:50:06 UTC (rev 12066)
@@ -0,0 +1,9 @@
+<tests>
+ <test id="noframes">
+ <NOFRAMES ID="noframes" STYLE="-moz-user-modify: read-only;">
+ <SPAN>
+ your browser don't support frames
+ </SPAN>
+ </NOFRAMES>
+ </test>
+</tests>
\ No newline at end of file
Added: trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/scripts/noscript.html
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/scripts/noscript.html (rev 0)
+++ trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/scripts/noscript.html 2008-11-26 09:50:06 UTC (rev 12066)
@@ -0,0 +1,17 @@
+<html>
+<head></head>
+
+<body>
+
+<h1>noscript</h1>
+
+<script type="text/javascript">
+ alert("Hello, world!")
+</script>
+<noscript id="noscript">
+<p>Your browser doesn't support scripts</p>
+</noscript>
+
+
+</body>
+</html>
\ No newline at end of file
Modified: trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/scripts/script.html
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/scripts/script.html 2008-11-26 09:21:56 UTC (rev 12065)
+++ trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/scripts/script.html 2008-11-26 09:50:06 UTC (rev 12066)
@@ -3,9 +3,9 @@
<body>
-<h1>script,noscript</h1>
+<h1>script</h1>
-<script type="text/javascript">
+<script id="script" type="text/javascript">
alert("Hello, world!")
</script>
<noscript>
Added: trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/table/caption.html
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/table/caption.html (rev 0)
+++ trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/table/caption.html 2008-11-26 09:50:06 UTC (rev 12066)
@@ -0,0 +1,36 @@
+<html>
+<head></head>
+
+<body>
+
+<h1>caption</h1>
+
+<table width="600" border="1">
+ <caption id="caption" class="captionClass" dir="ltr" style="color:red;">caption of a table</caption>
+ <thead>
+ <tr>
+ <td>heading 1</td>
+ <td>heading 2</td>
+ </tr>
+ </thead>
+ <tr>
+ <th>head 1</th>
+ <th>head 2</th>
+ </tr>
+ <tfoot>
+ <tr>
+ <td>foot text 1</td>
+ <td>foot text 2</td>
+ </tr>
+ </tfoot>
+ <tbody align="right">
+ <tr>
+ <td>body text 1</td>
+ <td>body text 2</td>
+ </tr>
+ </tbody>
+
+</table>
+
+</body>
+</html>
\ No newline at end of file
Added: trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/table/caption.html.xml
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/table/caption.html.xml (rev 0)
+++ trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/table/caption.html.xml 2008-11-26 09:50:06 UTC (rev 12066)
@@ -0,0 +1,10 @@
+<tests>
+ <test id="caption">
+ <CAPTION ID="caption" CLASS="captionClass" DIR="ltr"
+ STYLE="color: red; -moz-user-modify: read-write;">
+ <SPAN>
+ caption of a table
+</SPAN>
+ </CAPTION>
+ </test>
+</tests>
\ No newline at end of file
Added: trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/table/col.html
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/table/col.html (rev 0)
+++ trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/table/col.html 2008-11-26 09:50:06 UTC (rev 12066)
@@ -0,0 +1,22 @@
+<html>
+<head></head>
+
+<body>
+
+<h1>col</h1>
+
+<table width="400" border="0" cellpadding="5" cellspacing="0">
+ <colgroup width="150">
+ <colgroup span="9" align="center" width="50">
+ <col id="col" span="5">
+ <col span="4">
+ <tr>
+ <td style="background: #B0B28E">Some Text</td>
+ <td style="background: #CCCCCC">Some Text</td>
+ <td style="background: #B0B28E">Some Text</td>
+ <td style="background: #CCCCCC">Some Text</td>
+ </tr>
+</table>
+
+</body>
+</html>
\ No newline at end of file
Added: trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/table/col.html.xml
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/table/col.html.xml (rev 0)
+++ trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/table/col.html.xml 2008-11-26 09:50:06 UTC (rev 12066)
@@ -0,0 +1,5 @@
+<tests>
+ <test id="col">
+ <COL SPAN="5" ID="col" STYLE="-moz-user-modify: read-only;" />
+ </test>
+</tests>
\ No newline at end of file
Added: trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/table/colgroup.html
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/table/colgroup.html (rev 0)
+++ trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/table/colgroup.html 2008-11-26 09:50:06 UTC (rev 12066)
@@ -0,0 +1,22 @@
+<html>
+<head></head>
+
+<body>
+
+<h1>colgroup</h1>
+
+<table width="400" border="0" cellpadding="5" cellspacing="0">
+ <colgroup id="colgroup" width="150">
+ <colgroup span="9" align="center" width="50">
+ <col span="5">
+ <col span="4">
+ <tr>
+ <td style="background: #B0B28E">Some Text</td>
+ <td style="background: #CCCCCC">Some Text</td>
+ <td style="background: #B0B28E">Some Text</td>
+ <td style="background: #CCCCCC">Some Text</td>
+ </tr>
+</table>
+
+</body>
+</html>
\ No newline at end of file
Added: trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/table/colgroup.html.xml
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/table/colgroup.html.xml (rev 0)
+++ trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/table/colgroup.html.xml 2008-11-26 09:50:06 UTC (rev 12066)
@@ -0,0 +1,6 @@
+<tests>
+ <test id="colgroup">
+ <COLGROUP WIDTH="150" ID="colgroup" STYLE="-moz-user-modify: read-write;">
+ </COLGROUP>
+ </test>
+</tests>
\ No newline at end of file
Modified: trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/table/table.html
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/table/table.html 2008-11-26 09:21:56 UTC (rev 12065)
+++ trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/table/table.html 2008-11-26 09:50:06 UTC (rev 12066)
@@ -3,9 +3,9 @@
<body>
-<h1>table,colgroup,col,tr,td</h1>
+<h1>table</h1>
-<table width="400" border="0" cellpadding="5" cellspacing="0">
+<table id="table" width="400" border="0" cellpadding="5" cellspacing="0">
<colgroup width="150">
<colgroup span="9" align="center" width="50">
<col span="5">
Added: trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/table/table.html.xml
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/table/table.html.xml (rev 0)
+++ trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/table/table.html.xml 2008-11-26 09:50:06 UTC (rev 12066)
@@ -0,0 +1,42 @@
+<tests>
+ <test id="table">
+ <TABLE WIDTH="400" CELLSPACING="0" CELLPADDING="5" BORDER="0"
+ ID="table" STYLE="-moz-user-modify: read-write;" >
+ <COLGROUP WIDTH="150" STYLE="-moz-user-modify: read-write;">
+ </COLGROUP>
+ <COLGROUP WIDTH="50" ALIGN="center" SPAN="9"
+ STYLE="-moz-user-modify: read-write;">
+ <COL SPAN="5" STYLE="-moz-user-modify: read-only;" />
+
+ <COL SPAN="4" STYLE="-moz-user-modify: read-only;" />
+
+ </COLGROUP>
+ <TR STYLE="-moz-user-modify: read-write;">
+ <TD
+ STYLE="background: rgb(176, 178, 142) none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-user-modify: read-write;">
+ <SPAN>
+ Some Text
+ </SPAN>
+ </TD>
+ <TD
+ STYLE="background: rgb(204, 204, 204) none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-user-modify: read-write;">
+ <SPAN>
+ Some Text
+ </SPAN>
+ </TD>
+ <TD
+ STYLE="background: rgb(176, 178, 142) none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-user-modify: read-write;">
+ <SPAN>
+ Some Text
+ </SPAN>
+ </TD>
+ <TD
+ STYLE="background: rgb(204, 204, 204) none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-user-modify: read-write;">
+ <SPAN>
+ Some Text
+ </SPAN>
+ </TD>
+ </TR>
+ </TABLE>
+ </test>
+</tests>
\ No newline at end of file
Added: trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/table/tbody.html
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/table/tbody.html (rev 0)
+++ trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/table/tbody.html 2008-11-26 09:50:06 UTC (rev 12066)
@@ -0,0 +1,36 @@
+<html>
+<head></head>
+
+<body>
+
+<h1>tbody</h1>
+
+<table width="600" border="1">
+ <caption>caption of a table</caption>
+ <thead>
+ <tr>
+ <td>heading 1</td>
+ <td>heading 2</td>
+ </tr>
+ </thead>
+ <tr>
+ <th>head 1</th>
+ <th>head 2</th>
+ </tr>
+ <tfoot>
+ <tr>
+ <td>foot text 1</td>
+ <td>foot text 2</td>
+ </tr>
+ </tfoot>
+ <tbody align="right" id="tbody" class="tbody" style="color:red">
+ <tr>
+ <td>body text 1</td>
+ <td>body text 2</td>
+ </tr>
+ </tbody>
+
+</table>
+
+</body>
+</html>
\ No newline at end of file
Added: trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/table/tbody.html.xml
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/table/tbody.html.xml (rev 0)
+++ trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/table/tbody.html.xml 2008-11-26 09:50:06 UTC (rev 12066)
@@ -0,0 +1,19 @@
+<tests>
+ <test id="tbody">
+ <TBODY ALIGN="right" ID="tbody" CLASS="tbody"
+ STYLE="color: red; -moz-user-modify: read-write;">
+ <TR STYLE="-moz-user-modify: read-write;">
+ <TD STYLE="-moz-user-modify: read-write;">
+ <SPAN>
+ body text 1
+ </SPAN>
+ </TD>
+ <TD STYLE="-moz-user-modify: read-write;">
+ <SPAN>
+ body text 2
+ </SPAN>
+ </TD>
+ </TR>
+ </TBODY>
+ </test>
+</tests>
\ No newline at end of file
Added: trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/table/td.html
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/table/td.html (rev 0)
+++ trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/table/td.html 2008-11-26 09:50:06 UTC (rev 12066)
@@ -0,0 +1,22 @@
+<html>
+<head></head>
+
+<body>
+
+<h1>td</h1>
+
+<table width="400" border="0" cellpadding="5" cellspacing="0">
+ <colgroup width="150">
+ <colgroup span="9" align="center" width="50">
+ <col span="5">
+ <col span="4">
+ <tr>
+ <td id="td" style="background: #B0B28E" class="tdClass">Some Text</td>
+ <td style="background: #CCCCCC">Some Text</td>
+ <td style="background: #B0B28E">Some Text</td>
+ <td style="background: #CCCCCC">Some Text</td>
+ </tr>
+</table>
+
+</body>
+</html>
\ No newline at end of file
Added: trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/table/td.html.xml
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/table/td.html.xml (rev 0)
+++ trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/table/td.html.xml 2008-11-26 09:50:06 UTC (rev 12066)
@@ -0,0 +1,11 @@
+<tests>
+ <test id="td">
+ <TD ID="td"
+ STYLE="background: rgb(176, 178, 142) none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-user-modify: read-write;"
+ CLASS="tdClass">
+ <SPAN>
+ Some Text
+</SPAN>
+ </TD>
+ </test>
+</tests>
\ No newline at end of file
Added: trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/table/tfoot.html
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/table/tfoot.html (rev 0)
+++ trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/table/tfoot.html 2008-11-26 09:50:06 UTC (rev 12066)
@@ -0,0 +1,37 @@
+<html>
+<head></head>
+
+<body>
+
+<h1>tfoot</h1>
+
+<table width="600" border="1">
+ <caption>caption of a table</caption>
+ <thead>
+ <tr>
+ <td>heading 1</td>
+ <td>heading 2</td>
+ </tr>
+ </thead>
+ <tr>
+ <th>head 1</th>
+ <th>head 2</th>
+ </tr>
+ <tfoot id="tfoot" class="tfootClass" style="color: red;" dir="ltr"
+ align="left" valign="top">
+ <tr>
+ <td>foot text 1</td>
+ <td>foot text 2</td>
+ </tr>
+ </tfoot>
+ <tbody align="right">
+ <tr>
+ <td>body text 1</td>
+ <td>body text 2</td>
+ </tr>
+ </tbody>
+
+</table>
+
+</body>
+</html>
\ No newline at end of file
Added: trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/table/tfoot.html.xml
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/table/tfoot.html.xml (rev 0)
+++ trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/table/tfoot.html.xml 2008-11-26 09:50:06 UTC (rev 12066)
@@ -0,0 +1,19 @@
+<tests>
+ <test id="tfoot">
+ <TFOOT VALIGN="top" ALIGN="left" ID="tfoot" CLASS="tfootClass"
+ STYLE="color: red; -moz-user-modify: read-only;" DIR="ltr">
+ <TR STYLE="-moz-user-modify: read-write;">
+ <TD STYLE="-moz-user-modify: read-write;">
+ <SPAN>
+ foot text 1
+ </SPAN>
+ </TD>
+ <TD STYLE="-moz-user-modify: read-write;">
+ <SPAN>
+ foot text 2
+ </SPAN>
+ </TD>
+ </TR>
+ </TFOOT>
+ </test>
+</tests>
\ No newline at end of file
Added: trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/table/th.html
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/table/th.html (rev 0)
+++ trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/table/th.html 2008-11-26 09:50:06 UTC (rev 12066)
@@ -0,0 +1,36 @@
+<html>
+<head></head>
+
+<body>
+
+<h1>th</h1>
+
+<table width="600" border="1">
+ <caption>caption of a table</caption>
+ <thead>
+ <tr>
+ <td>heading 1</td>
+ <td>heading 2</td>
+ </tr>
+ </thead>
+ <tr>
+ <th id="th" style="color: red;" class="thClass">head 1</th>
+ <th>head 2</th>
+ </tr>
+ <tfoot>
+ <tr>
+ <td>foot text 1</td>
+ <td>foot text 2</td>
+ </tr>
+ </tfoot>
+ <tbody align="right">
+ <tr>
+ <td>body text 1</td>
+ <td>body text 2</td>
+ </tr>
+ </tbody>
+
+</table>
+
+</body>
+</html>
\ No newline at end of file
Added: trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/table/th.html.xml
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/table/th.html.xml (rev 0)
+++ trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/table/th.html.xml 2008-11-26 09:50:06 UTC (rev 12066)
@@ -0,0 +1,10 @@
+<tests>
+ <test id="th">
+ <TH ID="th" STYLE="color: red; -moz-user-modify: read-write;"
+ CLASS="thClass">
+ <SPAN>
+ head 1
+ </SPAN>
+ </TH>
+ </test>
+</tests>
\ No newline at end of file
Added: trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/table/thead.html
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/table/thead.html (rev 0)
+++ trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/table/thead.html 2008-11-26 09:50:06 UTC (rev 12066)
@@ -0,0 +1,36 @@
+<html>
+<head></head>
+
+<body>
+
+<h1>thead</h1>
+
+<table width="600" border="1">
+ <caption>caption of a table</caption>
+ <thead id="thead" align="right" dir="ltr" style="color:red;" class="theadClass">
+ <tr>
+ <td>heading 1</td>
+ <td>heading 2</td>
+ </tr>
+ </thead>
+ <tr>
+ <th>head 1</th>
+ <th>head 2</th>
+ </tr>
+ <tfoot>
+ <tr>
+ <td>foot text 1</td>
+ <td>foot text 2</td>
+ </tr>
+ </tfoot>
+ <tbody align="right">
+ <tr>
+ <td>body text 1</td>
+ <td>body text 2</td>
+ </tr>
+ </tbody>
+
+</table>
+
+</body>
+</html>
\ No newline at end of file
Added: trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/table/thead.html.xml
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/table/thead.html.xml (rev 0)
+++ trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/table/thead.html.xml 2008-11-26 09:50:06 UTC (rev 12066)
@@ -0,0 +1,18 @@
+<tests>
+ <test id="thead">
+<THEAD ALIGN="right" ID="thead" DIR="ltr" STYLE="color: red; -moz-user-modify: read-only;" CLASS="theadClass">
+<TR STYLE="-moz-user-modify: read-write;">
+<TD STYLE="-moz-user-modify: read-write;">
+<SPAN>
+heading 1
+</SPAN>
+</TD>
+<TD STYLE="-moz-user-modify: read-write;">
+<SPAN>
+heading 2
+</SPAN>
+</TD>
+</TR>
+</THEAD>
+ </test>
+</tests>
\ No newline at end of file
Added: trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/table/tr.html
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/table/tr.html (rev 0)
+++ trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/table/tr.html 2008-11-26 09:50:06 UTC (rev 12066)
@@ -0,0 +1,22 @@
+<html>
+<head></head>
+
+<body>
+
+<h1>tr</h1>
+
+<table width="400" border="0" cellpadding="5" cellspacing="0">
+ <colgroup width="150">
+ <colgroup span="9" align="center" width="50">
+ <col span="5">
+ <col span="4">
+ <tr id="tr" class="trClass" style="color:red;">
+ <td style="background: #B0B28E">Some Text</td>
+ <td style="background: #CCCCCC">Some Text</td>
+ <td style="background: #B0B28E">Some Text</td>
+ <td style="background: #CCCCCC">Some Text</td>
+ </tr>
+</table>
+
+</body>
+</html>
\ No newline at end of file
Added: trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/table/tr.html.xml
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/table/tr.html.xml (rev 0)
+++ trunk/vpe/tests/org.jboss.tools.vpe.html.test/resources/htmlTest/WebContent/pages/components/table/tr.html.xml 2008-11-26 09:50:06 UTC (rev 12066)
@@ -0,0 +1,26 @@
+<tests>
+ <test id="tr">
+ <TR ID="tr" CLASS="trClass" STYLE="color: red; -moz-user-modify: read-write;">
+<TD STYLE="background: rgb(176, 178, 142) none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-user-modify: read-write;">
+<SPAN>
+Some Text
+</SPAN>
+</TD>
+<TD STYLE="background: rgb(204, 204, 204) none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-user-modify: read-write;">
+<SPAN>
+Some Text
+</SPAN>
+</TD>
+<TD STYLE="background: rgb(176, 178, 142) none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-user-modify: read-write;">
+<SPAN>
+Some Text
+</SPAN>
+</TD>
+<TD STYLE="background: rgb(204, 204, 204) none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-user-modify: read-write;">
+<SPAN>
+Some Text
+</SPAN>
+</TD>
+</TR>
+ </test>
+</tests>
\ No newline at end of file
Modified: trunk/vpe/tests/org.jboss.tools.vpe.html.test/src/org/jboss/tools/vpe/html/test/HtmlComponentContentTest.java
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.html.test/src/org/jboss/tools/vpe/html/test/HtmlComponentContentTest.java 2008-11-26 09:21:56 UTC (rev 12065)
+++ trunk/vpe/tests/org.jboss.tools.vpe.html.test/src/org/jboss/tools/vpe/html/test/HtmlComponentContentTest.java 2008-11-26 09:50:06 UTC (rev 12066)
@@ -63,6 +63,198 @@
}
/*
+ * test for core html tags
+ */
+
+ public void testA() throws Throwable {
+ performContentTest("components/core/a.html"); //$NON-NLS-1$
+ }
+
+ public void testAddress() throws Throwable {
+ performContentTest("components/core/address.html"); //$NON-NLS-1$
+ }
+
+ public void testBody() throws Throwable {
+ performContentTest("components/core/body.html"); //$NON-NLS-1$
+ }
+
+ public void testH1() throws Throwable {
+ performContentTest("components/core/h1.html"); //$NON-NLS-1$
+ }
+
+ public void testH2() throws Throwable {
+ performContentTest("components/core/h2.html"); //$NON-NLS-1$
+ }
+
+ public void testH3() throws Throwable {
+ performContentTest("components/core/h3.html"); //$NON-NLS-1$
+ }
+
+ public void testH4() throws Throwable {
+ performContentTest("components/core/h4.html"); //$NON-NLS-1$
+ }
+
+ public void testH5() throws Throwable {
+ performContentTest("components/core/h5.html"); //$NON-NLS-1$
+ }
+
+ public void testH6() throws Throwable {
+ performContentTest("components/core/h6.html"); //$NON-NLS-1$
+ }
+
+ public void testHead() throws Throwable {
+ performContentTest("components/core/head.html"); //$NON-NLS-1$
+ }
+
+ public void testHtml() throws Throwable {
+ performContentTest("components/core/html.html"); //$NON-NLS-1$
+ }
+
+ public void testImg() throws Throwable {
+ performContentTest("components/core/img.html"); //$NON-NLS-1$
+ }
+
+ public void testLink() throws Throwable {
+ fail("it is necessary to add body of the test"); //$NON-NLS-1$
+ }
+
+ public void testMap() throws Throwable {
+ performContentTest("components/core/map.html"); //$NON-NLS-1$
+ }
+
+ public void testObject() throws Throwable {
+ performContentTest("components/core/object.html"); //$NON-NLS-1$
+ }
+
+ public void testStyle() throws Throwable {
+ fail("it is necessary to add body of the test"); //$NON-NLS-1$
+ }
+
+ public void testTitle() throws Throwable {
+ performContentTest("components/core/title.html"); //$NON-NLS-1$
+ }
+
+ /*
+ * test for form html tags
+ */
+
+ public void testButton() throws Throwable {
+ performContentTest("components/form/button.html"); //$NON-NLS-1$
+ }
+
+ public void testFieldset() throws Throwable {
+ performContentTest("components/form/fieldset.html"); //$NON-NLS-1$
+ }
+
+ public void testForm() throws Throwable {
+ performContentTest("components/form/form.html"); //$NON-NLS-1$
+ }
+
+ public void testInput() throws Throwable {
+ performContentTest("components/form/input.html"); //$NON-NLS-1$
+ }
+
+ public void testLabel() throws Throwable {
+ performContentTest("components/form/label.html"); //$NON-NLS-1$
+ }
+
+ public void testLegend() throws Throwable {
+ performContentTest("components/form/legend.html"); //$NON-NLS-1$
+ }
+
+ public void testOptgroup() throws Throwable {
+ performContentTest("components/form/optgroup.html"); //$NON-NLS-1$
+ }
+
+ public void testOption() throws Throwable {
+ performContentTest("components/form/option.html"); //$NON-NLS-1$
+ }
+
+ public void testSelect() throws Throwable {
+ performContentTest("components/form/select.html"); //$NON-NLS-1$
+ }
+
+ public void testTextArea() throws Throwable {
+ performContentTest("components/form/textArea.html"); //$NON-NLS-1$
+ }
+
+ /*
+ * test for frames html tags
+ */
+
+ public void testFrame() throws Throwable {
+ performContentTest("components/frames/frame.html"); //$NON-NLS-1$
+ }
+
+ public void testFrameset() throws Throwable {
+ performContentTest("components/frames/frameset.html"); //$NON-NLS-1$
+ }
+
+ public void testIframe() throws Throwable {
+ performContentTest("components/frames/iframe.html"); //$NON-NLS-1$
+ }
+
+ public void testNoframes() throws Throwable {
+ performContentTest("components/frames/noframes.html"); //$NON-NLS-1$
+ }
+
+ /*
+ * test for script html tags
+ */
+
+ public void testScript() throws Throwable {
+ performInvisibleTagTest("components/scripts/script.html", "script"); //$NON-NLS-1$ //$NON-NLS-2$
+ }
+
+ public void testNoscript() throws Throwable {
+ performInvisibleTagTest("components/scripts/noscript.html", "noscript"); //$NON-NLS-1$ //$NON-NLS-2$
+ }
+
+ /*
+ * test for table html tags
+ */
+
+ public void testCaption() throws Throwable {
+ performContentTest("components/table/caption.html"); //$NON-NLS-1$
+ }
+
+ public void testCol() throws Throwable {
+ performContentTest("components/table/col.html"); //$NON-NLS-1$
+ }
+
+ public void testColgroup() throws Throwable {
+ performContentTest("components/table/colgroup.html"); //$NON-NLS-1$
+ }
+
+ public void testTable() throws Throwable {
+ performContentTest("components/table/table.html"); //$NON-NLS-1$
+ }
+
+ public void testTbody() throws Throwable {
+ performContentTest("components/table/tbody.html"); //$NON-NLS-1$
+ }
+
+ public void testTd() throws Throwable {
+ performContentTest("components/table/td.html"); //$NON-NLS-1$
+ }
+
+ public void testTfoot() throws Throwable {
+ performContentTest("components/table/tfoot.html"); //$NON-NLS-1$
+ }
+
+ public void testTh() throws Throwable {
+ performContentTest("components/table/th.html"); //$NON-NLS-1$
+ }
+
+ public void testThead() throws Throwable {
+ performContentTest("components/table/thead.html"); //$NON-NLS-1$
+ }
+
+ public void testTr() throws Throwable {
+ performContentTest("components/table/tr.html"); //$NON-NLS-1$
+ }
+
+ /*
* test for text html tags
*/
Modified: trunk/vpe/tests/org.jboss.tools.vpe.html.test/src/org/jboss/tools/vpe/html/test/HtmlComponentTest.java
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.html.test/src/org/jboss/tools/vpe/html/test/HtmlComponentTest.java 2008-11-26 09:21:56 UTC (rev 12065)
+++ trunk/vpe/tests/org.jboss.tools.vpe.html.test/src/org/jboss/tools/vpe/html/test/HtmlComponentTest.java 2008-11-26 09:50:06 UTC (rev 12066)
@@ -67,9 +67,9 @@
"components/core/address.html", IMPORT_PROJECT_NAME)); //$NON-NLS-1$
}
- public void testBasic() throws Throwable {
+ public void testBody() throws Throwable {
performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/core/basic.html", IMPORT_PROJECT_NAME)); //$NON-NLS-1$
+ "components/core/body.html", IMPORT_PROJECT_NAME)); //$NON-NLS-1$
}
public void testImg() throws Throwable {
16 years, 3 months
JBoss Tools SVN: r12065 - in trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks: javabean/analyzer and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: DartPeng
Date: 2008-11-26 04:21:56 -0500 (Wed, 26 Nov 2008)
New Revision: 12065
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/analyzer/MappingResourceConfigList.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/javabean/analyzer/JavaBeanAnalyzer.java
Log:
JBIDE-3260
change the generate/parse ways to make the tools can understand "multiple bean creation"
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/analyzer/MappingResourceConfigList.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/analyzer/MappingResourceConfigList.java 2008-11-26 08:32:53 UTC (rev 12064)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/analyzer/MappingResourceConfigList.java 2008-11-26 09:21:56 UTC (rev 12065)
@@ -36,7 +36,8 @@
}
public void addResourceConfig(ResourceConfigType resourceConfig) {
- this.getRelationgResourceConfigList().add(resourceConfig);
+ if (!this.getRelationgResourceConfigList().contains(resourceConfig))
+ this.getRelationgResourceConfigList().add(resourceConfig);
}
public void removeResourceConfig(ResourceConfigType resourceConfig) {
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/javabean/analyzer/JavaBeanAnalyzer.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/javabean/analyzer/JavaBeanAnalyzer.java 2008-11-26 08:32:53 UTC (rev 12064)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/javabean/analyzer/JavaBeanAnalyzer.java 2008-11-26 09:21:56 UTC (rev 12065)
@@ -88,8 +88,12 @@
private AdapterFactoryEditingDomain editingDomain;
- private HashMap userdResourceTypeMap = new HashMap();
+ private HashMap userdSelectorString = new HashMap();
+
+ private HashMap<String,JavaBeanModel> javaBeanModelCatch = new HashMap<String,JavaBeanModel>();
+ private HashMap<ResourceConfigType, Object> usedResourceConfigMap = new HashMap<ResourceConfigType, Object>();
+
private HashMap usedBeanIDMap = new HashMap();
public JavaBeanAnalyzer() {
@@ -105,6 +109,25 @@
createCommandStack(), new HashMap<Resource, Boolean>());
}
+ protected boolean resourceConfigIsUsed(ResourceConfigType config) {
+ return (usedResourceConfigMap.get(config) != null);
+ }
+
+ protected void registeSourceJavaBeanWithResourceConfig(ResourceConfigType config,JavaBeanModel model){
+ javaBeanModelCatch.put(config.getSelector(), model);
+ }
+
+ protected JavaBeanModel loadJavaBeanWithResourceConfig(ResourceConfigType config){
+ return javaBeanModelCatch.get(config.getSelector());
+ }
+
+ protected void setResourceConfigUsed(ResourceConfigType config) {
+ if (!usedResourceConfigMap.containsValue(config))
+ usedResourceConfigMap.put(config, new Object());
+ }
+
+
+
protected CommandStack createCommandStack() {
return new BasicCommandStack();
}
@@ -127,7 +150,7 @@
protected void setSelectorIsUsed(String selector) {
if (selector == null)
return;
- userdResourceTypeMap.put(selector, new Object());
+ userdSelectorString.put(selector, new Object());
}
protected boolean beanIDIsUsed(String beanID) {
@@ -141,7 +164,7 @@
protected boolean isSelectorIsUsed(String resourceType) {
if (resourceType == null)
return false;
- return (userdResourceTypeMap.get(resourceType) != null);
+ return (userdSelectorString.get(resourceType) != null);
}
private boolean connectionIsUsed(Object connection) {
@@ -250,13 +273,13 @@
// how dispatch more than one connection???
List<Object> targetConnectionModelList = ((IConnectableModel) child)
.getModelTargetConnections();
- for (Iterator iterator3 = targetConnectionModelList
+ for (Iterator<Object> iterator3 = targetConnectionModelList
.iterator(); iterator3.hasNext();) {
LineConnectionModel childConnection = (LineConnectionModel) iterator3
.next();
if (connectionIsUsed(childConnection))
continue;
- JavaBeanModel jbean = (JavaBeanModel) child
+ JavaBeanModel childTargetJavaBean = (JavaBeanModel) child
.getReferenceEntityModel();
String currentSelectorName = getSelectorString(
(AbstractStructuredDataModel) childConnection
@@ -266,12 +289,13 @@
(AbstractStructuredDataModel) source);
AnyType binding = SmooksModelUtils
.addBindingTypeToParamType(
- bindingsParam, jbean.getName(),
+ bindingsParam,
+ childTargetJavaBean.getName(),
currentSelectorName, null, null);
UIUtils.assignConnectionPropertyToBinding(
childConnection, binding, new String[] {
"property", "selector" }); //$NON-NLS-1$ //$NON-NLS-2$
- if (!jbean.isPrimitive()) {
+ if (!childTargetJavaBean.isPrimitive()) {
analyzeStructuredDataModel(
resourceList,
root,
@@ -289,6 +313,7 @@
}
/**
+ * TODO change the method name to be "getTheBindingPropertySelectorString"
*
* @param target
* @param source
@@ -304,11 +329,16 @@
.getReferenceEntityModel();
JavaBeanModel currentbean = (JavaBeanModel) target
.getReferenceEntityModel();
- if (sourcebean.getParent() == currentRootModel
- .getReferenceEntityModel()) {
+ if (sourcebean.getParent() == rootbean || sourcebean == rootbean) {
if (!currentbean.isPrimitive()) {
- return COMPLEX_PRIX_START + currentbean.getName()
- + COMPLEX_PRIX_END;
+ String currentbeanName = currentbean.getName();
+ if (currentbeanName.length() > 1) {
+ char firstChar = currentbeanName.charAt(0);
+ currentbeanName = currentbeanName.substring(1);
+ currentbeanName = new String(new char[] { firstChar })
+ + currentbeanName;
+ }
+ return COMPLEX_PRIX_START + currentbeanName + COMPLEX_PRIX_END;
} else {
return rootbean.getBeanClassString() + SPACE_STRING
+ sourcebean.getName();
@@ -511,7 +541,6 @@
SmooksModelUtils.BEAN_CLASS, rc);
if (targetName != null
&& targetName.trim().equals(beanClass)) {
- setSelectorIsUsed(sourceName);
// create the first connection
mappingModelList.add(new MappingModel(source, target));
resourceConfigList.addResourceConfig(rc);
@@ -542,11 +571,15 @@
SmooksResourceListType resourceList,
ResourceConfigType resourceConfig, JavaBeanModel source,
JavaBeanModel target) {
- List bindingList = SmooksModelUtils
+ List<Object> bindingList = SmooksModelUtils
.getBindingListFromResourceConfigType(resourceConfig);
if (bindingList == null)
return;
- for (Iterator iterator = bindingList.iterator(); iterator.hasNext();) {
+
+ setResourceConfigUsed(resourceConfig);
+ registeSourceJavaBeanWithResourceConfig(resourceConfig, source);
+ for (Iterator<Object> iterator = bindingList.iterator(); iterator
+ .hasNext();) {
AnyType binding = (AnyType) iterator.next();
String property = SmooksModelUtils.getAttributeValueFromAnyType(
binding, SmooksModelUtils.ATTRIBUTE_PROPERTY);
@@ -570,14 +603,11 @@
+ "\" JavaBean model");
}
if (isReferenceSelector(selector)) {
- ResourceConfigType rc = this
- .findResourceConfigTypeWithSelector(selector,
- resourceList);
- if (rc != null) {
- String newSelector = rc.getSelector();
- sourceModel = findTheChildJavaBeanModel(newSelector, source);
+ ResourceConfigType rc = this.findResourceConfigTypeWithBeanId(
+ selector, resourceList);
+ if (rc != null && !resourceConfigIsUsed(rc)) {
+ sourceModel = findModelWithResourceConfig(rc, source);
if (sourceModel != null) {
- setSelectorIsUsed(newSelector);
mappingResourceConfigList.addResourceConfig(rc);
analyzeMappingModelFromResourceConfig(mappingModelList,
mappingResourceConfigList, resourceList, rc,
@@ -597,6 +627,15 @@
}
}
}
+
+ protected JavaBeanModel findModelWithResourceConfig(ResourceConfigType config,JavaBeanModel parentModel){
+ String newSelector = config.getSelector();
+ JavaBeanModel model = findTheChildJavaBeanModel(newSelector, parentModel);
+ if(model == null){
+ model = loadJavaBeanWithResourceConfig(config);
+ }
+ return model;
+ }
protected JavaBeanModel findModelWithSelectorString(String selector,
JavaBeanModel parentModel) {
@@ -925,7 +964,7 @@
return;
if (isReferenceSelector(selector)) {
selector = selector.substring(2, selector.length() - 1);
- ResourceConfigType resourceConfig = findResourceConfigTypeWithSelector(
+ ResourceConfigType resourceConfig = findResourceConfigTypeWithBeanId(
selector, listType);
if (resourceConfig == null) {
throw new RuntimeException(
@@ -985,7 +1024,7 @@
}
}
- protected ResourceConfigType findResourceConfigTypeWithSelector(
+ protected ResourceConfigType findResourceConfigTypeWithBeanId(
String selector, SmooksResourceListType listType) {
if (isReferenceSelector(selector)) {
selector = this.getBeanIdWithRawSelectorString(selector);
@@ -994,8 +1033,8 @@
ResourceConfigType resourceConfig = null;
for (Iterator iterator = rl.iterator(); iterator.hasNext();) {
ResourceConfigType rct = (ResourceConfigType) iterator.next();
-// if (this.isSelectorIsUsed(rct.getSelector()))
-// continue;
+ // if (this.isSelectorIsUsed(rct.getSelector()))
+ // continue;
String beanId = getBeanIDFromParam(rct);
if (selector.equals(beanId)) {
resourceConfig = rct;
@@ -1017,7 +1056,7 @@
// memory out???
currentModel.getProperties();
selector = this.getBeanIdWithRawSelectorString(selector);
- ResourceConfigType resourceConfig = findResourceConfigTypeWithSelector(
+ ResourceConfigType resourceConfig = findResourceConfigTypeWithBeanId(
selector, listType);
if (resourceConfig != null) {
String referenceSelector = resourceConfig.getSelector();
16 years, 3 months