JBoss Tools SVN: r5684 - in trunk/jsf/docs/userguide/en: modules and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: ykryvinchanka
Date: 2008-01-15 09:00:34 -0500 (Tue, 15 Jan 2008)
New Revision: 5684
Removed:
trunk/jsf/docs/userguide/en/modules/editors_features.xml
trunk/jsf/docs/userguide/en/modules/more_editors.xml
Modified:
trunk/jsf/docs/userguide/en/images/more_editors/more_editors_44.png
trunk/jsf/docs/userguide/en/images/more_editors/more_editors_45.png
trunk/jsf/docs/userguide/en/modules/editors.xml
Log:
http://jira.jboss.com/jira/browse/JBDS-226 screens are retaken with 96 resolution + scale parameter is defined
Modified: trunk/jsf/docs/userguide/en/images/more_editors/more_editors_44.png
===================================================================
(Binary files differ)
Modified: trunk/jsf/docs/userguide/en/images/more_editors/more_editors_45.png
===================================================================
(Binary files differ)
Modified: trunk/jsf/docs/userguide/en/modules/editors.xml
===================================================================
--- trunk/jsf/docs/userguide/en/modules/editors.xml 2008-01-15 13:00:44 UTC (rev 5683)
+++ trunk/jsf/docs/userguide/en/modules/editors.xml 2008-01-15 14:00:34 UTC (rev 5684)
@@ -1736,7 +1736,7 @@
<title>Source Viewer</title>
<mediaobject>
<imageobject>
- <imagedata fileref="images/more_editors/more_editors_45.png"/>
+ <imagedata fileref="images/more_editors/more_editors_45.png" scale="85"/>
</imageobject>
</mediaobject>
</figure>
Deleted: trunk/jsf/docs/userguide/en/modules/editors_features.xml
===================================================================
--- trunk/jsf/docs/userguide/en/modules/editors_features.xml 2008-01-15 13:00:44 UTC (rev 5683)
+++ trunk/jsf/docs/userguide/en/modules/editors_features.xml 2008-01-15 14:00:34 UTC (rev 5684)
@@ -1,593 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?>
-<chapter id="editors_features" xreflabel="editors_features">
- <?dbhtml filename="editors_features.html"?>
-<title>Editors Features</title>
-<para>JBoss Developer Studio has powerful editor features that help you easily navigate within your application and make use of content and code assist no matter what project file (jsp, xhtml, xml, css, etc.) you are working on.</para>
-<section id="OpenOnSelection4Hyperlinknavigation">
-<?dbhtml filename="OpenOnSelection(Hyperlinknavigation)"?>
-<title>OpenOn</title>
-
-<para><property>OpenOn</property> let's you easily navigate through your project without using the Package Explorer view (project tree). With OpenOn, you can simply click on a reference to another file and that file will be opened.</para>
-
-<para>OpenOn is available for the following files:</para>
-<itemizedlist>
-<listitem><para>XML files</para></listitem>
-<listitem><para>JSP/XHTML Pages</para></listitem>
- <listitem><para>Java files</para></listitem>
-</itemizedlist>
-<section id="XMLFiles232">
-<?dbhtml filename="XMLFiles"?>
-<title>XML Files</title>
-
-<para>Press and hold down the Ctrl key. As you move the mouse cursor over different file references in
-the file, they display an underline. When you have the mouse cursor over the name of the file you want
- to open, click and the file will open in its own editor. In this example the managed bean NameBean will
- open.</para>
-<figure>
-<title>NameBean Managed Bean</title>
-<mediaobject>
- <imageobject>
- <imagedata fileref="images/editors_features/editors_features_1.png" />
- </imageobject>
-</mediaobject>
-</figure>
-<para>This is the result of using OpenOn</para>
-<figure>
-<title>NameBean Java Class</title>
-<mediaobject>
- <imageobject>
- <imagedata fileref="images/editors_features/editors_features_2.png"/>
- </imageobject>
-</mediaobject>
-</figure>
-<para>You can also try OpenOn with defined attributes.</para>
-<figure>
-<title>OpenOn With Defined Attributes</title>
-<mediaobject>
- <imageobject>
- <imagedata fileref="images/editors_features/editors_features_3.png"/>
- </imageobject>
-</mediaobject>
-</figure>
-<para>You can also open any JSP pages.</para>
-<figure>
-<title>JSP Page OpenOn</title>
-<mediaobject>
- <imageobject>
- <imagedata fileref="images/editors_features/editors_features_4.png"/>
- </imageobject>
-</mediaobject>
-</figure>
-</section>
-<section id="JSPPages223">
-<?dbhtml filename="GettingStartedwithRHDS.html"?>
-<title>JSP Pages</title>
-
-<para><property>OpenOn</property> is also very useful in JSP pages. It will allow you to quickly jump to the reference
- instead of having to hunt around in the project structure.</para>
-
-<para>You can easily open the imported property files.</para>
-<figure>
-<title>OpenOn With Imported Property Files</title>
-<mediaobject>
- <imageobject>
- <imagedata fileref="images/editors_features/editors_features_5.png"/>
- </imageobject>
-</mediaobject>
-</figure>
-<para>Use OpenOn to open a CSS file used with a JSP page:</para>
-<figure>
-<title>OpenOn With CSS File</title>
-<mediaobject>
- <imageobject>
- <imagedata fileref="images/editors_features/editors_features_6.png"/>
- </imageobject>
-</mediaobject>
-</figure>
-<para>Open managed beans:</para>
-<figure>
-<title>OpenOn With Maneaged Beans</title>
-<mediaobject>
- <imageobject>
- <imagedata fileref="images/editors_features/editors_features_7.png"/>
- </imageobject>
-</mediaobject>
-</figure>
-<para>For JSP files in a JSF project, you can also easily open the navigation rules by applying <property>OpenOn</property> to the JSF tag for the navigation outcome:</para>
-<figure>
-<title>OpenOn With JSF Tag</title>
-<mediaobject>
- <imageobject>
- <imagedata fileref="images/editors_features/editors_features_8.png"/>
- </imageobject>
-</mediaobject>
-</figure>
-</section>
-</section>
-
-<section id="CodeAssistAndDynamicCodeAssist42BasedOnProjectData">
-<?dbhtml filename="CodeAssistAndDynamicCodeAssist(BasedOnProjectData).html"?>
-<title>Code Assist and Dynamic Code Assist (based on project data)</title>
-<section id="ContentAssistFeatures321">
-<?dbhtml filename="ContentAssistFeatures"?>
-<title>Content Assist Features</title>
-<section id="ContentAssist374">
-<?dbhtml filename="ContentAssist.html"?>
-<title>Content Assist</title>
-<para><property>Content assist</property> is available when working with</para>
-
-<itemizedlist>
-<listitem><para>Seam project files</para></listitem>
-<listitem><para>JSF project files</para></listitem>
-<listitem><para>Struts project files</para></listitem>
-<listitem><para>JSP files</para></listitem>
-</itemizedlist>
-</section>
-<section id="JSFProjectFiles3087">
-<?dbhtml filename="JSFProjectFiles.html"?>
-<title>JSF Project Files</title>
-
- <para>When working with JSF project in JBoss Developer Studio, you can use various <property>Content Assist features</property> while developing:</para>
-<itemizedlist>
-<listitem><para>Content Assist for XML, JSP and JSF configuration files</para></listitem>
-<listitem><para>Content Assist based on project data</para></listitem>
-<listitem><para>Content Assist with graphical JSF editor</para></listitem>
-</itemizedlist>
-<section id="ContentAssistForXMLJSPAndJSFConfigurationFiles865">
-<?dbhtml filename="ContentAssistForXMLJSPAndJSFConfigurationFiles.html"?>
-<title>Content Assist for XML, JSP and JSF configuration files</title>
-
- <para>At any point when working with any XML, JSP and JSF configuration files Content Assist is available to help you. Simply type <emphasis><property>Ctrl-Space</property></emphasis> to see what is available.</para>
-
-<para>Content Assist for JSF configuration file:</para>
-<figure>
-<title>Content Assist in JSF Configuration File</title>
-<mediaobject>
- <imageobject>
- <imagedata fileref="images/editors_features/editors_features_9.png" />
- </imageobject>
-</mediaobject>
-</figure>
-<para>Content Assist for JSF JSP file:</para>
-<figure>
-<title>Content Assist in JSP File</title>
-<mediaobject>
- <imageobject>
- <imagedata fileref="images/editors_features/editors_features_10.png"/>
- </imageobject>
-</mediaobject>
-</figure>
-<para>Content Assist for other JSF XML project files (web.xml shown):</para>
-<figure>
-<title>Content Assist in web.xml File</title>
-<mediaobject>
- <imageobject>
- <imagedata fileref="images/editors_features/editors_features_11.png" />
- </imageobject>
-</mediaobject>
-</figure>
-</section>
-<section id="ContentAssistBasedOnProjectData86">
-<?dbhtml filename="ContentAssistBasedOnProjectData.html"?>
-<title>Content Assist Based on Project Data</title>
-
-<para>JBoss Developer Studio takes Content Assist to the next level. Studio will
- constantly scan your project and you will be able to insert code into the JSP page from your project that
- includes:</para>
-<itemizedlist>
-<listitem><para>Values from Property files</para></listitem>
-<listitem><para><emphasis role="italic"><property>"Managed beans"</property></emphasis> attributes and methods</para></listitem>
-<listitem><para>Navigation Rule Outcomes</para></listitem>
- <listitem><para>JSF variables (context, request etc...)</para></listitem>
-</itemizedlist>
-<para>The first screenshot shows how to insert message from a Properties files. You simply put the cursor
- inside the <emphasis role="italic"><property>"value"</property></emphasis> attribute and press <emphasis><property>Ctrl-Space</property></emphasis>. JBoss Developer Studio will scan your project and show a list of possible values to insert.</para>
-<figure>
-<title>Inserting Message</title>
-<mediaobject>
- <imageobject>
- <imagedata fileref="images/editors_features/editors_features_12.png"/>
- </imageobject>
-</mediaobject>
-</figure>
-<para>In the following screen shot we are inserting a <emphasis role="italic"><property>"Managed bean"</property></emphasis> attribute value. Again, by simply clicking <emphasis><property>Ctrl-Space</property></emphasis>, JBoss Developer Studio will show a list of all possible values that you can insert:</para>
-
-<para>Once you select a Managed bean, it will show you a list of all available attributes for the selected Managed bean (userBean).</para>
-<figure>
-<title>Attributes List</title>
-<mediaobject>
- <imageobject>
- <imagedata fileref="images/editors_features/editors_features_13.png"/>
- </imageobject>
-</mediaobject>
-</figure>
-<para>Code Assist based on project data will also prompt you for navigation rules that exist in your JSF
- configuration file.</para>
-<figure>
-<title>Code Assist</title>
-<mediaobject>
- <imageobject>
- <imagedata fileref="images/editors_features/editors_features_14.png"/>
- </imageobject>
-</mediaobject>
-</figure>
-</section>
-<section id="ContentAssistWithinJSFGraphicalEditor44">
-<?dbhtml filename="ContentAssistWithinJSFGraphicalEditor.html"?>
-<title>Content Assist within Tree JSF Editor</title>
-
-<para>JBoss Developer Studio also provides Content Assist when working within the Tree JSF
-configuration editor. Just click <emphasis><property>Ctrl-Space</property></emphasis>.</para>
-<figure>
-<title>Content Assist in Tree JSF Configuration Editor</title>
-<mediaobject>
- <imageobject>
- <imagedata fileref="images/editors_features/editors_features_15.png" />
- </imageobject>
-</mediaobject>
-</figure>
-<para>If a field contains right class name and you click a link near the field you will come to the file with this class otherwise a new Java Class dialog will be shown:</para>
-<figure>
-<title>New Java Class</title>
-<mediaobject>
- <imageobject>
- <imagedata fileref="images/editors_features/editors_features_16.png"/>
- </imageobject>
-</mediaobject>
-</figure>
-<para>If you entered an incorrect name in the field error markers will be shown for field labels and tree items:</para>
-<figure>
-<title>Error Markers</title>
-<mediaobject>
- <imageobject>
- <imagedata fileref="images/editors_features/editors_features_17.png"/>
- </imageobject>
-</mediaobject>
-</figure>
-<itemizedlist>
-<listitem><para>To add a new property to a managed bean expand <emphasis><property>Managed Beans</property></emphasis> and select <emphasis role="bold"><property><name_of_bean></property></emphasis></para></listitem>
-<listitem><para>Click <emphasis><property>Add</property></emphasis> button in the Properties panel</para></listitem>
-<listitem><para>In the dialog Add Property define a new property. From here also you can generate setters and getters methods:</para></listitem>
-</itemizedlist>
-<figure>
-<title>Create New Property</title>
-<mediaobject>
- <imageobject>
- <imagedata fileref="images/editors_features/editors_features_18.png"/>
- </imageobject>
-</mediaobject>
-</figure>
-<para>Here you can also add an additional navigation rule to the faces-config.xml file.</para>
-<itemizedlist>
-<listitem><para>Select <emphasis><property>Navigation Rules</property></emphasis></para></listitem>
-<listitem><para>Click <emphasis><property>Add</property></emphasis> button</para></listitem>
-<listitem><para>In the dialog <emphasis><property>Add Rule</property></emphasis> define a view and give a name to the rule. Click Finish:</para></listitem>
-</itemizedlist>
-<figure>
-<title>Add New Navigation Rule</title>
-<mediaobject>
- <imageobject>
- <imagedata fileref="images/editors_features/editors_features_19.png"/>
- </imageobject>
-</mediaobject>
-</figure>
-
-</section>
-</section>
-<section id="StrutsProjectFile46s3">
-<?dbhtml filename="StrutsProjectFiles.html"?>
-<title>Struts Project Files</title>
-<section id="ContentAssistForStrutsConfigurationFile75">
-<?dbhtml filename="ContentAssistForStrutsConfigurationFile.html"?>
-<title>Content Assist for Struts Configuration File</title>
-<figure>
-<title>Struts Content Assist</title>
-<mediaobject>
- <imageobject>
- <imagedata fileref="images/editors_features/editors_features_20.png"/>
- </imageobject>
-</mediaobject>
-</figure>
-</section>
-<section id="ContentAssistForStrutsJSPFile07">
-<?dbhtml filename="ContentAssistForStrutsJSPFile.html"?>
-<title>Content Assist for Struts JSP File</title>
-<figure>
-<title>Struts JSP Content Assist</title>
-<mediaobject>
- <imageobject>
- <imagedata fileref="images/editors_features/editors_features_21.png"/>
- </imageobject>
-</mediaobject>
-</figure>
-</section>
-</section>
-<section id="JSPPages434">
-<?dbhtml filename="JSPPages.html"?>
-<title>JSP Pages</title>
-<section id="ContentAssistForJSFTags96">
-<?dbhtml filename="ContentAssistForJSFTags.html"?>
-<title>Content Assist for JSF Tags</title>
-<para>JBDS provides full code completion for JSF tags:</para>
-
-<figure>
-<title>JSF Tags Content Assist</title>
-<mediaobject>
- <imageobject>
- <imagedata fileref="images/editors_features/editors_features_22.png"/>
- </imageobject>
-</mediaobject>
-</figure>
-<para>When the tag is selected the required attributes, if there any, are already inserted and the cursor is located to the first attribute. As this point you can ask for attribute proposals.</para>
-<figure>
-<title>Attributes Content Assist</title>
-<mediaobject>
- <imageobject>
- <imagedata fileref="images/editors_features/editors_features_23.png"/>
- </imageobject>
-</mediaobject>
-</figure>
-
-</section>
-<section id="ContentAssistForJSTLTags6332">
-<?dbhtml filename="ContentAssistForJSTLTags.html"?>
-<title>Content Assist for JSTL Tags</title>
-<figure>
-<title>JSTL Tags Content Assist</title>
-<mediaobject>
- <imageobject>
- <imagedata fileref="images/editors_features/editors_features_24.png"/>
- </imageobject>
-</mediaobject>
-</figure>
-</section>
-<section id="ContentAssistForHTMLTags7454">
-<?dbhtml filename="ContentAssistForHTMLTags.html"?>
-<title>Content Assist for HTML Tags</title>
-<para>Content assist for HTML tags has the same mechanism as for JSF tags:</para>
-<figure>
-<title>HTML Tags Content Assist</title>
-<mediaobject>
- <imageobject>
- <imagedata fileref="images/editors_features/editors_features_25.png"/>
- </imageobject>
-</mediaobject>
-</figure>
-<para>You can use as well attributes proposals for HTML tags:</para>
-<figure>
-<title>HTML Tags Content Assist</title>
-<mediaobject>
- <imageobject>
- <imagedata fileref="images/editors_features/editors_features_26.png"/>
- </imageobject>
-</mediaobject>
-</figure>
-</section>
-<section id="ContentAssistForJavaScriptTags67433">
-<?dbhtml filename="ContentAssistForJavaScriptTags.html"?>
-<title>Content Assist for JavaScript Tags</title>
-<figure>
-<title>JavaScript Tags Content Assist</title>
-<mediaobject>
- <imageobject>
- <imagedata fileref="images/editors_features/editors_features_27.png"/>
- </imageobject>
-</mediaobject>
-</figure>
-</section>
-
-<section id="ContentAssistWithinConfigurationEditor743">
-<?dbhtml filename="ContentAssistWithinConfigurationEditor.html"?>
-<title>Content Assist within JSF Configuration Editor</title>
-<figure>
-<title>Content Assist in JSF Configuration Editor</title>
-<mediaobject>
- <imageobject>
- <imagedata fileref="images/editors_features/editors_features_28.png"/>
- </imageobject>
-</mediaobject>
-</figure>
-</section>
-</section>
-<section id="ContentAssistForRF">
-<?dbhtml filename="ContentAssistForRF.html"?>
-<title>Content Assist for Rich Faces components</title>
-<para>JBDS indeed provides code completion for Rich Faces framework components. All you have to do is to install Rich Faces libraries into your project. See <ulink url="http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone...">here</ulink> how to install.</para>
-<figure>
-<title>Content Assist for Rich Faces Components</title>
-<mediaobject>
- <imageobject>
- <imagedata fileref="images/editors_features/editors_features_29.png"/>
- </imageobject>
-</mediaobject>
-</figure>
-<itemizedlist>
- <listitem><para>To insert a Rich Faces component on a page expand <emphasis><property>JBoss Rich Faces</property></emphasis> group on the palette</para></listitem>
- <listitem><para>Click on some component</para></listitem>
- <listitem><para>Put the needed attributes in the <emphasis><property>Insert Tag</property></emphasis> dialog and click <emphasis><property>Finish</property></emphasis> button
- <figure>
-<title>Insert Tag</title>
-<mediaobject>
- <imageobject>
- <imagedata fileref="images/editors_features/editors_features_30.png"/>
- </imageobject>
-</mediaobject>
-</figure>
- </para></listitem>
- </itemizedlist>
- <para>The Rich Faces tag will be inserted on your page displayed in source and visual modes: </para>
- <figure>
-<title>Rich Faces Component</title>
-<mediaobject>
- <imageobject>
- <imagedata fileref="images/editors_features/editors_features_31.png"/>
- </imageobject>
-</mediaobject>
-</figure>
-</section>
-</section>
-
-<section id="AddingDynamicCodeAssistToCustomComponents8745">
-<?dbhtml filename="AddingDynamicCodeAssistToCustomComponentsThatWereAddedToJBossToolsPalette.html"?>
-<title>Adding dynamic code assist to custom components that were added to JBoss Tools Palette</title>
-<para>Here is what you need to do to add project based code assist to a custom component added in
-JBoss Developer Studio:</para>
-<orderedlist>
- <listitem><para>Create a new xml file in <emphasis><property><JBDS_home>studio/eclipse/plugins/org.jboss.tools.common.kb_***/schemas/tld/</property></emphasis>. For example call it JeniaFaces.xml. The file should be written according to <emphasis><property><JBDS_home>/studio/eclipse/plugins/org.jboss.tools.common.kb/kb.jar/org/jboss/tools/common/kb/kb-schema_1.0.dtd</property></emphasis></para></listitem>
-</orderedlist>
- <para>Here is how you set what is available for code assist:</para>
-<itemizedlist>
-<listitem><para>Adds code assist for JSF pre-defined objects, such as value=<emphasis role="italic"><property>"#{param}"</property></emphasis>:</para></listitem>
-</itemizedlist>
-<programlisting role="XML"><![CDATA[<AttributeType ...>
- <proposal type="jsfVariables"/>
-</AttributeType>
-]]></programlisting>
- <itemizedlist>
-<listitem><para>Adds bundle resource (property file) <property>code assist</property>:</para></listitem>
- </itemizedlist>
-<programlisting role="XML"><![CDATA[<AttributeType ...>
- <proposal type="bundleProperty"/>
-</AttributeType>
-]]></programlisting>
- <itemizedlist>
-<listitem><para>Adds managed bean property <property>code assist</property>:</para></listitem>
- </itemizedlist>
-<programlisting role="XML"><![CDATA[<AttributeType ...>
- <proposal type="beanProperty"/>
-</AttributeType>
-]]></programlisting>
- <itemizedlist>
-<listitem><para>Adds managed bean property but with a specified type:</para></listitem>
- </itemizedlist>
-<programlisting role="XML"><![CDATA[<AttributeType ...>
- <proposal type="beanProperty">
- <param name="type" value="java.lang.Boolean"/>
- </proposal>
-</AttributeType>
-]]></programlisting>
- <itemizedlist>
-<listitem><para>Adds managed bean method with a signature:</para></listitem>
- </itemizedlist>
-<programlisting role="XML"><![CDATA[<AttributeType ...>
- <proposal type="beanMethodBySignature">
- <param name="paramType" value="javax.faces.context.FacesContext"/>
- <param name="paramType" value="javax.faces.component.UIComponent"/>
- <param name="paramType" value="java.lang.Object"/>
- <param name="returnType" value="void"/>
- </proposal>
-</AttributeType>
-]]></programlisting>
- <orderedlist continuation="continues">
- <listitem><para>Add information on your xml file in <emphasis><property><JBDS_home>/studio/eclipse/plugins/org.jboss.common.kb_***/plugin.xml</property></emphasis></para></listitem>
- </orderedlist>
- <programlisting role="XML"><![CDATA[
- <tld
- jsf="true"
- name="Jenia Faces"
- schema-location="schemas/tld/myJSF.xml"
- uri="http://www.jenia.org/jsf/dataTools"/>]]>
- </programlisting>
-<orderedlist continuation="continues">
-<listitem><para>Restart Eclipse. You should now have code assist for the component.</para></listitem>
- </orderedlist>
-</section>
-</section>
-<section id="FullControlOverSourceFiles-SynchronizedSourcAndVisualEditing74">
-<?dbhtml filename="FullControlOverSourceFiles-SynchronizedSourcAndVisualEditing.html"?>
-<title>Full Control over Source Files - Synchronized Source and Visual Editing</title>
-
-<para>JBoss Developer Studio offers the flexibility to edit any files in either source or extra visual
- modes at the same time.</para>
-
-<para>The project is yours and so is the source. JBoss Developer Studio provides you many different
- graphical editors to speed your application development. At the same time, you always have full control
- over all project source files. Any changes you make in the source view, will immediately appear in
- the graphical view.</para>
-
-<para>The JSF configuration file editor has three views: Diagram, Tree and Source. All views are
-synchronized, you can edit the file in any view.</para>
-<figure>
-<title>Diagram View</title>
-<mediaobject>
- <imageobject>
- <imagedata fileref="images/editors_features/editors_features_32.png"/>
- </imageobject>
-</mediaobject>
-</figure>
-<figure>
-<title>Tree View</title>
-<mediaobject>
- <imageobject>
- <imagedata fileref="images/editors_features/editors_features_33.png"/>
- </imageobject>
-</mediaobject>
-</figure>
-
-<figure>
-<title>Source View</title>
-<mediaobject>
- <imageobject>
- <imagedata fileref="images/editors_features/editors_features_34.png"/>
- </imageobject>
-</mediaobject>
-</figure>
-<para>The same applies to all other JBoss Developer Studio editors.</para>
-
-<para>Web XML editor is shown. Web XML editor has a graphical view (Tree) and source (Source).</para>
-
-<figure>
-<title>Tree View</title>
-<mediaobject>
- <imageobject>
- <imagedata fileref="images/editors_features/editors_features_35.png"/>
- </imageobject>
-</mediaobject>
-</figure>
-<figure>
-<title>Source View</title>
-<mediaobject>
- <imageobject>
- <imagedata fileref="images/editors_features/editors_features_36.png"/>
- </imageobject>
-</mediaobject>
-</figure>
-<para>JBoss Developer Studio TLD file editor shown in Tree view. At any point you can edit the source by going
- switching to Source view.</para>
-<figure>
-<title>Tree Editor</title>
-<mediaobject>
- <imageobject>
- <imagedata fileref="images/editors_features/editors_features_37.png"/>
- </imageobject>
-</mediaobject>
-</figure>
-<figure>
-<title>Source Editor</title>
-<mediaobject>
- <imageobject>
- <imagedata fileref="images/editors_features/editors_features_38.png"/>
- </imageobject>
-</mediaobject>
-</figure>
-<para>The Struts configuration file editor has three views: Diagram, Tree and Source. All views are synchronized,
- you can edit the file in any view.</para>
-<figure>
-<title>Struts Diagram View</title>
-<mediaobject>
- <imageobject>
- <imagedata fileref="images/editors_features/editors_features_39.png"/>
- </imageobject>
-</mediaobject>
-</figure>
-<para>Source view. Any changes here will immediately appear in all other views.</para>
-<figure>
-<title>Struts Source View</title>
-<mediaobject>
- <imageobject>
- <imagedata fileref="images/editors_features/editors_features_40.png"/>
- </imageobject>
-</mediaobject>
-</figure>
-</section>
-</chapter>
\ No newline at end of file
Deleted: trunk/jsf/docs/userguide/en/modules/more_editors.xml
===================================================================
--- trunk/jsf/docs/userguide/en/modules/more_editors.xml 2008-01-15 13:00:44 UTC (rev 5683)
+++ trunk/jsf/docs/userguide/en/modules/more_editors.xml 2008-01-15 14:00:34 UTC (rev 5684)
@@ -1,723 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?>
-<chapter id="more_editors" xreflabel="more_editors">
- <?dbhtml filename="more_editors.html"?>
-<title>More Editors</title>
-<para>Besides Visual Page Editor JBDS provides editors for editing project files of any types: properties, TLD, web.xml, tiles, and so on.</para>
-<section id="GraphicalPropertiesEditor">
-<?dbhtml filename="GraphicalPropertiesEditor.html"?>
-<title>Graphical Properties Editor</title>
-
- <para><property>The Properties editor</property> allows you to work in two different modes and also supports unicode characters.</para>
-
- <para>To create a new properties file, in the Package Explorer view, select<emphasis><property> New > Properties File</property></emphasis> from the right-click context menu on the folder where you want to create the file.</para>
-<figure>
-<title>Selecting Properties File</title>
-<mediaobject>
- <imageobject>
- <imagedata fileref="images/more_editors/more_editors_1.png"/>
- </imageobject>
-</mediaobject>
-</figure>
-
-<para>You can edit the file using a table-oriented "Properties" viewer:</para>
-
-<figure>
-<title>"Properties" Viewer</title>
-<mediaobject>
- <imageobject>
- <imagedata fileref="images/more_editors/more_editors_2.png"/>
- </imageobject>
-</mediaobject>
-</figure>
-
-<para>You can also use a Source viewer for editing the file:</para>
-<figure>
-<title>Source Viewer</title>
-<mediaobject>
- <imageobject>
- <imagedata fileref="images/more_editors/more_editors_3.png"/>
- </imageobject>
-</mediaobject>
-</figure>
-</section>
-
-<section id="GraphicalTLDEditor">
-<?dbhtml filename="GraphicalTLDEditor.html"?>
-<title>Graphical TLD Editor</title>
-
- <para><property>The TLD editor</property> comes with same features you will find in all other JBoss Developer Studio editors:</para>
-
-<itemizedlist>
-<listitem><para>Graphical and source edit modes</para></listitem>
-<listitem><para>Validation and error checking</para></listitem>
-</itemizedlist>
-<section id="TreeView2">
-<?dbhtml filename="TreeView.html"?>
-<title>Tree view</title>
-
-<figure>
-<title>Tree View</title>
-<mediaobject>
- <imageobject>
- <imagedata fileref="images/more_editors/more_editors_4.png"/>
- </imageobject>
-</mediaobject>
-</figure>
-</section>
-<section id="SourceView1">
-<?dbhtml filename="SourceView.html"?>
-<title>Source view</title>
-
-<para>You can easily switch from Tree to Source by selecting the Source tab at the bottom of the editor.</para>
-
-<figure>
-<title>Source View</title>
-<mediaobject>
- <imageobject>
- <imagedata fileref="images/more_editors/more_editors_5.png"/>
- </imageobject>
-</mediaobject>
-</figure>
-
-<para>You can easily add a <property>new tag</property>:</para>
-
-<figure>
-<title>Adding a New Tag</title>
-<mediaobject>
- <imageobject>
- <imagedata fileref="images/more_editors/more_editors_6.png"/>
- </imageobject>
-</mediaobject>
-</figure>
-
-<para>You can also easily add a <property>new attribute</property> to an existing tag:</para>
-<figure>
-<title>Adding a New Attribute</title>
-<mediaobject>
- <imageobject>
- <imagedata fileref="images/more_editors/more_editors_7.png"/>
- </imageobject>
-</mediaobject>
-</figure>
-<para>Content assist is available when editing the file using the Source viewer:</para>
-
-<figure>
-<title>Content Assist</title>
-<mediaobject>
- <imageobject>
- <imagedata fileref="images/more_editors/more_editors_8.png"/>
- </imageobject>
-</mediaobject>
-</figure>
-
-<para>In the Source viewer, if at any point a tag is incorrect or incomplete, an error will be indicated
-next to the line and also in the Problems view below.</para>
-
-<figure>
-<title>Error Reporting</title>
-<mediaobject>
- <imageobject>
- <imagedata fileref="images/more_editors/more_editors_9.png"/>
- </imageobject>
-</mediaobject>
-</figure>
-</section>
-</section>
-
-<section id="GraphicalWebApplicationFile(web.xml)Editor">
-<?dbhtml filename="GraphicalWebApplicationFile(web.xml)Editor.html"?>
-<title>Graphical Web Application File (web.xml) Editor</title>
-
-<para>The Web Application File editor comes with the same features you will find in all other
-JBoss Developer Studio editors:</para>
-
-<itemizedlist>
-<listitem><para>Graphical and source edit modes</para></listitem>
-<listitem><para>Validation and error checking</para></listitem>
-</itemizedlist>
-<section id="TreeView1">
-<title>Tree View</title>
-
-<figure>
-<title>Tree View</title>
-<mediaobject>
- <imageobject>
- <imagedata fileref="images/more_editors/more_editors_10.png"/>
- </imageobject>
-</mediaobject>
-</figure>
-
-<para>You can add any new elements right in the <property>Tree viewer</property>:</para>
-
-<figure>
-<title>Adding New Elements</title>
-<mediaobject>
- <imageobject>
- <imagedata fileref="images/more_editors/more_editors_11.png"/>
- </imageobject>
-</mediaobject>
-</figure>
-</section>
-<section id="SourceView2">
-<?dbhtml filename="SourceView.html"?>
-<title>Source View</title>
-
-<para>Switch to the <property>Source viewer </property>to edit the web.xml file by hand at any time:</para>
-
-<figure>
-<title>Source View</title>
-<mediaobject>
- <imageobject>
- <imagedata fileref="images/more_editors/more_editors_12.png"/>
- </imageobject>
-</mediaobject>
-</figure>
-</section>
-<section id="ContentAssist">
-<?dbhtml filename="ContentAssist.html"?>
-<title>Content Assist</title>
-
-<para>Content assist is available in the Source viewer. Simply click <emphasis><property>CTRL-Space</property></emphasis> anywhere in the file.</para>
-
-<figure>
-<title>Content Assist</title>
-<mediaobject>
- <imageobject>
- <imagedata fileref="images/more_editors/more_editors_13.png"/>
- </imageobject>
-</mediaobject>
-</figure>
-</section>
-<section id="ErrorCheckingAndValidation">
-<?dbhtml filename="ErrorCheckingAndValidation.html"?>
-<title>Errors Checking and Validation</title>
-
-<para>If errors occur anywhere in the file, small red dots will appear next to the lines where the errors
- occurred. Also, note that the file is marked by a small x in the Package Explorer view.</para>
-
-<figure>
-<title>Errors Reporting</title>
-<mediaobject>
- <imageobject>
- <imagedata fileref="images/more_editors/more_editors_14.png"/>
- </imageobject>
-</mediaobject>
-</figure>
-</section>
-</section>
-<section id="GraphicalTilesFilesEditor">
-<?dbhtml filename="GraphicalTilesFilesEditor.html"?>
-<title>Graphical Tiles Files Editor</title>
-<section id="GraphicalEditorForTilesFiles">
-<?dbhtml filename="GraphicalEditorForTilesFiles.html"?>
-<title>Graphical Editor For Tiles Files</title>
-<para>The Tiles configuration file editor has three main viewers (modes): Tree (shown), Diagram and Source. The modes can be selected via the tabs at the bottom of the editor. Any changes made in one mode are immediately visible when you switch to any other mode.</para>
-
-<para>When working in Source view, you always have all following features available:</para>
-
-<itemizedlist>
-<listitem><para>Content Assist</para></listitem>
-<listitem><para>Open On Selection</para></listitem>
-</itemizedlist>
-</section>
-<section id="CreateNewTilesFile">
-<?dbhtml filename="GraphicalTilesFilesEditor.html"?>
-<title>Create New Tiles File</title>
-
-<para>To create a new Tiles files, right click any folder and select <emphasis><property>New > Tiles Files</property></emphasis>:</para>
-
-<figure>
-<title>Creating New Tiles File</title>
-<mediaobject>
- <imageobject>
- <imagedata fileref="images/more_editors/more_editors_15.png"/>
- </imageobject>
-</mediaobject>
-</figure>
-</section>
-<section id="TreeView3">
-<?dbhtml filename="TreeView.html"?>
-<title>Tree View</title>
-
-<para>In the Tree mode, the different elements of the Tiles file are organized into functional categories
-on the left-hand side and a form for editing the properties of currently selected items on the right-hand
- side.</para>
-
-<figure>
-<title>Tree View</title>
-<mediaobject>
- <imageobject>
- <imagedata fileref="images/more_editors/more_editors_16.png"/>
- </imageobject>
-</mediaobject>
-</figure>
-<para>To edit the file, simply right click any node and select among the available actions:</para>
-
-<figure>
-<title>Editing in Tiles Editor</title>
-<mediaobject>
- <imageobject>
- <imagedata fileref="images/more_editors/more_editors_17.png"/>
- </imageobject>
-</mediaobject>
-</figure>
-</section>
-<section id="DiagramView">
-<?dbhtml filename="TreeView.html"?>
-<title>Diagram View</title>
-
-<para>The Diagram mode is shown below:</para>
-<figure>
-<title>Diagram View</title>
-<mediaobject>
- <imageobject>
- <imagedata fileref="images/more_editors/more_editors_18.png"/>
- </imageobject>
-</mediaobject>
-</figure>
-
-<para>To create new definition, simply right click anywhere in the diagram:</para>
-<figure>
-<title>Creating New Definition</title>
-<mediaobject>
- <imageobject>
- <imagedata fileref="images/more_editors/more_editors_19.png"/>
- </imageobject>
-</mediaobject>
-</figure>
-
-<para>You can also use the Diagram toolbar to make editing easier:</para>
-
-<figure>
-<title>Diagram Toolbar</title>
-<mediaobject>
- <imageobject>
- <imagedata fileref="images/more_editors/more_editors_20.png"/>
- </imageobject>
-</mediaobject>
-</figure>
-</section>
-<section id="Source">
-<?dbhtml filename="TreeView.html"?>
-<title>Source</title>
-
- <para>The Tiles editor also comes with a <property>Source view</property> that gives you full control over the source.
-Any changes here will immediately appear in when you switch to any of the other viewers.</para>
-<figure>
-<title>Source View</title>
-<mediaobject>
- <imageobject>
- <imagedata fileref="images/more_editors/more_editors_21.png"/>
- </imageobject>
-</mediaobject>
-</figure>
-
-<para>Content assist is available in the Source mode.</para>
-
-<figure>
-<title>Content Assist</title>
-<mediaobject>
- <imageobject>
- <imagedata fileref="images/more_editors/more_editors_22.png"/>
- </imageobject>
-</mediaobject>
-</figure>
-
-<para>Any errors are immediately reported as shown below:</para>
-<figure>
-<title>Error Reporting</title>
-<mediaobject>
- <imageobject>
- <imagedata fileref="images/more_editors/more_editors_23.png"/>
- </imageobject>
-</mediaobject>
-</figure>
-
-<para>You can also use the Outline view together with the editor's Source mode. Selecting any node in the Outline view will jump to that place in the source:</para>
-
-<figure>
-<title>Outline View</title>
-<mediaobject>
- <imageobject>
- <imagedata fileref="images/more_editors/more_editors_24.png"/>
- </imageobject>
-</mediaobject>
-</figure>
-</section>
-</section>
-
-<section id="GraphicalEditorForStrutsValidationFiles">
-<?dbhtml filename="GraphicalStrutsValidationFilesEditor.html"?>
-<title>Graphical Editor for Struts Validation Files</title>
-<para>JBoss Developer Studio comes with a visual validation editor. To create a new validation file,
-right click any folder and select <emphasis><property>File > Validation File</property></emphasis> from the context menu.</para>
-
-<figure>
-<title>Creating Validation File</title>
-<mediaobject>
- <imageobject>
- <imagedata fileref="images/more_editors/more_editors_25.png"/>
- </imageobject>
-</mediaobject>
-</figure>
-
-<para>The validation editor works through a number of viewers.</para>
-
-<para>The Formsets viewer shows forms and their elements for which to define validation rules:</para>
-
-<figure>
-<title>Formsets Viewer</title>
-<mediaobject>
- <imageobject>
- <imagedata fileref="images/more_editors/more_editors_26.png"/>
- </imageobject>
-</mediaobject>
-</figure>
-
-<para>The Constants viewer lets you set constant values for your validation rules:</para>
-
-<figure>
-<title>Constants viewer</title>
-<mediaobject>
- <imageobject>
- <imagedata fileref="images/more_editors/more_editors_27.png"/>
- </imageobject>
-</mediaobject>
-</figure>
-
-<para>The validation file also can be viewed in a Tree viewer:</para>
-
-<figure>
-<title>Tree Viewer</title>
-<mediaobject>
- <imageobject>
- <imagedata fileref="images/more_editors/more_editors_28.png"/>
- </imageobject>
-</mediaobject>
-</figure>
-
-<para>At any point you have full control over the source by switching to the Source viewer. Any editing
-in this viewer will immediately be available in the other viewers of this editor.</para>
-
-<figure>
-<title>Source Viewer</title>
-<mediaobject>
- <imageobject>
- <imagedata fileref="images/more_editors/more_editors_29.png"/>
- </imageobject>
-</mediaobject>
-</figure>
-
-<para>You can also open your own custom or Struts-standard validation-rules.xml file.</para>
-
-<para>The Validators viewer shows the validation rules for a selected validator. You can of course add your
- own rules.</para>
-
-<figure>
-<title>Validation Rules</title>
-<mediaobject>
- <imageobject>
- <imagedata fileref="images/more_editors/more_editors_30.png"/>
- </imageobject>
-</mediaobject>
-</figure>
-
-<para>Here are the validation rules shown in the Source viewer.</para>
-
-<figure>
-<title>Validation Rules in Source Viewer</title>
-<mediaobject>
- <imageobject>
- <imagedata fileref="images/more_editors/more_editors_31.png"/>
- </imageobject>
-</mediaobject>
-</figure>
-</section>
-<section id="SpringIDE">
-<?dbhtml filename="SpringIDE.html"?>
-<title>Spring IDE</title>
- <para>JBoss Developer Studio bundles a <property>Spring Framework editor</property> from <ulink url="http://springide.org/project">Spring IDE for Eclipse</ulink>. Visit this site for the latest versions and documentation.</para>
-
- <para>You can add a <property>Spring Project nature</property> to an existing project by right-clicking on the project and
- selecting from the context menu:</para>
-
-<figure>
- <title>Adding Spring Project Nature</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/more_editors/more_editors_32.png"/>
- </imageobject>
- </mediaobject>
- </figure>
-
-
- <para>Once the nature is added, you will see a small <property>"S"</property> decorating a Spring project in the Package Explorer
- view. To remove the nature, right click the project and select <emphasis><property>Remove Spring Project Nature</property></emphasis>:</para>
-
-<figure>
- <title>Project with Spring Nature</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/more_editors/more_editors_33.png"/>
- </imageobject>
- </mediaobject>
- </figure>
-
-<para>After creating a Spring configuration file with bean definitions:</para>
-
-<figure>
- <title>Spring Configuration File</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/more_editors/more_editors_34.png"/>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>Select Spring Beans project with <emphasis><property>Project > Properties > Spring > Beans Support</property></emphasis> from the menu bar:</para>
-
-<figure>
- <title>Spring Beans</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/more_editors/more_editors_35.png"/>
- </imageobject>
- </mediaobject>
- </figure>
-
-<para> Now you can add the Spring bean configuration files to your project by clicking on <emphasis><property>Add</property></emphasis> button:</para>
-
-<figure>
- <title>Adding Configuration Files</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/more_editors/more_editors_36.png"/>
- </imageobject>
- </mediaobject>
-</figure>
-
-<para>Once you add this file, the file will be marked by an "S" to indicate a Spring bean file:</para>
-
-<figure>
- <title>Spring Bean File</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/more_editors/more_editors_37.png"/>
- </imageobject>
- </mediaobject>
-</figure>
-
- <para>To activate the Spring Beans view, select <emphasis><property>Window > Show View... > Other</property></emphasis> and then <emphasis><property>Spring Explorer> Spring Beans</property></emphasis> from the
- menu bar:</para>
-
-<figure>
- <title>Selecting Spring Beans View</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/more_editors/more_editors_38.png"/>
- </imageobject>
- </mediaobject>
- </figure>
-
-<para>The Spring Beans view shows a read-only outline view of the Spring bean configuration file:</para>
-
-<figure>
- <title>Spring Beans View</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/more_editors/more_editors_39.png"/>
- </imageobject>
- </mediaobject>
-</figure>
-
-<para>Using a context menu, you can select a graph view of the Spring configuration file's referenced
- beans:</para>
-
-<figure>
- <title>Graph View</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/more_editors/more_editors_40.png"/>
- </imageobject>
- </mediaobject>
-</figure>
-</section>
-
-<section id="CSSEditor">
-<?dbhtml filename="CSSEditor.html"?>
-<title>CSS Editor</title>
-
- <para>The <property>CSS editor</property> comes with the same features you will find in all other JBoss Developer Studio editors.</para>
-
-<itemizedlist>
-<listitem><para>Content assist</para></listitem>
-<listitem><para>Validation and error checking</para></listitem>
-</itemizedlist>
-
-<para>With the CSS (Cascading Style Sheet) editor, you can take advantage of code prompting:</para>
-
-<figure>
-<title>CSS Editor</title>
-<mediaobject>
- <imageobject>
- <imagedata fileref="images/more_editors/more_editors_41.png"/>
- </imageobject>
-</mediaobject>
-</figure>
-
-<para>You can also use the Outline view next to the editor to navigate through the CSS file:</para>
-
-<figure>
-<title>Outline View</title>
-<mediaobject>
- <imageobject>
- <imagedata fileref="images/more_editors/more_editors_42.png"/>
- </imageobject>
-</mediaobject>
-</figure>
-
-<para>And you can also use the Properties view next to the editor to edit existing stylesheet
-declaration properties:</para>
-
-<figure>
-<title>Properties View</title>
-<mediaobject>
- <imageobject>
- <imagedata fileref="images/more_editors/more_editors_43.png"/>
- </imageobject>
-</mediaobject>
-</figure>
-
-</section>
-<section id="JavaScriptEditor">
-<?dbhtml filename="JavaScriptEditor.html"?>
-<title>JavaScript Editor</title>
-
- <para>The <property>JavaScript editor</property> includes a Preview viewer and a Source viewer. In the Source viewer, you can use code assist:</para>
-
-<figure>
-<title>JavaScript Editor</title>
-<mediaobject>
- <imageobject>
- <imagedata fileref="images/more_editors/more_editors_44.png"/>
- </imageobject>
-</mediaobject>
-</figure>
-
-<para>You can also use the Source viewer with the Outline view to navigate around the file:</para>
-
-<figure>
-<title>Source Viewer</title>
-<mediaobject>
- <imageobject>
- <imagedata fileref="images/more_editors/more_editors_45.png"/>
- </imageobject>
-</mediaobject>
-</figure>
-
-</section>
-<section id="ImageViewer">
-<?dbhtml filename="ImageViewer.html"?>
-<title>Image Viewer</title>
-<para>This simple image viewer allows you to view GIF and JPEG files individually in a separate window:</para>
-
-<figure>
-<title>Image Viewer</title>
-<mediaobject>
- <imageobject>
- <imagedata fileref="images/more_editors/more_editors_46.png"/>
- </imageobject>
-</mediaobject>
-</figure>
-
-</section>
-<section id="XSDEditor">
-<?dbhtml filename="XSDEditor.html"?>
-<title>XSD Editor</title>
-
- <para>JBoss Developer Studio comes with an <property>XSD Editor</property> for XML Schema files. This editor comes from the Web Tools Project (WTP) (see <ulink url="http://www.eclipse.org/webtools/testtutorials/gettingstarted/GettingStart...">WTP Getting Started</ulink>).</para>
-
- <para>To create a new XSD file, right-click a folder in the Package Explorer view, select <emphasis><property>New > Other...</property></emphasis> from the context menu and then select <emphasis><property>XML > XML Schema</property></emphasis> in the dialog box.</para>
-
-<figure>
-<title>Creating New XSD file</title>
-<mediaobject>
- <imageobject>
- <imagedata fileref="images/more_editors/more_editors_47.png"/>
- </imageobject>
-</mediaobject>
-</figure>
-
- <para>The XSD Editor includes two viewers for working on the file, a Design viewer and a Source viewer:</para>
-
-<figure>
-<title>Source Viewer</title>
-<mediaobject>
- <imageobject>
- <imagedata fileref="images/more_editors/more_editors_48.png"/>
- </imageobject>
-</mediaobject>
-</figure>
-
- <para>In the Design viewer, you can drill down on an element by double-clicking on it:</para>
-
-<figure>
- <title>Design Viewer</title>
-<mediaobject>
- <imageobject>
- <imagedata fileref="images/more_editors/more_editors_49.png"/>
- </imageobject>
-</mediaobject>
-</figure>
-
-<para>Various edit options are available when you right-click an element in the diagram:</para>
-
-<figure>
-<title>Edit Options</title>
-<mediaobject>
- <imageobject>
- <imagedata fileref="images/more_editors/more_editors_50.png"/>
- </imageobject>
-</mediaobject>
-</figure>
-
-<para>You can also use the Properties view to edit a selected element:</para>
-
-<figure>
-<title>Properties View</title>
-<mediaobject>
- <imageobject>
- <imagedata fileref="images/more_editors/more_editors_51.png"/>
- </imageobject>
-</mediaobject>
-</figure>
-
-<para>You can also use a Source viewer for the file. In this viewer, along with direct editing of the
- source code, you can also edit the file by using the Properties view on the right:</para>
-
-<figure>
-<title>Source Viewer</title>
-<mediaobject>
- <imageobject>
- <imagedata fileref="images/more_editors/more_editors_52.png"/>
- </imageobject>
-</mediaobject>
-</figure>
-
-</section>
-<section id="SupportforXMLSchema">
-<?dbhtml filename="SupportforXMLSchema.html"?>
-<title>Support for XML Schema</title>
-
-<para>JBoss Developer Studio fully supports XML files based on schemas as well as DTDs:</para>
-<figure>
-<title>XML File</title>
-<mediaobject>
- <imageobject>
- <imagedata fileref="images/more_editors/more_editors_53.png"/>
- </imageobject>
-</mediaobject>
-</figure>
-
-</section>
-</chapter>
\ No newline at end of file
16 years, 5 months
JBoss Tools SVN: r5683 - trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor.
by jbosstools-commits@lists.jboss.org
Author: dsakovich
Date: 2008-01-15 08:00:44 -0500 (Tue, 15 Jan 2008)
New Revision: 5683
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeVisualDomBuilder.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-1556
Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeVisualDomBuilder.java
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeVisualDomBuilder.java 2008-01-15 12:19:58 UTC (rev 5682)
+++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeVisualDomBuilder.java 2008-01-15 13:00:44 UTC (rev 5683)
@@ -103,7 +103,7 @@
private static final int DRAG_AREA_WIDTH = 10;
private static final int DRAG_AREA_HEIGHT = 10;
private static final String ATTR_XMLNS = "xmlns";
- private static final String ATTR_DRAG_AVAILABLE_CLASS="__drag__available_style";
+ private static final String ATTR_DRAG_AVAILABLE_CLASS = "__drag__available_style";
private MozillaEditor visualEditor;
private XulRunnerEditor xulRunnerEditor;
@@ -498,7 +498,7 @@
}
}
}
- if (childrenCount == 0) {
+ if (childrenCount == 0 && childrenInfoList.size() == 0) {
setPseudoContent(containerTemplate, sourceContainer,
visualParent);
}
@@ -1720,23 +1720,26 @@
nsIDOMElement selectedElement = xulRunnerEditor
.getLastSelectedElement();
if (selectedElement != null && canInnerDrag(selectedElement)) {
- String styleClasses = selectedElement.getAttribute(HTML.ATTR_CLASS);
- if (inDragArea(getNodeBounds(selectedElement), VisualDomUtil
+ String styleClasses = selectedElement.getAttribute(HTML.ATTR_CLASS);
+ if (inDragArea(getNodeBounds(selectedElement), VisualDomUtil
.getMousePoint(mouseEvent))) {
// change cursor
- if(styleClasses==null || !(styleClasses.contains(ATTR_DRAG_AVAILABLE_CLASS))){
- //change cursor style to move
- styleClasses=ATTR_DRAG_AVAILABLE_CLASS+" "+styleClasses;
- }
+ if (styleClasses == null
+ || !(styleClasses.contains(ATTR_DRAG_AVAILABLE_CLASS))) {
+ // change cursor style to move
+ styleClasses = ATTR_DRAG_AVAILABLE_CLASS + " "
+ + styleClasses;
+ }
} else {
- //change cursor style to normal
- if(styleClasses!=null) {
-
- styleClasses=styleClasses.replaceAll(ATTR_DRAG_AVAILABLE_CLASS, "");
- }
+ // change cursor style to normal
+ if (styleClasses != null) {
+
+ styleClasses = styleClasses.replaceAll(
+ ATTR_DRAG_AVAILABLE_CLASS, "");
+ }
}
- selectedElement.setAttribute(HTML.ATTR_CLASS, styleClasses);
- }
+ selectedElement.setAttribute(HTML.ATTR_CLASS, styleClasses);
+ }
}
private boolean inDragArea(Rectangle dragArea, Point mousePoint) {
16 years, 5 months
JBoss Tools SVN: r5682 - in trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces: resources/orderingList and 3 other directories.
by jbosstools-commits@lists.jboss.org
Author: dmaliarevich
Date: 2008-01-15 07:19:58 -0500 (Tue, 15 Jan 2008)
New Revision: 5682
Added:
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/resources/orderingList/
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/resources/orderingList/bottom.gif
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/resources/orderingList/button_bg.gif
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/resources/orderingList/down.gif
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/resources/orderingList/orderingList.css
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/resources/orderingList/table_header_cell_bg.gif
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/resources/orderingList/top.gif
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/resources/orderingList/up.gif
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesOrderingList.java
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/ComponentUtil.java
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/HtmlComponentUtil.java
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/templates/vpe-templates-richfaces.xml
Log:
rich faces orderingList template commit to trunk
Added: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/resources/orderingList/bottom.gif
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/resources/orderingList/bottom.gif
___________________________________________________________________
Name: svn:mime-type
+ image/gif
Added: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/resources/orderingList/button_bg.gif
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/resources/orderingList/button_bg.gif
___________________________________________________________________
Name: svn:mime-type
+ image/gif
Added: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/resources/orderingList/down.gif
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/resources/orderingList/down.gif
___________________________________________________________________
Name: svn:mime-type
+ image/gif
Added: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/resources/orderingList/orderingList.css
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/resources/orderingList/orderingList.css (rev 0)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/resources/orderingList/orderingList.css 2008-01-15 12:19:58 UTC (rev 5682)
@@ -0,0 +1,171 @@
+.dr-table {
+ border-top: 1px solid;
+ border-left: 1px solid;
+ border-color: #C4C0B9;
+}
+
+.dr-table-cell {
+ border-right: 1px solid;
+ border-bottom: 1px solid;
+ border-color: #C4C0B9;
+ padding: 4px 4px 4px 4px;
+ font-size: 11px;
+ color: #000000;
+ font-family: Arial, Verdana, sans-serif;
+}
+
+.dr-subtable-cell {
+ border-right: 1px solid;
+ border-bottom: 1px solid;
+ border-color: #C4C0B9;
+ padding: 4px 4px 4px 4px;
+ font-size: 11px;
+ color: #000000;
+ font-family: Arial, Verdana, sans-serif;
+}
+
+.dr-table-header {
+ background-color: #D4CFC7;
+ background-position: top left;
+ background-repeat: repeat-x;
+}
+
+.dr-table-header-continue {
+ background-color: #D4CFC7;
+}
+
+.dr-table-headercell {
+ border-right: 1px solid;
+ border-bottom: 1px solid;
+ border-color: #C4C0B9;
+ padding: 4px 4px 4px 4px;
+ color: #000000;
+ text-align: center;
+ font-weight: bold;
+ font-size: 11px;
+ font-family: Arial, Verdana, sans-serif;
+}
+
+.dr-table-subheader {
+ background-color: #F1EEE9;
+}
+
+.dr-table-subheadercell {
+ border-right: 1px solid;
+ border-bottom: 1px solid;
+ border-color: #C4C0B9;
+ padding: 4px 4px 4px 4px;
+ text-align: center;
+ font-size: 11px;
+ font-color: #000000;
+ font-family: Arial, Verdana, sans-serif;
+}
+
+.dr-table-footercell {
+ border-right: 1px solid;
+ border-bottom: 1px solid;
+ border-color: #C4C0B9;
+ padding: 4px 4px 4px 4px;
+ color: #000000;
+ text-align: left;
+ font-weight: bold;
+ font-size: 11px;
+ font-family: Arial, Verdana, sans-serif;
+}
+
+.dr-table-subfootercell {
+ border-right: 1px solid;
+ border-bottom: 1px solid;
+ border-color: #C4C0B9;
+ padding: 4px 4px 4px 4px;
+ text-align: left;
+ font-size: 11px;
+ color: #000000;
+ font-family: Arial, Verdana, sans-serif;
+}
+
+.dr-subtable-header {
+ background-color: #F1EEE9;
+}
+
+.dr-subtable-headercell {
+ border-right: 1px solid;
+ border-bottom: 1px solid;
+ border-color: #C4C0B9;
+ padding: 4px 4px 4px 4px;
+ text-align: center;
+ font-size: 11px;
+ color: #000000;
+ font-family: Arial, Verdana, sans-serif;
+}
+
+.dr-subtable-footercell {
+ border-right: 1px solid;
+ border-bottom: 1px solid;
+ border-color: #C4C0B9;
+ padding: 4px 4px 4px 4px;
+ text-align: left;
+}
+
+.dr-spr {
+ display: block;
+}
+
+.dr-table-hidden {
+ overflow: hidden;
+ border: solid 1px #C4C0C9;
+}
+
+.rich-ordering-list-button-layout {
+ padding:15px 8px 15px 0pt;
+}
+
+.rich-ordering-control-disabled {
+ border:1px solid;
+ margin-bottom:3px;
+}
+
+.rich-ordering-control {
+ border:1px solid;
+ margin-bottom:3px;
+}
+
+.rich-ordering-list-button {
+ background-color:#E3DED5;
+ background-repeat: repeat-x;
+ background-attachment: scroll;
+ color:#000000;
+ font-family:Arial,Verdana,sans-serif;
+ font-size:11px;
+ cursor: pointer;
+}
+a.rich-ordering-list-button-selection:visited, a.rich-ordering-list-button-selection:link, a.rich-ordering-list-button-a-disabled:visited, a.rich-ordering-list-button-a-disabled:link {
+ text-decoration:none;
+}
+
+.rich-ordering-list-button-content {
+ padding:0pt 4px 0pt 1px;
+ text-align:left;
+ white-space:nowrap;
+}
+
+.rich-ordering-list-button-content img {
+ margin-right:2px;
+ vertical-align:middle;
+}
+
+.rich-ordering-list-table-header-cell, .rich-ordering-list-table-header-cell-last {
+ background-color: #E3DED5;
+ background-repeat: repeat-x;
+ background-attachment: scroll;
+ border-bottom-color:#C4C0C9;
+ border-bottom-width:1px;
+ border-right-color:#C4C0C9;
+ border-right-width:1px;
+ color:#000000;
+ font-family:Arial,Verdana,sans-serif;
+ font-size:11px;
+}
+.rich-ordering-list-table-header-cell-last {
+ border-right-width:0pt;
+}
Property changes on: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/resources/orderingList/orderingList.css
___________________________________________________________________
Name: svn:mime-type
+ text/css
Added: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/resources/orderingList/table_header_cell_bg.gif
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/resources/orderingList/table_header_cell_bg.gif
___________________________________________________________________
Name: svn:mime-type
+ image/gif
Added: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/resources/orderingList/top.gif
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/resources/orderingList/top.gif
___________________________________________________________________
Name: svn:mime-type
+ image/gif
Added: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/resources/orderingList/up.gif
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/resources/orderingList/up.gif
___________________________________________________________________
Name: svn:mime-type
+ image/gif
Modified: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/ComponentUtil.java
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/ComponentUtil.java 2008-01-15 09:36:21 UTC (rev 5681)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/ComponentUtil.java 2008-01-15 12:19:58 UTC (rev 5682)
@@ -444,4 +444,25 @@
} else
visualNode.removeAttribute(attrName);
}
+
+ /**
+ * Parses string value retrieved from
+ * sourceElement.getAttribure(..) method
+ * to its boolean value.
+ * <p>
+ * <code>false</code> is returned only if it specified explicitly,
+ * otherwise <code>true</code> is returned.
+ *
+ * @param str the string to parse
+ * @return boolean value from string
+ */
+ public static boolean string2boolean(String str) {
+ if ((str == null) || ("".equals(str))) {
+ return true;
+ } else if (("true".equalsIgnoreCase(str)) || ("false".equalsIgnoreCase(str))) {
+ return new Boolean(str).booleanValue();
+ }
+ return true;
+ }
+
}
\ No newline at end of file
Modified: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/HtmlComponentUtil.java
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/HtmlComponentUtil.java 2008-01-15 09:36:21 UTC (rev 5681)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/HtmlComponentUtil.java 2008-01-15 12:19:58 UTC (rev 5682)
@@ -69,6 +69,9 @@
/** HTML_TAG_SPAN */
public static final String HTML_TAG_SPAN = "SPAN";
+ /** HTML_TAG_A */
+ public static final String HTML_TAG_A = "A";
+
/** HTML_TAG_B */
public static final String HTML_TAG_B = "B";
Added: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesOrderingList.java
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesOrderingList.java (rev 0)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesOrderingList.java 2008-01-15 12:19:58 UTC (rev 5682)
@@ -0,0 +1,744 @@
+/**
+ *
+ */
+package org.jboss.tools.jsf.vpe.richfaces.template;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.jboss.tools.jsf.vpe.richfaces.ComponentUtil;
+import org.jboss.tools.jsf.vpe.richfaces.HtmlComponentUtil;
+import org.jboss.tools.jsf.vpe.richfaces.RichFacesTemplatesActivator;
+import org.jboss.tools.vpe.editor.context.VpePageContext;
+import org.jboss.tools.vpe.editor.template.VpeAbstractTemplate;
+import org.jboss.tools.vpe.editor.template.VpeChildrenInfo;
+import org.jboss.tools.vpe.editor.template.VpeCreationData;
+import org.mozilla.interfaces.nsIDOMDocument;
+import org.mozilla.interfaces.nsIDOMElement;
+import org.w3c.dom.Element;
+import org.w3c.dom.Node;
+import org.w3c.dom.NodeList;
+
+/**
+ * @author dmaliarevich
+ *
+ */
+public class RichFacesOrderingList extends VpeAbstractTemplate {
+
+ final static String DEFAULT_HEIGHT = "200px";
+ final static String DEFAULT_WIDTH = "300px";
+ final static String HEADER = "header";
+ final static String HEADER_CLASS = "headerClass";
+ final static String FOOTER = "footer";
+ final static String FOOTER_CLASS = "footerClass";
+ final static String CAPTION_CLASS = "captionClass";
+ final static String CAPTION_STYLE = "captionStyle";
+ final static String SPACE = " ";
+
+ private static String STYLE_FOR_CAPTOION_LABEL = "white-space: normal; word-wrap: break-word; font-weight: bold; ";
+ private static String STYLE_FOR_LOW_SCROLL = "overflow: scroll; width: 100%; height: 17px;";
+ private static String STYLE_FOR_RIGHT_SCROLL = "overflow: scroll; width: 17px; height: 100%;";
+
+ private static int NUM_ROW = 1;
+
+ private static final String TOP_CONTROL_IMG = "orderingList/top.gif";
+ private static final String UP_CONTROL_IMG = "orderingList/up.gif";
+ private static final String DOWN_CONTROL_IMG = "orderingList/down.gif";
+ private static final String BOTTOM_CONTROL_IMG = "orderingList/bottom.gif";
+
+ private static final String BUTTON_BG = "orderingList/button_bg.gif";
+ private static final String HEADER_CELL_BG = "orderingList/table_header_cell_bg.gif";
+
+ private static final String LIST_WIDTH = "listWidth";
+ private static final String LIST_HEIGHT = "listHeight";
+
+ private static final String TOP_CONTROL_LABEL = "topControlLabel";
+ private static final String UP_CONTROL_LABEL = "upControlLabel";
+ private static final String DOWN_CONTROL_LABEL = "downControlLabel";
+ private static final String BOTTOM_CONTROL_LABEL = "bottomControlLabel";
+
+ private static final String TOP_CONTROL_LABEL_DEFAULT = "First";
+ private static final String UP_CONTROL_LABEL_DEFAULT = "Up";
+ private static final String DOWN_CONTROL_LABEL_DEFAULT = "Down";
+ private static final String BOTTOM_CONTROL_LABEL_DEFAULT = "Last";
+
+ private static final String CAPTION_LABEL = "captionLabel";
+ private static final String CONTROLS_VERTICAL_ALIGN = "controlsVerticalAlign";
+ private static final String SHOW_BUTTON_LABELS = "showButtonLabels";
+ private static final String FAST_ORDER_CONTROL_VISIBLE = "fastOrderControlsVisible";
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.jboss.tools.vpe.editor.template.VpeTemplate#create(org.jboss.tools.vpe.editor.context.VpePageContext,
+ * org.w3c.dom.Node, org.mozilla.interfaces.nsIDOMDocument)
+ */
+ public VpeCreationData create(VpePageContext pageContext, Node sourceNode,
+ nsIDOMDocument visualDocument) {
+
+ Element sourceElement = (Element) sourceNode;
+
+ String listWidth = sourceElement.getAttribute(LIST_WIDTH);
+ String listHeight = sourceElement.getAttribute(LIST_HEIGHT);
+
+ String topControlLabel = sourceElement.getAttribute(TOP_CONTROL_LABEL);
+ String upControlLabel = sourceElement.getAttribute(UP_CONTROL_LABEL);
+ String downControlLabel = sourceElement
+ .getAttribute(DOWN_CONTROL_LABEL);
+ String bottomControlLabel = sourceElement
+ .getAttribute(BOTTOM_CONTROL_LABEL);
+
+ String showButtonLabelsStr = sourceElement
+ .getAttribute(SHOW_BUTTON_LABELS);
+ String fastOrderControlsVisibleStr = sourceElement
+ .getAttribute(FAST_ORDER_CONTROL_VISIBLE);
+ boolean showButtonLabels = ComponentUtil
+ .string2boolean(showButtonLabelsStr);
+ boolean fastOrderControlsVisible = ComponentUtil
+ .string2boolean(fastOrderControlsVisibleStr);
+
+ String controlsVerticalAlign = sourceElement
+ .getAttribute(CONTROLS_VERTICAL_ALIGN);
+ String captionLabel = sourceElement.getAttribute(CAPTION_LABEL);
+
+ // --------------------- COMMON TABLE ------------------------
+ nsIDOMElement tableCommon = visualDocument
+ .createElement(HtmlComponentUtil.HTML_TAG_TABLE);
+
+ VpeCreationData creationData = new VpeCreationData(tableCommon);
+
+ nsIDOMElement row1 = visualDocument
+ .createElement(HtmlComponentUtil.HTML_TAG_TR);
+ nsIDOMElement row2 = visualDocument
+ .createElement(HtmlComponentUtil.HTML_TAG_TR);
+
+ tableCommon.appendChild(row1);
+ tableCommon.appendChild(row2);
+
+ // ---------------------row1------------------------
+ nsIDOMElement row1_TD1 = visualDocument
+ .createElement(HtmlComponentUtil.HTML_TAG_TD);
+ row1.appendChild(row1_TD1);
+
+ nsIDOMElement row1_TD1_DIV = visualDocument
+ .createElement(HtmlComponentUtil.HTML_TAG_DIV);
+ row1_TD1_DIV.setAttribute(HtmlComponentUtil.HTML_STYLE_ATTR,
+ STYLE_FOR_CAPTOION_LABEL + "width: "
+ + (listWidth == null ? DEFAULT_WIDTH : listWidth)
+ + "px");
+ row1_TD1_DIV.appendChild(visualDocument.createTextNode(captionLabel));
+ row1_TD1.appendChild(row1_TD1_DIV);
+
+ // ---------------------row2 ---- with list table and buttons------------------------
+ nsIDOMElement row2_TD1 = visualDocument
+ .createElement(HtmlComponentUtil.HTML_TAG_TD);
+ row2.appendChild(row2_TD1);
+
+ nsIDOMElement row2_TD2 = visualDocument
+ .createElement(HtmlComponentUtil.HTML_TAG_TD);
+ row2.appendChild(row2_TD2);
+
+ // ---------------------buttonsTable------------------------
+ nsIDOMElement buttonsDiv = visualDocument
+ .createElement(HtmlComponentUtil.HTML_TAG_DIV);
+ buttonsDiv.setAttribute(HtmlComponentUtil.HTML_CLASS_ATTR, "rich-ordering-list-button-layout");
+
+ nsIDOMElement btnUpDiv = createButtonDiv(visualDocument,
+ (null == upControlLabel ? UP_CONTROL_LABEL_DEFAULT
+ : upControlLabel), UP_CONTROL_IMG, new Boolean(
+ showButtonLabels).booleanValue());
+ nsIDOMElement btnDownDiv = createButtonDiv(visualDocument,
+ (null == upControlLabel ? DOWN_CONTROL_LABEL_DEFAULT
+ : upControlLabel), DOWN_CONTROL_IMG, new Boolean(
+ showButtonLabels).booleanValue());
+
+ if (fastOrderControlsVisible) {
+ nsIDOMElement btnTopDiv = createButtonDiv(visualDocument,
+ (null == upControlLabel ? TOP_CONTROL_LABEL_DEFAULT
+ : upControlLabel), TOP_CONTROL_IMG, new Boolean(
+ showButtonLabels).booleanValue());
+ nsIDOMElement btnBottomDiv = createButtonDiv(visualDocument,
+ (null == upControlLabel ? BOTTOM_CONTROL_LABEL_DEFAULT
+ : upControlLabel), BOTTOM_CONTROL_IMG, new Boolean(
+ showButtonLabels).booleanValue());
+
+ buttonsDiv.appendChild(btnTopDiv);
+ buttonsDiv.appendChild(btnBottomDiv);
+ }
+
+ buttonsDiv.appendChild(btnUpDiv);
+ buttonsDiv.appendChild(btnDownDiv);
+
+ row2_TD2.setAttribute(HtmlComponentUtil.HTML_ALIGN_ATTR, "center");
+ row2_TD2.setAttribute(HtmlComponentUtil.HTML_ATTR_VALIGN, ("center"
+ .equalsIgnoreCase(controlsVerticalAlign) ? "middle"
+ : controlsVerticalAlign));
+ row2_TD2.appendChild(buttonsDiv);
+
+ // --------------------------------------------
+
+ // ---------------------listTable------------------------
+ nsIDOMElement listTable = visualDocument
+ .createElement(HtmlComponentUtil.HTML_TAG_TABLE);
+ nsIDOMElement tr1 = visualDocument
+ .createElement(HtmlComponentUtil.HTML_TAG_TR);
+ nsIDOMElement tr2 = visualDocument
+ .createElement(HtmlComponentUtil.HTML_TAG_TR);
+
+ listTable.appendChild(tr1);
+ listTable.appendChild(tr2);
+
+ row2_TD1.appendChild(listTable);
+
+ // ---------------------tr1------------------------
+ nsIDOMElement tr1_TD1 = visualDocument
+ .createElement(HtmlComponentUtil.HTML_TAG_TD);
+ tr1.appendChild(tr1_TD1);
+
+ nsIDOMElement tr1_TD2 = visualDocument
+ .createElement(HtmlComponentUtil.HTML_TAG_TD);
+ tr1.appendChild(tr1_TD2);
+
+ nsIDOMElement tr1_TD2_DIV = visualDocument
+ .createElement(HtmlComponentUtil.HTML_TAG_DIV);
+ tr1_TD2_DIV.setAttribute(HtmlComponentUtil.HTML_STYLE_ATTR,
+ STYLE_FOR_RIGHT_SCROLL);
+ tr1_TD2.appendChild(tr1_TD2_DIV);
+
+ // -------------------------------------------------------
+
+ // ---------------------tr2------------------------
+ nsIDOMElement tr2_TD = visualDocument
+ .createElement(HtmlComponentUtil.HTML_TAG_TD);
+ tr2.appendChild(tr2_TD);
+
+ nsIDOMElement tr2_TD_DIV = visualDocument
+ .createElement(HtmlComponentUtil.HTML_TAG_DIV);
+ tr2_TD_DIV.setAttribute(HtmlComponentUtil.HTML_STYLE_ATTR,
+ STYLE_FOR_LOW_SCROLL);
+ tr2_TD.appendChild(tr2_TD_DIV);
+
+ // --------------------------------------------
+
+ nsIDOMElement div = visualDocument
+ .createElement(HtmlComponentUtil.HTML_TAG_DIV);
+ tr1_TD1.appendChild(div);
+ div.setAttribute(HtmlComponentUtil.HTML_CLASS_ATTR, "dr-table-hidden");
+
+ String divStyle = HtmlComponentUtil.HTML_WIDTH_ATTR + " : "
+ + (listWidth == null ? DEFAULT_WIDTH : listWidth) + ";"
+ + HtmlComponentUtil.HTML_HEIGHT_ATTR + " : "
+ + (listHeight == null ? DEFAULT_HEIGHT : listHeight) + ";";
+
+ div.setAttribute(HtmlComponentUtil.HTML_STYLE_ATTR, divStyle);
+
+ nsIDOMElement table = visualDocument
+ .createElement(HtmlComponentUtil.HTML_TAG_TABLE);
+ ComponentUtil.copyAttributes(sourceNode, table);
+ table.removeAttribute(HtmlComponentUtil.HTML_ATR_HEIGHT);
+ table.setAttribute(HtmlComponentUtil.HTML_STYLE_ATTR, "width: 100%;");
+ div.appendChild(table);
+
+ ComponentUtil.setCSSLink(pageContext, "orderingList/orderingList.css",
+ "richFacesOrderingList");
+ String tableClass = sourceElement
+ .getAttribute(HtmlComponentUtil.HTML_STYLECLASS_ATTR);
+ table
+ .setAttribute(HtmlComponentUtil.HTML_CLASS_ATTR,
+ "dr-table rich-table "
+ + (tableClass == null ? "" : tableClass));
+
+ // Encode colgroup definition.
+ ArrayList<Element> columns = getColumns(sourceElement);
+ int columnsLength = getColumnsCount(sourceElement, columns);
+ nsIDOMElement colgroup = visualDocument
+ .createElement(HtmlComponentUtil.HTML_TAG_COLGROUP);
+ colgroup.setAttribute(HtmlComponentUtil.HTML_TAG_SPAN, String
+ .valueOf(columnsLength));
+ table.appendChild(colgroup);
+
+ // Encode Caption
+ encodeCaption(creationData, sourceElement, visualDocument, table);
+
+ // Encode Header
+ Element header = ComponentUtil.getFacet(sourceElement, HEADER);
+ ArrayList<Element> columnsHeaders = getColumnsWithFacet(columns, HEADER);
+ if (header != null || !columnsHeaders.isEmpty()) {
+ nsIDOMElement thead = visualDocument
+ .createElement(HtmlComponentUtil.HTML_TAG_THEAD);
+ table.appendChild(thead);
+ String headerClass = (String) sourceElement
+ .getAttribute(HEADER_CLASS);
+ if (header != null) {
+ encodeTableHeaderFacet(creationData, thead, columnsLength,
+ visualDocument, header,
+ "dr-table-header rich-table-header",
+ "dr-table-header-continue rich-table-header-continue",
+ "dr-table-headercell rich-table-headercell",
+ headerClass, HtmlComponentUtil.HTML_TAG_TD);
+ }
+ if (!columnsHeaders.isEmpty()) {
+ nsIDOMElement tr = visualDocument
+ .createElement(HtmlComponentUtil.HTML_TAG_TR);
+ thead.appendChild(tr);
+
+ String styleClass = encodeStyleClass(null,
+ "dr-table-subheader rich-table-subheader", null,
+ headerClass);
+ if (styleClass != null) {
+ tr.setAttribute(HtmlComponentUtil.HTML_CLASS_ATTR,
+ styleClass);
+ }
+ encodeHeaderFacets(creationData, tr, visualDocument,
+ columnsHeaders,
+ "rich-ordering-list-table-header-cell",
+ headerClass, HEADER, HtmlComponentUtil.HTML_TAG_TD);
+ }
+ }
+
+ nsIDOMElement tbody = visualDocument
+ .createElement(HtmlComponentUtil.HTML_TAG_TBODY);
+ table.appendChild(tbody);
+
+ // Create mapping to Encode body
+ for (int i = 0; i < NUM_ROW; i++) {
+ List<Node> children = ComponentUtil.getChildren(sourceElement);
+ boolean firstRow = true;
+ nsIDOMElement tr = null;
+ VpeChildrenInfo trInfo = null;
+ for (Node child : children) {
+ if (child.getNodeName().endsWith(":column")) {
+ String breakBefore = ((Element) child)
+ .getAttribute("breakBefore");
+ if (breakBefore != null
+ && breakBefore.equalsIgnoreCase("true")) {
+ tr = null;
+ }
+ if (tr == null) {
+ tr = visualDocument
+ .createElement(HtmlComponentUtil.HTML_TAG_TR);
+ if (firstRow) {
+ tr.setAttribute(HtmlComponentUtil.HTML_CLASS_ATTR,
+ "dr-table-firstrow rich-table-firstrow");
+ firstRow = false;
+ } else {
+ tr.setAttribute(HtmlComponentUtil.HTML_CLASS_ATTR,
+ "dr-table-row rich-table-row");
+ }
+ trInfo = new VpeChildrenInfo(tr);
+ tbody.appendChild(tr);
+ creationData.addChildrenInfo(trInfo);
+ }
+ trInfo.addSourceChild(child);
+ } else if (child.getNodeName().endsWith(":columnGroup")) {
+ RichFacesColumnGroupTemplate.DEFAULT_INSTANCE.encode(
+ creationData, (Element) child, visualDocument,
+ tbody);
+ tr = null;
+ } else if (child.getNodeName().endsWith(":subTable")) {
+ RichFacesSubTableTemplate.DEFAULT_INSTANCE.encode(
+ creationData, (Element) child, visualDocument,
+ tbody);
+ tr = null;
+ } else {
+ VpeChildrenInfo childInfo = new VpeChildrenInfo(tbody);
+ childInfo.addSourceChild(child);
+ creationData.addChildrenInfo(childInfo);
+ tr = null;
+ }
+ }
+ }
+
+ return creationData;
+ }
+
+ /**
+ * Creates control button with image and label.
+ *
+ * @param visualDocument
+ * visual document
+ * @param btnName
+ * the button label
+ * @param imgName
+ * path to the image
+ * @param showButtonLabels
+ * show button label flag
+ *
+ * @return the button
+ */
+ private nsIDOMElement createButtonDiv(nsIDOMDocument visualDocument,
+ String btnName, String imgName, boolean showButtonLabels) {
+
+ nsIDOMElement div1 = visualDocument
+ .createElement(HtmlComponentUtil.HTML_TAG_DIV);
+ nsIDOMElement div2 = visualDocument
+ .createElement(HtmlComponentUtil.HTML_TAG_DIV);
+ nsIDOMElement a = visualDocument
+ .createElement(HtmlComponentUtil.HTML_TAG_A);
+ nsIDOMElement div3 = visualDocument
+ .createElement(HtmlComponentUtil.HTML_TAG_DIV);
+ nsIDOMElement img = visualDocument
+ .createElement(HtmlComponentUtil.HTML_TAG_IMG);
+
+ div1.setAttribute(HtmlComponentUtil.HTML_CLASS_ATTR, "rich-ordering-control");
+ div2.setAttribute(HtmlComponentUtil.HTML_CLASS_ATTR, "rich-ordering-list-button");
+
+ a.setAttribute(HtmlComponentUtil.HTML_CLASS_ATTR, "rich-ordering-list-button-selection");
+ div3.setAttribute(HtmlComponentUtil.HTML_CLASS_ATTR, "rich-ordering-list-button-content");
+
+ String resourceFolder = RichFacesTemplatesActivator.getPluginResourcePath();
+ img.setAttribute("src", "file://" + resourceFolder + imgName);
+
+ String divStyle = "background-image: url(file://" + resourceFolder + BUTTON_BG + ");";
+ div2.setAttribute(HtmlComponentUtil.HTML_STYLE_ATTR, divStyle);
+
+ div1.appendChild(div2);
+ div2.appendChild(a);
+ a.appendChild(div3);
+
+ div3.appendChild(img);
+ if (showButtonLabels) {
+ div3.appendChild(visualDocument.createTextNode(btnName));
+ }
+
+ return div1;
+ }
+
+ /**
+ *
+ * @param creationData
+ * @param sourceElement
+ * @param visualDocument
+ * @param table
+ */
+ protected void encodeCaption(VpeCreationData creationData,
+ Element sourceElement, nsIDOMDocument visualDocument,
+ nsIDOMElement table) {
+ // Encode caption
+ Element captionFromFacet = ComponentUtil.getFacet(sourceElement,
+ HtmlComponentUtil.HTML_TAG_CAPTION);
+ if (captionFromFacet != null) {
+ String captionClass = (String) table.getAttribute(CAPTION_CLASS);
+ String captionStyle = (String) table.getAttribute(CAPTION_STYLE);
+
+ nsIDOMElement caption = visualDocument
+ .createElement(HtmlComponentUtil.HTML_TAG_CAPTION);
+ table.appendChild(caption);
+ if (captionClass != null && captionClass.length() > 0) {
+ captionClass = "dr-table-caption rich-table-caption "
+ + captionClass;
+ } else {
+ captionClass = "dr-table-caption rich-table-caption";
+ }
+ caption.setAttribute(HtmlComponentUtil.HTML_CLASS_ATTR,
+ captionClass);
+ if (captionStyle != null && captionStyle.length() > 0) {
+ caption.setAttribute(HtmlComponentUtil.HTML_STYLE_ATTR,
+ captionStyle);
+ }
+
+ VpeChildrenInfo cap = new VpeChildrenInfo(caption);
+ cap.addSourceChild(captionFromFacet);
+ creationData.addChildrenInfo(cap);
+ }
+
+ }
+
+ /**
+ *
+ * @param creationData
+ * @param parentTr
+ * @param visualDocument
+ * @param headersOrFooters
+ * @param skinCellClass
+ * @param headerClass
+ * @param facetName
+ * @param element
+ */
+ public static void encodeHeaderFacets(VpeCreationData creationData,
+ nsIDOMElement parentTr, nsIDOMDocument visualDocument,
+ ArrayList<Element> headersOrFooters, String skinCellClass,
+ String headerClass, String facetName, String element) {
+ for (Element column : headersOrFooters) {
+ String classAttribute = facetName + "Class";
+ String columnHeaderClass = column.getAttribute(classAttribute);
+ nsIDOMElement td = visualDocument.createElement(element);
+ parentTr.appendChild(td);
+ String styleClass = encodeStyleClass(null, skinCellClass,
+ headerClass, columnHeaderClass);
+ td.setAttribute(HtmlComponentUtil.HTML_CLASS_ATTR, styleClass);
+
+ nsIDOMElement div1 = visualDocument
+ .createElement(HtmlComponentUtil.HTML_TAG_DIV);
+ String resourceFolder = RichFacesTemplatesActivator
+ .getPluginResourcePath();
+ String div1Style = "background-image: url(file://" + resourceFolder
+ + HEADER_CELL_BG + ");";
+ div1.setAttribute(HtmlComponentUtil.HTML_CLASS_ATTR,
+ "rich-ordering-list-table-header-cell");
+ div1.setAttribute(HtmlComponentUtil.HTML_STYLE_ATTR, div1Style);
+ td.appendChild(div1);
+
+ td.setAttribute("scop", "col");
+ String colspan = column
+ .getAttribute(HtmlComponentUtil.HTML_TABLE_COLSPAN);
+ if (colspan != null && colspan.length() > 0) {
+ td.setAttribute(HtmlComponentUtil.HTML_TABLE_COLSPAN, colspan);
+ }
+ Element facetBody = ComponentUtil.getFacet(column, facetName);
+
+ VpeChildrenInfo child = new VpeChildrenInfo(div1);
+ child.addSourceChild(facetBody);
+ creationData.addChildrenInfo(child);
+ }
+ }
+
+ /**
+ *
+ * @param creationData
+ * @param parentTheadOrTfood
+ * @param columns
+ * @param visualDocument
+ * @param facetBody
+ * @param skinFirstRowClass
+ * @param skinRowClass
+ * @param skinCellClass
+ * @param facetBodyClass
+ * @param element
+ */
+ protected void encodeTableHeaderFacet(VpeCreationData creationData,
+ nsIDOMElement parentTheadOrTfood, int columns,
+ nsIDOMDocument visualDocument, Element facetBody,
+ String skinFirstRowClass, String skinRowClass,
+ String skinCellClass, String facetBodyClass, String element) {
+ boolean isColumnGroup = facetBody.getNodeName()
+ .endsWith(":columnGroup");
+ boolean isSubTable = facetBody.getNodeName().endsWith(":subTable");
+ if (isColumnGroup) {
+ RichFacesColumnGroupTemplate.DEFAULT_INSTANCE.encode(creationData,
+ facetBody, visualDocument, parentTheadOrTfood);
+ } else if (isSubTable) {
+ RichFacesSubTableTemplate.DEFAULT_INSTANCE.encode(creationData,
+ facetBody, visualDocument, parentTheadOrTfood);
+ } else {
+ nsIDOMElement tr = visualDocument
+ .createElement(HtmlComponentUtil.HTML_TAG_TR);
+ parentTheadOrTfood.appendChild(tr);
+
+ String styleClass = encodeStyleClass(null, skinFirstRowClass,
+ facetBodyClass, null);
+ if (styleClass != null) {
+ tr.setAttribute(HtmlComponentUtil.HTML_CLASS_ATTR, styleClass);
+ }
+ String style = ComponentUtil.getHeaderBackgoundImgStyle();
+ tr.setAttribute(HtmlComponentUtil.HTML_STYLE_ATTR, style);
+
+ nsIDOMElement td = visualDocument.createElement(element);
+ tr.appendChild(td);
+
+ styleClass = encodeStyleClass(null, skinCellClass, facetBodyClass,
+ null);
+ if (styleClass != null) {
+ td.setAttribute(HtmlComponentUtil.HTML_CLASS_ATTR, styleClass);
+ }
+
+ if (columns > 0) {
+ td.setAttribute(HtmlComponentUtil.HTML_TABLE_COLSPAN, String
+ .valueOf(columns));
+ }
+ td.setAttribute(HtmlComponentUtil.HTML_SCOPE_ATTR,
+ HtmlComponentUtil.HTML_TAG_COLGROUP);
+
+ VpeChildrenInfo child = new VpeChildrenInfo(td);
+ child.addSourceChild(facetBody);
+ creationData.addChildrenInfo(child);
+ }
+ }
+
+ /**
+ *
+ * @param parentSourceElement
+ * @return list of columns
+ */
+ public static ArrayList<Element> getColumns(Element parentSourceElement) {
+ ArrayList<Element> columns = new ArrayList<Element>();
+ NodeList children = parentSourceElement.getChildNodes();
+ for (int i = 0; i < children.getLength(); i++) {
+ Node child = children.item(i);
+ if ((child instanceof Element)
+ && child.getNodeName().endsWith(":column")) {
+ columns.add((Element) child);
+ }
+ }
+ return columns;
+ }
+
+ /**
+ *
+ * @param columns
+ * @param facetName
+ * @return list of columns with facet
+ */
+ public static ArrayList<Element> getColumnsWithFacet(
+ ArrayList<Element> columns, String facetName) {
+ ArrayList<Element> columnsWithFacet = new ArrayList<Element>();
+ for (Element column : columns) {
+ Element body = ComponentUtil.getFacet(column, facetName);
+ if (body != null) {
+ columnsWithFacet.add(column);
+ }
+ }
+ return columnsWithFacet;
+ }
+
+ /**
+ *
+ * @param parentPredefined
+ * @param predefined
+ * @param parent
+ * @param custom
+ * @return
+ */
+ public static String encodeStyleClass(Object parentPredefined,
+ Object predefined, Object parent, Object custom) {
+ StringBuffer styleClass = new StringBuffer();
+ // Construct predefined classes
+ if (null != parentPredefined) {
+ styleClass.append(parentPredefined).append(SPACE);
+ } else if (null != predefined) {
+ styleClass.append(predefined).append(SPACE);
+ }
+ // Append class from parent component.
+ if (null != parent) {
+ styleClass.append(parent).append(SPACE);
+ }
+ if (null != custom) {
+ styleClass.append(custom);
+ }
+ if (styleClass.length() > 0) {
+ return styleClass.toString();
+ }
+ return null;
+ }
+
+ /**
+ *
+ * @param sourceElement
+ * @param columns
+ * @return
+ */
+ protected int getColumnsCount(Element sourceElement,
+ ArrayList<Element> columns) {
+ int count = 0;
+ // check for exact value in component
+ Integer span = null;
+ try {
+ span = Integer.valueOf(sourceElement.getAttribute("columns"));
+ } catch (Exception e) {
+ // Ignore bad attribute
+ }
+ if (null != span && span.intValue() != Integer.MIN_VALUE) {
+ count = span.intValue();
+ } else {
+ // calculate max html columns count for all columns/rows children.
+ count = calculateRowColumns(sourceElement, columns);
+ }
+ return count;
+ }
+
+ /*
+ * Calculate max number of columns per row. For rows, recursive calculate
+ * max length.
+ */
+ private int calculateRowColumns(Element sourceElement,
+ ArrayList<Element> columns) {
+ int count = 0;
+ int currentLength = 0;
+ for (Element column : columns) {
+ if (ComponentUtil.isRendered(column)) {
+ if (column.getNodeName().endsWith(":columnGroup")) {
+ // Store max calculated value of previous rows.
+ if (currentLength > count) {
+ count = currentLength;
+ }
+ // Calculate number of columns in row.
+ currentLength = calculateRowColumns(sourceElement,
+ getColumns(column));
+ // Store max calculated value
+ if (currentLength > count) {
+ count = currentLength;
+ }
+ currentLength = 0;
+ } else if (column.getNodeName().equals(
+ sourceElement.getPrefix() + ":column")) {
+ String breakBeforeStr = column.getAttribute("breakBefore");
+ boolean breakBefore = false;
+ if (breakBeforeStr != null) {
+ try {
+ breakBefore = Boolean.getBoolean(breakBeforeStr);
+ } catch (Exception e) {
+ // Ignore bad attribute
+ }
+ }
+ // For new row, save length of previous.
+ if (breakBefore) {
+ if (currentLength > count) {
+ count = currentLength;
+ }
+ currentLength = 0;
+ }
+ String colspanStr = column
+ .getAttribute(HtmlComponentUtil.HTML_TABLE_COLSPAN);
+ Integer colspan = null;
+ try {
+ colspan = Integer.valueOf(colspanStr);
+ } catch (Exception e) {
+ // Ignore
+ }
+ // Append colspan of this column
+ if (null != colspan
+ && colspan.intValue() != Integer.MIN_VALUE) {
+ currentLength += colspan.intValue();
+ } else {
+ currentLength++;
+ }
+ } else if (column.getNodeName().endsWith(":column")) {
+ // UIColumn always have colspan == 1.
+ currentLength++;
+ }
+
+ }
+ }
+ if (currentLength > count) {
+ count = currentLength;
+ }
+ return count;
+ }
+
+ /**
+ * Checks, whether it is necessary to re-create an element at change of
+ * attribute
+ *
+ * @param pageContext
+ * Contains the information on edited page.
+ * @param sourceElement
+ * The current element of the source tree.
+ * @param visualDocument
+ * The document of the visual tree.
+ * @param visualNode
+ * The current node of the visual tree.
+ * @param data
+ * The arbitrary data, built by a method <code>create</code>
+ * @param name
+ * Attribute name
+ * @param value
+ * Attribute value
+ * @return <code>true</code> if it is required to re-create an element at
+ * a modification of attribute, <code>false</code> otherwise.
+ */
+ public boolean isRecreateAtAttrChange(VpePageContext pageContext,
+ Element sourceElement, nsIDOMDocument visualDocument,
+ nsIDOMElement visualNode, Object data, String name, String value) {
+ return true;
+ }
+}
Property changes on: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesOrderingList.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Author Id Revision Date
Name: svn:eol-style
+ native
Modified: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/templates/vpe-templates-richfaces.xml
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/templates/vpe-templates-richfaces.xml 2008-01-15 09:36:21 UTC (rev 5681)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/templates/vpe-templates-richfaces.xml 2008-01-15 12:19:58 UTC (rev 5682)
@@ -339,6 +339,45 @@
</vpe:template>
</vpe:tag>
+ <vpe:tag name="rich:orderingList" case-sensitive="yes">
+ <vpe:template children="yes" modify="no" class="org.jboss.tools.jsf.vpe.richfaces.template.RichFacesOrderingList">
+ <vpe:resize>
+ <vpe:width width-attr="listWidth" />
+ <vpe:height height-attr="listHeight" />
+ </vpe:resize>
+ <vpe:dnd>
+ <vpe:drag start-enable="yes" />
+ <vpe:drop container="yes">
+ <vpe:container-child tag-name="column"/>
+ </vpe:drop>
+ </vpe:dnd>
+ <vpe:textFormating>
+ <vpe:format type="BlockFormat" addChildren="deny"/>
+ <vpe:format type="UnderlineFormat">
+ <vpe:formatAttribute type="style"/>
+ </vpe:format>
+ <vpe:format type="BoldFormat">
+ <vpe:formatAttribute type="style"/>
+ </vpe:format>
+ <vpe:format type="ItalicFormat">
+ <vpe:formatAttribute type="style"/>
+ </vpe:format>
+ <vpe:format type="FontNameFormat">
+ <vpe:formatAttribute type="style"/>
+ </vpe:format>
+ <vpe:format type="FontSizeFormat">
+ <vpe:formatAttribute type="style"/>
+ </vpe:format>
+ <vpe:format type="BackgroundColorFormat">
+ <vpe:formatAttribute type="style"/>
+ </vpe:format>
+ <vpe:format type="ForegroundColorFormat">
+ <vpe:formatAttribute type="style"/>
+ </vpe:format>
+ </vpe:textFormating>
+ <vpe:pseudoContent defaultText="yes"/>
+ </vpe:template>
+ </vpe:tag>
<vpe:tag name="rich:column" case-sensitive="yes">
<vpe:template children="yes" modify="yes" class="org.jboss.tools.jsf.vpe.richfaces.template.RichFacesColumnTemplate">
16 years, 5 months
JBoss Tools SVN: r5681 - trunk/seam/docs/reference/en/modules.
by jbosstools-commits@lists.jboss.org
Author: cluts
Date: 2008-01-15 04:36:21 -0500 (Tue, 15 Jan 2008)
New Revision: 5681
Modified:
trunk/seam/docs/reference/en/modules/crud_application_walkthrough.xml
trunk/seam/docs/reference/en/modules/crud_database_application.xml
trunk/seam/docs/reference/en/modules/directory_structure.xml
trunk/seam/docs/reference/en/modules/generate_entities.xml
trunk/seam/docs/reference/en/modules/intro.xml
trunk/seam/docs/reference/en/modules/seam_editors.xml
trunk/seam/docs/reference/en/modules/seam_view.xml
trunk/seam/docs/reference/en/modules/seam_wizards.xml
trunk/seam/docs/reference/en/modules/testng.xml
Log:
http://jira.jboss.org/jira/browse/JBDS-143 - Transition sentences are added to the all chapters and sections of GSG and Seam.
Modified: trunk/seam/docs/reference/en/modules/crud_application_walkthrough.xml
===================================================================
--- trunk/seam/docs/reference/en/modules/crud_application_walkthrough.xml 2008-01-15 09:34:42 UTC (rev 5680)
+++ trunk/seam/docs/reference/en/modules/crud_application_walkthrough.xml 2008-01-15 09:36:21 UTC (rev 5681)
@@ -11,6 +11,7 @@
</keywordset>
</chapterinfo>
<title>The CRUD Application Walkthrough</title>
+ <para>After you familiarized oneself with example of creating the CRUD Database Application with Seam, you can read this charter.</para>
<section>
<title>Using CRUD Application</title>
<para>To run your CRUD Application you should do the following steps:</para>
Modified: trunk/seam/docs/reference/en/modules/crud_database_application.xml
===================================================================
--- trunk/seam/docs/reference/en/modules/crud_database_application.xml 2008-01-15 09:34:42 UTC (rev 5680)
+++ trunk/seam/docs/reference/en/modules/crud_database_application.xml 2008-01-15 09:36:21 UTC (rev 5681)
@@ -18,7 +18,7 @@
<property>CRUD</property> is an acronym for the four basic types of SQL commands: <emphasis><property>Create</property></emphasis>, <emphasis><property>Read</property></emphasis>, <emphasis><property>Update</property></emphasis>, <emphasis><property>Delete</property></emphasis>. Most applications have some kind of <property>CRUD</property> functionality, and we can assume that every programmer had to deal with <property>CRUD</property> at some point. A <property>CRUD</property> application is one that uses forms to get data into and out of a database.
</para>
<para>
- In the next chapter we will create <link linkend="intro">Seam</link> Web application, connect it to the <ulink url="http://www.postgresql.org/">PostgreSQL</ulink> database and add <property>CRUD</property> support.
+ In the next section we will create <link linkend="intro">Seam</link> Web application, connect it to the <ulink url="http://www.postgresql.org/">PostgreSQL</ulink> database and add <property>CRUD</property> support.
</para>
</section>
Modified: trunk/seam/docs/reference/en/modules/directory_structure.xml
===================================================================
--- trunk/seam/docs/reference/en/modules/directory_structure.xml 2008-01-15 09:34:42 UTC (rev 5680)
+++ trunk/seam/docs/reference/en/modules/directory_structure.xml 2008-01-15 09:36:21 UTC (rev 5681)
@@ -5,7 +5,7 @@
<keywordset>
<keyword>JBoss Tools</keyword>
<keyword>Seam</keyword>
- <keyword>Eclispe</keyword>
+ <keyword>Eclipse</keyword>
</keywordset>
</chapterinfo>
Modified: trunk/seam/docs/reference/en/modules/generate_entities.xml
===================================================================
--- trunk/seam/docs/reference/en/modules/generate_entities.xml 2008-01-15 09:34:42 UTC (rev 5680)
+++ trunk/seam/docs/reference/en/modules/generate_entities.xml 2008-01-15 09:36:21 UTC (rev 5681)
@@ -11,6 +11,7 @@
<title>Seam Generate Entities</title>
+ <para>The main purpose of this chapter is to tell you about Seam Generate Entities.</para>
<para>Generate Entities is available directly from within Eclipse using Hibernate Tools plugin for the standard seam-gen generation.</para>
<para>Generate Entities generates a set of CRUD Seam components and web pages based on existing tables in a database or on existing entities in your application.</para>
Modified: trunk/seam/docs/reference/en/modules/intro.xml
===================================================================
--- trunk/seam/docs/reference/en/modules/intro.xml 2008-01-15 09:34:42 UTC (rev 5680)
+++ trunk/seam/docs/reference/en/modules/intro.xml 2008-01-15 09:36:21 UTC (rev 5681)
@@ -14,7 +14,7 @@
<section>
<title>What is Seam?</title>
-
+ <para>This introduction will help you to understand what is <property>Seam</property>.</para>
<para><property>Seam</property> is a fully featured application framework on top of Java EE 5. It is also one of the most popular enterprise Java framework today. Seam deeply integrates many other
standard-based or open source frameworks (e.g., JSF, EJB3, JMS, Web Services, jBPM, JBoss Rules, Ajax4jsf, RichFaces, Facelets, Spring, iText, Quartz, TestNG, etc.), and
provides a single programming model for developers to "drive" those underlying frameworks via simple annotated POJOs (Plain Old Java Objects). It makes life easier
Modified: trunk/seam/docs/reference/en/modules/seam_editors.xml
===================================================================
--- trunk/seam/docs/reference/en/modules/seam_editors.xml 2008-01-15 09:34:42 UTC (rev 5680)
+++ trunk/seam/docs/reference/en/modules/seam_editors.xml 2008-01-15 09:36:21 UTC (rev 5681)
@@ -15,6 +15,7 @@
<title>Content Assist</title>
+ <para>In this chapter you know what are Seam Editors Features and how to work with them. </para>
<para><property>Content Assist</property> (ctrl + space) is available when using expression language in:</para>
<itemizedlist>
<listitem><para>JSP</para></listitem>
Modified: trunk/seam/docs/reference/en/modules/seam_view.xml
===================================================================
--- trunk/seam/docs/reference/en/modules/seam_view.xml 2008-01-15 09:34:42 UTC (rev 5680)
+++ trunk/seam/docs/reference/en/modules/seam_view.xml 2008-01-15 09:36:21 UTC (rev 5681)
@@ -14,6 +14,7 @@
<section>
<title>Seam Components View</title>
+ <para>This chapter introduces you with Seam Components View.</para>
<para>The <property>Seam Components View</property> is available from Seam perspective. It provides a list of seam components found in a project.</para>
<figure>
Modified: trunk/seam/docs/reference/en/modules/seam_wizards.xml
===================================================================
--- trunk/seam/docs/reference/en/modules/seam_wizards.xml 2008-01-15 09:34:42 UTC (rev 5680)
+++ trunk/seam/docs/reference/en/modules/seam_wizards.xml 2008-01-15 09:36:21 UTC (rev 5681)
@@ -10,7 +10,8 @@
</chapterinfo>
<title>Seam Wizards</title>
-
+
+ <para>This chapter introduces you with Seam Components.</para>
<para>All the Seam component generations options known from Seam-gen are available as wizards (with sensible auto-defaulting)
for creating various common Seam components:</para>
@@ -51,6 +52,7 @@
<title>New Seam Action</title>
+ <para>In this and following sections you can see example creating Seam Components.</para>
<para>To create a New Seam Action you should select a necessary project, type a name for <property>Seam component</property>, <property>POJO class</property>,
<property>Method</property>, <property>Page</property> and select a <property>Package</property> using <emphasis><property>Browse</property></emphasis> button.</para>
Modified: trunk/seam/docs/reference/en/modules/testng.xml
===================================================================
--- trunk/seam/docs/reference/en/modules/testng.xml 2008-01-15 09:34:42 UTC (rev 5680)
+++ trunk/seam/docs/reference/en/modules/testng.xml 2008-01-15 09:36:21 UTC (rev 5681)
@@ -9,6 +9,7 @@
</keywordset>
</chapterinfo>
<title>Using TestNG project</title>
+ <para>With the help this chapter you will get to know with TestNG.</para>
<section>
<title>What is TestNG?</title>
<para><property>TestNG</property> ("Testing, the Next Generation") is a Java unit testing framework that aims to overcome many limitations of JUnit.
16 years, 5 months
JBoss Tools SVN: r5680 - trunk/documentation/guides/userguide/GettingStartedGuide/en/modules.
by jbosstools-commits@lists.jboss.org
Author: cluts
Date: 2008-01-15 04:34:42 -0500 (Tue, 15 Jan 2008)
New Revision: 5680
Modified:
trunk/documentation/guides/userguide/GettingStartedGuide/en/modules/first_seam.xml
trunk/documentation/guides/userguide/GettingStartedGuide/en/modules/getting_started.xml
trunk/documentation/guides/userguide/GettingStartedGuide/en/modules/jsp_application.xml
trunk/documentation/guides/userguide/GettingStartedGuide/en/modules/rad_jsf_application.xml
Log:
http://jira.jboss.org/jira/browse/JBDS-143 - Transition sentences are added to the all chapters and sections of GSG and Seam.
Modified: trunk/documentation/guides/userguide/GettingStartedGuide/en/modules/first_seam.xml
===================================================================
--- trunk/documentation/guides/userguide/GettingStartedGuide/en/modules/first_seam.xml 2008-01-15 08:36:11 UTC (rev 5679)
+++ trunk/documentation/guides/userguide/GettingStartedGuide/en/modules/first_seam.xml 2008-01-15 09:34:42 UTC (rev 5680)
@@ -20,11 +20,11 @@
<para>A core element that makes the JBoss Developer Studio "scalable" is the
<property>JBoss Seam</property> framework.</para>
- <para>In this chapter, we will cover how to build a simple Seam web application in minutes with
- the JBoss Developer Studio.</para>
+ <para>The main purpose of this chapter is to tell you about build a simple Seam web application in minutes with the JBoss Developer Studio.</para>
<section>
<title>Create a Seam Project</title>
+ <para>This section helps you to create a simple Seam project.</para>
<para>To create a new web application in <property>Seam</property>, you should create a Seam web
project. This section provides all the necessary steps to organize a new project with appropriate
tooling and adjust the settings that match your needs.</para>
@@ -432,6 +432,7 @@
<section>
<title>Add a new UI Component</title>
+ <para>This section tells you about how you can add a new UI Component.</para>
<para>Now, let's add a little more logic to the application. We will add a new boolean
property to the action component. If it is set to true, the action would capitalize the input
string and display it on the web page. The following code in the SimpleAction class implements
Modified: trunk/documentation/guides/userguide/GettingStartedGuide/en/modules/getting_started.xml
===================================================================
--- trunk/documentation/guides/userguide/GettingStartedGuide/en/modules/getting_started.xml 2008-01-15 08:36:11 UTC (rev 5679)
+++ trunk/documentation/guides/userguide/GettingStartedGuide/en/modules/getting_started.xml 2008-01-15 09:34:42 UTC (rev 5680)
@@ -546,7 +546,7 @@
<para>
<emphasis role="bold">How can I add my own tag library to the JBoss Tools Palette?</emphasis>
</para>
- <para>See <ulink url="../../../jsf/en/html/palette.html">Adding Tag Libraries</ulink> in Visual Web Tools Guide.</para>
+ <para>See <ulink url="http://www.redhat.com/developer_studio/guides/jsf/html_single/#AddingJSFC...">Adding Tag Libraries</ulink> in Visual Web Tools Guide.</para>
<para>
<emphasis role="bold">I see the Oracle ADF Faces component library tags in the JBoss Tools
Palette, but I can't seem to find the libraries for ADF. How do I use this component
Modified: trunk/documentation/guides/userguide/GettingStartedGuide/en/modules/jsp_application.xml
===================================================================
--- trunk/documentation/guides/userguide/GettingStartedGuide/en/modules/jsp_application.xml 2008-01-15 08:36:11 UTC (rev 5679)
+++ trunk/documentation/guides/userguide/GettingStartedGuide/en/modules/jsp_application.xml 2008-01-15 09:34:42 UTC (rev 5680)
@@ -30,7 +30,7 @@
<section id="SettingUpTheProject">
<?dbhtml filename="SettingUpTheProject.html"?>
<title>Setting Up the Project</title>
- <para>We'll start with creation a new project for the application.</para>
+ <para>The main purpose of this section is to tell you about creation a Dynamic Web Project.</para>
<itemizedlist>
<listitem>
<para>Go to the menu bar and select <emphasis>
Modified: trunk/documentation/guides/userguide/GettingStartedGuide/en/modules/rad_jsf_application.xml
===================================================================
--- trunk/documentation/guides/userguide/GettingStartedGuide/en/modules/rad_jsf_application.xml 2008-01-15 08:36:11 UTC (rev 5679)
+++ trunk/documentation/guides/userguide/GettingStartedGuide/en/modules/rad_jsf_application.xml 2008-01-15 09:34:42 UTC (rev 5680)
@@ -31,6 +31,7 @@
<section id="SettingUpTheProject12">
<?dbhtml filename="SettingUpTheProject12.html"?>
<title>Setting up the project</title>
+ <para>Now you know how to create a new JSF 1.2 project. </para>
<para>First, we will create a JSF 1.2 project using an integrated JBDS's new
project wizard and predefined templates. Follow the next steps:</para>
<itemizedlist>
@@ -77,6 +78,7 @@
<section id="CreatingJSPPages">
<?dbhtml filename="CreatingJSPPages.html"?>
<title>Creating JSP Pages</title>
+ <para>After you created a new JSF project you can create new JSP pages.</para>
<para>And now, let's add two pages to our application.</para>
<para>The first page is inputnumber.jsp. It prompts you to
enter a number. If the guess is incorrect, the same page will be redisplayed with a
@@ -149,7 +151,7 @@
<section id="CreatingTransition">
<?dbhtml filename="CreatingTransition.html"?>
<title>Creating Transition between two views</title>
- <para>Then, we should create connection between jsp pages.</para>
+ <para>Then, we should create connection between jsp pages.</para>
<itemizedlist>
<listitem>
<para>In the diagram, select the <emphasis>
@@ -483,6 +485,7 @@
<section id="EditingFacesConfig">
<?dbhtml filename="EditingFacesConfig.html"?>
<title>Editing faces-config.xml File</title>
+ <para>In this section you know about faces-config.xml file.</para>
<para>This file holds two navigation rules and defines the backing bean used.</para>
<itemizedlist>
<listitem>
@@ -970,6 +973,7 @@
<section id="CreatingIndexjsp">
<?dbhtml filename="CreatingIndexjsp.html"?>
<title>Creating index.jsp page</title>
+ <para>Now you know how to create index.jsp page.</para>
<para>The index.jsp page is the entry point of our application. It's just
forwarding to inputnumber.jsp page.</para>
<itemizedlist>
16 years, 5 months
JBoss Tools SVN: r5679 - in trunk/seam/tests/org.jboss.tools.seam.core.test: projects/SeamWebWarTestProject/src/action/org/domain/SeamWebWarTestProject/session and 1 other directories.
by jbosstools-commits@lists.jboss.org
Author: dgolovin
Date: 2008-01-15 03:36:11 -0500 (Tue, 15 Jan 2008)
New Revision: 5679
Added:
trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/SeamValidatorsTestSetup.java
Modified:
trunk/seam/tests/org.jboss.tools.seam.core.test/projects/SeamWebWarTestProject/.classpath
trunk/seam/tests/org.jboss.tools.seam.core.test/projects/SeamWebWarTestProject/src/action/org/domain/SeamWebWarTestProject/session/Component12.java
trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/ScannerTest.java
trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/SeamCoreAllTests.java
trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/SeamValidatorsTest.java
Log:
SeamValidation tests were added to test suite.
1. Errors in test project fixed: .classpath should use default jre by default to make sure project will be compiled, it had to messageList components
2. Testsetup is used to make sure that project imported one time wor all validation tests
3. After all job is finished delay should be used to make sure that WorkbenchRunnable creating error markers has finished its work, only afer that tests are working correct
Modified: trunk/seam/tests/org.jboss.tools.seam.core.test/projects/SeamWebWarTestProject/.classpath
===================================================================
--- trunk/seam/tests/org.jboss.tools.seam.core.test/projects/SeamWebWarTestProject/.classpath 2008-01-14 21:14:04 UTC (rev 5678)
+++ trunk/seam/tests/org.jboss.tools.seam.core.test/projects/SeamWebWarTestProject/.classpath 2008-01-15 08:36:11 UTC (rev 5679)
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" output="WebContent/WEB-INF/dev" path="src/action"/>
- <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jre1.5.0_10"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry exported="true" kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/>
<classpathentry kind="lib" path="lib/jboss-ejb3-all.jar"/>
<classpathentry kind="lib" path="lib/ejb3-persistence.jar"/>
Modified: trunk/seam/tests/org.jboss.tools.seam.core.test/projects/SeamWebWarTestProject/src/action/org/domain/SeamWebWarTestProject/session/Component12.java
===================================================================
--- trunk/seam/tests/org.jboss.tools.seam.core.test/projects/SeamWebWarTestProject/src/action/org/domain/SeamWebWarTestProject/session/Component12.java 2008-01-14 21:14:04 UTC (rev 5678)
+++ trunk/seam/tests/org.jboss.tools.seam.core.test/projects/SeamWebWarTestProject/src/action/org/domain/SeamWebWarTestProject/session/Component12.java 2008-01-15 08:36:11 UTC (rev 5679)
@@ -21,9 +21,9 @@
@DataModel
private List<String> messageList=new ArrayList<String>();
- @Factory("messageList")
- public void findMessages() {
-
+ @Factory("messageList12")
+ public List<String> findMessages() {
+ return messageList;
}
public List<String> getList(){
Modified: trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/ScannerTest.java
===================================================================
--- trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/ScannerTest.java 2008-01-14 21:14:04 UTC (rev 5678)
+++ trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/ScannerTest.java 2008-01-15 08:36:11 UTC (rev 5679)
@@ -66,8 +66,6 @@
"org.jboss.tools.seam.core.test","/projects/TestScanner" , new NullProgressMonitor());
project.refreshLocal(IResource.DEPTH_INFINITE, new NullProgressMonitor());
EditorTestHelper.joinBackgroundActivities();
- project.build(IncrementalProjectBuilder.FULL_BUILD, new NullProgressMonitor());
- EditorTestHelper.joinBackgroundActivities();
}
private ISeamProject getSeamProject() {
Modified: trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/SeamCoreAllTests.java
===================================================================
--- trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/SeamCoreAllTests.java 2008-01-14 21:14:04 UTC (rev 5678)
+++ trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/SeamCoreAllTests.java 2008-01-15 08:36:11 UTC (rev 5679)
@@ -31,8 +31,9 @@
suite.addTestSuite(SeamEARTest.class);
suite.addTestSuite(SeamRuntimeListConverterTest.class);
suite.addTestSuite(SeamRuntimeManagerTest.class);
-
suite.addTestSuite(SeamFacetInstallDelegateTest.class);
+ suite.addTest(new SeamValidatorsTestSetup(new TestSuite(SeamValidatorsTest.class)));
+
// Seam 2 tests can't run on hudson for now ;(
//suite.addTestSuite(Seam2FacetInstallDelegateTest.class);
Modified: trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/SeamValidatorsTest.java
===================================================================
--- trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/SeamValidatorsTest.java 2008-01-14 21:14:04 UTC (rev 5678)
+++ trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/SeamValidatorsTest.java 2008-01-15 08:36:11 UTC (rev 5679)
@@ -18,6 +18,7 @@
import org.eclipse.core.resources.IMarker;
import org.eclipse.core.resources.IProject;
import org.eclipse.core.resources.IResource;
+import org.eclipse.core.resources.IncrementalProjectBuilder;
import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.NullProgressMonitor;
@@ -31,27 +32,21 @@
import org.jboss.tools.seam.core.ISeamProject;
import org.jboss.tools.seam.core.SeamCorePlugin;
import org.jboss.tools.seam.core.SeamPreferences;
+import org.jboss.tools.seam.core.test.project.facet.TestUtils;
import org.jboss.tools.seam.internal.core.SeamProject;
import org.jboss.tools.test.util.JUnitUtils;
+import org.jboss.tools.test.util.ResourcesUtils;
+import org.jboss.tools.test.util.xpl.EditorTestHelper;
public class SeamValidatorsTest extends TestCase {
IProject project = null;
-
- boolean makeCopy = true;
public SeamValidatorsTest() {}
protected void setUp() throws Exception {
- TestProjectProvider providerEAR = new TestProjectProvider("org.jboss.tools.seam.core.test", null, "SeamWebWarTestProject", makeCopy);
- project = providerEAR.getProject();
-
- try {
- project.refreshLocal(IResource.DEPTH_INFINITE, new NullProgressMonitor());
- } catch (Exception e) {
- JUnitUtils.fail("Error in refreshing",e);
- }
-
- refreshProject(project);
+ project = ResourcesPlugin.getWorkspace().getRoot().getProject("SeamWebWarTestProject");
+ project.build(IncrementalProjectBuilder.FULL_BUILD, null);
+ EditorTestHelper.joinJobs(5000, 20000, 1000);
}
private ISeamProject getSeamProject(IProject project) {
@@ -67,13 +62,6 @@
return seamProject;
}
- /**
- * This empty test is meaningful as it gives Eclipse opportunity
- * to pass for the first time setUp() and show the license dialog
- * that may cause InterruptedException for XJob.waitForJob()
- */
- public void testCreatingProject() {
- }
public void testComponentsValidator() {
ISeamProject seamProject = getSeamProject(project);
@@ -97,7 +85,6 @@
IFile bbcComponentFile2 = project.getFile("src/action/org/domain/SeamWebWarTestProject/session/BbcComponent.2");
try{
bbcComponentFile.setContents(bbcComponentFile2.getContents(), true, false, new NullProgressMonitor());
- bbcComponentFile.touch(new NullProgressMonitor());
}catch(Exception ex){
JUnitUtils.fail("Error in changing 'BbcComponent.java' content to " +
"'BbcComponent.2'", ex);
@@ -106,7 +93,7 @@
refreshProject(project);
number = getMarkersNumber(bbcComponentFile);
- assertFalse("Problem marker 'Duplicate component name' not found", number == 0);
+ assertFalse("Problem marker 'Duplicate component name' not found", number == 0);
String[] messages = getMarkersMessage(bbcComponentFile);
@@ -122,7 +109,6 @@
IFile statefulComponentFile2 = project.getFile("src/action/org/domain/SeamWebWarTestProject/session/StatefulComponent.2");
try{
statefulComponentFile.setContents(statefulComponentFile2.getContents(), true, false, new NullProgressMonitor());
- statefulComponentFile.touch(new NullProgressMonitor());
}catch(Exception ex){
JUnitUtils.fail("Error in changing 'StatefulComponent.java' content to " +
"'StatefulComponent.2'", ex);
@@ -146,7 +132,6 @@
IFile statefulComponentFile3 = project.getFile("src/action/org/domain/SeamWebWarTestProject/session/StatefulComponent.3");
try{
statefulComponentFile.setContents(statefulComponentFile3.getContents(), true, false, new NullProgressMonitor());
- statefulComponentFile.touch(new NullProgressMonitor());
}catch(Exception ex){
JUnitUtils.fail("Error in changing 'StatefulComponent.java' content to " +
"'StatefulComponent.3'", ex);
@@ -170,7 +155,6 @@
IFile statefulComponentFile4 = project.getFile("src/action/org/domain/SeamWebWarTestProject/session/StatefulComponent.4");
try{
statefulComponentFile.setContents(statefulComponentFile4.getContents(), true, false, new NullProgressMonitor());
- statefulComponentFile.touch(new NullProgressMonitor());
}catch(Exception ex){
JUnitUtils.fail("Error in changing 'StatefulComponent.java' content to " +
"'StatefulComponent.4'", ex);
@@ -195,7 +179,6 @@
try{
componentsFile.setContents(componentsFile2.getContents(), true, false, new NullProgressMonitor());
- componentsFile.touch(new NullProgressMonitor());
}catch(Exception ex){
JUnitUtils.fail("Error in changing 'components.xml' content to " +
"'components.2'", ex);
@@ -220,7 +203,6 @@
try{
componentsFile.setContents(componentsFile3.getContents(), true, false, new NullProgressMonitor());
- componentsFile.touch(new NullProgressMonitor());
}catch(Exception ex){
JUnitUtils.fail("Error in changing 'components.xml' content to " +
"'components.3'", ex);
@@ -230,7 +212,6 @@
try{
statefulComponentFile.setContents(statefulComponentFile5.getContents(), true, false, new NullProgressMonitor());
- statefulComponentFile.touch(new NullProgressMonitor());
}catch(Exception ex){
JUnitUtils.fail("Error in changing 'StatefulComponent.java' content to " +
"'StatefulComponent.5'", ex);
@@ -252,7 +233,6 @@
IFile bbcComponentFile3 = project.getFile("src/action/org/domain/SeamWebWarTestProject/session/BbcComponent.3");
try{
bbcComponentFile.setContents(bbcComponentFile3.getContents(), true, false, new NullProgressMonitor());
- bbcComponentFile.touch(new NullProgressMonitor());
}catch(Exception ex){
JUnitUtils.fail("Error in changing 'BbcComponent.java' content to " +
"'BbcComponent.3'", ex);
@@ -273,7 +253,6 @@
IFile abcEntityFile2 = project.getFile("src/action/org/domain/SeamWebWarTestProject/entity/abcEntity.2");
try{
abcEntityFile.setContents(abcEntityFile2.getContents(), true, false, new NullProgressMonitor());
- abcEntityFile.touch(new NullProgressMonitor());
}catch(Exception ex){
JUnitUtils.fail("Error in changing 'abcEntity.java' content to " +
"'abcEntity.2'", ex);
@@ -297,7 +276,6 @@
IFile abcEntityFile3 = project.getFile("src/action/org/domain/SeamWebWarTestProject/entity/abcEntity.3");
try{
abcEntityFile.setContents(abcEntityFile3.getContents(), true, false, new NullProgressMonitor());
- abcEntityFile.touch(new NullProgressMonitor());
}catch(Exception ex){
JUnitUtils.fail("Error in changing 'abcEntity.java' content to " +
"'abcEntity.3'", ex);
@@ -340,7 +318,6 @@
IFile statefulComponentFile6 = project.getFile("src/action/org/domain/SeamWebWarTestProject/session/StatefulComponent.6");
try{
statefulComponentFile.setContents(statefulComponentFile6.getContents(), true, false, new NullProgressMonitor());
- statefulComponentFile.touch(new NullProgressMonitor());
}catch(Exception ex){
JUnitUtils.fail("Error in changing 'StatefulComponent.java' content to " +
"'StatefulComponent.6'", ex);
@@ -373,7 +350,6 @@
IFile statefulComponentFile7 = project.getFile("src/action/org/domain/SeamWebWarTestProject/session/StatefulComponent.7");
try{
statefulComponentFile.setContents(statefulComponentFile7.getContents(), true, false, new NullProgressMonitor());
- statefulComponentFile.touch(new NullProgressMonitor());
}catch(Exception ex){
JUnitUtils.fail("Error in changing 'StatefulComponent.java' content to " +
"'StatefulComponent.7'", ex);
@@ -406,7 +382,6 @@
IFile statefulComponentFile8 = project.getFile("src/action/org/domain/SeamWebWarTestProject/session/StatefulComponent.8");
try{
statefulComponentFile.setContents(statefulComponentFile8.getContents(), true, false, new NullProgressMonitor());
- statefulComponentFile.touch(new NullProgressMonitor());
}catch(Exception ex){
JUnitUtils.fail("Error in changing 'StatefulComponent.java' content to " +
"'StatefulComponent.8'", ex);
@@ -440,7 +415,6 @@
try{
componentsFile.setContents(componentsFile4.getContents(), true, false, new NullProgressMonitor());
- componentsFile.touch(new NullProgressMonitor());
}catch(Exception ex){
JUnitUtils.fail("Error in changing 'components.xml' content to " +
"'components.4'", ex);
@@ -448,7 +422,6 @@
IFile statefulComponentFile9 = project.getFile("src/action/org/domain/SeamWebWarTestProject/session/StatefulComponent.9");
try{
statefulComponentFile.setContents(statefulComponentFile9.getContents(), true, false, new NullProgressMonitor());
- statefulComponentFile.touch(new NullProgressMonitor());
}catch(Exception ex){
JUnitUtils.fail("Error in changing 'StatefulComponent.java' content to " +
"'StatefulComponent.9'", ex);
@@ -472,7 +445,6 @@
IFile statefulComponentFile10 = project.getFile("src/action/org/domain/SeamWebWarTestProject/session/StatefulComponent.10");
try{
statefulComponentFile.setContents(statefulComponentFile10.getContents(), true, false, new NullProgressMonitor());
- statefulComponentFile.touch(new NullProgressMonitor());
}catch(Exception ex){
JUnitUtils.fail("Error in changing 'StatefulComponent.java' content to " +
"'StatefulComponent.10'", ex);
@@ -496,7 +468,6 @@
IFile statefulComponentFile11 = project.getFile("src/action/org/domain/SeamWebWarTestProject/session/StatefulComponent.11");
try{
statefulComponentFile.setContents(statefulComponentFile11.getContents(), true, false, new NullProgressMonitor());
- statefulComponentFile.touch(new NullProgressMonitor());
}catch(Exception ex){
JUnitUtils.fail("Error in changing 'StatefulComponent.java' content to " +
"'StatefulComponent.11'", ex);
@@ -520,7 +491,6 @@
IFile statefulComponentFile12 = project.getFile("src/action/org/domain/SeamWebWarTestProject/session/StatefulComponent.12");
try{
statefulComponentFile.setContents(statefulComponentFile12.getContents(), true, false, new NullProgressMonitor());
- statefulComponentFile.touch(new NullProgressMonitor());
}catch(Exception ex){
JUnitUtils.fail("Error in changing 'StatefulComponent.java' content to " +
"'StatefulComponent.12'", ex);
@@ -555,7 +525,6 @@
IFile Component12File2 = project.getFile("src/action/org/domain/SeamWebWarTestProject/session/Component12.2");
try{
Component12File.setContents(Component12File2.getContents(), true, false, new NullProgressMonitor());
- Component12File.touch(new NullProgressMonitor());
}catch(Exception ex){
JUnitUtils.fail("Error in changing 'Component12File2.java' content to " +
"'Component12File2.2'", ex);
@@ -595,7 +564,6 @@
IFile selectionTestFile2 = project.getFile("src/action/org/domain/SeamWebWarTestProject/session/SelectionTest.2");
try{
selectionTestFile.setContents(selectionTestFile2.getContents(), true, false, new NullProgressMonitor());
- selectionTestFile.touch(new NullProgressMonitor());
}catch(Exception ex){
JUnitUtils.fail("Error in changing 'SelectionTest.java' content to " +
"'SelectionTest.2'", ex);
@@ -604,7 +572,6 @@
IFile selectionIndexTestFile2 = project.getFile("src/action/org/domain/SeamWebWarTestProject/session/SelectionIndexTest.2");
try{
selectionIndexTestFile.setContents(selectionIndexTestFile2.getContents(), true, false, new NullProgressMonitor());
- selectionIndexTestFile.touch(new NullProgressMonitor());
}catch(Exception ex){
JUnitUtils.fail("Error in changing 'SelectionIndexTest.java' content to " +
"'SelectionIndexTest.2'", ex);
@@ -644,7 +611,6 @@
IFile selectionTestFile3 = project.getFile("src/action/org/domain/SeamWebWarTestProject/session/SelectionTest.3");
try{
selectionTestFile.setContents(selectionTestFile3.getContents(), true, false, new NullProgressMonitor());
- selectionTestFile.touch(new NullProgressMonitor());
}catch(Exception ex){
JUnitUtils.fail("Error in changing 'SelectionTest.java' content to " +
"'SelectionTest.3'", ex);
@@ -653,7 +619,6 @@
IFile selectionIndexTestFile3 = project.getFile("src/action/org/domain/SeamWebWarTestProject/session/SelectionIndexTest.3");
try{
selectionIndexTestFile.setContents(selectionIndexTestFile3.getContents(), true, false, new NullProgressMonitor());
- selectionIndexTestFile.touch(new NullProgressMonitor());
}catch(Exception ex){
JUnitUtils.fail("Error in changing 'SelectionIndexTest.java' content to " +
"'SelectionIndexTest.3'", ex);
@@ -702,7 +667,6 @@
IFile contextVariableTestFile2 = project.getFile("src/action/org/domain/SeamWebWarTestProject/session/ContextVariableTest.2");
try{
contextVariableTestFile.setContents(contextVariableTestFile2.getContents(), true, false, new NullProgressMonitor());
- contextVariableTestFile.touch(new NullProgressMonitor());
}catch(Exception ex){
JUnitUtils.fail("Error in changing 'ContextVariableTest.java' content to " +
"'ContextVariableTest.2'", ex);
@@ -728,7 +692,6 @@
IFile contextVariableTestFile3 = project.getFile("src/action/org/domain/SeamWebWarTestProject/session/ContextVariableTest.3");
try{
contextVariableTestFile.setContents(contextVariableTestFile3.getContents(), true, false, new NullProgressMonitor());
- contextVariableTestFile.touch(new NullProgressMonitor());
}catch(Exception ex){
JUnitUtils.fail("Error in changing 'ContextVariableTest.java' content to " +
"'ContextVariableTest.3'", ex);
@@ -775,7 +738,6 @@
IFile abcComponentXHTMLFile2 = project.getFile("WebContent/abcComponent.2");
try{
abcComponentXHTMLFile.setContents(abcComponentXHTMLFile2.getContents(), true, false, new NullProgressMonitor());
- abcComponentXHTMLFile.touch(new NullProgressMonitor());
}catch(Exception ex){
JUnitUtils.fail("Error in changing 'abcComponent.xhtml' content to " +
"'abcComponent.2'", ex);
@@ -800,7 +762,6 @@
IFile abcComponentXHTMLFile3 = project.getFile("WebContent/abcComponent.3");
try{
abcComponentXHTMLFile.setContents(abcComponentXHTMLFile3.getContents(), true, false, new NullProgressMonitor());
- abcComponentXHTMLFile.touch(new NullProgressMonitor());
}catch(Exception ex){
JUnitUtils.fail("Error in changing 'abcComponent.xhtml' content to " +
"'abcComponent.3'", ex);
@@ -825,7 +786,6 @@
IFile abcComponentXHTMLFile4 = project.getFile("WebContent/abcComponent.4");
try{
abcComponentXHTMLFile.setContents(abcComponentXHTMLFile4.getContents(), true, false, new NullProgressMonitor());
- abcComponentXHTMLFile.touch(new NullProgressMonitor());
}catch(Exception ex){
JUnitUtils.fail("Error in changing 'abcComponent.xhtml' content to " +
"'abcComponent.4'", ex);
@@ -839,7 +799,6 @@
IFile abcComponentFile2 = project.getFile("src/action/org/domain/SeamWebWarTestProject/session/AbcComponent.2");
try{
abcComponentFile.setContents(abcComponentFile2.getContents(), true, false, new NullProgressMonitor());
- abcComponentFile.touch(new NullProgressMonitor());
}catch(Exception ex){
JUnitUtils.fail("Error in changing 'abcComponent.java' content to " +
"'abcComponent.2'", ex);
@@ -861,7 +820,6 @@
IFile abcComponentFile3 = project.getFile("src/action/org/domain/SeamWebWarTestProject/session/AbcComponent.3");
try{
abcComponentFile.setContents(abcComponentFile3.getContents(), true, false, new NullProgressMonitor());
- abcComponentFile.touch(new NullProgressMonitor());
}catch(Exception ex){
JUnitUtils.fail("Error in changing 'abcComponent.java' content to " +
"'abcComponent.3'", ex);
@@ -947,77 +905,13 @@
}
private void refreshProject(IProject project){
- long timestamp = project.getModificationStamp();
- int count = 1;
- while(true){
- System.out.println("Refresh project "+count);
- try {
- project.refreshLocal(IResource.DEPTH_INFINITE, new NullProgressMonitor());
- try {
waitForJob();
- } catch (InterruptedException e) {
- JUnitUtils.fail(e.getMessage(),e);
- }
- } catch (Exception e) {
- JUnitUtils.fail("Cannot build test Project", e);
- break;
- }
- if(project.getModificationStamp() != timestamp) break;
- count++;
- if(count > 1) break;
- }
}
- public static void waitForJob() throws InterruptedException {
- Object[] o = {
- XJob.FAMILY_XJOB, ResourcesPlugin.FAMILY_AUTO_REFRESH, ResourcesPlugin.FAMILY_AUTO_BUILD
- };
- while(true) {
- boolean stop = true;
- for (int i = 0; i < o.length; i++) {
- Job[] js = Job.getJobManager().find(o[i]);
- if(js != null && js.length > 0) {
- Job.getJobManager().join(o[i], new NullProgressMonitor());
- stop = false;
- }
- }
- if(stop) {
- Job running = getJobRunning(10);
- if(running != null) {
- running.join();
- stop = false;
- }
- }
- if(stop) break;
- }
+ public static void waitForJob() {
+ EditorTestHelper.joinJobs(1000,10000,500);
+ //then wait for a while to Workspace runnable is finished
+ EditorTestHelper.joinJobs(2000, 2000, 0);
}
-
- public static Job getJobRunning(int iterationLimit) {
- Job[] js = Job.getJobManager().find(null);
- Job dm = null;
- if(js != null) for (int i = 0; i < js.length; i++) {
- if(js[i].getState() == Job.RUNNING && js[i].getThread() != Thread.currentThread()) {
- if(js[i] instanceof UIJob) continue;
- if(js[i].belongsTo(DecoratorManager.FAMILY_DECORATE) || js[i].getName().equals("Task List Saver")) {
- dm = js[i];
- continue;
- }
- //TODO keep watching
- System.out.println(js[i].getName());
- return js[i];
- }
- }
- if(dm != null) {
- try {
- Thread.sleep(1000);
- } catch (InterruptedException e) {
- //ignore
- }
- if(iterationLimit > 0)
- return getJobRunning(iterationLimit - 1);
- }
- return null;
-
- }
}
Added: trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/SeamValidatorsTestSetup.java
===================================================================
--- trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/SeamValidatorsTestSetup.java (rev 0)
+++ trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/SeamValidatorsTestSetup.java 2008-01-15 08:36:11 UTC (rev 5679)
@@ -0,0 +1,40 @@
+/**
+ *
+ */
+package org.jboss.tools.seam.core.test;
+
+import org.eclipse.core.resources.IProject;
+import org.eclipse.core.resources.ResourcesPlugin;
+import org.eclipse.core.runtime.NullProgressMonitor;
+import org.jboss.tools.test.util.ResourcesUtils;
+import org.jboss.tools.test.util.xpl.EditorTestHelper;
+
+import junit.extensions.TestSetup;
+import junit.framework.Test;
+
+/**
+ * @author dgolovin
+ *
+ */
+public class SeamValidatorsTestSetup extends TestSetup {
+
+ public SeamValidatorsTestSetup(Test test) {
+ super(test);
+ }
+
+ @Override
+ protected void setUp() throws Exception {
+ ResourcesUtils.importProject("org.jboss.tools.seam.core.test","projects/SeamWebWarTestProject" , new NullProgressMonitor());
+ EditorTestHelper.joinBackgroundActivities();
+ }
+
+ @Override
+ protected void tearDown() throws Exception {
+ EditorTestHelper.joinBackgroundActivities();
+ IProject project = ResourcesPlugin.getWorkspace().getRoot().getProject("SeamWebWarTestProject");
+ if (project != null) {
+ project.delete(true, true, null);
+ }
+ }
+
+}
Property changes on: trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/SeamValidatorsTestSetup.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
16 years, 5 months
JBoss Tools SVN: r5677 - trunk/jsf/tests/org.jboss.tools.jsf.vpe.ui.test/src/org/jboss/tools/vpe/ui/test.
by jbosstools-commits@lists.jboss.org
Author: mareshkau
Date: 2008-01-14 14:58:59 -0500 (Mon, 14 Jan 2008)
New Revision: 5677
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.ui.test/src/org/jboss/tools/vpe/ui/test/VpeTest.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-1562, code adjustment
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.ui.test/src/org/jboss/tools/vpe/ui/test/VpeTest.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.ui.test/src/org/jboss/tools/vpe/ui/test/VpeTest.java 2008-01-14 19:53:30 UTC (rev 5676)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.ui.test/src/org/jboss/tools/vpe/ui/test/VpeTest.java 2008-01-14 19:58:59 UTC (rev 5677)
@@ -180,7 +180,7 @@
assertNotNull(editor);
TestUtil.waitForJobs();
- TestUtil.delay(100);
+ TestUtil.delay(1000);
PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage()
.closeAllEditors(true);
16 years, 5 months
JBoss Tools SVN: r5676 - trunk/jsf/tests/org.jboss.tools.jsf.vpe.ui.test/src/org/jboss/tools/vpe/ui/test.
by jbosstools-commits@lists.jboss.org
Author: mareshkau
Date: 2008-01-14 14:53:30 -0500 (Mon, 14 Jan 2008)
New Revision: 5676
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.ui.test/src/org/jboss/tools/vpe/ui/test/VpeTest.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-1628
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.ui.test/src/org/jboss/tools/vpe/ui/test/VpeTest.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.ui.test/src/org/jboss/tools/vpe/ui/test/VpeTest.java 2008-01-14 19:13:59 UTC (rev 5675)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.ui.test/src/org/jboss/tools/vpe/ui/test/VpeTest.java 2008-01-14 19:53:30 UTC (rev 5676)
@@ -20,6 +20,7 @@
import org.eclipse.ui.PartInitException;
import org.eclipse.ui.PlatformUI;
import org.eclipse.ui.part.FileEditorInput;
+import org.jboss.tools.common.model.util.ClassLoaderUtil;
import org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageEditor;
import org.jboss.tools.vpe.editor.VpeController;
import org.jboss.tools.vpe.editor.VpeEditorPart;
@@ -46,6 +47,12 @@
// check warning log
private Boolean checkWarning;
+ //FIX for JBIDE-1628
+ static {
+ ClassLoaderUtil.init();
+ //wait for initialization
+ TestUtil.delay(3000);
+ }
/**
*
* @param name
@@ -173,7 +180,7 @@
assertNotNull(editor);
TestUtil.waitForJobs();
- TestUtil.delay(1000);
+ TestUtil.delay(100);
PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage()
.closeAllEditors(true);
16 years, 5 months
JBoss Tools SVN: r5675 - trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template.
by jbosstools-commits@lists.jboss.org
Author: dsakovich
Date: 2008-01-14 14:13:59 -0500 (Mon, 14 Jan 2008)
New Revision: 5675
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesContextMenuTemplate.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-1581
Modified: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesContextMenuTemplate.java
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesContextMenuTemplate.java 2008-01-14 19:11:29 UTC (rev 5674)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesContextMenuTemplate.java 2008-01-14 19:13:59 UTC (rev 5675)
@@ -45,11 +45,6 @@
"richFacesContextMenu");
Element sourceElement = (Element) sourceNode;
- nsIDOMElement parentDiv = visualDocument
- .createElement(HtmlComponentUtil.HTML_TAG_DIV);
-
- parentDiv.setAttribute(HtmlComponentUtil.HTML_CLASS_ATTR,
- "dr-menu-list-border");
nsIDOMElement table = visualDocument
.createElement(HtmlComponentUtil.HTML_TAG_TABLE);
@@ -62,7 +57,6 @@
table.setAttribute(HtmlComponentUtil.HTML_STYLE_ATTR,
"background-image: url(file://" + path + "); " + DIV_STYLE);
- parentDiv.appendChild(table);
List<Node> listItems = ComponentUtil.getChildren(sourceElement, false);
for (Node node : listItems) {
@@ -71,7 +65,7 @@
table.appendChild(element);
}
- VpeCreationData creationData = new VpeCreationData(parentDiv);
+ VpeCreationData creationData = new VpeCreationData(table);
return creationData;
16 years, 5 months
JBoss Tools SVN: r5674 - trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/META-INF.
by jbosstools-commits@lists.jboss.org
Author: mareshkau
Date: 2008-01-14 14:11:29 -0500 (Mon, 14 Jan 2008)
New Revision: 5674
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/META-INF/MANIFEST.MF
Log:
http://jira.jboss.com/jira/browse/JBIDE-1562
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/META-INF/MANIFEST.MF
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/META-INF/MANIFEST.MF 2008-01-14 19:03:30 UTC (rev 5673)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/META-INF/MANIFEST.MF 2008-01-14 19:11:29 UTC (rev 5674)
@@ -1,7 +1,7 @@
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Richfaces Test Plug-in
-Bundle-SymbolicName: org.jboss.tools.jsf.vpe.richfaces.test
+Bundle-SymbolicName: org.jboss.tools.jsf.vpe.richfaces.test;singleton:=true
Bundle-Version: 1.0.0
Bundle-Activator: org.jboss.tools.jsf.vpe.richfaces.test.RichFacesTestPlugin
Require-Bundle: org.eclipse.ui,
16 years, 5 months