JBoss Tools SVN: r20934 - in trunk/jst/plugins/org.jboss.tools.jst.web: src/org/jboss/tools/jst/web/context and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2010-03-19 11:39:44 -0400 (Fri, 19 Mar 2010)
New Revision: 20934
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web/resources/meta/web.meta
trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/context/ImportWebProjectContext.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-5888
Modified: trunk/jst/plugins/org.jboss.tools.jst.web/resources/meta/web.meta
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.web/resources/meta/web.meta 2010-03-19 14:52:24 UTC (rev 20933)
+++ trunk/jst/plugins/org.jboss.tools.jst.web/resources/meta/web.meta 2010-03-19 15:39:44 UTC (rev 20934)
@@ -418,6 +418,7 @@
<value name="2.3"/>
<value name="2.4"/>
<value name="2.5"/>
+ <value name="3.0"/>
</Constraint>
<Editor name="List"/>
</XModelAttribute>
@@ -668,6 +669,7 @@
<value name="2.3"/>
<value name="2.4"/>
<value name="2.5"/>
+ <value name="3.0"/>
</Constraint>
<Editor name="List"/>
</XModelAttribute>
@@ -873,6 +875,7 @@
<value name="2.3"/>
<value name="2.4"/>
<value name="2.5"/>
+ <value name="3.0"/>
</Constraint>
<Editor name="List"/>
</XModelAttribute>
Modified: trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/context/ImportWebProjectContext.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/context/ImportWebProjectContext.java 2010-03-19 14:52:24 UTC (rev 20933)
+++ trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/context/ImportWebProjectContext.java 2010-03-19 15:39:44 UTC (rev 20934)
@@ -260,6 +260,7 @@
if("2.3".equals(servletVersion) && !entity.equals("FileWebApp")) return false; //$NON-NLS-1$ //$NON-NLS-2$
if("2.4".equals(servletVersion) && !entity.equals("FileWebApp24")) return false; //$NON-NLS-1$ //$NON-NLS-2$
if("2.5".equals(servletVersion) && !entity.equals("FileWebApp25")) return false; //$NON-NLS-1$ //$NON-NLS-2$
+ if("3.0".equals(servletVersion) && !entity.equals("FileWebApp30")) return false; //$NON-NLS-1$ //$NON-NLS-2$
return true;
}
@@ -272,6 +273,8 @@
convertWebXML("FileWebApp24", backup); //$NON-NLS-1$
} else if("2.5".equals(servletVersion) && !entity.equals("FileWebApp25")) { //$NON-NLS-1$ //$NON-NLS-2$
convertWebXML("FileWebApp25", backup); //$NON-NLS-1$
+ } else if("3.0".equals(servletVersion) && !entity.equals("FileWebApp30")) { //$NON-NLS-1$ //$NON-NLS-2$
+ convertWebXML("FileWebApp30", backup); //$NON-NLS-1$
}
}
@@ -291,10 +294,11 @@
String n = as[i].getName();
String xmlname = as[i].getXMLName();
if(xmlname == null || xmlname.length() == 0) continue;
+ if("version".equals(xmlname) || xmlname.startsWith("xmlns")) continue; //$NON-NLS-1$ //$NON-NLS-2$
XAttribute a = webxml.getModelEntity().getAttribute(n);
if(a == null) continue;
String v = webxml.getAttributeValue(n);
- if(v != null && !v.equals(a.getDefaultValue())) {
+ if(v != null && !v.equals(a.getDefaultValue()) && !v.equals(as[i].getDefaultValue())) {
newweb.setAttributeValue(n, v);
}
}
14 years, 6 months
JBoss Tools SVN: r20933 - in trunk/jst/plugins/org.jboss.tools.jst.web: src/org/jboss/tools/jst/web/webapp/model and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2010-03-19 10:52:24 -0400 (Fri, 19 Mar 2010)
New Revision: 20933
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web/resources/meta/webapp30.meta
trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/webapp/model/FileWebAppLoader.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-5975
Modified: trunk/jst/plugins/org.jboss.tools.jst.web/resources/meta/webapp30.meta
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.web/resources/meta/webapp30.meta 2010-03-19 14:51:18 UTC (rev 20932)
+++ trunk/jst/plugins/org.jboss.tools.jst.web/resources/meta/webapp30.meta 2010-03-19 14:52:24 UTC (rev 20933)
@@ -307,15 +307,7 @@
<XModelAttribute default="absolute ordering" loader="ElementType" name="element type">
<Editor name="Uneditable"/>
</XModelAttribute>
- <XModelAttribute PROPERTIES="save=always;id=true" name="name" xmlname="name.#text">
- <Constraint loader="ListString">
- <value name="doc"/>
- <value name="gif"/>
- <value name="html"/>
- <value name="txt"/>
- </Constraint>
- <Editor name="ListString"/>
- </XModelAttribute>
+ <XModelAttribute PROPERTIES="save=always;id=true" name="names" xmlname="names"/>
<XModelAttribute name="others" xmlname="others">
<Constraint loader="List">
<value name="true"/>
@@ -725,7 +717,7 @@
PROPERTIES="validator.add=true" WizardClassName="%Default%"
displayName="Absolute Ordering..." kind="action" name="CreateAbsoluteOrdering">
<EntityData EntityName="WebAppAbsoluteOrdering">
- <AttributeData AttributeName="name"/>
+ <AttributeData AttributeName="names"/>
<AttributeData AttributeName="others" Mandatory="no"/>
</EntityData>
</XActionItem>
Modified: trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/webapp/model/FileWebAppLoader.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/webapp/model/FileWebAppLoader.java 2010-03-19 14:51:18 UTC (rev 20932)
+++ trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/webapp/model/FileWebAppLoader.java 2010-03-19 14:52:24 UTC (rev 20933)
@@ -18,7 +18,6 @@
import org.jboss.tools.common.meta.*;
import org.jboss.tools.common.model.*;
-import org.jboss.tools.common.model.impl.XModelObjectImpl;
import org.jboss.tools.common.model.loaders.impl.SimpleWebFileLoader;
import org.jboss.tools.common.model.util.*;
import org.jboss.tools.common.xml.XMLUtilities;
@@ -53,6 +52,7 @@
} else if(entity.getName().startsWith("FileWebApp")) { //$NON-NLS-1$
children.add("distributable"); //$NON-NLS-1$
} else if(entity.getName().startsWith("WebAppAbsoluteOrdering")) { //$NON-NLS-1$
+ children.add("name"); //$NON-NLS-1$
children.add("others"); //$NON-NLS-1$
} else if(entity.getName().equals("WebAppSessionConfig30")) { //$NON-NLS-1$
children.add("tracking-mode"); //$NON-NLS-1$
@@ -76,6 +76,8 @@
return (XMLUtil.getUniqueChild(element, "others") != null) ? "true" : "false"; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
if("role-names".equals(xmlname)) //$NON-NLS-1$
return loadArray(element, "role-name"); //$NON-NLS-1$
+ if("names".equals(xmlname)) //$NON-NLS-1$
+ return loadArray(element, "name"); //$NON-NLS-1$
if("url-patterns".equals(xmlname)) //$NON-NLS-1$
return loadArray(element, "url-pattern"); //$NON-NLS-1$
if("http-methods".equals(xmlname)) //$NON-NLS-1$
@@ -124,6 +126,8 @@
if("true".equals(value)) XMLUtil.createElement(element, "others"); //$NON-NLS-1$ //$NON-NLS-2$
} else if("role-names".equals(xmlname)) { //$NON-NLS-1$
saveArray(element, "role-name", value); //$NON-NLS-1$
+ } else if("names".equals(xmlname)) { //$NON-NLS-1$
+ saveArray(element, "name", value); //$NON-NLS-1$
} else if("url-patterns".equals(xmlname)) { //$NON-NLS-1$
saveArray(element, "url-pattern", value); //$NON-NLS-1$
} else if("http-methods".equals(xmlname)) { //$NON-NLS-1$
@@ -300,11 +304,11 @@
boolean needToSave(XModelObject o) {
if(o == null) return false;
String entity = o.getModelEntity().getName();
- if("WebAppSessionConfig".equals(entity) || "WebAppLoginConfig".equals(entity)) { //$NON-NLS-1$ //$NON-NLS-2$
+ if(entity.startsWith("WebAppSessionConfig") || "WebAppLoginConfig".equals(entity)) { //$NON-NLS-1$ //$NON-NLS-2$
return hasSetAttributes(o);
} else if("WebAppWelcomFileList".equals(entity) || "WebAppLocaleEncodingMappingList".equals(entity)) { //$NON-NLS-1$ //$NON-NLS-2$
return (o.getChildren().length > 0);
- } else if("WebAppJspConfig".equals(entity)) { //$NON-NLS-1$
+ } else if(entity.startsWith("WebAppJspConfig")) { //$NON-NLS-1$
return (o.getChildren().length > 0);
}
return true;
@@ -317,7 +321,7 @@
// it would be more safe to check isSavable
if(xml == null || xml.length() == 0 || "NAME".equals(xml)) continue; //$NON-NLS-1$
String v = o.getAttributeValue(as[i].getName());
- if(v != null && v.length() > 0) return true;
+ if(v != null && v.length() > 0 && !v.equals(as[i].getDefaultValue())) return true;
}
String finalComment = o.get("#final-comment"); //$NON-NLS-1$
if(finalComment != null && finalComment.length() > 0) return true;
14 years, 6 months
JBoss Tools SVN: r20932 - in trunk/jsf/tests/org.jboss.tools.jsf.test: projects/JSFKickStartOldFormat/WebContent/WEB-INF and 1 other directories.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2010-03-19 10:51:18 -0400 (Fri, 19 Mar 2010)
New Revision: 20932
Added:
trunk/jsf/tests/org.jboss.tools.jsf.test/projects/JSFKickStartOldFormat/WebContent/WEB-INF/web30.xml
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.test/projects/JSFKickStartOldFormat/testCases.xml
trunk/jsf/tests/org.jboss.tools.jsf.test/src/org/jboss/tools/jsf/test/JSFModelTest.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-5975
Added: trunk/jsf/tests/org.jboss.tools.jsf.test/projects/JSFKickStartOldFormat/WebContent/WEB-INF/web30.xml
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.test/projects/JSFKickStartOldFormat/WebContent/WEB-INF/web30.xml (rev 0)
+++ trunk/jsf/tests/org.jboss.tools.jsf.test/projects/JSFKickStartOldFormat/WebContent/WEB-INF/web30.xml 2010-03-19 14:51:18 UTC (rev 20932)
@@ -0,0 +1,476 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
+ metadata-complete="false">
+
+ <description>Web Descriptor</description>
+ <display-name>MyWeb</display-name>
+
+ <icon>
+ <small-icon>/small.gif</small-icon>
+ <large-icon>/large.gif</large-icon>
+ </icon>
+
+ <distributable/>
+
+ <module-name>myModule</module-name>
+
+ <absolute-ordering>
+ <name>name1</name>
+ <name>name2</name>
+ <others/>
+ </absolute-ordering>
+
+ <context-param>
+ <description>param 1 description</description>
+ <param-name>param_1</param-name>
+ <param-value>value_1</param-value>
+ </context-param>
+ <context-param>
+ <description>param 2 description</description>
+ <param-name>param_2</param-name>
+ <param-value>value_2</param-value>
+ </context-param>
+
+ <data-source>
+ <description>data source description</description>
+ <name>dataSourceName</name>
+ <class-name>data.source.ClassName</class-name>
+ <server-name>serverName</server-name>
+ <port-number>1</port-number>
+ <database-name>dbName</database-name>
+ <url>jdbc:a:b</url>
+ <user>user</user>
+ <password>password</password>
+ <property>
+ <name>property_1</name>
+ <value>property 1 value</value>
+ </property>
+ <property>
+ <name>property_2</name>
+ <value>property 2 value</value>
+ </property>
+ <login-timeout>2</login-timeout>
+ <transactional>false</transactional>
+ <isolation-level>TRANSACTION_READ_UNCOMMITTED</isolation-level>
+ <initial-pool-size>1</initial-pool-size>
+ <max-pool-size>30</max-pool-size>
+ <min-pool-size>10</min-pool-size>
+ <max-idle-time>100</max-idle-time>
+ <max-statements>10</max-statements>
+ </data-source>
+
+ <filter>
+ <description>filter description</description>
+ <display-name>My Filter</display-name>
+ <icon>
+ <small-icon>/small.gif</small-icon>
+ <large-icon>/large.gif</large-icon>
+ </icon>
+ <filter-name>myFilter</filter-name>
+ <filter-class>x.MyFilter</filter-class>
+ <async-supported>true</async-supported>
+ <init-param>
+ <description>param 1 description</description>
+ <param-name>initParam1</param-name>
+ <param-value>int param 1 value</param-value>
+ </init-param>
+ <init-param>
+ <description>param 2 description</description>
+ <param-name>initParam2</param-name>
+ <param-value>int param 2 value</param-value>
+ </init-param>
+ </filter>
+
+ <filter-mapping>
+ <filter-name>myFilter</filter-name>
+ <servlet-name>myServlet</servlet-name>
+ <url-pattern>*.jsp</url-pattern>
+ <dispatcher>ASYNC</dispatcher>
+ <dispatcher>ERROR</dispatcher>
+ </filter-mapping>
+
+ <listener>
+ <description>listener description</description>
+ <display-name>My Listener</display-name>
+ <icon>
+ <small-icon>/small.gif</small-icon>
+ <large-icon>/large.gif</large-icon>
+ </icon>
+ <listener-class>x.MyListener</listener-class>
+ </listener>
+
+ <mime-mapping>
+ <extension>xml</extension>
+ <mime-type>mmm/hhh</mime-type>
+ </mime-mapping>
+
+ <error-page>
+ <error-code>400</error-code>
+ <location>/error1.jsp</location>
+ </error-page>
+ <error-page>
+ <exception-type>java.lang.Exception</exception-type>
+ <location>/error2.jsp</location>
+ </error-page>
+
+ <jsp-config>
+ <taglib>
+ <taglib-uri>http://mytaglib</taglib-uri>
+ <taglib-location>mytaglip.tld</taglib-location>
+ </taglib>
+ <jsp-property-group>
+ <description>JSP property group description</description>
+ <display-name>JSP Property Group</display-name>
+ <icon>
+ <small-icon>/small.gif</small-icon>
+ <large-icon>/large.gif</large-icon>
+ </icon>
+ <url-pattern>*.jsp</url-pattern>
+ <el-ignored>true</el-ignored>
+ <page-encoding>UTF-8</page-encoding>
+ <scripting-invalid>true</scripting-invalid>
+ <is-xml>true</is-xml>
+ <include-prelude>prelude</include-prelude>
+ <include-coda>coda</include-coda>
+ <deferred-syntax-allowed-as-literal>true</deferred-syntax-allowed-as-literal>
+ <trim-directive-whitespaces>true</trim-directive-whitespaces>
+ <default-content-type>html</default-content-type>
+ <buffer>buffer</buffer>
+ <error-on-undeclared-namespace>true</error-on-undeclared-namespace>
+ </jsp-property-group>
+ </jsp-config>
+
+ <security-constraint>
+ <display-name>MySecurityConstraint</display-name>
+ <web-resource-collection>
+ <web-resource-name>webResource1</web-resource-name>
+ <description>web resource collection 1 description</description>
+ <url-pattern>*.jsp</url-pattern>
+ <url-pattern>*.html</url-pattern>
+ <http-method>m1</http-method>
+ <http-method>m2</http-method>
+ </web-resource-collection>
+ <web-resource-collection>
+ <web-resource-name>webResource2</web-resource-name>
+ <description>web resource collection 2 description</description>
+ <url-pattern>*.jsp</url-pattern>
+ <url-pattern>*.html</url-pattern>
+ <http-method-omission>m3</http-method-omission>
+ <http-method-omission>m4</http-method-omission>
+ </web-resource-collection>
+ <auth-constraint>
+ <description>auth constraint description</description>
+ <role-name>role1</role-name>
+ <role-name>role2</role-name>
+ </auth-constraint>
+ <user-data-constraint>
+ <description>user data constraint description</description>
+ <transport-guarantee>CONFIDENTIAL</transport-guarantee>
+ </user-data-constraint>
+ </security-constraint>
+
+ <login-config>
+ <auth-method>xxx</auth-method>
+ <realm-name>realm</realm-name>
+ <form-login-config>
+ <form-login-page>/page.jsp</form-login-page>
+ <form-error-page>/error.jsp</form-error-page>
+ </form-login-config>
+ </login-config>
+
+ <security-role>
+ <description>role 1 description</description>
+ <role-name>role1</role-name>
+ </security-role>
+ <security-role>
+ <description>role 2 description</description>
+ <role-name>role2</role-name>
+ </security-role>
+
+ <env-entry>
+ <description>ENV entry description</description>
+ <env-entry-name>ENVEntry</env-entry-name>
+ <env-entry-type>envEntryType</env-entry-type>
+ <env-entry-value>envEntryValue</env-entry-value>
+ <mapped-name>mappedName</mapped-name>
+ <injection-target>
+ <injection-target-class>x.InjectionTarget</injection-target-class>
+ <injection-target-name>myInjectionJarget</injection-target-name>
+ </injection-target>
+ <lookup-name>lookupName</lookup-name>
+ </env-entry>
+
+ <ejb-local-ref>
+ <description>EJB local ref description</description>
+ <ejb-ref-name>EJBLocalRef</ejb-ref-name>
+ <ejb-ref-type>Entity</ejb-ref-type>
+ <local-home>localHome</local-home>
+ <local>x.Local</local>
+ <ejb-link>link2</ejb-link>
+ <mapped-name>mappedName</mapped-name>
+ <injection-target>
+ <injection-target-class>x.InjectionTarget</injection-target-class>
+ <injection-target-name>myInjectionJarget</injection-target-name>
+ </injection-target>
+ <lookup-name>lookupName</lookup-name>
+ </ejb-local-ref>
+
+ <ejb-ref>
+ <description>EJB ref description</description>
+ <ejb-ref-name>EJBRef</ejb-ref-name>
+ <ejb-ref-type>Session</ejb-ref-type>
+ <home>home</home>
+ <remote>x.Remote</remote>
+ <ejb-link>link3</ejb-link>
+ <mapped-name>mappedName</mapped-name>
+ <injection-target>
+ <injection-target-class>x.InjectionTarget</injection-target-class>
+ <injection-target-name>myInjectionJarget</injection-target-name>
+ </injection-target>
+ <lookup-name>lookupName</lookup-name>
+ </ejb-ref>
+
+ <service-ref>
+ <description>service ref description</description>
+ <display-name>My Service Ref</display-name>
+ <icon>
+ <small-icon>/small.gif</small-icon>
+ <large-icon>/large.gif</large-icon>
+ </icon>
+ <service-ref-name>myServiceRef</service-ref-name>
+ <service-interface>x.Service</service-interface>
+ <jaxrpc-mapping-file>/a.txt</jaxrpc-mapping-file>
+ <port-component-ref>
+ <service-endpoint-interface>x.ServiceEndpoint</service-endpoint-interface>
+ <enable-mtom>true</enable-mtom>
+ <mtom-threshold>7</mtom-threshold>
+ <addressing>
+ <enabled>true</enabled>
+ <required>true</required>
+ <responses>ALL</responses>
+ </addressing>
+ <respect-binding>
+ <enabled>true</enabled>
+ </respect-binding>
+ <port-component-link>link4</port-component-link>
+ </port-component-ref>
+ <handler>
+ <description>handler descrription</description>
+ <display-name>My Handler</display-name>
+ <icon>
+ <small-icon>/small.gif</small-icon>
+ <large-icon>/large.gif</large-icon>
+ </icon>
+ <handler-name>myHandler</handler-name>
+ <handler-class>x.MyHandler</handler-class>
+ <init-param>
+ <description>param description</description>
+ <param-name>param</param-name>
+ <param-value>value</param-value>
+ </init-param>
+ <soap-header>header1</soap-header>
+ <soap-header>header2</soap-header>
+ <soap-role>role1</soap-role>
+ <soap-role>role2</soap-role>
+ <port-name>port1</port-name>
+ <port-name>port2</port-name>
+ </handler>
+ </service-ref>
+
+ <resource-env-ref>
+ <description>resource env ref description</description>
+ <resource-env-ref-name>myResourceEnvRef</resource-env-ref-name>
+ <resource-env-ref-type>type</resource-env-ref-type>
+ <mapped-name>mappedName</mapped-name>
+ <injection-target>
+ <injection-target-class>x.InjectionTarget</injection-target-class>
+ <injection-target-name>myInjectionJarget</injection-target-name>
+ </injection-target>
+ <lookup-name>lookupName</lookup-name>
+ </resource-env-ref>
+
+ <resource-ref>
+ <description>resource ref description</description>
+ <res-ref-name>myResourceRef</res-ref-name>
+ <res-type>type</res-type>
+ <res-auth>Application</res-auth>
+ <res-sharing-scope>Shareable</res-sharing-scope>
+ <mapped-name>mappedName</mapped-name>
+ <injection-target>
+ <injection-target-class>x.InjectionTarget</injection-target-class>
+ <injection-target-name>myInjectionJarget</injection-target-name>
+ </injection-target>
+ <lookup-name>lookupName</lookup-name>
+ </resource-ref>
+
+ <message-destination-ref>
+ <description>message destination ref description</description>
+ <message-destination-ref-name>myMessageDestinationRef</message-destination-ref-name>
+ <message-destination-type>type</message-destination-type>
+ <message-destination-usage>Consumes</message-destination-usage>
+ <message-destination-link>link5</message-destination-link>
+ <mapped-name>mappedName</mapped-name>
+ <injection-target>
+ <injection-target-class>x.InjectionTarget</injection-target-class>
+ <injection-target-name>myInjectionJarget</injection-target-name>
+ </injection-target>
+ <lookup-name>lookupName</lookup-name>
+ </message-destination-ref>
+
+ <message-destination>
+ <description>message destination description</description>
+ <display-name>MyMessageDestination</display-name>
+ <icon>
+ <small-icon>/small.gif</small-icon>
+ <large-icon>/large.gif</large-icon>
+ </icon>
+ <message-destination-name>myMessageDestination</message-destination-name>
+ <mapped-name>mappedName</mapped-name>
+ <lookup-name>lookupName</lookup-name>
+ </message-destination>
+ <locale-encoding-mapping-list>
+ <locale-encoding-mapping>
+ <locale>en</locale>
+ <encoding>UTF-8</encoding>
+ </locale-encoding-mapping>
+ <locale-encoding-mapping>
+ <locale>de</locale>
+ <encoding>UTF-8</encoding>
+ </locale-encoding-mapping>
+ </locale-encoding-mapping-list>
+
+ <persistence-context-ref>
+ <description>persistence context ref description</description>
+ <persistence-context-ref-name>myPersistenceContextRef</persistence-context-ref-name>
+ <persistence-unit-name>unit</persistence-unit-name>
+ <persistence-context-type>Extended</persistence-context-type>
+ <persistence-property>
+ <name>property_1</name>
+ <value>property 1 value</value>
+ </persistence-property>
+ <persistence-property>
+ <name>property_2</name>
+ <value>property 2 value</value>
+ </persistence-property>
+ <mapped-name>mappedName</mapped-name>
+ <injection-target>
+ <injection-target-class>x.InjectionTarget</injection-target-class>
+ <injection-target-name>myInjectionJarget</injection-target-name>
+ </injection-target>
+ </persistence-context-ref>
+
+ <persistence-unit-ref>
+ <description>persistence unit ref description</description>
+ <persistence-unit-ref-name>myPersistenceUnitRef</persistence-unit-ref-name>
+ <persistence-unit-name>unit</persistence-unit-name>
+ <mapped-name>mappedName</mapped-name>
+ <injection-target>
+ <injection-target-class>x.InjectionTarget</injection-target-class>
+ <injection-target-name>myInjectionJarget</injection-target-name>
+ </injection-target>
+ </persistence-unit-ref>
+
+ <post-construct>
+ <lifecycle-callback-class>x.LifecycleCallbackClass</lifecycle-callback-class>
+ <lifecycle-callback-method>construct</lifecycle-callback-method>
+ </post-construct>
+
+ <pre-destroy>
+ <lifecycle-callback-class>x.LifecycleCallbackClass</lifecycle-callback-class>
+ <lifecycle-callback-method>destroy</lifecycle-callback-method>
+ </pre-destroy>
+
+ <servlet>
+ <description>sevlet description</description>
+ <display-name>My Servlet</display-name>
+ <icon>
+ <small-icon>/small.gif</small-icon>
+ <large-icon>/large.gif</large-icon>
+ </icon>
+ <servlet-name>myServlet</servlet-name>
+ <servlet-class>x.MyServlet</servlet-class>
+ <init-param>
+ <description>param description</description>
+ <param-name>param</param-name>
+ <param-value>value</param-value>
+ </init-param>
+ <load-on-startup>2</load-on-startup>
+ <enabled>true</enabled>
+ <async-supported>true</async-supported>
+ <run-as>
+ <description>run as description</description>
+ <role-name>role1</role-name>
+ </run-as>
+ <security-role-ref>
+ <description>security role ref description</description>
+ <role-name>role2</role-name>
+ <role-link>role2</role-link>
+ </security-role-ref>
+ <multipart-config>
+ <location>/a.xml</location>
+ <max-file-size>1000</max-file-size>
+ <max-request-size>100</max-request-size>
+ <file-size-threshold>1</file-size-threshold>
+ </multipart-config>
+ </servlet>
+
+ <servlet>
+ <description>sevlet description</description>
+ <display-name>My Servlet 2</display-name>
+ <icon>
+ <small-icon>/small.gif</small-icon>
+ <large-icon>/large.gif</large-icon>
+ </icon>
+ <servlet-name>myServlet2</servlet-name>
+ <jsp-file>/x.jsp</jsp-file>
+ <init-param>
+ <description>param description</description>
+ <param-name>param</param-name>
+ <param-value>value</param-value>
+ </init-param>
+ <load-on-startup>3</load-on-startup>
+ <enabled>false</enabled>
+ <async-supported>true</async-supported>
+ <run-as>
+ <description>run as description</description>
+ <role-name>role1</role-name>
+ </run-as>
+ <security-role-ref>
+ <description>security role ref description</description>
+ <role-name>role2</role-name>
+ <role-link>role2</role-link>
+ </security-role-ref>
+ <multipart-config>
+ <location>/a.xml</location>
+ <max-file-size>1000</max-file-size>
+ <max-request-size>100</max-request-size>
+ <file-size-threshold>1</file-size-threshold>
+ </multipart-config>
+ </servlet>
+
+ <servlet-mapping>
+ <servlet-name>myServlet</servlet-name>
+ <url-pattern>*.jsp</url-pattern>
+ </servlet-mapping>
+
+ <session-config>
+ <session-timeout>1</session-timeout>
+ <cookie-config>
+ <name>cookieConfig</name>
+ <domain>domain</domain>
+ <path>path</path>
+ <comment>comment</comment>
+ <http-only>true</http-only>
+ <secure>false</secure>
+ <max-age>3</max-age>
+ </cookie-config>
+ <tracking-mode>COOKIE</tracking-mode>
+ <tracking-mode>SSL</tracking-mode>
+ </session-config>
+
+ <welcome-file-list>
+ <welcome-file>/index.jsp</welcome-file>
+ <welcome-file>/hello.jsp</welcome-file>
+ </welcome-file-list>
+</web-app>
Property changes on: trunk/jsf/tests/org.jboss.tools.jsf.test/projects/JSFKickStartOldFormat/WebContent/WEB-INF/web30.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Modified: trunk/jsf/tests/org.jboss.tools.jsf.test/projects/JSFKickStartOldFormat/testCases.xml
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.test/projects/JSFKickStartOldFormat/testCases.xml 2010-03-19 14:18:28 UTC (rev 20931)
+++ trunk/jsf/tests/org.jboss.tools.jsf.test/projects/JSFKickStartOldFormat/testCases.xml 2010-03-19 14:51:18 UTC (rev 20932)
@@ -678,5 +678,296 @@
<test name="JSFModelTest:testPaths">
<property name="path" value="/faces-config-2.xml/Orderings/ordering/Before/n2"/>
</test>
+
+ <!-- Test Web Descriptor 3.0 -->
+ <!-- <web-app> -->
+ <test name="WebAppModelTest:testPaths:attribute">
+ <property name="path" value="/web30.xml"/>
+ <property name="attributeName" value="description"/>
+ <property name="attributeValue" value="Web Descriptor"/>
+ </test>
+ <test name="WebAppModelTest:testPaths:attribute">
+ <property name="path" value="/web30.xml"/>
+ <property name="attributeName" value="display-name"/>
+ <property name="attributeValue" value="MyWeb"/>
+ </test>
+ <test name="WebAppModelTest:testPaths:attribute">
+ <property name="path" value="/web30.xml"/>
+ <property name="attributeName" value="small-icon"/>
+ <property name="attributeValue" value="/small.gif"/>
+ </test>
+ <test name="WebAppModelTest:testPaths:attribute">
+ <property name="path" value="/web30.xml"/>
+ <property name="attributeName" value="large-icon"/>
+ <property name="attributeValue" value="/large.gif"/>
+ </test>
+ <test name="WebAppModelTest:testPaths:attribute">
+ <property name="path" value="/web30.xml"/>
+ <property name="attributeName" value="distributable"/>
+ <property name="attributeValue" value="yes"/>
+ </test>
+ <test name="WebAppModelTest:testPaths:attribute">
+ <property name="path" value="/web30.xml"/>
+ <property name="attributeName" value="module-name"/>
+ <property name="attributeValue" value="myModule"/>
+ </test>
+ <test name="WebAppModelTest:testPaths:attribute">
+ <property name="path" value="/web30.xml"/>
+ <property name="attributeName" value="metadata-complete"/>
+ <property name="attributeValue" value="false"/>
+ </test>
+ <!-- <absolute-ordering> -->
+ <test name="WebAppModelTest:testPaths:attribute">
+ <property name="path" value="/web30.xml/Absolute Orderings/name1,name2"/>
+ <property name="attributeName" value="names"/>
+ <property name="attributeValue" value="name1,name2"/>
+ </test>
+ <test name="WebAppModelTest:testPaths:attribute">
+ <property name="path" value="/web30.xml/Absolute Orderings/name1,name2"/>
+ <property name="attributeName" value="others"/>
+ <property name="attributeValue" value="true"/>
+ </test>
+
+ <!-- <context-param> -->
+ <test name="WebAppModelTest:testPaths:attribute">
+ <property name="path" value="/web30.xml/Context Params/param_1"/>
+ <property name="attributeName" value="param-name"/>
+ <property name="attributeValue" value="param_1"/>
+ </test>
+ <test name="WebAppModelTest:testPaths:attribute">
+ <property name="path" value="/web30.xml/Context Params/param_1"/>
+ <property name="attributeName" value="param-value"/>
+ <property name="attributeValue" value="value_1"/>
+ </test>
+
+ <!-- <data-source> -->
+ <test name="WebAppModelTest:testPaths:attribute">
+ <property name="path" value="/web30.xml/Data Sources/dataSourceName"/>
+ <property name="attributeName" value="name"/>
+ <property name="attributeValue" value="dataSourceName"/>
+ </test>
+ <test name="WebAppModelTest:testPaths:attribute">
+ <property name="path" value="/web30.xml/Data Sources/dataSourceName"/>
+ <property name="attributeName" value="description"/>
+ <property name="attributeValue" value="data source description"/>
+ </test>
+ <test name="WebAppModelTest:testPaths:attribute">
+ <property name="path" value="/web30.xml/Data Sources/dataSourceName"/>
+ <property name="attributeName" value="class-name"/>
+ <property name="attributeValue" value="data.source.ClassName"/>
+ </test>
+ <test name="WebAppModelTest:testPaths:attribute">
+ <property name="path" value="/web30.xml/Data Sources/dataSourceName"/>
+ <property name="attributeName" value="server-name"/>
+ <property name="attributeValue" value="serverName"/>
+ </test>
+ <test name="WebAppModelTest:testPaths:attribute">
+ <property name="path" value="/web30.xml/Data Sources/dataSourceName"/>
+ <property name="attributeName" value="port-number"/>
+ <property name="attributeValue" value="1"/>
+ </test>
+ <test name="WebAppModelTest:testPaths:attribute">
+ <property name="path" value="/web30.xml/Data Sources/dataSourceName"/>
+ <property name="attributeName" value="database-name"/>
+ <property name="attributeValue" value="dbName"/>
+ </test>
+ <test name="WebAppModelTest:testPaths:attribute">
+ <property name="path" value="/web30.xml/Data Sources/dataSourceName"/>
+ <property name="attributeName" value="url"/>
+ <property name="attributeValue" value="jdbc:a:b"/>
+ </test>
+ <test name="WebAppModelTest:testPaths:attribute">
+ <property name="path" value="/web30.xml/Data Sources/dataSourceName"/>
+ <property name="attributeName" value="user"/>
+ <property name="attributeValue" value="user"/>
+ </test>
+ <test name="WebAppModelTest:testPaths:attribute">
+ <property name="path" value="/web30.xml/Data Sources/dataSourceName"/>
+ <property name="attributeName" value="password"/>
+ <property name="attributeValue" value="password"/>
+ </test>
+ <test name="WebAppModelTest:testPaths:attribute">
+ <property name="path" value="/web30.xml/Data Sources/dataSourceName"/>
+ <property name="attributeName" value="login-timeout"/>
+ <property name="attributeValue" value="2"/>
+ </test>
+ <test name="WebAppModelTest:testPaths:attribute">
+ <property name="path" value="/web30.xml/Data Sources/dataSourceName"/>
+ <property name="attributeName" value="transactional"/>
+ <property name="attributeValue" value="false"/>
+ </test>
+ <test name="WebAppModelTest:testPaths:attribute">
+ <property name="path" value="/web30.xml/Data Sources/dataSourceName"/>
+ <property name="attributeName" value="isolation-level"/>
+ <property name="attributeValue" value="TRANSACTION_READ_UNCOMMITTED"/>
+ </test>
+ <test name="WebAppModelTest:testPaths:attribute">
+ <property name="path" value="/web30.xml/Data Sources/dataSourceName"/>
+ <property name="attributeName" value="initial-pool-size"/>
+ <property name="attributeValue" value="1"/>
+ </test>
+ <test name="WebAppModelTest:testPaths:attribute">
+ <property name="path" value="/web30.xml/Data Sources/dataSourceName"/>
+ <property name="attributeName" value="max-pool-size"/>
+ <property name="attributeValue" value="30"/>
+ </test>
+ <test name="WebAppModelTest:testPaths:attribute">
+ <property name="path" value="/web30.xml/Data Sources/dataSourceName"/>
+ <property name="attributeName" value="min-pool-size"/>
+ <property name="attributeValue" value="10"/>
+ </test>
+ <test name="WebAppModelTest:testPaths:attribute">
+ <property name="path" value="/web30.xml/Data Sources/dataSourceName"/>
+ <property name="attributeName" value="max-idle-time"/>
+ <property name="attributeValue" value="100"/>
+ </test>
+ <test name="WebAppModelTest:testPaths:attribute">
+ <property name="path" value="/web30.xml/Data Sources/dataSourceName"/>
+ <property name="attributeName" value="max-statements"/>
+ <property name="attributeValue" value="10"/>
+ </test>
+
+ <!-- <data-source/property> -->
+ <test name="WebAppModelTest:testPaths:attribute">
+ <property name="path" value="/web30.xml/Data Sources/dataSourceName/property_1"/>
+ <property name="attributeName" value="value"/>
+ <property name="attributeValue" value="property 1 value"/>
+ </test>
+
+ <!-- <filter> -->
+ <test name="WebAppModelTest:testPaths:attribute">
+ <property name="path" value="/web30.xml/Filters/filter:myFilter"/>
+ <property name="attributeName" value="description"/>
+ <property name="attributeValue" value="filter description"/>
+ </test>
+ <test name="WebAppModelTest:testPaths:attribute">
+ <property name="path" value="/web30.xml/Filters/filter:myFilter"/>
+ <property name="attributeName" value="display-name"/>
+ <property name="attributeValue" value="My Filter"/>
+ </test>
+ <test name="WebAppModelTest:testPaths:attribute">
+ <property name="path" value="/web30.xml/Filters/filter:myFilter"/>
+ <property name="attributeName" value="filter-name"/>
+ <property name="attributeValue" value="myFilter"/>
+ </test>
+ <test name="WebAppModelTest:testPaths:attribute">
+ <property name="path" value="/web30.xml/Filters/filter:myFilter"/>
+ <property name="attributeName" value="filter-class"/>
+ <property name="attributeValue" value="x.MyFilter"/>
+ </test>
+ <test name="WebAppModelTest:testPaths:attribute">
+ <property name="path" value="/web30.xml/Filters/filter:myFilter"/>
+ <property name="attributeName" value="async-supported"/>
+ <property name="attributeValue" value="true"/>
+ </test>
+ <!-- <filter/init-param> -->
+ <test name="WebAppModelTest:testPaths:attribute">
+ <property name="path" value="/web30.xml/Filters/filter:myFilter/initParam1"/>
+ <property name="attributeName" value="param-value"/>
+ <property name="attributeValue" value="int param 1 value"/>
+ </test>
+
+ <!-- <filter-mapping> -->
+ <test name="WebAppModelTest:testPaths:attribute">
+ <property name="path" value="/web30.xml/Filters/myFilter:*.jsp"/>
+ <property name="attributeName" value="filter-name"/>
+ <property name="attributeValue" value="myFilter"/>
+ </test>
+ <test name="WebAppModelTest:testPaths:attribute">
+ <property name="path" value="/web30.xml/Filters/myFilter:*.jsp"/>
+ <property name="attributeName" value="servlet-name"/>
+ <property name="attributeValue" value="myServlet"/>
+ </test>
+ <test name="WebAppModelTest:testPaths:attribute">
+ <property name="path" value="/web30.xml/Filters/myFilter:*.jsp"/>
+ <property name="attributeName" value="url-pattern"/>
+ <property name="attributeValue" value="*.jsp"/>
+ </test>
+ <test name="WebAppModelTest:testPaths:attribute">
+ <property name="path" value="/web30.xml/Filters/myFilter:*.jsp"/>
+ <property name="attributeName" value="dispatchers"/>
+ <property name="attributeValue" value="ASYNC,ERROR"/>
+ </test>
+
+ <!-- <listener> -->
+ <test name="WebAppModelTest:testPaths:attribute">
+ <property name="path" value="/web30.xml/Listeners/x.MyListener"/>
+ <property name="attributeName" value="display-name"/>
+ <property name="attributeValue" value="My Listener"/>
+ </test>
+ <test name="WebAppModelTest:testPaths:attribute">
+ <property name="path" value="/web30.xml/Listeners/x.MyListener"/>
+ <property name="attributeName" value="listener-class"/>
+ <property name="attributeValue" value="x.MyListener"/>
+ </test>
+ <test name="WebAppModelTest:testPaths:attribute">
+ <property name="path" value="/web30.xml/Listeners/x.MyListener"/>
+ <property name="attributeName" value="description"/>
+ <property name="attributeValue" value="listener description"/>
+ </test>
+
+ <!-- <servlet> -->
+ <test name="WebAppModelTest:testPaths:attribute">
+ <property name="path" value="/web30.xml/Servlets/myServlet"/>
+ <property name="attributeName" value="display-name"/>
+ <property name="attributeValue" value="My Servlet"/>
+ </test>
+ <test name="WebAppModelTest:testPaths:attribute">
+ <property name="path" value="/web30.xml/Servlets/myServlet"/>
+ <property name="attributeName" value="servlet-name"/>
+ <property name="attributeValue" value="myServlet"/>
+ </test>
+ <test name="WebAppModelTest:testPaths:attribute">
+ <property name="path" value="/web30.xml/Servlets/myServlet"/>
+ <property name="attributeName" value="servlet-class"/>
+ <property name="attributeValue" value="x.MyServlet"/>
+ </test>
+ <test name="WebAppModelTest:testPaths:attribute">
+ <property name="path" value="/web30.xml/Servlets/myServlet"/>
+ <property name="attributeName" value="load-on-startup"/>
+ <property name="attributeValue" value="2"/>
+ </test>
+ <test name="WebAppModelTest:testPaths:attribute">
+ <property name="path" value="/web30.xml/Servlets/myServlet"/>
+ <property name="attributeName" value="enabled"/>
+ <property name="attributeValue" value="true"/>
+ </test>
+ <test name="WebAppModelTest:testPaths:attribute">
+ <property name="path" value="/web30.xml/Servlets/myServlet"/>
+ <property name="attributeName" value="async-supported"/>
+ <property name="attributeValue" value="true"/>
+ </test>
+
+ <!-- <servlet/init-param> -->
+ <test name="WebAppModelTest:testPaths:attribute">
+ <property name="path" value="/web30.xml/Servlets/myServlet/param"/>
+ <property name="attributeName" value="param-value"/>
+ <property name="attributeValue" value="value"/>
+ </test>
+ <test name="WebAppModelTest:testPaths:attribute">
+ <property name="path" value="/web30.xml/Servlets/myServlet/param"/>
+ <property name="attributeName" value="description"/>
+ <property name="attributeValue" value="param description"/>
+ </test>
+
+ <!-- <servlet/init-param> -->
+ <test name="WebAppModelTest:testPaths:attribute">
+ <property name="path" value="/web30.xml/Servlets/myServlet/param"/>
+ <property name="attributeName" value="param-value"/>
+ <property name="attributeValue" value="value"/>
+ </test>
+ <!-- <servlet/security-role-ref> -->
+ <test name="WebAppModelTest:testPaths:attribute">
+ <property name="path" value="/web30.xml/Servlets/myServlet/role2"/>
+ <property name="attributeName" value="role-name"/>
+ <property name="attributeValue" value="role2"/>
+ </test>
+
+ <!-- <servlet/multipart-config> -->
+ <test name="WebAppModelTest:testPaths:attribute">
+ <property name="path" value="/web30.xml/Servlets/myServlet/#a.xml"/>
+ <property name="attributeName" value="location"/>
+ <property name="attributeValue" value="/a.xml"/>
+ </test>
</tests>
\ No newline at end of file
Modified: trunk/jsf/tests/org.jboss.tools.jsf.test/src/org/jboss/tools/jsf/test/JSFModelTest.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.test/src/org/jboss/tools/jsf/test/JSFModelTest.java 2010-03-19 14:18:28 UTC (rev 20931)
+++ trunk/jsf/tests/org.jboss.tools.jsf.test/src/org/jboss/tools/jsf/test/JSFModelTest.java 2010-03-19 14:51:18 UTC (rev 20932)
@@ -18,7 +18,9 @@
import org.jboss.tools.common.test.util.TestDescription;
import org.jboss.tools.common.test.util.TestProjectProvider;
+import org.jboss.tools.common.model.XModel;
import org.jboss.tools.common.model.XModelObject;
+import org.jboss.tools.common.model.filesystems.impl.AbstractXMLFileImpl;
import org.jboss.tools.common.model.loaders.EntityRecognizer;
import org.jboss.tools.common.model.loaders.EntityRecognizerContext;
import org.jboss.tools.common.model.project.IModelNature;
@@ -66,14 +68,33 @@
assertTrue("Cannot find objects at " + errorCount + " paths\n" + sb.toString(), errorCount == 0);
testName = "JSFModelTest:testPaths:attribute";
- tests = provider.getTestDescriptions(testName);
+ doAttributeTest(n.getModel(), testName);
+ }
+
+ public void testWebApp() {
+ String testName = "WebAppModelTest:testPaths:attribute";
+ IModelNature n = EclipseResourceUtil.getModelNature(project);
+ doAttributeTest(n.getModel(), testName);
+ XModelObject o = n.getModel().getByPath("/web30.xml");
+ printPaths(o);
+ }
+
+ public void testWebAppLoader() {
+ IModelNature n = EclipseResourceUtil.getModelNature(project);
+ XModelObject o = n.getModel().getByPath("/web30.xml");
+ String error = ((AbstractXMLFileImpl)o).getLoaderError();
+ assertNull("Loader reported an error.", error);
+ }
+
+ void doAttributeTest(XModel model, String testName) {
+ ArrayList<TestDescription> tests = provider.getTestDescriptions(testName);
System.out.println(testName + " " + (tests == null ? -1 : tests.size()));
- sb = new StringBuffer();
- errorCount = 0;
+ StringBuffer sb = new StringBuffer();
+ int errorCount = 0;
if(tests != null) for (int i = 0; i < tests.size(); i++) {
TestDescription t = tests.get(i);
String path = t.getProperty("path");
- XModelObject o = n.getModel().getByPath(path);
+ XModelObject o = model.getByPath(path);
if(o == null) {
sb.append("Cannot find object at " + path).append("\n");
errorCount++;
@@ -99,10 +120,6 @@
}
}
assertTrue(sb.toString(), errorCount == 0);
-
- XModelObject o = n.getModel().getByPath("/faces-config-2.xml");
-// printPaths(o);
-
}
void printPaths(XModelObject o) {
14 years, 6 months
JBoss Tools SVN: r20931 - in trunk/jsf/docs/userguide/en-US/images: visual_page and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: abogachuk
Date: 2010-03-19 10:18:28 -0400 (Fri, 19 Mar 2010)
New Revision: 20931
Modified:
trunk/jsf/docs/userguide/en-US/images/preferences/preferences_7.png
trunk/jsf/docs/userguide/en-US/images/visual_page/visual_page_9.png
Log:
https://jira.jboss.org/jira/browse/JBDS-1138
Modified: trunk/jsf/docs/userguide/en-US/images/preferences/preferences_7.png
===================================================================
(Binary files differ)
Modified: trunk/jsf/docs/userguide/en-US/images/visual_page/visual_page_9.png
===================================================================
(Binary files differ)
14 years, 6 months
JBoss Tools SVN: r20930 - in trunk/hibernatetools/plugins: org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/model/impl and 2 other directories.
by jbosstools-commits@lists.jboss.org
Author: dgeraskov
Date: 2010-03-19 10:08:16 -0400 (Fri, 19 Mar 2010)
New Revision: 20930
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/model/IReverseEngineeringDefinition.java
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/model/impl/ReverseEngineeringDefinitionImpl.java
trunk/hibernatetools/plugins/org.hibernate.eclipse.mapper/src/org/hibernate/eclipse/mapper/editors/reveng/TablePropertiesBlock.java
trunk/hibernatetools/plugins/org.hibernate.eclipse.mapper/src/org/hibernate/eclipse/mapper/model/DOMReverseEngineeringDefinition.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-6074
Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/model/IReverseEngineeringDefinition.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/model/IReverseEngineeringDefinition.java 2010-03-19 13:03:34 UTC (rev 20929)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/model/IReverseEngineeringDefinition.java 2010-03-19 14:08:16 UTC (rev 20930)
@@ -58,7 +58,10 @@
void addTable(IRevEngTable retable);
void removeTable(IRevEngTable retable);
void removeColumn(IRevEngColumn recolumn);
+ void removePrimaryKey(IRevEngPrimaryKey reprimaryKey);
+ void removeGenerator(IRevEngGenerator regenerator);
+ void removeParameter(IRevEngParameter reparam);
IRevEngColumn createColumn();
- IRevEngColumn createKeyColumn();
+ IRevEngColumn createKeyColumn();
}
Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/model/impl/ReverseEngineeringDefinitionImpl.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/model/impl/ReverseEngineeringDefinitionImpl.java 2010-03-19 13:03:34 UTC (rev 20929)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/model/impl/ReverseEngineeringDefinitionImpl.java 2010-03-19 14:08:16 UTC (rev 20930)
@@ -27,6 +27,9 @@
import java.util.List;
import org.hibernate.eclipse.console.model.IRevEngColumn;
+import org.hibernate.eclipse.console.model.IRevEngGenerator;
+import org.hibernate.eclipse.console.model.IRevEngParameter;
+import org.hibernate.eclipse.console.model.IRevEngPrimaryKey;
import org.hibernate.eclipse.console.model.IRevEngTable;
import org.hibernate.eclipse.console.model.IReverseEngineeringDefinition;
import org.hibernate.eclipse.console.model.ITableFilter;
@@ -164,7 +167,19 @@
public void removeColumn(IRevEngColumn recolumn) {
}
+
+ public void removeGenerator(IRevEngGenerator regenerator) {
+
+ }
+ public void removeParameter(IRevEngParameter reparam) {
+
+ }
+
+ public void removePrimaryKey(IRevEngPrimaryKey reprimaryKey) {
+
+ }
+
public IRevEngColumn createColumn() {
return null;
}
Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.mapper/src/org/hibernate/eclipse/mapper/editors/reveng/TablePropertiesBlock.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.mapper/src/org/hibernate/eclipse/mapper/editors/reveng/TablePropertiesBlock.java 2010-03-19 13:03:34 UTC (rev 20929)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse.mapper/src/org/hibernate/eclipse/mapper/editors/reveng/TablePropertiesBlock.java 2010-03-19 14:08:16 UTC (rev 20930)
@@ -58,6 +58,9 @@
import org.eclipse.ui.forms.widgets.Section;
import org.hibernate.cfg.reveng.TableIdentifier;
import org.hibernate.eclipse.console.model.IRevEngColumn;
+import org.hibernate.eclipse.console.model.IRevEngGenerator;
+import org.hibernate.eclipse.console.model.IRevEngParameter;
+import org.hibernate.eclipse.console.model.IRevEngPrimaryKey;
import org.hibernate.eclipse.console.model.IRevEngTable;
import org.hibernate.eclipse.console.model.IReverseEngineeringDefinition;
import org.hibernate.eclipse.console.workbench.DeferredContentProvider;
@@ -268,13 +271,30 @@
updateSelection = true;
}
editor.getReverseEngineeringDefinition().removeTable(retable);
- }
- else if (obj instanceof IRevEngColumn) {
+ } else if (obj instanceof IRevEngColumn) {
IRevEngColumn recolumn = (IRevEngColumn)obj;
if (recolumn instanceof RevEngColumnAdapter) {
updateSelection = true;
}
editor.getReverseEngineeringDefinition().removeColumn(recolumn);
+ } else if (obj instanceof IRevEngPrimaryKey) {
+ IRevEngPrimaryKey reprimaryKey = (IRevEngPrimaryKey)obj;
+ if (reprimaryKey instanceof RevEngPrimaryKeyAdapter) {
+ updateSelection = true;
+ }
+ editor.getReverseEngineeringDefinition().removePrimaryKey(reprimaryKey);
+ } else if (obj instanceof IRevEngGenerator) {
+ IRevEngGenerator regenerator = (IRevEngGenerator)obj;
+ if (regenerator instanceof RevEngGeneratorAdapter) {
+ updateSelection = true;
+ }
+ editor.getReverseEngineeringDefinition().removeGenerator(regenerator);
+ } else if (obj instanceof IRevEngParameter) {
+ IRevEngParameter reparam = (IRevEngParameter)obj;
+ if (reparam instanceof RevEngParamAdapter) {
+ updateSelection = true;
+ }
+ editor.getReverseEngineeringDefinition().removeParameter(reparam);
}
}
if (updateSelection) {
Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.mapper/src/org/hibernate/eclipse/mapper/model/DOMReverseEngineeringDefinition.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.mapper/src/org/hibernate/eclipse/mapper/model/DOMReverseEngineeringDefinition.java 2010-03-19 13:03:34 UTC (rev 20929)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse.mapper/src/org/hibernate/eclipse/mapper/model/DOMReverseEngineeringDefinition.java 2010-03-19 14:08:16 UTC (rev 20930)
@@ -351,27 +351,34 @@
}
public void removeTable(IRevEngTable retable) {
- if (retable instanceof RevEngTableAdapter) {
- RevEngTableAdapter tf = (RevEngTableAdapter) retable;
- Node parentNode = tf.getNode().getParentNode();
- Node previousSibling = tf.getNode().getPreviousSibling();
- if (DOMModelUtil.isWhiteSpace(previousSibling)) {
- parentNode.removeChild(previousSibling);
- }
- parentNode.removeChild(tf.getNode());
- DOMModelUtil.formatNode(parentNode);
- }
+ removeDomAdapterNode(retable);
}
public void removeColumn(IRevEngColumn recolumn) {
- if (recolumn instanceof RevEngColumnAdapter) {
- RevEngColumnAdapter cf = (RevEngColumnAdapter) recolumn;
- Node parentNode = cf.getNode().getParentNode();
- Node previousSibling = cf.getNode().getPreviousSibling();
+ removeDomAdapterNode(recolumn);
+ }
+
+ public void removeGenerator(IRevEngGenerator regenerator) {
+ removeDomAdapterNode(regenerator);
+ }
+
+ public void removeParameter(IRevEngParameter reparam) {
+ removeDomAdapterNode(reparam);
+ }
+
+ public void removePrimaryKey(IRevEngPrimaryKey reprimaryKey) {
+ removeDomAdapterNode(reprimaryKey);
+ }
+
+ private void removeDomAdapterNode(Object node){
+ if (node instanceof DOMAdapter) {
+ DOMAdapter pf = (DOMAdapter) node;
+ Node parentNode = pf.getNode().getParentNode();
+ Node previousSibling = pf.getNode().getPreviousSibling();
if (DOMModelUtil.isWhiteSpace(previousSibling)) {
parentNode.removeChild(previousSibling);
}
- parentNode.removeChild(cf.getNode());
+ parentNode.removeChild(pf.getNode());
DOMModelUtil.formatNode(parentNode);
}
}
14 years, 6 months
JBoss Tools SVN: r20929 - in trunk/jsf/docs: jsf_tools_ref_guide/en-US/images/jsf_support and 1 other directories.
by jbosstools-commits@lists.jboss.org
Author: smukhina
Date: 2010-03-19 09:03:34 -0400 (Fri, 19 Mar 2010)
New Revision: 20929
Modified:
trunk/jsf/docs/jsf_tools_ref_guide/en-US/images/jsf_support/jsf_support_23.png
trunk/jsf/docs/jsf_tools_ref_guide/en-US/jsf_config_file.xml
trunk/jsf/docs/jsf_tools_tutorial/en-US/adding_navigation.xml
Log:
https://jira.jboss.org/jira/browse/JBDS-1146 Faces-config.xml editor has different popup menu than is described in JSF Tools - fixed
Modified: trunk/jsf/docs/jsf_tools_ref_guide/en-US/images/jsf_support/jsf_support_23.png
===================================================================
(Binary files differ)
Modified: trunk/jsf/docs/jsf_tools_ref_guide/en-US/jsf_config_file.xml
===================================================================
--- trunk/jsf/docs/jsf_tools_ref_guide/en-US/jsf_config_file.xml 2010-03-19 12:40:44 UTC (rev 20928)
+++ trunk/jsf/docs/jsf_tools_ref_guide/en-US/jsf_config_file.xml 2010-03-19 13:03:34 UTC (rev 20929)
@@ -1,436 +1,436 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<chapter id="jsf_config_file" role="updated">
- <?dbhtml filename="jsf_config_file.html"?>
- <chapterinfo>
- <keywordset>
- <keyword>JBoss Developer Studio</keyword>
- <keyword>Eclipse</keyword>
- <keyword>JSF Tools</keyword>
- <keyword>Java</keyword>
- <keyword>JBoss</keyword>
- </keywordset>
- </chapterinfo>
-
- <title>JSF Configuration File Editor</title>
-
- <para>First, we should mention that JSF configuration file (<emphasis>
- <property>faces-config.xml</property>
- </emphasis>) is intended for registering JSF application resources such as Converters,
- Validators, Managed Beans and page-to-page navigation rules.</para>
- <para>Now, let's look at how you can easily configure this file by means of a special
- graphical editor for JSF configuration file. The editor has three main views:</para>
-
- <itemizedlist>
- <listitem>
- <para>Diagram</para>
- </listitem>
- <listitem>
- <para>Tree</para>
- </listitem>
- <listitem>
- <para>Source</para>
- </listitem>
- </itemizedlist>
-
- <para>They can be selected via the tabs at the bottom of the editor.</para>
-
- <section id="Diagram9553">
-
- <title>Diagram view</title>
-
- <para>Here, we will show you how to work with JSF configuration file through the Diagram
- view of the editor.</para>
- <para>As you can see on the figure below, the Diagram view displays the navigation rules in
- the faces-config.xml:</para>
- <figure>
- <title>Diagram View</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/jsf_support/jsf_support_21.png"/>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>If your diagram is large, make use of the Outline view. Within it you can switch to a <emphasis>
- <property>Diagram Navigator</property>
- </emphasis> mode by selecting the middle icon at the top of the view window. It allows
- you to easily move around the diagram. Just move the blue area in any direction, and the
- diagram on the left will also move:</para>
- <figure>
- <title>Outline View for Diagram</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/jsf_support/jsf_support_32.png" scale="50"/>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>To create a new page here, you should click the page icon (View Template) on the
- toolbar from the left and then click anywhere on the diagram. A New Page Wizard will
- appear.</para>
-
- <para>To create a transition for connecting pages:</para>
-
- <itemizedlist>
- <listitem>
- <para>Select the transition icon from the toolbar (New Connection).</para>
- </listitem>
- <listitem>
- <para>Click the source page.</para>
- </listitem>
- <listitem>
- <para>Click the target page.</para>
- </listitem>
- </itemizedlist>
-
- <para>A transition will appear between the two pages:</para>
- <figure>
- <title>Transition between JSP Pages</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/jsf_support/jsf_support_22.png"/>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>It is also possible to create a new page with context menu by right-clicking anywhere
- on the diagram and selecting <emphasis>
- <property>New View</property>. </emphasis></para>
- <figure>
- <title>Creating a New View</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/jsf_support/jsf_support_23.png"/>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>To edit an existing transition, first select the transition line. Then, place the
- mouse cursor over the last black dot (on the target page). The mouse cursor will change
- to a big +. At this point, drag the line to a new target page:</para>
- <figure>
- <title>Editing Transition between Views</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/jsf_support/jsf_support_24.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- </section>
- <section id="TreeView11123" role="updated">
-
- <title>Tree View</title>
-
- <para>You can find it more convenient to edit your JSF Configuration file in the Tree view of
- the <property>VPE</property>.</para>
-
- <para>The view displays all JSF application artifacts referenced in the configuration file
- in a tree format. By selecting any node on the left, you can see and edit its properties
- which will appear in the right-hand area. Let's look at the structure of this
- tree more closely.</para>
-
- <itemizedlist>
- <listitem>
- <para>Under the <emphasis>
- <property>Application</property>
- </emphasis> node you can adjust JSF application specific settings such as
- internationalization, possibility to set extensions, add property and variable
- resolvers, etc.</para>
- </listitem>
- </itemizedlist>
-
- <figure>
- <title>JSF Application Specific Settings</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/jsf_support/jsf_support_24a.png"/>
- </imageobject>
- </mediaobject>
- </figure>
-
- <itemizedlist>
- <listitem>
- <para>The <emphasis>
- <property>Components</property>
- </emphasis> node is for registering custom JSF components. Right-click and
- choose <emphasis>
- <property>New > Component</property>
- </emphasis> or just press the <emphasis>
- <property>Add</property>
- </emphasis> button in the right-hand area to add a new component to the JSF
- Configuration file.</para>
- </listitem>
- </itemizedlist>
-
- <figure>
- <title>Registering a New JSF Component</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/jsf_support/jsf_support_24b.png"/>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>In the <property>Add Component wizard</property> you should set a component
- type and point to a component class by using the <emphasis>
- <property>Browse</property>
- </emphasis> button or create a new class for this component by using the <emphasis>
- <property>Component-Class</property>
- </emphasis> link.</para>
-
- <figure>
- <title>Adding a New JSF Component to the JSF Configuration File</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/jsf_support/jsf_support_24c.png"/>
- </imageobject>
- </mediaobject>
- </figure>
-
- <itemizedlist>
- <listitem>
- <para>Use the <emphasis>
- <property>Render Kit</property>
- </emphasis> node to create and register a set of related renderers for custom
- JSF components.</para>
- </listitem>
- </itemizedlist>
-
- <figure>
- <title>Adding a New JSF Renderer Kit to the JSF Configuration File</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/jsf_support/jsf_support_24d.png"/>
- </imageobject>
- </mediaobject>
- </figure>
-
- <itemizedlist>
- <listitem>
- <para>Under the <emphasis>
- <property>Converters</property>
- </emphasis> node you can create a converter class for your JSF application
- either with id or for a proper class. How to do that see the <link
- linkend="CreateAndRegisterACustomConverter94230">Create and Register a
- Custom Converter</link> section.</para>
- </listitem>
- </itemizedlist>
-
- <figure>
- <title>Creating a New Custom Converter</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/jsf_support/jsf_support_59.png"/>
- </imageobject>
- </mediaobject>
- </figure>
-
- <itemizedlist>
- <listitem>
- <para>The <emphasis>
- <property>Managed Bean</property>
- </emphasis> node is meant for creating and registering Bean classes in your JSF
- application. Read more on the topic in the <link linkend="managed_beans">Managed
- Beans</link> chapter.</para>
- </listitem>
- </itemizedlist>
-
- <figure>
- <title>Managed Beans</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/jsf_support/jsf_support_26.png"/>
- </imageobject>
- </mediaobject>
- </figure>
-
- <itemizedlist>
- <listitem>
- <para>Use the <emphasis>
- <property>Navigation Rules</property>
- </emphasis> node to configure a navigation between the pages in your
- application: create a new navigation rule and adjust necessary properties for it
- in the right-hand area.</para>
- </listitem>
- </itemizedlist>
- <tip>
- <title>Tip:</title>
- <para>The same you can do in the <link linkend="Diagram9553">Diagram view</link> of the
- JSF Configuration file editor.</para>
- </tip>
-
- <figure>
- <title>Configuring Navigation Rules</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/jsf_support/jsf_support_26a.png"/>
- </imageobject>
- </mediaobject>
- </figure>
-
- <itemizedlist>
- <listitem>
- <para>Under the <emphasis>
- <property>Referenced Beans</property>
- </emphasis> node you can add a new Referenced Bean and configure various
- properties for it. To learn more on this refer to the <link
- linkend="referenced_beans">Create and Register Referenced Beans</link>
- section.</para>
- </listitem>
- </itemizedlist>
-
- <figure>
- <title>Referenced Beans</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/jsf_support/jsf_support_26b.png"/>
- </imageobject>
- </mediaobject>
- </figure>
-
- <itemizedlist>
- <listitem>
- <para>The <emphasis>
- <property>Validators</property>
- </emphasis> node is needed to create validator classes for organizing the
- validation of your application data. You can read more on the topic in the <link
- linkend="CreateAndRegisterACustomValidator5632">Create and Register a Custom
- Validator</link> section.</para>
- </listitem>
- </itemizedlist>
-
- <figure>
- <title>Validators</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/jsf_support/jsf_support_26c.png"/>
- </imageobject>
- </mediaobject>
- </figure>
-
- <itemizedlist>
- <listitem>
- <para>The <emphasis>
- <property>Extensions</property>
- </emphasis> node is for setting extensions for your <emphasis>
- <property>faces-config.xml</property>.</emphasis></para>
- </listitem>
- </itemizedlist>
-
- <figure>
- <title>Adding Extensions</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/jsf_support/jsf_support_26d.png"/>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>In the <property>Tree view</property> you can also edit the properties of the selected
- element with the help of the <property>Properties view</property> as shown below:</para>
-
- <figure>
- <title>Properties View </title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/jsf_support/jsf_support_33.png" scale="75"/>
- </imageobject>
- </mediaobject>
- </figure>
-
- </section>
- <section id="SourceView4643">
-
- <title>Source View</title>
-
- <para>Here, we'll discuss how you can configure your faces-config.xml with the help
- of Source View.</para>
- <para>The Source view for the editor displays a text content of the JSF configuration file.
- It is always synchronized with other two views, so any changes made in one of the views
- will immediately appear in the other:</para>
- <figure>
- <title>Source View</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/jsf_support/jsf_support_27.png" scale="75"/>
- </imageobject>
- </mediaobject>
- </figure>
-
-
- <para>You can also work in the Source view with the help of the <emphasis>
- <property>Outline view</property>.</emphasis> The Outline view shows a tree
- structure of the JSF configuration file. Simply select any element in the Outline view,
- and it will jump to the same place in the Source editor, so you can navigate through the
- source code with Outline view.</para>
- <figure>
- <title>Outline View</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/jsf_support/jsf_support_31.png" scale="50"/>
- </imageobject>
- </mediaobject>
- </figure>
-
- </section>
-
- <section id="jsf_editor_features">
- <title>Editor Features</title>
- <para>Here we'll discuss a very important features that JSF configuration file
- editor provides for work with JSF resources.</para>
-
- <section id="jsf_openOn">
- <title>Open On</title>
- <para>The JSF configuration file editor comes with a very useful OpenOn navigating
- feature. More fully you can read about it in our Visual Web Tools
- Guide.</para>
- </section>
-
- <section id="ContentAssist976">
-
- <title>Code Assist</title>
- <para>Code Assist provides pop-up tip to help you complete your code statements. It
- allows you to write your code faster and with more accuracy.</para>
- <para>Code assist is always available in the Source mode:</para>
- <figure>
- <title>Code Assist in Source View</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/jsf_support/jsf_support_28.png" scale="65"/>
- </imageobject>
- </mediaobject>
- </figure>
-
- </section>
-
- <section id="ErrorReporting3324">
-
- <title>Error Reporting</title>
- <para>When you are developing your project, error checking is constantly provided. This
- greatly reduces your development time as it allows you to catch many of the errors
- during development.</para>
- <para>Errors will be reported by <link linkend="jsf_project_verification">
- verification</link> facility:</para>
- <figure>
- <title>Error Reporting in Source View</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/jsf_support/jsf_support_29.png" scale="75"/>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>Other errors are also reported.</para>
- <figure>
- <title>Other Errors Reporting</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/jsf_support/jsf_support_30.png" scale="75"/>
- </imageobject>
- </mediaobject>
- </figure>
-
- </section>
- </section>
-
-</chapter>
+<?xml version="1.0" encoding="UTF-8"?>
+<chapter id="jsf_config_file" role="updated">
+ <?dbhtml filename="jsf_config_file.html"?>
+ <chapterinfo>
+ <keywordset>
+ <keyword>JBoss Developer Studio</keyword>
+ <keyword>Eclipse</keyword>
+ <keyword>JSF Tools</keyword>
+ <keyword>Java</keyword>
+ <keyword>JBoss</keyword>
+ </keywordset>
+ </chapterinfo>
+
+ <title>JSF Configuration File Editor</title>
+
+ <para>First, we should mention that JSF configuration file (<emphasis>
+ <property>faces-config.xml</property>
+ </emphasis>) is intended for registering JSF application resources such as Converters,
+ Validators, Managed Beans and page-to-page navigation rules.</para>
+ <para>Now, let's look at how you can easily configure this file by means of a special
+ graphical editor for JSF configuration file. The editor has three main views:</para>
+
+ <itemizedlist>
+ <listitem>
+ <para>Diagram</para>
+ </listitem>
+ <listitem>
+ <para>Tree</para>
+ </listitem>
+ <listitem>
+ <para>Source</para>
+ </listitem>
+ </itemizedlist>
+
+ <para>They can be selected via the tabs at the bottom of the editor.</para>
+
+ <section id="Diagram9553">
+
+ <title>Diagram view</title>
+
+ <para>Here, we will show you how to work with JSF configuration file through the Diagram
+ view of the editor.</para>
+ <para>As you can see on the figure below, the Diagram view displays the navigation rules in
+ the faces-config.xml:</para>
+ <figure>
+ <title>Diagram View</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/jsf_support/jsf_support_21.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>If your diagram is large, make use of the Outline view. Within it you can switch to a <emphasis>
+ <property>Diagram Navigator</property>
+ </emphasis> mode by selecting the middle icon at the top of the view window. It allows
+ you to easily move around the diagram. Just move the blue area in any direction, and the
+ diagram on the left will also move:</para>
+ <figure>
+ <title>Outline View for Diagram</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/jsf_support/jsf_support_32.png" scale="50"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>To create a new page here, you should click the page icon (View Template) on the
+ toolbar from the left and then click anywhere on the diagram. A New Page Wizard will
+ appear.</para>
+
+ <para>To create a transition for connecting pages:</para>
+
+ <itemizedlist>
+ <listitem>
+ <para>Select the transition icon from the toolbar (New Connection).</para>
+ </listitem>
+ <listitem>
+ <para>Click the source page.</para>
+ </listitem>
+ <listitem>
+ <para>Click the target page.</para>
+ </listitem>
+ </itemizedlist>
+
+ <para>A transition will appear between the two pages:</para>
+ <figure>
+ <title>Transition between JSP Pages</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/jsf_support/jsf_support_22.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>It is also possible to create a new page with context menu by right-clicking anywhere
+ on the diagram and selecting <emphasis>
+ <property>Rule...</property></emphasis></para>
+ <figure>
+ <title>Creating a New View</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/jsf_support/jsf_support_23.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>To edit an existing transition, first select the transition line. Then, place the
+ mouse cursor over the last black dot (on the target page). The mouse cursor will change
+ to a big +. At this point, drag the line to a new target page:</para>
+ <figure>
+ <title>Editing Transition between Views</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/jsf_support/jsf_support_24.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </section>
+ <section id="TreeView11123" role="updated">
+
+ <title>Tree View</title>
+
+ <para>You can find it more convenient to edit your JSF Configuration file in the Tree view of
+ the <property>VPE</property>.</para>
+
+ <para>The view displays all JSF application artifacts referenced in the configuration file
+ in a tree format. By selecting any node on the left, you can see and edit its properties
+ which will appear in the right-hand area. Let's look at the structure of this
+ tree more closely.</para>
+
+ <itemizedlist>
+ <listitem>
+ <para>Under the <emphasis>
+ <property>Application</property>
+ </emphasis> node you can adjust JSF application specific settings such as
+ internationalization, possibility to set extensions, add property and variable
+ resolvers, etc.</para>
+ </listitem>
+ </itemizedlist>
+
+ <figure>
+ <title>JSF Application Specific Settings</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/jsf_support/jsf_support_24a.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <itemizedlist>
+ <listitem>
+ <para>The <emphasis>
+ <property>Components</property>
+ </emphasis> node is for registering custom JSF components. Right-click and
+ choose <emphasis>
+ <property>New > Component</property>
+ </emphasis> or just press the <emphasis>
+ <property>Add</property>
+ </emphasis> button in the right-hand area to add a new component to the JSF
+ Configuration file.</para>
+ </listitem>
+ </itemizedlist>
+
+ <figure>
+ <title>Registering a New JSF Component</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/jsf_support/jsf_support_24b.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>In the <property>Add Component wizard</property> you should set a component
+ type and point to a component class by using the <emphasis>
+ <property>Browse</property>
+ </emphasis> button or create a new class for this component by using the <emphasis>
+ <property>Component-Class</property>
+ </emphasis> link.</para>
+
+ <figure>
+ <title>Adding a New JSF Component to the JSF Configuration File</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/jsf_support/jsf_support_24c.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <itemizedlist>
+ <listitem>
+ <para>Use the <emphasis>
+ <property>Render Kit</property>
+ </emphasis> node to create and register a set of related renderers for custom
+ JSF components.</para>
+ </listitem>
+ </itemizedlist>
+
+ <figure>
+ <title>Adding a New JSF Renderer Kit to the JSF Configuration File</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/jsf_support/jsf_support_24d.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <itemizedlist>
+ <listitem>
+ <para>Under the <emphasis>
+ <property>Converters</property>
+ </emphasis> node you can create a converter class for your JSF application
+ either with id or for a proper class. How to do that see the <link
+ linkend="CreateAndRegisterACustomConverter94230">Create and Register a
+ Custom Converter</link> section.</para>
+ </listitem>
+ </itemizedlist>
+
+ <figure>
+ <title>Creating a New Custom Converter</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/jsf_support/jsf_support_59.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <itemizedlist>
+ <listitem>
+ <para>The <emphasis>
+ <property>Managed Bean</property>
+ </emphasis> node is meant for creating and registering Bean classes in your JSF
+ application. Read more on the topic in the <link linkend="managed_beans">Managed
+ Beans</link> chapter.</para>
+ </listitem>
+ </itemizedlist>
+
+ <figure>
+ <title>Managed Beans</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/jsf_support/jsf_support_26.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <itemizedlist>
+ <listitem>
+ <para>Use the <emphasis>
+ <property>Navigation Rules</property>
+ </emphasis> node to configure a navigation between the pages in your
+ application: create a new navigation rule and adjust necessary properties for it
+ in the right-hand area.</para>
+ </listitem>
+ </itemizedlist>
+ <tip>
+ <title>Tip:</title>
+ <para>The same you can do in the <link linkend="Diagram9553">Diagram view</link> of the
+ JSF Configuration file editor.</para>
+ </tip>
+
+ <figure>
+ <title>Configuring Navigation Rules</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/jsf_support/jsf_support_26a.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <itemizedlist>
+ <listitem>
+ <para>Under the <emphasis>
+ <property>Referenced Beans</property>
+ </emphasis> node you can add a new Referenced Bean and configure various
+ properties for it. To learn more on this refer to the <link
+ linkend="referenced_beans">Create and Register Referenced Beans</link>
+ section.</para>
+ </listitem>
+ </itemizedlist>
+
+ <figure>
+ <title>Referenced Beans</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/jsf_support/jsf_support_26b.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <itemizedlist>
+ <listitem>
+ <para>The <emphasis>
+ <property>Validators</property>
+ </emphasis> node is needed to create validator classes for organizing the
+ validation of your application data. You can read more on the topic in the <link
+ linkend="CreateAndRegisterACustomValidator5632">Create and Register a Custom
+ Validator</link> section.</para>
+ </listitem>
+ </itemizedlist>
+
+ <figure>
+ <title>Validators</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/jsf_support/jsf_support_26c.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <itemizedlist>
+ <listitem>
+ <para>The <emphasis>
+ <property>Extensions</property>
+ </emphasis> node is for setting extensions for your <emphasis>
+ <property>faces-config.xml</property>.</emphasis></para>
+ </listitem>
+ </itemizedlist>
+
+ <figure>
+ <title>Adding Extensions</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/jsf_support/jsf_support_26d.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>In the <property>Tree view</property> you can also edit the properties of the selected
+ element with the help of the <property>Properties view</property> as shown below:</para>
+
+ <figure>
+ <title>Properties View </title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/jsf_support/jsf_support_33.png" scale="75"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ </section>
+ <section id="SourceView4643">
+
+ <title>Source View</title>
+
+ <para>Here, we'll discuss how you can configure your faces-config.xml with the help
+ of Source View.</para>
+ <para>The Source view for the editor displays a text content of the JSF configuration file.
+ It is always synchronized with other two views, so any changes made in one of the views
+ will immediately appear in the other:</para>
+ <figure>
+ <title>Source View</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/jsf_support/jsf_support_27.png" scale="75"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+
+ <para>You can also work in the Source view with the help of the <emphasis>
+ <property>Outline view</property>.</emphasis> The Outline view shows a tree
+ structure of the JSF configuration file. Simply select any element in the Outline view,
+ and it will jump to the same place in the Source editor, so you can navigate through the
+ source code with Outline view.</para>
+ <figure>
+ <title>Outline View</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/jsf_support/jsf_support_31.png" scale="50"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ </section>
+
+ <section id="jsf_editor_features">
+ <title>Editor Features</title>
+ <para>Here we'll discuss a very important features that JSF configuration file
+ editor provides for work with JSF resources.</para>
+
+ <section id="jsf_openOn">
+ <title>Open On</title>
+ <para>The JSF configuration file editor comes with a very useful OpenOn navigating
+ feature. More fully you can read about it in our Visual Web Tools
+ Guide.</para>
+ </section>
+
+ <section id="ContentAssist976">
+
+ <title>Code Assist</title>
+ <para>Code Assist provides pop-up tip to help you complete your code statements. It
+ allows you to write your code faster and with more accuracy.</para>
+ <para>Code assist is always available in the Source mode:</para>
+ <figure>
+ <title>Code Assist in Source View</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/jsf_support/jsf_support_28.png" scale="65"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ </section>
+
+ <section id="ErrorReporting3324">
+
+ <title>Error Reporting</title>
+ <para>When you are developing your project, error checking is constantly provided. This
+ greatly reduces your development time as it allows you to catch many of the errors
+ during development.</para>
+ <para>Errors will be reported by <link linkend="jsf_project_verification">
+ verification</link> facility:</para>
+ <figure>
+ <title>Error Reporting in Source View</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/jsf_support/jsf_support_29.png" scale="75"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>Other errors are also reported.</para>
+ <figure>
+ <title>Other Errors Reporting</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/jsf_support/jsf_support_30.png" scale="75"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ </section>
+ </section>
+
+</chapter>
\ No newline at end of file
Modified: trunk/jsf/docs/jsf_tools_tutorial/en-US/adding_navigation.xml
===================================================================
--- trunk/jsf/docs/jsf_tools_tutorial/en-US/adding_navigation.xml 2010-03-19 12:40:44 UTC (rev 20928)
+++ trunk/jsf/docs/jsf_tools_tutorial/en-US/adding_navigation.xml 2010-03-19 13:03:34 UTC (rev 20929)
@@ -1,108 +1,108 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<chapter id="adding_navigation" xreflabel="adding_navigation">
- <?dbhtml filename="adding_navigation.html"?>
- <chapterinfo>
- <keywordset>
- <keyword>JBoss Tools</keyword>
- <keyword>JSF application</keyword>
- <keyword>Java</keyword>
- </keywordset>
- </chapterinfo>
-
- <title>Adding Navigation to the Application</title>
-
- <para>In our simple application, the flow is defined as a single navigation rule connecting
- two views (presentation files). At this point, we will create the placeholders for the
- two JSP presentation files and then the navigation rule to connect them as views. Later,
- we will complete the coding for the JSP presentation files. We can do all of this in the
- Diagram mode of the configuration file editor.</para>
- <section id="AddingTwoViewsJSPPages">
- <?dbhtml filename="AddingTwoViewsJSPPages.html"?>
- <title>Adding Two Views (JSP Pages)</title>
- <itemizedlist>
- <listitem>
- <para>Right-click anywhere on the diagram and select <emphasis>
- <property>New View...</property>
- </emphasis> from the pop-up menu</para>
- </listitem>
- <listitem>
- <para>In the dialog box, type <emphasis>
- <property>pages/inputname</property>
- </emphasis> as the value for From-view-id</para>
- </listitem>
- <listitem>
- <para>Leave everything else as is</para>
- </listitem>
- <listitem>
- <para>Click <emphasis>
- <property>Finish</property>
- </emphasis></para>
- <para>If you look in the Package Explorer view you should see a <emphasis>
- <property>pages</property>
- </emphasis> folder under WebContent. Opening it will reveal the JSP file you
- just created</para>
- </listitem>
- <listitem>
- <para>Back on the diagram, right-click anywhere and select <emphasis>
- <property>New View...</property>
- </emphasis> from the pop-up menu</para>
- </listitem>
- <listitem>
- <para>In the dialog box, type <emphasis>
- <property>pages/greeting</property>
- </emphasis> as the value for From-view-id</para>
- </listitem>
- <listitem>
- <para>Leave everything else as is</para>
- </listitem>
- <listitem>
- <para>Click <emphasis>
- <property>Finish</property>
- </emphasis></para>
- </listitem>
- </itemizedlist>
-
- </section>
- <section id="CreatingTheTransitionNavigationRule">
- <?dbhtml filename="CreatingTheTransitionNavigationRule.html"?>
- <title>Creating the Transition (Navigation Rule)</title>
- <itemizedlist>
- <listitem>
- <para>In the diagram, select the connection icon third from the top along
- the upper left side of the diagram (<inlinemediaobject>
- <imageobject>
- <imagedata fileref="images/jsf_application/jsf_application_3.png"/>
- </imageobject>
- </inlinemediaobject>) to get an arrow cursor with a two-pronged plug at the arrow's bottom.</para>
- </listitem>
- </itemizedlist>
-
- <itemizedlist>
- <listitem>
- <para>Click on the <emphasis>
- <property>pages/inputname</property>
- </emphasis> page icon and then click on the <emphasis>
- <property>pages/greeting</property>
- </emphasis> page icon</para>
- </listitem>
-
- </itemizedlist>
- <para>A transition should appear between the two icons.</para>
- <figure>
- <title>Transition Between Two Icons</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/jsf_application/jsf_application_4.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- <itemizedlist>
- <listitem>
- <para>Select <emphasis>
- <property>File > Save</property>
- </emphasis> from the menu bar</para>
- </listitem>
- </itemizedlist>
- </section>
-
+<?xml version="1.0" encoding="UTF-8"?>
+<chapter id="adding_navigation" xreflabel="adding_navigation">
+ <?dbhtml filename="adding_navigation.html"?>
+ <chapterinfo>
+ <keywordset>
+ <keyword>JBoss Tools</keyword>
+ <keyword>JSF application</keyword>
+ <keyword>Java</keyword>
+ </keywordset>
+ </chapterinfo>
+
+ <title>Adding Navigation to the Application</title>
+
+ <para>In our simple application, the flow is defined as a single navigation rule connecting
+ two views (presentation files). At this point, we will create the placeholders for the
+ two JSP presentation files and then the navigation rule to connect them as views. Later,
+ we will complete the coding for the JSP presentation files. We can do all of this in the
+ Diagram mode of the configuration file editor.</para>
+ <section id="AddingTwoViewsJSPPages">
+ <?dbhtml filename="AddingTwoViewsJSPPages.html"?>
+ <title>Adding Two Views (JSP Pages)</title>
+ <itemizedlist>
+ <listitem>
+ <para>Right-click anywhere on the diagram and select <emphasis>
+ <property>Rule...</property>
+ </emphasis> from the pop-up menu</para>
+ </listitem>
+ <listitem>
+ <para>In the dialog box, type <emphasis>
+ <property>pages/inputname</property>
+ </emphasis> as the value for From View ID</para>
+ </listitem>
+ <listitem>
+ <para>Leave everything else as is</para>
+ </listitem>
+ <listitem>
+ <para>Click <emphasis>
+ <property>Finish</property>
+ </emphasis></para>
+ <para>If you look in the Package Explorer view you should see a <emphasis>
+ <property>pages</property>
+ </emphasis> folder under WebContent. Opening it will reveal the JSP file you
+ just created</para>
+ </listitem>
+ <listitem>
+ <para>Back on the diagram, right-click anywhere and select <emphasis>
+ <property>Rule...</property>
+ </emphasis> from the pop-up menu</para>
+ </listitem>
+ <listitem>
+ <para>In the dialog box, type <emphasis>
+ <property>pages/greeting</property>
+ </emphasis> as the value for From View ID</para>
+ </listitem>
+ <listitem>
+ <para>Leave everything else as is</para>
+ </listitem>
+ <listitem>
+ <para>Click <emphasis>
+ <property>Finish</property>
+ </emphasis></para>
+ </listitem>
+ </itemizedlist>
+
+ </section>
+ <section id="CreatingTheTransitionNavigationRule">
+ <?dbhtml filename="CreatingTheTransitionNavigationRule.html"?>
+ <title>Creating the Transition (Navigation Rule)</title>
+ <itemizedlist>
+ <listitem>
+ <para>In the diagram, select the connection icon third from the top along
+ the upper left side of the diagram (<inlinemediaobject>
+ <imageobject>
+ <imagedata fileref="images/jsf_application/jsf_application_3.png"/>
+ </imageobject>
+ </inlinemediaobject>) to get an arrow cursor with a two-pronged plug at the arrow's bottom.</para>
+ </listitem>
+ </itemizedlist>
+
+ <itemizedlist>
+ <listitem>
+ <para>Click on the <emphasis>
+ <property>pages/inputname</property>
+ </emphasis> page icon and then click on the <emphasis>
+ <property>pages/greeting</property>
+ </emphasis> page icon</para>
+ </listitem>
+
+ </itemizedlist>
+ <para>A transition should appear between the two icons.</para>
+ <figure>
+ <title>Transition Between Two Icons</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/jsf_application/jsf_application_4.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <itemizedlist>
+ <listitem>
+ <para>Select <emphasis>
+ <property>File > Save</property>
+ </emphasis> from the menu bar</para>
+ </listitem>
+ </itemizedlist>
+ </section>
+
</chapter>
\ No newline at end of file
14 years, 6 months
JBoss Tools SVN: r20928 - in trunk/jsf/docs/userguide/en-US: images/preferences and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: smukhina
Date: 2010-03-19 08:40:44 -0400 (Fri, 19 Mar 2010)
New Revision: 20928
Modified:
trunk/jsf/docs/userguide/en-US/images/preferences/preferences_2.png
trunk/jsf/docs/userguide/en-US/preferences.xml
Log:
https://jira.jboss.org/jira/browse/JBDS-1144 - Packaging Archives tree item is not in Preferences Tree - fixed
Modified: trunk/jsf/docs/userguide/en-US/images/preferences/preferences_2.png
===================================================================
(Binary files differ)
Modified: trunk/jsf/docs/userguide/en-US/preferences.xml
===================================================================
--- trunk/jsf/docs/userguide/en-US/preferences.xml 2010-03-19 11:49:17 UTC (rev 20927)
+++ trunk/jsf/docs/userguide/en-US/preferences.xml 2010-03-19 12:40:44 UTC (rev 20928)
@@ -1,1272 +1,1295 @@
-<?xml version='1.0' encoding='UTF-8'?>
-<chapter id="preferences" xreflabel="preferences">
- <?dbhtml filename="preferences.html"?>
- <title>JBoss Tools Preferences</title>
-
- <para>Configuring the various <property>JBoss Developer Studio</property> features is done via
- the <property>Preferences</property> screen by selecting <emphasis>
- <property>Window > Preferences > JBoss Tools</property>
- </emphasis> from the menu bar.</para>
- <figure>
- <title>Preferences are included in this dialog.</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/preferences/preferences_1.png"/>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>From this screen, you can select these more specific sets of <property>JBoss Tools
- preferences</property>:</para>
-
- <itemizedlist>
- <listitem>
- <para>
- <link linkend="PackagingArchives">Packaging Archives</link>
- </para>
- </listitem>
-
- <listitem>
- <para>
- <link linkend="Editors">Editors</link>
- </para>
- </listitem>
-
- <listitem>
- <para>
- <link linkend="VisualPageEditor2">Visual Page Editor</link>
- </para>
- </listitem>
-
- <listitem>
- <para>
- <link linkend="el_variables">El Variables</link>
- </para>
- </listitem>
-
- <listitem>
- <para>
- <link linkend="JSF">JSF</link>
- </para>
- </listitem>
-
- <listitem>
- <para>
- <link linkend="JSFPage">JSF Page</link>
- </para>
- </listitem>
-
- <listitem>
- <para>
- <link linkend="JSFPropject">JSF Project</link>
- </para>
- </listitem>
-
- <listitem>
- <para>
- <link linkend="JSFFlowDiagram">JSF Flow Diagram</link>
- </para>
- </listitem>
-
- <listitem>
- <para>
- <link linkend="Seam">Seam</link>
- </para>
- </listitem>
- <listitem>
- <para>
- <link linkend="SeamValidator">Seam Validator</link>
- </para>
- </listitem>
-
- <listitem>
- <para>
- <link linkend="Struts">Struts</link>
- </para>
- </listitem>
- <listitem>
- <para>
- <link linkend="struts_automation">Struts Automatic</link>
- </para>
- </listitem>
-
- <listitem>
- <para>
- <link linkend="Plug-inInsets">Plug-in Insets</link>
- </para>
- </listitem>
- <listitem>
- <para>
- <link linkend="ResourceInsets">Resource Insets</link>
- </para>
- </listitem>
-
- <listitem>
- <para>
- <link linkend="StrutsCustomization">Struts Customization</link>
- </para>
- </listitem>
-
-
- <listitem>
- <para>
- <link linkend="StrutsProject">Struts Project</link>
- </para>
- </listitem>
-
- <listitem>
- <para>
- <link linkend="StrutsSupport">Struts Support</link>
- </para>
- </listitem>
-
- <listitem>
- <para>
- <link linkend="StrutsPages">Struts Pages</link>
- </para>
- </listitem>
-
- <listitem>
- <para>
- <link linkend="StrutsFlowDiagram">Struts Flow Diagram</link>
- </para>
- </listitem>
-
-
- <listitem>
- <para>
- <link linkend="tiles_diagram">Tiles Diagram</link>
- </para>
- </listitem>
- <listitem>
- <para>
- <link linkend="Verification">Verification</link>
- </para>
- </listitem>
- </itemizedlist>
-
- <para>The <property>Preferences</property> dialog <emphasis>( <property>Window >
- Preferences</property>) </emphasis> also allows to adjust settings for <link
- linkend="JBossServerPreferences">JBoss Server</link> and <link linkend="XDoclet"
- >XDoclet</link> module.</para>
-
- <section id="PackagingArchives">
- <?dbhtml filename="PackagingArchives.html"?>
- <title>Packaging Archives</title>
-
- <para>Fallow to <emphasis>
- <property>JBoss Tools > Packaging Archives</property>
- </emphasis> to open the page for changing Packaging Archives preferences.</para>
- <para>Here you can determine settings for Project Packages view and core preferences.</para>
-
- <figure>
- <title>Packaging Archives</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/preferences/preferences_2.png"/>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>The next table lists all available preferences for Packaging Archives and their
- description.</para>
-
- <table>
- <title>Packaging Archives Preferences</title>
-
- <tgroup cols="3">
-
- <colspec colnum="1" align="left" colwidth="2*"/>
- <colspec colnum="2" colwidth="4*"/>
- <colspec colnum="3" colwidth="2*"/>
-
- <thead>
- <row>
- <entry>Option</entry>
- <entry>Description</entry>
- <entry>Default</entry>
- </row>
- </thead>
-
- <tbody>
- <row>
- <entry>Enable incremental builder</entry>
- <entry>Uncheck this option if you don't want to enable incremental
- builder for your resources</entry>
- <entry>On</entry>
- </row>
-
- <row>
- <entry>Show full output path next to packages</entry>
- <entry>This option allows you to show or hide an output path next to
- packages
- <!--(<link linkend="full_outputpath_for_packages">See the
- figure</link>)-->.</entry>
- <entry>On</entry>
- </row>
-
- <row>
- <entry>Show the full root directory of filesets</entry>
- <entry>If on, the full root directory is displayed next to filesets.
- Otherwise, it's hidden
- <!--(<link
- linkend="full_rootdir_for_filesets">See the figure</link>)-->.</entry>
- <entry>On</entry>
- </row>
-
- <row>
- <entry>Show project at the root</entry>
- <entry>This option allows you to choose whether to display a project name at
- the root of the packages or not. When checked, 'Show all
- projects that contain packages' is enabled
- <!--(<link
- linkend="project_at_the_root">See the figure</link>)-->.</entry>
- <entry>On</entry>
- </row>
-
- <row>
- <entry>Show all projects that contain packages</entry>
- <entry>Selecting this setting enables the Projects Archiving view to show or
- hide all projects that contain packages. The option is available when
- the previous one is checked.</entry>
- <entry>Off</entry>
- </row>
- </tbody>
- </tgroup>
- </table>
- <!--
- <figure id="full_outputpath_for_packages">
- <title>Show Full Output Path next to Packages</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/preferences/preferences_3.png"/>
- </imageobject>
- </mediaobject>
- </figure>
-
- <figure id="full_rootdir_for_filesets">
- <title>Show the Full Root Directory of Filesets</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/preferences/preferences_4.png"/>
- </imageobject>
- </mediaobject>
- </figure>
-
- <figure id="project_at_the_root">
- <title>Show Project at the root</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/preferences/preferences_5.png"/>
- </imageobject>
- </mediaobject>
- </figure>
--->
-
- </section>
-
- <!--section id="CodeAssist">
- <?dbhtml filename="CodeAssist.html"?>
- <title>CodeAssist</title>
- <para>Select <emphasis>
- <property>JBoss Tools > XDoclet > Code Assist</property>
- </emphasis> to see Code Assist preference page.</para>
- <para>Here is what the Code Assist preference page looks like: </para>
- <figure>
- <title>CodeAssist</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/preferences/preferences_2.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- </section-->
-
- <section id="Editors">
- <?dbhtml filename="Editors.html"?>
- <title>Editors</title>
- <para>To adjust settings common for all editors supplied with <property>JBoss Developer
- Studio</property> you should select <emphasis>
- <property>JBoss Tools > Web > Editors</property>.</emphasis></para>
-
- <figure>
- <title>Editors</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/preferences/preferences_6.png"/>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>On the Editors page the following preferences are available:</para>
-
- <table>
-
- <title>Editors Preferences</title>
- <tgroup cols="3">
-
- <colspec colnum="1" align="left" colwidth="2*"/>
- <colspec colnum="2" colwidth="4*"/>
- <colspec colnum="3" colwidth="2*"/>
-
- <thead>
- <row>
- <entry>Option</entry>
- <entry>Description</entry>
- <entry>Default</entry>
- </row>
- </thead>
-
- <tbody>
- <row>
- <entry>Always use JBoss Tools editors with Open option</entry>
- <entry/>
- <entry>On</entry>
- </row>
-
- <row>
- <entry>Show warning when project has no JBoss Tools capabilities</entry>
- <entry>Check this option to be sure that any JBoss Tools editor fully
- available for a particular type of file. If no, you'll be
- warned about this.</entry>
- <entry>On</entry>
- </row>
-
- <row>
- <entry>Use Source tab as a default for multi-tab editors</entry>
- <entry>If on, an editor will open the files in the Source view by
- default</entry>
- <entry>Off</entry>
- </row>
- </tbody>
- </tgroup>
- </table>
-
- </section>
-
- <section id="VisualPageEditor2">
- <?dbhtml filename="VisualPageEditor.html"?>
- <title>Visual Page Editor</title>
- <para><emphasis>
- <property>JBoss Tools > Web > Editors > Visual Page
- Editor</property>
- </emphasis> screen allows you to control some aspects of the behavior of the
- <property>Visual Page Editor</property> (VPE) for JSF/HTML files.</para>
- <figure>
- <title>Visual Page Editor</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/preferences/preferences_7.png"/>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>The next table lists the possible settings that you can adjust on the
- <property>General tab</property> of the VPE Preferences page.</para>
-
-
- <table>
-
- <title>VPE Preferences</title>
- <tgroup cols="3">
-
- <colspec colnum="1" align="left" colwidth="2*"/>
- <colspec colnum="2" colwidth="4*"/>
- <colspec colnum="3" colwidth="2*"/>
-
- <thead>
- <row>
- <entry>Option</entry>
- <entry>Description</entry>
- <entry>Default</entry>
- </row>
- </thead>
-
- <tbody>
- <row>
- <entry>Show border for unknown tags</entry>
- <entry>The option allows to place the border around unknown tags or undo
- this</entry>
- <entry>On</entry>
- </row>
-
- <row>
- <entry>Show non-visual tags</entry>
- <entry>Check this box, if you want the editor shows non-visual elements on
- the page you're editing</entry>
- <entry>Off</entry>
- </row>
-
- <row>
- <entry>Show selection tag bar</entry>
- <entry>The option allows to show/hide the Selection Bar</entry>
- <entry>On</entry>
- </row>
-
- <row>
- <entry>Show text formatting bar</entry>
- <entry>Check this box in order to show/hide the Text Formatting bar</entry>
- <entry>On</entry>
- </row>
-
- <row>
- <entry>Show resource bundles usage as EL expressions</entry>
- <entry>If the option is checked, the editor will show EL expressions instead
- of the resource values</entry>
- <entry>Off</entry>
- </row>
-
- <row>
- <entry>Ask for tag attributes during tag insert </entry>
- <entry>Having this option off, the dialog with possible attributes for
- inserting tag won't appear if all its attributes are optional</entry>
- <entry>On</entry>
- </row>
-
- <row>
- <entry>Ask for confirmation when closing the Selection Bar</entry>
- <entry>Check this box if you don't want the confirmation window
- appears when closing the Selection Bar</entry>
- <entry>On</entry>
- </row>
-
- <row>
- <entry>Select the default active editor's tab</entry>
- <entry>The option provides possibility to choose one of the following
- views - Visual/Source, Source or Preview, as default when opening the
- editor</entry>
- <entry>Visual/Source</entry>
- </row>
- <row>
- <entry>Visual/Source editors splitting</entry>
- <entry>The option allows to choose one of the following
- Visual,Source layouts - Vertical Source on top, Vertical Visual on top,Horizontal Source to the left or Horizontal Visual to the left,
- as a default one when opening the Visual/Source view</entry>
- <entry>Vertical splitting with Source Editor on the top</entry>
- </row>
- <row>
- <entry>Size of the Visual Editor pane (0 – 100%)</entry>
- <entry>With the help of this scroll bar you can adjust the percentage rating
- between the Source and Visual modes of the Visual/Source view</entry>
- <entry>50%</entry>
- </row>
- </tbody>
- </tgroup>
- </table>
-
- <para>On the <property>Templates tab</property> you can edit or remove <link
- linkend="vpe_templating">VPE templates</link>.</para>
- <figure>
- <title>Visual Page Editor Templates</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/preferences/preferences_8.png"/>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>Select a template for editing from the available list and press <emphasis>
- <property>Edit</property>
- </emphasis> button. It will pick up the <link linkend="template_dialog">Template
- dialog</link> where you can adjust new settings.</para>
- </section>
-
- <section id="el_variables">
- <?dbhtml filename="el_variables.html"?>
- <title>El Variables</title>
- <para>To specify necessary EL variables globally, i. e. for all projects and resources in
- your workspace, you should go to <emphasis>
- <property>JBoss Tools > Web > El Variables</property>. </emphasis></para>
-
- <figure>
- <title>El Variables</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/preferences/preferences_9.png"/>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>Click <emphasis>
- <property>Add...</property>
- </emphasis> to set value for a new EL variable. In the appeared wizard you should
- specify the global values and press <emphasis>
- <property>Finish</property>
- </emphasis>.</para>
-
- <figure>
- <title>Adding a Global El Variable</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/preferences/preferences_10.png"/>
- </imageobject>
- </mediaobject>
- </figure>
-
- <tip>
- <title>Tip:</title>
- <para>If you specify an equal variable in <link linkend="el_exp_para">Substitute EL
- expressions dialog</link> and in Preference EL dialog, variable from preference dialog will
- have priority.</para>
- </tip>
- </section>
- <!--section id="JBossServers">
- <?dbhtml filename="JBossServers.html"?>
- <title>JBoss Servers</title>
- <para>The following preferences can be changed on the <emphasis>
- <property>JBoss Tools > JBoss Servers</property>
- </emphasis> preference page.</para>
- <para>Here is what the JBoss Servers preference page looks like:</para>
- <figure>
- <title>JBoss Servers</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/preferences/preferences_4.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- </section-->
-
- <section id="JSF">
- <?dbhtml filename="JSF.html"?>
- <title>JSF</title>
- <para>Select <emphasis>
- <property>JBoss Tools > Web > JSF</property>
- </emphasis> to get to the JSF Project specific preferences.</para>
- <figure>
- <title>JSF</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/preferences/preferences_11.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- </section>
-
- <section id="JSFPage">
- <?dbhtml filename="JSF Page.html"?>
- <title>JSF Pages</title>
- <para>By selecting <emphasis>
- <property>JBoss Tools > Web > JSF > JSF Pages</property>
- </emphasis> you can add jsf pages or remove existing ones.</para>
- <figure>
- <title>JSF Page</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/preferences/preferences_12.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- </section>
-
- <section id="JSFPropject">
- <?dbhtml filename="JSFPropject.html"?>
- <title>JSF Project</title>
- <para>Select <emphasis>
- <property>JBoss Tools > Web > JSF > Project</property>
- </emphasis> to see JSF Project preferences page.</para>
- <para>On the <emphasis>
- <property>New Project</property>
- </emphasis> tab you can set default values for New JSF Project wizard:</para>
-
- <itemizedlist>
- <listitem>
- <para><emphasis>
- <property>Version</property>
- </emphasis> for setting the default JSF Environment</para>
- </listitem>
-
- <listitem>
- <para><emphasis>
- <property>Project Template</property>
- </emphasis> so as <property>New JSF Project wizard</property> shows this
- template as default for the chosen JSF Environment</para>
- </listitem>
-
- <listitem>
- <para><emphasis>
- <property>Project Root</property>
- </emphasis> for specifying default location for a new JSF project</para>
- <para>If you check <emphasis>
- <property>Use Default Path</property>
- </emphasis> here, this box will be also checked in the <property>New JSF Project
- wizard</property>.</para>
- </listitem>
-
- <listitem>
- <para><emphasis>
- <property>Servlet Version</property>
- </emphasis> for setting the default Servlet version of a new JSF project</para>
- <para>Here it's also possible to define whether to register Web Context in <emphasis>
- <property>server.xml</property>
- </emphasis> while organizing a new project or not. Check the proper box in order
- to do that.</para>
- </listitem>
- </itemizedlist>
-
- <figure>
- <title>New JSF Project Preferences</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/preferences/preferences_13.png"/>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>On the <emphasis>
- <property>Import Project</property>
- </emphasis> tab in the JSF Project screen you can determine the default Servlet version
- for the Import JSF Project
- wizard and also whether to register Web Context in <emphasis>
- <property>server.xml</property>
- </emphasis> or not.</para>
-
- <figure>
- <title>Import JSF Project Preferences</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/preferences/preferences_14.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- </section>
-
- <section id="JSFValidator">
- <?dbhtml filename="JSFValidator.html"?>
- <title>JSF Validator</title>
- <para>Select <property>JBoss Tools > Web > JSF > Validator</property> page to configure the validator behavior. On this page you can change the severity level for different jsf problems which are controlled by validator.</para>
- <figure>
- <title>JSF Validator</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/preferences/preferences_14a.png" />
- </imageobject>
- </mediaobject>
- </figure>
- </section>
-
- <section id="JSFFlowDiagram">
- <?dbhtml filename="JSFFlowDiagram.html"?>
- <title>JSF Flow Diagram</title>
- <para>Selecting <emphasis>
- <property>JBoss Tools > Web > Editors > JSF Flow Diagram</property>
- </emphasis> allows you to specify some aspects of the Diagram mode of the JSF
- configuration file editor.</para>
-
- <figure>
- <title>JSF Flow Diagram</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/preferences/preferences_15.png" scale="75"/>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>The first two items control the background grid for the diagram. The next two items
- allow you to control the appearance of the labels for views (pages) and the transitions
- between views. For these two items, clicking the <emphasis>
- <property>Change... </property>
- </emphasis>button allows you to assign a font with a dialog box.</para>
-
- <para>The first check box determines whether a view in the diagram that doesn't have a
- transition connecting it to another view yet should be written to the source code as a
- partial navigation rule. The next check box determines whether the diagram cursor
- reverts immediately to the standard selection mode after it's used in the
- transition-drawing mode to draw a transition. Finally, the last two check boxes concern
- shortcuts. A shortcut is a transition that is there but isn't actually displayed in the
- diagram as going all the way to the target view it's connected to, in order to make the
- diagram clearer. With the check boxes, you can decide whether to display a small
- shortcut icon as part of the shortcut and also whether to display the target view as a
- label or not.</para>
- <figure>
- <title>Add View</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/preferences/preferences_16.png" scale="75"/>
- </imageobject>
- </mediaobject>
- </figure>
- <para>Selecting the Add Page tab in the JSF Flow Diagram screen allows you to determine the
- default template and file extension for views (pages) you add directly into the diagram
- using a context menu or the view-adding mode of the diagram cursor.</para>
- </section>
-
- <section id="label_decorations">
- <title>Label Decorations</title>
-
- <para>The Label Decorations page is opened from <emphasis>
- <property>JBoss Tools > Web > Label Decorations</property>. </emphasis></para>
-
- <figure>
- <title>Label Decorations</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/preferences/preferences_17.png"/>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>On this page you can determine the format for a text output near the decoration label
- for different Web resources. To change the value for selected element, click <emphasis>
- <property>Add Variable...</property>
- </emphasis> button next to <emphasis>
- <property>Format</property>
- </emphasis> field. Appeared wizard will prompt you to select one from the available
- list.</para>
-
- <figure>
- <title>Label Decoration for Validator</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/preferences/preferences_18.png"/>
- </imageobject>
- </mediaobject>
- </figure>
-
- </section>
-
- <section id="Seam">
- <?dbhtml filename="Seam.html"?>
- <title>Seam</title>
- <para>The following preferences can be changed on the <emphasis>
- <property>JBoss Tools > Web > Seam</property>
- </emphasis> page.</para>
- <para>On <emphasis>
- <property>Seam</property>
- </emphasis> screen you can add and remove Seam runtimes.</para>
- <para>Here is what Seam preference page looks like:</para>
- <figure>
- <title>Seam preference page</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/preferences/preferences_19.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- </section>
-
- <section id="SeamValidator">
- <?dbhtml filename="SeamValidator.html"?>
- <title>Seam Validator</title>
- <para>The following preferences can be changed on the <emphasis>
- <property>JBoss Tools > Web > Seam > Validator</property>
- </emphasis> page.</para>
- <para>In <emphasis>
- <property>Validator</property>
- </emphasis> panel you configure seam problems that will be processed by
- validator.</para>
- <figure>
- <title>Seam Validator</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/preferences/preferences_20.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- </section>
-
- <section id="SeamPagesDiagram">
- <?dbhtml filename="SeamPagesDiagram.html"?>
- <title>Seam Pages Diagram</title>
-
-
-
- <para>In order to customize the layout of the Diagram used for editing and composing <property>page.xml</property> file in <property>Graphical mode</property> of <property>Seam Pages Editor</property> you can go to
- <property>Window > Preferences > JBoss Tools > Web > Seam > Editors > Seam Pages Diagram</property>.
- </para>
-
- <figure>
- <title>Preferences of Seam Pages Diagram</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/preferences/preferences_44.png"/>
- </imageobject>
- </mediaobject>
- </figure>
-
- </section>
-
-
-
-
-
- <section id="Struts">
- <?dbhtml filename="Struts.html"?>
- <title>Struts</title>
- <para>By selecting <emphasis>
- <property>JBoss Tools > Web > Struts</property>
- </emphasis> you can configure Struts projects specific preferences.</para>
- <figure>
- <title>Struts projects preferences Page.</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/preferences/preferences_21.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- </section>
-
- <section id="struts_automation">
- <?dbhtml filename="struts_automation.html"?>
- <title>Struts Automation</title>
- <para>On <emphasis>
- <property>Automation</property>
- </emphasis> panel you can modify default text for the Title Struts plug-in element, the
- Validator Struts plug-in element, and error message resource files.</para>
- <figure>
- <title>Struts Automatic</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/preferences/preferences_22.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- </section>
-
- <section id="Plug-inInsets">
- <?dbhtml filename="Plug-inInsets.html"?>
- <title>Plug-in Insets</title>
- <para>By selecting <emphasis>
- <property>Web > Struts > Automation > Plug-in Insets</property>
- </emphasis> on tab Tiles you can define a default text for tiles plugin.</para>
- <figure>
- <title>Plug-in Insets</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/preferences/preferences_23.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- <para>The same is done but for validator plugin on the tab Validators.</para>
- <figure>
- <title>Plug-in Insets of Validators</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/preferences/preferences_24.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- </section>
-
- <section id="ResourceInsets">
- <?dbhtml filename="ResourceInsets.html"?>
- <title>Resource Insets</title>
- <para>To see Resource Insets preference page select <emphasis>
- <property>JBoss Tools > Web > Strats > Automation > Resource Insets</property>
- </emphasis>.</para>
- <para>On <emphasis>
- <property>Resource Insets</property>
- </emphasis> panel you determine default error messages for error resource files.</para>
- <figure>
- <title>Resource Insets</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/preferences/preferences_25.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- </section>
-
- <section id="StrutsCustomization">
- <?dbhtml filename="StrutsCustomization"?>
- <title>Struts Customization</title>
- <para>The following preferences can be changed on the <emphasis>
- <property>JBoss Tools > Web > Struts > Customization</property>
- </emphasis> page.</para>
- <para>In the<emphasis>
- <property>Customization</property>
- </emphasis> screen you configure Link Recognizer for Struts tags.</para>
- <figure>
- <title>Struts Customization</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/preferences/preferences_26.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- </section>
-
- <section id="StrutsProject">
- <?dbhtml filename="StrutsProject.html"?>
- <title>Struts Project</title>
- <para>You can change the following preferences on the <emphasis>
- <property>JBoss Tools > Web > Struts > Project</property>
- </emphasis> preference page:</para>
- <para>On <emphasis>
- <property>Project</property>
- </emphasis> panel you define a template for a new Struts created project: servlet
- version, page template and so on.</para>
- <figure>
- <title>Struts Project</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/preferences/preferences_27.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- <para>Selecting the Import Project tab in the Struts Project screen allows you to determine
- the default servlet version and whether to register Web Context in server.xml.</para>
- <figure>
- <title>Import Struts Pages</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/preferences/preferences_28.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- </section>
-
- <section id="StrutsSupport">
- <?dbhtml filename="StrutsSupport.html"?>
- <title>Struts Support</title>
- <para>The following preferences can be changed on the <emphasis>
- <property>JBoss Tools > Web > Struts > Project > Struts Support</property>
- </emphasis> page.</para>
- <para>Select <emphasis>
- <property>Struts Support</property>
- </emphasis> screen if you want to configure Struts versions support settings.</para>
- <figure>
- <title>Struts Support</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/preferences/preferences_29.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- </section>
-
- <section id="StrutsPages">
- <?dbhtml filename="StrutsPages.html"?>
- <title>Struts Pages</title>
- <para>You can change the following preferences on the JBoss Tools > Web > Struts > Struts
- Pages preference page.</para>
- <para>On <emphasis>
- <property>Struts Pages</property>
- </emphasis> panel you can add or remove Struts pages.</para>
- <figure>
- <title>Struts Pages</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/preferences/preferences_30.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- </section>
-
- <section id="StrutsFlowDiagram">
- <?dbhtml filename="StrutsFlowDiagram.html"?>
- <title>Struts Flow Diagram</title>
- <para>Similarly to the JSF Flow Diagram screen, selecting <emphasis>
- <property>JBoss Tools > Web > Editor > Struts Flow Diagram</property>
- </emphasis> page allows you to specify aspects of the Diagram mode of the Struts
- configuration file editor. The Struts Flow Diagram screen adds an option to hide the
- Diagram tab and labeling settings for additional artifacts. </para>
- <figure>
- <title>Struts Flow Diagram</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/preferences/preferences_31.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- <para>Selecting the Add Page tab in the Struts Flow Diagram screen allows you to determine
- the default template and file extension for views (pages) you add directly into the
- diagram using a context menu or the view-adding mode of the diagram cursor.</para>
- <figure>
- <title>Adding Page</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/preferences/preferences_32.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- </section>
-
- <section id="tiles_diagram">
- <?dbhtml filename="titles_diagram.html"?>
- <title>Tiles Diagram</title>
- <para><emphasis>
- <property>JBoss Tools > Web > Editors > Title Diagram</property>
- </emphasis> screen allows you control some settings for the placement of Tiles
- definitions in the Diagram mode of the JBoss Tools Tiles editor.</para>
- <figure>
- <title>Title Diagram</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/preferences/preferences_33.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- </section>
-
- <section id="Verification">
- <?dbhtml filename="Verification.html"?>
- <title>Verification</title>
- <para>The following preferences can be changed on the <emphasis>
- <property>JBoss Tools > Web > Verification</property>
- </emphasis> page.</para>
- <para>On Rules Configuration tab of <emphasis>
- <property>Verification</property>
- </emphasis> panel you can determine JSF and Struts rules.</para>
- <figure>
- <title>Verification</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/preferences/preferences_34.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- <para>On Options tab you can define a limit for the reported errors number.</para>
- <figure>
- <title>Options of Verification</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/preferences/preferences_35.png"/>
- </imageobject>
- </mediaobject>
- </figure>
-
- </section>
-
- <section id="JBossServerPreferences">
- <?dbhtml filename="View.html"?>
- <title>Server Preferences</title>
- <para>Preferences for <property>JBoss Server</property> and other servers can be changed on
- the <emphasis>
- <property>Server</property>
- </emphasis> page.</para>
-
- <figure>
- <title>Server Preferences</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/preferences/preferences_36.png"/>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>On the <emphasis>
- <property>Server > Runtime Environments</property>
- </emphasis> page you can add new or modify already defined Server Runtime.</para>
-
- <figure>
- <title>Runtime Environments</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/preferences/preferences_37.png"/>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>Server Launching preferences can be configured on the <emphasis>
- <property>Server > Launching</property>
- </emphasis> page.</para>
-
- <figure>
- <title>Server Launching Preferences</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/preferences/preferences_38.png"/>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>Going to <emphasis>
- <property>Server > Audio</property>
- </emphasis> you can enable/disable the sound notification for different Server states
- and actions and set the sound volume as well.</para>
-
- <figure>
- <title>Sound Notification Adjustment</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/preferences/preferences_40.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- </section>
-
- <section id="XDoclet">
- <?dbhtml filename="XDoclet.html"?>
- <title>XDoclet</title>
- <para>The preferences for XDoclet can be changed if you click <emphasis>
- <property>XDoclet</property>
- </emphasis> on the left navigation bar.</para>
- <para>On the <emphasis>
- <property>XDoclet</property>
- </emphasis> screen it's possible to enable/disable XDoclet builder by checking
- proper box, specify XDoclet home and determine XDoclet module version as well.</para>
-
- <figure>
- <title>XDoclet Runtime Preferences Page</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/preferences/preferences_41.png"/>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>Switch to <emphasis>
- <property>XDoclet > ejbdoclet</property>
- </emphasis> page in order to adjust settings for EJB-specific sub-tasks.</para>
-
- <figure>
- <title>ejbdoclet</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/preferences/preferences_42.png"/>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>To configure settings for various web-specific XDoclet sub-tasks, follow to <emphasis>
- <property>XDoclet > webdoclet</property>
- </emphasis> page.</para>
-
- <figure>
- <title>webdoclet</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/preferences/preferences_43.png"/>
- </imageobject>
- </mediaobject>
- </figure>
-
- </section>
-
- <!--section id="XDocletTemplates">
- <?dbhtml filename="XDocletTemplates.html"?>
- <title>XDoclet Templates</title>
- <para>To see what XDoclet tags templates available for completion select <emphasis>
- <property>JBoss Tools > XDoclet > Code Assist > Templates</property>
- </emphasis>.</para>
- <figure>
- <title>XDoclet Templates</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/preferences/preferences_32.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- <para>By right clicking on any tree element you can add a new template, remove or rename it
- and also add a new tree.</para>
- <para>Select, for example, <emphasis>
- <property>Add</property>
- </emphasis> and you'll be prompted by a list of available elements to
- add.</para>
- <figure>
- <title>Add New XDoclet Template</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/preferences/preferences_33.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- <para>By double-clicking some element a new list will be shown: now for available
- methods.</para>
- <figure>
- <title>Select New Element</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/preferences/preferences_34.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- <para>Choose any element from the list, then select an attribute.</para>
- <figure>
- <title>Select New Element</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/preferences/preferences_35.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- <para>It will be added to the available templates.</para>
- <figure>
- <title>Select New Element</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/preferences/preferences_36.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- </section>
-
- <section id="XDocletsVariables">
- <?dbhtml filename="XDocletsVariables.html"?>
- <title>XDoclets Variables</title>
- <para>By selecting <emphasis>
- <property>JBoss Tools > XDoclet > Variables</property>
- </emphasis> you define variables used in templates.</para>
- <figure>
- <title>XDoclets Variables</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/preferences/preferences_37.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- </section>
-
- <section id="ChangingDefaultEnvironmentDuringProjectCreation">
- <?dbhtml filename="ChangingDefaultEnvironmentDuringProjectCreation.html"?>
- <title>Changing Default Environment During Project Creation</title>
-
- <para>To change the default environment and project template for either JSF or Struts new
- project creation:</para>
-
- <orderedlist>
- <listitem>
- <para>Select<emphasis>
- <property> Window > Preferences > JBoss Tools > Web
- > {JSF or Struts} > Project</property>
- </emphasis></para>
- </listitem>
- <listitem>
- <para>For Version set the environment you want to be the default one</para>
- </listitem>
- <listitem>
- <para>For Project Template set the template you want to be the default one</para>
- </listitem>
- </orderedlist>
-
- <figure>
- <title>Changing Enviroment Template</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/preferences/preferences_36.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- </section>
-
- <section id="ChangingDefaultProjectTemplateDuringProjectCreatio8n">
- <?dbhtml filename="ChangingDefaultEnvironmentDuringProjectCreation.html"?>
- <title>Changing Default Project Template During Project Creation</title>
-
- <para>To change the default project template for either JSF or Struts new project
- creation:</para>
-
- <orderedlist>
- <listitem>
- <para>Select<emphasis>
- <property> Window > Preferences > JBoss Tools > Web > {JSF or Struts} >
- Project</property>
- </emphasis></para>
- </listitem>
- <listitem>
- <para>For Project Template set the template you want to be the default one</para>
- </listitem>
- </orderedlist>
-
- <figure>
- <title>Changing Project Template</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/preferences/preferences_37.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- </section>
--->
-</chapter>
+<?xml version='1.0' encoding='UTF-8'?>
+<chapter id="preferences" xreflabel="preferences">
+ <?dbhtml filename="preferences.html"?>
+ <title>JBoss Tools Preferences</title>
+
+ <para>Configuring the various <property>JBoss Developer Studio</property> features is done via
+ the <property>Preferences</property> screen by selecting <emphasis>
+ <property>Window > Preferences > JBoss Tools</property>
+ </emphasis> from the menu bar.</para>
+ <figure>
+ <title>Preferences are included in this dialog.</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/preferences/preferences_1.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>From this screen, you can select these more specific sets of <property>JBoss Tools
+ preferences</property>:</para>
+
+ <itemizedlist>
+ <listitem>
+ <para>
+ <link linkend="ProjectArchives">Project Archives</link>
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ <link linkend="Editors">Editors</link>
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ <link linkend="VisualPageEditor2">Visual Page Editor</link>
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ <link linkend="el_variables">El Variables</link>
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ <link linkend="JSF">JSF</link>
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ <link linkend="JSFPage">JSF Page</link>
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ <link linkend="JSFPropject">JSF Project</link>
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ <link linkend="JSFFlowDiagram">JSF Flow Diagram</link>
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ <link linkend="Seam">Seam</link>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <link linkend="SeamValidator">Seam Validator</link>
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ <link linkend="Struts">Struts</link>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <link linkend="struts_automation">Struts Automatic</link>
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ <link linkend="Plug-inInsets">Plug-in Insets</link>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <link linkend="ResourceInsets">Resource Insets</link>
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ <link linkend="StrutsCustomization">Struts Customization</link>
+ </para>
+ </listitem>
+
+
+ <listitem>
+ <para>
+ <link linkend="StrutsProject">Struts Project</link>
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ <link linkend="StrutsSupport">Struts Support</link>
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ <link linkend="StrutsPages">Struts Pages</link>
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ <link linkend="StrutsFlowDiagram">Struts Flow Diagram</link>
+ </para>
+ </listitem>
+
+
+ <listitem>
+ <para>
+ <link linkend="tiles_diagram">Tiles Diagram</link>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <link linkend="Verification">Verification</link>
+ </para>
+ </listitem>
+ </itemizedlist>
+
+ <para>The <property>Preferences</property> dialog <emphasis>( <property>Window >
+ Preferences</property>) </emphasis> also allows to adjust settings for <link
+ linkend="JBossServerPreferences">JBoss Server</link> and <link linkend="XDoclet"
+ >XDoclet</link> module.</para>
+
+ <section id="ProjectArchives">
+ <?dbhtml filename="ProjectArchives.html"?>
+ <title>Project Archives</title>
+
+ <para>Click on the <emphasis>
+ <property>Project Archives</property>
+ </emphasis> to open the page for changing Project Archives preferences.</para>
+ <para>Here you can determine settings for Core Preferences, Project Archives View,
+ Project Explorer Preferences and Fileset Preferences.</para>
+
+ <figure>
+ <title>Project Archives</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/preferences/preferences_2.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>The next table lists all available preferences for Project Archives and their
+ description.</para>
+
+ <table>
+ <title>Project Archives Preferences</title>
+
+ <tgroup cols="3">
+
+ <colspec colnum="1" align="left" colwidth="2*"/>
+ <colspec colnum="2" colwidth="4*"/>
+ <colspec colnum="3" colwidth="2*"/>
+
+ <thead>
+ <row>
+ <entry>Option</entry>
+ <entry>Description</entry>
+ <entry>Default</entry>
+ </row>
+ </thead>
+
+ <tbody>
+ <row>
+ <entry>Enable incremental builder</entry>
+ <entry>Uncheck this option if you don't want to enable incremental
+ builder for your resources</entry>
+ <entry>On</entry>
+ </row>
+
+ <row>
+ <entry>Show build error dialog</entry>
+ <entry>If on, the Project Archives will show an error dialog
+ in case of a build or incremental update fails.</entry>
+ <entry>On</entry>
+ </row>
+
+ <row>
+ <entry>Show output path next to packages</entry>
+ <entry>This option allows you to show or hide an output path next to
+ packages
+ <!--(<link linkend="full_outputpath_for_packages">See the
+ figure</link>)-->.</entry>
+ <entry>On</entry>
+ </row>
+
+ <row>
+ <entry>Show the root directory of filesets</entry>
+ <entry>If on, the root directory is displayed next to filesets.
+ Otherwise, it's hidden
+ <!--(<link
+ linkend="full_rootdir_for_filesets">See the figure</link>)-->.</entry>
+ <entry>On</entry>
+ </row>
+
+ <row>
+ <entry>Show project at the root</entry>
+ <entry>This option allows you to choose whether to display a project name at
+ the root of the packages or not. When checked, 'Show all
+ projects that contain packages' is enabled
+ <!--(<link
+ linkend="project_at_the_root">See the figure</link>)-->.</entry>
+ <entry>On</entry>
+ </row>
+
+ <row>
+ <entry>Show all projects that contain packages</entry>
+ <entry>Selecting this setting enables the Projects Archiving view to show or
+ hide all projects that contain packages. The option is available when
+ the previous one is checked.</entry>
+ <entry>Off</entry>
+ </row>
+
+ <row>
+ <entry>Show node in all proejcts</entry>
+ <entry>Selecting this setting enables the Projects Archiving view to show
+ node in all projects.</entry>
+ <entry>Off</entry>
+ </row>
+
+ <row>
+ <entry>Enable Default Excludes</entry>
+ <entry>You can set the list of files which will be excluded by default.
+ Other files will be omitted.</entry>
+ <entry>On</entry>
+ </row>
+
+ </tbody>
+ </tgroup>
+ </table>
+ <!--
+ <figure id="full_outputpath_for_packages">
+ <title>Show Full Output Path next to Packages</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/preferences/preferences_3.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <figure id="full_rootdir_for_filesets">
+ <title>Show the Full Root Directory of Filesets</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/preferences/preferences_4.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <figure id="project_at_the_root">
+ <title>Show Project at the root</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/preferences/preferences_5.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+-->
+
+ </section>
+
+ <!--section id="CodeAssist">
+ <?dbhtml filename="CodeAssist.html"?>
+ <title>CodeAssist</title>
+ <para>Select <emphasis>
+ <property>JBoss Tools > XDoclet > Code Assist</property>
+ </emphasis> to see Code Assist preference page.</para>
+ <para>Here is what the Code Assist preference page looks like: </para>
+ <figure>
+ <title>CodeAssist</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/preferences/preferences_2.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </section-->
+
+ <section id="Editors">
+ <?dbhtml filename="Editors.html"?>
+ <title>Editors</title>
+ <para>To adjust settings common for all editors supplied with <property>JBoss Developer
+ Studio</property> you should select <emphasis>
+ <property>JBoss Tools > Web > Editors</property>.</emphasis></para>
+
+ <figure>
+ <title>Editors</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/preferences/preferences_6.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>On the Editors page the following preferences are available:</para>
+
+ <table>
+
+ <title>Editors Preferences</title>
+ <tgroup cols="3">
+
+ <colspec colnum="1" align="left" colwidth="2*"/>
+ <colspec colnum="2" colwidth="4*"/>
+ <colspec colnum="3" colwidth="2*"/>
+
+ <thead>
+ <row>
+ <entry>Option</entry>
+ <entry>Description</entry>
+ <entry>Default</entry>
+ </row>
+ </thead>
+
+ <tbody>
+ <row>
+ <entry>Always use JBoss Tools editors with Open option</entry>
+ <entry/>
+ <entry>On</entry>
+ </row>
+
+ <row>
+ <entry>Show warning when project has no JBoss Tools capabilities</entry>
+ <entry>Check this option to be sure that any JBoss Tools editor fully
+ available for a particular type of file. If no, you'll be
+ warned about this.</entry>
+ <entry>On</entry>
+ </row>
+
+ <row>
+ <entry>Use Source tab as a default for multi-tab editors</entry>
+ <entry>If on, an editor will open the files in the Source view by
+ default</entry>
+ <entry>Off</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+
+ </section>
+
+ <section id="VisualPageEditor2">
+ <?dbhtml filename="VisualPageEditor.html"?>
+ <title>Visual Page Editor</title>
+ <para><emphasis>
+ <property>JBoss Tools > Web > Editors > Visual Page
+ Editor</property>
+ </emphasis> screen allows you to control some aspects of the behavior of the
+ <property>Visual Page Editor</property> (VPE) for JSF/HTML files.</para>
+ <figure>
+ <title>Visual Page Editor</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/preferences/preferences_7.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>The next table lists the possible settings that you can adjust on the
+ <property>General tab</property> of the VPE Preferences page.</para>
+
+
+ <table>
+
+ <title>VPE Preferences</title>
+ <tgroup cols="3">
+
+ <colspec colnum="1" align="left" colwidth="2*"/>
+ <colspec colnum="2" colwidth="4*"/>
+ <colspec colnum="3" colwidth="2*"/>
+
+ <thead>
+ <row>
+ <entry>Option</entry>
+ <entry>Description</entry>
+ <entry>Default</entry>
+ </row>
+ </thead>
+
+ <tbody>
+ <row>
+ <entry>Show border for unknown tags</entry>
+ <entry>The option allows to place the border around unknown tags or undo
+ this</entry>
+ <entry>On</entry>
+ </row>
+
+ <row>
+ <entry>Show non-visual tags</entry>
+ <entry>Check this box, if you want the editor shows non-visual elements on
+ the page you're editing</entry>
+ <entry>Off</entry>
+ </row>
+
+ <row>
+ <entry>Show selection tag bar</entry>
+ <entry>The option allows to show/hide the Selection Bar</entry>
+ <entry>On</entry>
+ </row>
+
+ <row>
+ <entry>Show text formatting bar</entry>
+ <entry>Check this box in order to show/hide the Text Formatting bar</entry>
+ <entry>On</entry>
+ </row>
+
+ <row>
+ <entry>Show resource bundles usage as EL expressions</entry>
+ <entry>If the option is checked, the editor will show EL expressions instead
+ of the resource values</entry>
+ <entry>Off</entry>
+ </row>
+
+ <row>
+ <entry>Ask for tag attributes during tag insert </entry>
+ <entry>Having this option off, the dialog with possible attributes for
+ inserting tag won't appear if all its attributes are optional</entry>
+ <entry>On</entry>
+ </row>
+
+ <row>
+ <entry>Ask for confirmation when closing the Selection Bar</entry>
+ <entry>Check this box if you don't want the confirmation window
+ appears when closing the Selection Bar</entry>
+ <entry>On</entry>
+ </row>
+
+ <row>
+ <entry>Select the default active editor's tab</entry>
+ <entry>The option provides possibility to choose one of the following
+ views - Visual/Source, Source or Preview, as default when opening the
+ editor</entry>
+ <entry>Visual/Source</entry>
+ </row>
+ <row>
+ <entry>Visual/Source editors splitting</entry>
+ <entry>The option allows to choose one of the following
+ Visual,Source layouts - Vertical Source on top, Vertical Visual on top,Horizontal Source to the left or Horizontal Visual to the left,
+ as a default one when opening the Visual/Source view</entry>
+ <entry>Vertical splitting with Source Editor on the top</entry>
+ </row>
+ <row>
+ <entry>Size of the Visual Editor pane (0 – 100%)</entry>
+ <entry>With the help of this scroll bar you can adjust the percentage rating
+ between the Source and Visual modes of the Visual/Source view</entry>
+ <entry>50%</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+
+ <para>On the <property>Templates tab</property> you can edit or remove <link
+ linkend="vpe_templating">VPE templates</link>.</para>
+ <figure>
+ <title>Visual Page Editor Templates</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/preferences/preferences_8.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>Select a template for editing from the available list and press <emphasis>
+ <property>Edit</property>
+ </emphasis> button. It will pick up the <link linkend="template_dialog">Template
+ dialog</link> where you can adjust new settings.</para>
+ </section>
+
+ <section id="el_variables">
+ <?dbhtml filename="el_variables.html"?>
+ <title>El Variables</title>
+ <para>To specify necessary EL variables globally, i. e. for all projects and resources in
+ your workspace, you should go to <emphasis>
+ <property>JBoss Tools > Web > El Variables</property>. </emphasis></para>
+
+ <figure>
+ <title>El Variables</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/preferences/preferences_9.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>Click <emphasis>
+ <property>Add...</property>
+ </emphasis> to set value for a new EL variable. In the appeared wizard you should
+ specify the global values and press <emphasis>
+ <property>Finish</property>
+ </emphasis>.</para>
+
+ <figure>
+ <title>Adding a Global El Variable</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/preferences/preferences_10.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <tip>
+ <title>Tip:</title>
+ <para>If you specify an equal variable in <link linkend="el_exp_para">Substitute EL
+ expressions dialog</link> and in Preference EL dialog, variable from preference dialog will
+ have priority.</para>
+ </tip>
+ </section>
+ <!--section id="JBossServers">
+ <?dbhtml filename="JBossServers.html"?>
+ <title>JBoss Servers</title>
+ <para>The following preferences can be changed on the <emphasis>
+ <property>JBoss Tools > JBoss Servers</property>
+ </emphasis> preference page.</para>
+ <para>Here is what the JBoss Servers preference page looks like:</para>
+ <figure>
+ <title>JBoss Servers</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/preferences/preferences_4.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </section-->
+
+ <section id="JSF">
+ <?dbhtml filename="JSF.html"?>
+ <title>JSF</title>
+ <para>Select <emphasis>
+ <property>JBoss Tools > Web > JSF</property>
+ </emphasis> to get to the JSF Project specific preferences.</para>
+ <figure>
+ <title>JSF</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/preferences/preferences_11.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </section>
+
+ <section id="JSFPage">
+ <?dbhtml filename="JSF Page.html"?>
+ <title>JSF Pages</title>
+ <para>By selecting <emphasis>
+ <property>JBoss Tools > Web > JSF > JSF Pages</property>
+ </emphasis> you can add jsf pages or remove existing ones.</para>
+ <figure>
+ <title>JSF Page</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/preferences/preferences_12.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </section>
+
+ <section id="JSFPropject">
+ <?dbhtml filename="JSFPropject.html"?>
+ <title>JSF Project</title>
+ <para>Select <emphasis>
+ <property>JBoss Tools > Web > JSF > Project</property>
+ </emphasis> to see JSF Project preferences page.</para>
+ <para>On the <emphasis>
+ <property>New Project</property>
+ </emphasis> tab you can set default values for New JSF Project wizard:</para>
+
+ <itemizedlist>
+ <listitem>
+ <para><emphasis>
+ <property>Version</property>
+ </emphasis> for setting the default JSF Environment</para>
+ </listitem>
+
+ <listitem>
+ <para><emphasis>
+ <property>Project Template</property>
+ </emphasis> so as <property>New JSF Project wizard</property> shows this
+ template as default for the chosen JSF Environment</para>
+ </listitem>
+
+ <listitem>
+ <para><emphasis>
+ <property>Project Root</property>
+ </emphasis> for specifying default location for a new JSF project</para>
+ <para>If you check <emphasis>
+ <property>Use Default Path</property>
+ </emphasis> here, this box will be also checked in the <property>New JSF Project
+ wizard</property>.</para>
+ </listitem>
+
+ <listitem>
+ <para><emphasis>
+ <property>Servlet Version</property>
+ </emphasis> for setting the default Servlet version of a new JSF project</para>
+ <para>Here it's also possible to define whether to register Web Context in <emphasis>
+ <property>server.xml</property>
+ </emphasis> while organizing a new project or not. Check the proper box in order
+ to do that.</para>
+ </listitem>
+ </itemizedlist>
+
+ <figure>
+ <title>New JSF Project Preferences</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/preferences/preferences_13.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>On the <emphasis>
+ <property>Import Project</property>
+ </emphasis> tab in the JSF Project screen you can determine the default Servlet version
+ for the Import JSF Project
+ wizard and also whether to register Web Context in <emphasis>
+ <property>server.xml</property>
+ </emphasis> or not.</para>
+
+ <figure>
+ <title>Import JSF Project Preferences</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/preferences/preferences_14.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </section>
+
+ <section id="JSFValidator">
+ <?dbhtml filename="JSFValidator.html"?>
+ <title>JSF Validator</title>
+ <para>Select <property>JBoss Tools > Web > JSF > Validator</property> page to configure the validator behavior. On this page you can change the severity level for different jsf problems which are controlled by validator.</para>
+ <figure>
+ <title>JSF Validator</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/preferences/preferences_14a.png" />
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </section>
+
+ <section id="JSFFlowDiagram">
+ <?dbhtml filename="JSFFlowDiagram.html"?>
+ <title>JSF Flow Diagram</title>
+ <para>Selecting <emphasis>
+ <property>JBoss Tools > Web > Editors > JSF Flow Diagram</property>
+ </emphasis> allows you to specify some aspects of the Diagram mode of the JSF
+ configuration file editor.</para>
+
+ <figure>
+ <title>JSF Flow Diagram</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/preferences/preferences_15.png" scale="75"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>The first two items control the background grid for the diagram. The next two items
+ allow you to control the appearance of the labels for views (pages) and the transitions
+ between views. For these two items, clicking the <emphasis>
+ <property>Change... </property>
+ </emphasis>button allows you to assign a font with a dialog box.</para>
+
+ <para>The first check box determines whether a view in the diagram that doesn't have a
+ transition connecting it to another view yet should be written to the source code as a
+ partial navigation rule. The next check box determines whether the diagram cursor
+ reverts immediately to the standard selection mode after it's used in the
+ transition-drawing mode to draw a transition. Finally, the last two check boxes concern
+ shortcuts. A shortcut is a transition that is there but isn't actually displayed in the
+ diagram as going all the way to the target view it's connected to, in order to make the
+ diagram clearer. With the check boxes, you can decide whether to display a small
+ shortcut icon as part of the shortcut and also whether to display the target view as a
+ label or not.</para>
+ <figure>
+ <title>Add View</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/preferences/preferences_16.png" scale="75"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>Selecting the Add Page tab in the JSF Flow Diagram screen allows you to determine the
+ default template and file extension for views (pages) you add directly into the diagram
+ using a context menu or the view-adding mode of the diagram cursor.</para>
+ </section>
+
+ <section id="label_decorations">
+ <title>Label Decorations</title>
+
+ <para>The Label Decorations page is opened from <emphasis>
+ <property>JBoss Tools > Web > Label Decorations</property>. </emphasis></para>
+
+ <figure>
+ <title>Label Decorations</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/preferences/preferences_17.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>On this page you can determine the format for a text output near the decoration label
+ for different Web resources. To change the value for selected element, click <emphasis>
+ <property>Add Variable...</property>
+ </emphasis> button next to <emphasis>
+ <property>Format</property>
+ </emphasis> field. Appeared wizard will prompt you to select one from the available
+ list.</para>
+
+ <figure>
+ <title>Label Decoration for Validator</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/preferences/preferences_18.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ </section>
+
+ <section id="Seam">
+ <?dbhtml filename="Seam.html"?>
+ <title>Seam</title>
+ <para>The following preferences can be changed on the <emphasis>
+ <property>JBoss Tools > Web > Seam</property>
+ </emphasis> page.</para>
+ <para>On <emphasis>
+ <property>Seam</property>
+ </emphasis> screen you can add and remove Seam runtimes.</para>
+ <para>Here is what Seam preference page looks like:</para>
+ <figure>
+ <title>Seam preference page</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/preferences/preferences_19.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </section>
+
+ <section id="SeamValidator">
+ <?dbhtml filename="SeamValidator.html"?>
+ <title>Seam Validator</title>
+ <para>The following preferences can be changed on the <emphasis>
+ <property>JBoss Tools > Web > Seam > Validator</property>
+ </emphasis> page.</para>
+ <para>In <emphasis>
+ <property>Validator</property>
+ </emphasis> panel you configure seam problems that will be processed by
+ validator.</para>
+ <figure>
+ <title>Seam Validator</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/preferences/preferences_20.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </section>
+
+ <section id="SeamPagesDiagram">
+ <?dbhtml filename="SeamPagesDiagram.html"?>
+ <title>Seam Pages Diagram</title>
+
+
+
+ <para>In order to customize the layout of the Diagram used for editing and composing <property>page.xml</property> file in <property>Graphical mode</property> of <property>Seam Pages Editor</property> you can go to
+ <property>Window > Preferences > JBoss Tools > Web > Seam > Editors > Seam Pages Diagram</property>.
+ </para>
+
+ <figure>
+ <title>Preferences of Seam Pages Diagram</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/preferences/preferences_44.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ </section>
+
+
+
+
+
+ <section id="Struts">
+ <?dbhtml filename="Struts.html"?>
+ <title>Struts</title>
+ <para>By selecting <emphasis>
+ <property>JBoss Tools > Web > Struts</property>
+ </emphasis> you can configure Struts projects specific preferences.</para>
+ <figure>
+ <title>Struts projects preferences Page.</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/preferences/preferences_21.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </section>
+
+ <section id="struts_automation">
+ <?dbhtml filename="struts_automation.html"?>
+ <title>Struts Automation</title>
+ <para>On <emphasis>
+ <property>Automation</property>
+ </emphasis> panel you can modify default text for the Title Struts plug-in element, the
+ Validator Struts plug-in element, and error message resource files.</para>
+ <figure>
+ <title>Struts Automatic</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/preferences/preferences_22.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </section>
+
+ <section id="Plug-inInsets">
+ <?dbhtml filename="Plug-inInsets.html"?>
+ <title>Plug-in Insets</title>
+ <para>By selecting <emphasis>
+ <property>Web > Struts > Automation > Plug-in Insets</property>
+ </emphasis> on tab Tiles you can define a default text for tiles plugin.</para>
+ <figure>
+ <title>Plug-in Insets</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/preferences/preferences_23.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>The same is done but for validator plugin on the tab Validators.</para>
+ <figure>
+ <title>Plug-in Insets of Validators</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/preferences/preferences_24.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </section>
+
+ <section id="ResourceInsets">
+ <?dbhtml filename="ResourceInsets.html"?>
+ <title>Resource Insets</title>
+ <para>To see Resource Insets preference page select <emphasis>
+ <property>JBoss Tools > Web > Strats > Automation > Resource Insets</property>
+ </emphasis>.</para>
+ <para>On <emphasis>
+ <property>Resource Insets</property>
+ </emphasis> panel you determine default error messages for error resource files.</para>
+ <figure>
+ <title>Resource Insets</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/preferences/preferences_25.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </section>
+
+ <section id="StrutsCustomization">
+ <?dbhtml filename="StrutsCustomization"?>
+ <title>Struts Customization</title>
+ <para>The following preferences can be changed on the <emphasis>
+ <property>JBoss Tools > Web > Struts > Customization</property>
+ </emphasis> page.</para>
+ <para>In the<emphasis>
+ <property>Customization</property>
+ </emphasis> screen you configure Link Recognizer for Struts tags.</para>
+ <figure>
+ <title>Struts Customization</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/preferences/preferences_26.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </section>
+
+ <section id="StrutsProject">
+ <?dbhtml filename="StrutsProject.html"?>
+ <title>Struts Project</title>
+ <para>You can change the following preferences on the <emphasis>
+ <property>JBoss Tools > Web > Struts > Project</property>
+ </emphasis> preference page:</para>
+ <para>On <emphasis>
+ <property>Project</property>
+ </emphasis> panel you define a template for a new Struts created project: servlet
+ version, page template and so on.</para>
+ <figure>
+ <title>Struts Project</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/preferences/preferences_27.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>Selecting the Import Project tab in the Struts Project screen allows you to determine
+ the default servlet version and whether to register Web Context in server.xml.</para>
+ <figure>
+ <title>Import Struts Pages</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/preferences/preferences_28.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </section>
+
+ <section id="StrutsSupport">
+ <?dbhtml filename="StrutsSupport.html"?>
+ <title>Struts Support</title>
+ <para>The following preferences can be changed on the <emphasis>
+ <property>JBoss Tools > Web > Struts > Project > Struts Support</property>
+ </emphasis> page.</para>
+ <para>Select <emphasis>
+ <property>Struts Support</property>
+ </emphasis> screen if you want to configure Struts versions support settings.</para>
+ <figure>
+ <title>Struts Support</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/preferences/preferences_29.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </section>
+
+ <section id="StrutsPages">
+ <?dbhtml filename="StrutsPages.html"?>
+ <title>Struts Pages</title>
+ <para>You can change the following preferences on the JBoss Tools > Web > Struts > Struts
+ Pages preference page.</para>
+ <para>On <emphasis>
+ <property>Struts Pages</property>
+ </emphasis> panel you can add or remove Struts pages.</para>
+ <figure>
+ <title>Struts Pages</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/preferences/preferences_30.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </section>
+
+ <section id="StrutsFlowDiagram">
+ <?dbhtml filename="StrutsFlowDiagram.html"?>
+ <title>Struts Flow Diagram</title>
+ <para>Similarly to the JSF Flow Diagram screen, selecting <emphasis>
+ <property>JBoss Tools > Web > Editor > Struts Flow Diagram</property>
+ </emphasis> page allows you to specify aspects of the Diagram mode of the Struts
+ configuration file editor. The Struts Flow Diagram screen adds an option to hide the
+ Diagram tab and labeling settings for additional artifacts. </para>
+ <figure>
+ <title>Struts Flow Diagram</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/preferences/preferences_31.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>Selecting the Add Page tab in the Struts Flow Diagram screen allows you to determine
+ the default template and file extension for views (pages) you add directly into the
+ diagram using a context menu or the view-adding mode of the diagram cursor.</para>
+ <figure>
+ <title>Adding Page</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/preferences/preferences_32.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </section>
+
+ <section id="tiles_diagram">
+ <?dbhtml filename="titles_diagram.html"?>
+ <title>Tiles Diagram</title>
+ <para><emphasis>
+ <property>JBoss Tools > Web > Editors > Title Diagram</property>
+ </emphasis> screen allows you control some settings for the placement of Tiles
+ definitions in the Diagram mode of the JBoss Tools Tiles editor.</para>
+ <figure>
+ <title>Title Diagram</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/preferences/preferences_33.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </section>
+
+ <section id="Verification">
+ <?dbhtml filename="Verification.html"?>
+ <title>Verification</title>
+ <para>The following preferences can be changed on the <emphasis>
+ <property>JBoss Tools > Web > Verification</property>
+ </emphasis> page.</para>
+ <para>On Rules Configuration tab of <emphasis>
+ <property>Verification</property>
+ </emphasis> panel you can determine JSF and Struts rules.</para>
+ <figure>
+ <title>Verification</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/preferences/preferences_34.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>On Options tab you can define a limit for the reported errors number.</para>
+ <figure>
+ <title>Options of Verification</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/preferences/preferences_35.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ </section>
+
+ <section id="JBossServerPreferences">
+ <?dbhtml filename="View.html"?>
+ <title>Server Preferences</title>
+ <para>Preferences for <property>JBoss Server</property> and other servers can be changed on
+ the <emphasis>
+ <property>Server</property>
+ </emphasis> page.</para>
+
+ <figure>
+ <title>Server Preferences</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/preferences/preferences_36.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>On the <emphasis>
+ <property>Server > Runtime Environments</property>
+ </emphasis> page you can add new or modify already defined Server Runtime.</para>
+
+ <figure>
+ <title>Runtime Environments</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/preferences/preferences_37.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>Server Launching preferences can be configured on the <emphasis>
+ <property>Server > Launching</property>
+ </emphasis> page.</para>
+
+ <figure>
+ <title>Server Launching Preferences</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/preferences/preferences_38.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>Going to <emphasis>
+ <property>Server > Audio</property>
+ </emphasis> you can enable/disable the sound notification for different Server states
+ and actions and set the sound volume as well.</para>
+
+ <figure>
+ <title>Sound Notification Adjustment</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/preferences/preferences_40.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </section>
+
+ <section id="XDoclet">
+ <?dbhtml filename="XDoclet.html"?>
+ <title>XDoclet</title>
+ <para>The preferences for XDoclet can be changed if you click <emphasis>
+ <property>XDoclet</property>
+ </emphasis> on the left navigation bar.</para>
+ <para>On the <emphasis>
+ <property>XDoclet</property>
+ </emphasis> screen it's possible to enable/disable XDoclet builder by checking
+ proper box, specify XDoclet home and determine XDoclet module version as well.</para>
+
+ <figure>
+ <title>XDoclet Runtime Preferences Page</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/preferences/preferences_41.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>Switch to <emphasis>
+ <property>XDoclet > ejbdoclet</property>
+ </emphasis> page in order to adjust settings for EJB-specific sub-tasks.</para>
+
+ <figure>
+ <title>ejbdoclet</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/preferences/preferences_42.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>To configure settings for various web-specific XDoclet sub-tasks, follow to <emphasis>
+ <property>XDoclet > webdoclet</property>
+ </emphasis> page.</para>
+
+ <figure>
+ <title>webdoclet</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/preferences/preferences_43.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ </section>
+
+ <!--section id="XDocletTemplates">
+ <?dbhtml filename="XDocletTemplates.html"?>
+ <title>XDoclet Templates</title>
+ <para>To see what XDoclet tags templates available for completion select <emphasis>
+ <property>JBoss Tools > XDoclet > Code Assist > Templates</property>
+ </emphasis>.</para>
+ <figure>
+ <title>XDoclet Templates</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/preferences/preferences_32.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>By right clicking on any tree element you can add a new template, remove or rename it
+ and also add a new tree.</para>
+ <para>Select, for example, <emphasis>
+ <property>Add</property>
+ </emphasis> and you'll be prompted by a list of available elements to
+ add.</para>
+ <figure>
+ <title>Add New XDoclet Template</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/preferences/preferences_33.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>By double-clicking some element a new list will be shown: now for available
+ methods.</para>
+ <figure>
+ <title>Select New Element</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/preferences/preferences_34.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>Choose any element from the list, then select an attribute.</para>
+ <figure>
+ <title>Select New Element</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/preferences/preferences_35.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>It will be added to the available templates.</para>
+ <figure>
+ <title>Select New Element</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/preferences/preferences_36.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </section>
+
+ <section id="XDocletsVariables">
+ <?dbhtml filename="XDocletsVariables.html"?>
+ <title>XDoclets Variables</title>
+ <para>By selecting <emphasis>
+ <property>JBoss Tools > XDoclet > Variables</property>
+ </emphasis> you define variables used in templates.</para>
+ <figure>
+ <title>XDoclets Variables</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/preferences/preferences_37.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </section>
+
+ <section id="ChangingDefaultEnvironmentDuringProjectCreation">
+ <?dbhtml filename="ChangingDefaultEnvironmentDuringProjectCreation.html"?>
+ <title>Changing Default Environment During Project Creation</title>
+
+ <para>To change the default environment and project template for either JSF or Struts new
+ project creation:</para>
+
+ <orderedlist>
+ <listitem>
+ <para>Select<emphasis>
+ <property> Window > Preferences > JBoss Tools > Web
+ > {JSF or Struts} > Project</property>
+ </emphasis></para>
+ </listitem>
+ <listitem>
+ <para>For Version set the environment you want to be the default one</para>
+ </listitem>
+ <listitem>
+ <para>For Project Template set the template you want to be the default one</para>
+ </listitem>
+ </orderedlist>
+
+ <figure>
+ <title>Changing Enviroment Template</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/preferences/preferences_36.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </section>
+
+ <section id="ChangingDefaultProjectTemplateDuringProjectCreatio8n">
+ <?dbhtml filename="ChangingDefaultEnvironmentDuringProjectCreation.html"?>
+ <title>Changing Default Project Template During Project Creation</title>
+
+ <para>To change the default project template for either JSF or Struts new project
+ creation:</para>
+
+ <orderedlist>
+ <listitem>
+ <para>Select<emphasis>
+ <property> Window > Preferences > JBoss Tools > Web > {JSF or Struts} >
+ Project</property>
+ </emphasis></para>
+ </listitem>
+ <listitem>
+ <para>For Project Template set the template you want to be the default one</para>
+ </listitem>
+ </orderedlist>
+
+ <figure>
+ <title>Changing Project Template</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/preferences/preferences_37.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </section>
+-->
+</chapter>
\ No newline at end of file
14 years, 6 months
JBoss Tools SVN: r20927 - trunk/jst/tests/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext.
by jbosstools-commits@lists.jboss.org
Author: vpakan(a)redhat.com
Date: 2010-03-19 07:49:17 -0400 (Fri, 19 Mar 2010)
New Revision: 20927
Modified:
trunk/jst/tests/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/SWTUtilExt.java
Log:
Added new methods related to shell/
Modified: trunk/jst/tests/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/SWTUtilExt.java
===================================================================
--- trunk/jst/tests/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/SWTUtilExt.java 2010-03-19 09:03:43 UTC (rev 20926)
+++ trunk/jst/tests/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/SWTUtilExt.java 2010-03-19 11:49:17 UTC (rev 20927)
@@ -27,6 +27,7 @@
import org.eclipse.core.runtime.jobs.Job;
import org.eclipse.swt.widgets.MenuItem;
import org.eclipse.swtbot.eclipse.finder.SWTWorkbenchBot;
+import org.eclipse.swtbot.swt.finder.exceptions.WidgetNotFoundException;
import org.eclipse.swtbot.swt.finder.utils.SWTUtils;
import org.jboss.tools.ui.bot.ext.types.JobLists;
import org.jboss.tools.ui.bot.ext.types.JobState;
@@ -370,4 +371,47 @@
return parts[index + 1] + File.separator + projectName;
}
+ /**
+ * Returns true if shell with shellTitle is active
+ * @param shellTitle
+ * @param bot
+ * @return
+ */
+ public static boolean isShellActive(String shellTitle, SWTWorkbenchBot bot){
+ boolean isShellActive = false;
+ try {
+ bot.shell(shellTitle).activate();
+ isShellActive = true;
+ } catch (WidgetNotFoundException e) {
+ }
+ return isShellActive;
+ }
+ /**
+ * Returns true if shell with shellTitle is active
+ * @param shellTitle
+ * @return
+ */
+ public boolean isShellActive(String shellTitle){
+ return SWTUtilExt.isShellActive(shellTitle,bot);
+ }
+ /**
+ * Closes shell with shellTitle if shell is active
+ * @param shellTitle
+ * @param bot
+ * @return
+ */
+ public static void closeShellWhenActive(String shellTitle, SWTWorkbenchBot bot){
+ try {
+ bot.shell(shellTitle).close();
+ } catch (WidgetNotFoundException e) {
+ }
+ }
+ /**
+ * Closes shell with shellTitle if shell is active
+ * @param shellTitle
+ * @return
+ */
+ public void closeShellWhenActive(String shellTitle){
+ SWTUtilExt.closeShellWhenActive(shellTitle,bot);
+ }
}
\ No newline at end of file
14 years, 6 months
JBoss Tools SVN: r20926 - trunk/jst/tests/org.jboss.tools.jst.ui.bot.test/src/org/jboss/tools/ui/bot/test.
by jbosstools-commits@lists.jboss.org
Author: vpakan(a)redhat.com
Date: 2010-03-19 05:03:43 -0400 (Fri, 19 Mar 2010)
New Revision: 20926
Modified:
trunk/jst/tests/org.jboss.tools.jst.ui.bot.test/src/org/jboss/tools/ui/bot/test/WidgetVariables.java
Log:
Added new constant EDIT_STYLE_CLASS
Modified: trunk/jst/tests/org.jboss.tools.jst.ui.bot.test/src/org/jboss/tools/ui/bot/test/WidgetVariables.java
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.ui.bot.test/src/org/jboss/tools/ui/bot/test/WidgetVariables.java 2010-03-19 09:02:43 UTC (rev 20925)
+++ trunk/jst/tests/org.jboss.tools.jst.ui.bot.test/src/org/jboss/tools/ui/bot/test/WidgetVariables.java 2010-03-19 09:03:43 UTC (rev 20926)
@@ -32,5 +32,6 @@
public static final String REMOVE_BUTTON = "Remove"; //$NON-NLS-1$
public static final String CSS_STYLE_DIALOG_TITLE = "CSS Style"; //$NON-NLS-1$
public static final String CSS_SELECTOR_DIALOG_TITLE = "CSS Selector"; //$NON-NLS-1$
+ public static final String EDIT_STYLE_CLASS = "Edit StyleClass"; //$NON-NLS-1
}
14 years, 6 months
JBoss Tools SVN: r20925 - trunk/jsf/tests/org.jboss.tools.jsf.ui.bot.test/src/org/jboss/tools/jsf/ui/bot/test/cssdialog/jbide.
by jbosstools-commits@lists.jboss.org
Author: vpakan(a)redhat.com
Date: 2010-03-19 05:02:43 -0400 (Fri, 19 Mar 2010)
New Revision: 20925
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.ui.bot.test/src/org/jboss/tools/jsf/ui/bot/test/cssdialog/jbide/CSSSelectorJBIDE3288.java
Log:
Close properly opened dialogs when exception is thrown
Modified: trunk/jsf/tests/org.jboss.tools.jsf.ui.bot.test/src/org/jboss/tools/jsf/ui/bot/test/cssdialog/jbide/CSSSelectorJBIDE3288.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.ui.bot.test/src/org/jboss/tools/jsf/ui/bot/test/cssdialog/jbide/CSSSelectorJBIDE3288.java 2010-03-19 07:29:17 UTC (rev 20924)
+++ trunk/jsf/tests/org.jboss.tools.jsf.ui.bot.test/src/org/jboss/tools/jsf/ui/bot/test/cssdialog/jbide/CSSSelectorJBIDE3288.java 2010-03-19 09:02:43 UTC (rev 20925)
@@ -7,6 +7,7 @@
import org.eclipse.swtbot.swt.finder.widgets.SWTBotTree;
import org.eclipse.swtbot.swt.finder.widgets.SWTBotTreeItem;
import org.jboss.tools.jsf.ui.bot.test.JSFAutoTestCase;
+import org.jboss.tools.ui.bot.ext.SWTUtilExt;
import org.jboss.tools.ui.bot.test.WidgetVariables;
public class CSSSelectorJBIDE3288 extends JSFAutoTestCase{
@@ -32,20 +33,19 @@
@Override
protected void closeUnuseDialogs() {
- try {
- bot.shell(WidgetVariables.CSS_SELECTOR_DIALOG_TITLE).close();
- } catch (WidgetNotFoundException e) {
- }
+ SWTUtilExt.closeShellWhenActive(WidgetVariables.CSS_SELECTOR_DIALOG_TITLE,bot);
+ SWTUtilExt.closeShellWhenActive(WidgetVariables.EDIT_STYLE_CLASS,bot);
}
@Override
protected boolean isUnuseDialogOpened() {
boolean isOpened = false;
- try {
- bot.shell(WidgetVariables.CSS_SELECTOR_DIALOG_TITLE).activate();
- isOpened = true;
- } catch (WidgetNotFoundException e) {
+ isOpened = SWTUtilExt.isShellActive(WidgetVariables.CSS_SELECTOR_DIALOG_TITLE, bot);
+
+ if (!isOpened){
+ isOpened = SWTUtilExt.isShellActive(WidgetVariables.EDIT_STYLE_CLASS, bot);
}
+
return isOpened;
}
@@ -85,6 +85,7 @@
private void selectTestElement(){
getEditor().navigateTo(12, 21);
getEditor().insertText(""); //$NON-NLS-1$
+ getEditor().save();
}
private void openCSSSelectorDialog(){
14 years, 6 months