JBoss Tools SVN: r13632 - trunk/jsf/plugins/org.jboss.tools.jsf.vpe.ajax4jsf/templates.
by jbosstools-commits@lists.jboss.org
Author: sdzmitrovich
Date: 2009-02-16 10:56:26 -0500 (Mon, 16 Feb 2009)
New Revision: 13632
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.ajax4jsf/templates/vpe-templates-ajax4jsf.xml
Log:
have been applied patch of yzhishko
Modified: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.ajax4jsf/templates/vpe-templates-ajax4jsf.xml
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.ajax4jsf/templates/vpe-templates-ajax4jsf.xml 2009-02-16 15:29:30 UTC (rev 13631)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.ajax4jsf/templates/vpe-templates-ajax4jsf.xml 2009-02-16 15:56:26 UTC (rev 13632)
@@ -1,299 +1,295 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<vpe:templates xmlns:vpe="http://org.jboss.org/tools/vpe/template"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
- <vpe:template-taglib uri="https://ajax4jsf.dev.java.net/ajax" prefix="a4j" />
- <vpe:template-taglib uri="http://richfaces.org/a4j" prefix="a4j" />
-
- <vpe:tag name="a4j:page" case-sensitive="yes">
- <vpe:template children="yes" modify="yes" hasImaginaryBorder="yes"
- class="org.jboss.tools.jsf.vpe.ajax4jsf.template.Ajax4JSFPageTemplate">
- <vpe:dnd>
- <vpe:drag start-enable="yes" />
- <vpe:drop container="yes" />
- </vpe:dnd>
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="a4j:region" case-sensitive="yes">
- <vpe:template children="yes" modify="yes">
- <div id="{@id}" class="{@styleClass}" style="{@style}" title="{tagstring()}">
- </div>
- <vpe:resize>
- <vpe:width width-attr="style.width" />
- <vpe:height height-attr="style.height" />
- </vpe:resize>
- <vpe:dnd>
- <vpe:drag start-enable="yes" />
- <vpe:drop container="yes" />
- </vpe:dnd>
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="a4j:ajaxListener" case-sensitive="yes">
- <vpe:template children="no" modify="no" >
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="a4j:keepAlive" case-sensitive="yes">
- <vpe:template children="no" modify="no">
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="a4j:support" case-sensitive="yes">
- <vpe:template children="no" modify="no" />
- </vpe:tag>
-
- <vpe:tag name="a4j:poll" case-sensitive="yes">
- <vpe:template children="no" modify="no" >
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="a4j:commandLink" case-sensitive="yes">
- <vpe:template children="yes" modify="yes">
- <vpe:a class="{@styleClass}" value="{jsfvalue(@value)}"
- style="{@style}" dir="{@dir}" title="{tagstring()}"/>
- <vpe:dnd>
- <vpe:drag start-enable="yes"/>
- <vpe:drop container="yes">
- <vpe:container-child tag-name="outputText"/>
- </vpe:drop>
- </vpe:dnd>
- <vpe:textFormatting use-default-formats="yes">
- <vpe:format type="UnderlineFormat" setDefault="true">
- <vpe:formatAttribute type="style"/>
- </vpe:format>
- </vpe:textFormatting>
- <vpe:pseudoContent/>
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="a4j:commandButton" case-sensitive="yes">
- <!-- This is a very big if-statement.
- Its goal is to add support of 'disabled property'
- DO NOT FORGET TO EDIT 'ELSE' PART IN FUTURE MODIFICATIONS -->
- <vpe:if test="(@disabled='true')">
- <vpe:if test="not(attrpresent('image'))">
- <vpe:if test="(@type='')">
- <vpe:template children="no" modify="no">
- <input type="button" value="{jsfvalue(@value)}"
- class="{@styleClass}" style="{@style}"
- title="{tagstring()}" dir="{@dir}"
- disabled="disabled"/>
- <vpe:resize>
- <vpe:width width-attr="style.width" />
- <vpe:height height-attr="style.height" />
- </vpe:resize>
- <vpe:dnd>
- <vpe:drag start-enable="yes"/>
- </vpe:dnd>
- <vpe:textFormatting use-default-formats="yes">
- </vpe:textFormatting>
- </vpe:template>
- </vpe:if>
- <vpe:if test="not(@type='')">
- <vpe:template children="no" modify="no">
- <input type="{@type}" value="{jsfvalue(@value)}"
- class="{@styleClass}" style="{@style}"
- title="{tagstring()}" dir="{@dir}"
- disabled="disabled"/>
- <vpe:resize>
- <vpe:width width-attr="style.width" />
- <vpe:height height-attr="style.height" />
- </vpe:resize>
- <vpe:dnd>
- <vpe:drag start-enable="yes"/>
- </vpe:dnd>
- <vpe:textFormatting use-default-formats="yes">
- </vpe:textFormatting>
- </vpe:template>
- </vpe:if>
- </vpe:if>
- <vpe:if test="attrpresent('image')">
- <vpe:template children="no" modify="no">
- <input type="image" src="{src(@image)}"
- class="{@styleClass}" style="{@style}" title="{tagstring()}"
- disabled="disabled"/>
- <vpe:resize>
- <vpe:width width-attr="style.width" />
- <vpe:height height-attr="style.height" />
- </vpe:resize>
- <vpe:textFormatting use-default-formats="yes">
- </vpe:textFormatting>
- </vpe:template>
- </vpe:if>
- </vpe:if>
- <!--else-->
- <vpe:if test="not(attrpresent('image'))">
- <vpe:if test="(@type='')">
- <vpe:template children="no" modify="no">
- <input type="button" value="{jsfvalue(@value)}"
- class="{@styleClass}" style="{@style}"
- title="{tagstring()}" dir="{@dir}"/>
- <vpe:resize>
- <vpe:width width-attr="style.width" />
- <vpe:height height-attr="style.height" />
- </vpe:resize>
- <vpe:dnd>
- <vpe:drag start-enable="yes"/>
- </vpe:dnd>
- <vpe:textFormatting use-default-formats="yes">
- </vpe:textFormatting>
- </vpe:template>
- </vpe:if>
- <vpe:if test="not(@type='')">
- <vpe:template children="no" modify="no">
- <input type="{@type}" value="{jsfvalue(@value)}"
- class="{@styleClass}" style="{@style}"
- title="{tagstring()}" dir="{@dir}"/>
- <vpe:resize>
- <vpe:width width-attr="style.width" />
- <vpe:height height-attr="style.height" />
- </vpe:resize>
- <vpe:dnd>
- <vpe:drag start-enable="yes"/>
- </vpe:dnd>
- <vpe:textFormatting use-default-formats="yes">
- </vpe:textFormatting>
- </vpe:template>
- </vpe:if>
- </vpe:if>
- <vpe:if test="attrpresent('image')">
- <vpe:template children="no" modify="no">
- <input type="image" src="{src(@image)}" class="{@styleClass}" style="{@style}" title="{tagstring()}"/>
- <vpe:resize>
- <vpe:width width-attr="style.width" />
- <vpe:height height-attr="style.height" />
- </vpe:resize>
- <vpe:textFormatting use-default-formats="yes">
- </vpe:textFormatting>
- </vpe:template>
- </vpe:if>
- <!--end-of-else-->
- </vpe:tag>
-
- <vpe:tag name="a4j:outputPanel" case-sensitive="yes">
- <vpe:template children="yes" modify="yes">
- <div id="{@id}" style="{@style}" dir="{@dir}"/>
- <vpe:resize>
- <vpe:width width-attr="style.width" />
- <vpe:height height-attr="style.height" />
- </vpe:resize>
- <vpe:dnd>
- <vpe:drag start-enable="yes" />
- <vpe:drop container="yes" />
- </vpe:dnd>
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="a4j:actionparam" case-sensitive="yes">
- <vpe:template children="no" modify="no" >
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="a4j:status" case-sensitive="yes">
- <vpe:template children="yes" modify="yes"
- class="org.jboss.tools.jsf.vpe.ajax4jsf.template.Ajax4JSFStatusTemplate">
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="a4j:loadBundle" case-sensitive="yes">
- <vpe:template children="no" modify="no">
- <vpe:load-bundle/>
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="a4j:loadStyle" case-sensitive="yes">
- <vpe:template children="no" modify="no" >
- <vpe:link rel="stylesheet" href="{href(@src)}" />
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="a4j:loadScript" case-sensitive="yes">
- <vpe:template children="no" modify="no" >
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="a4j:jsFunction" case-sensitive="yes">
- <vpe:template children="no" modify="no" >
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="a4j:mediaOutput" case-sensitive="yes">
- <vpe:template children="no" modify="no"
- class="org.jboss.tools.jsf.vpe.ajax4jsf.template.Ajax4JSFMediaOutput">
-
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="a4j:log" case-sensitive="yes">
- <vpe:template children="yes" modify="no"
- class="org.jboss.tools.jsf.vpe.ajax4jsf.template.Ajax4JSFLogTemplate">
- <vpe:pseudoContent defaultText="no" />
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="a4j:form" case-sensitive="yes">
- <vpe:template children="yes" modify="yes">
- <div id="{@id}" class="{@styleClass}" style="{@style}" title="{tagstring()}">
- </div>
- <vpe:dnd>
- <vpe:drag start-enable="yes" />
- <vpe:drop container="yes" />
- </vpe:dnd>
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="a4j:htmlCommandLink" case-sensitive="yes">
- <vpe:template children="yes" modify="yes">
- <vpe:a class="{@styleClass}" value="{jsfvalue(@value)}"
- style="{@style}" title="{tagstring()}" dir="{@dir}"/>
- <vpe:dnd>
- <vpe:drag start-enable="yes"/>
- <vpe:drop container="yes">
- <vpe:container-child tag-name="outputText"/>
- </vpe:drop>
- </vpe:dnd>
- <vpe:textFormatting use-default-formats="yes">
- <vpe:format type="BlockFormat"
- handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BlockFormatHandler" />
- <vpe:format type="UnderlineFormat" setDefault="true">
- <vpe:formatAttribute type="style"/>
- </vpe:format>
- </vpe:textFormatting>
- <vpe:pseudoContent/>
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="a4j:include" case-sensitive="yes">
- <vpe:template children="yes" file="{@viewId}" class="org.jboss.tools.vpe.editor.template.VpeIncludeTemplate"/>
- </vpe:tag>
-
- <vpe:tag name="a4j:repeat" case-sensitive="yes" haveVisualPreview="no">
- <vpe:template children="yes" modify="yes" class="org.jboss.tools.jsf.vpe.ajax4jsf.template.Ajax4JSFReapeatTemplate">
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="a4j:portlet" case-sensitive="yes">
- <vpe:template children="yes" modify="no">
- <span>
- </span>
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="a4j:push" case-sensitive="yes">
- <vpe:template children="no" modify="no" >
- </vpe:template>
- </vpe:tag>
-
- <!-- Since RichFaces 3.3.0 -->
- <vpe:tag name="a4j:queue" case-sensitive="yes">
- <vpe:if test="tld_version('min=3.3')">
- <vpe:template children="no" modify="no">
- <vpe:dnd>
- <vpe:drag start-enable="yes" />
- <vpe:drop container="no"/>
- </vpe:dnd>
- </vpe:template>
- </vpe:if>
- </vpe:tag>
-</vpe:templates>
+<?xml version="1.0" encoding="UTF-8"?>
+<vpe:templates xmlns:vpe="http://org.jboss.org/tools/vpe/template"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <vpe:template-taglib uri="https://ajax4jsf.dev.java.net/ajax" prefix="a4j" />
+ <vpe:template-taglib uri="http://richfaces.org/a4j" prefix="a4j" />
+
+ <vpe:tag name="a4j:page" case-sensitive="yes">
+ <vpe:template children="yes" modify="yes" hasImaginaryBorder="yes"
+ class="org.jboss.tools.jsf.vpe.ajax4jsf.template.Ajax4JSFPageTemplate">
+ <vpe:dnd>
+ <vpe:drag start-enable="yes" />
+ <vpe:drop container="yes" />
+ </vpe:dnd>
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="a4j:region" case-sensitive="yes">
+ <vpe:template children="yes" modify="yes">
+ <div id="{@id}" class="{@styleClass}" style="{@style}" title="{tagstring()}">
+ </div>
+ <vpe:dnd>
+ <vpe:drag start-enable="yes" />
+ <vpe:drop container="yes" />
+ </vpe:dnd>
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="a4j:ajaxListener" case-sensitive="yes">
+ <vpe:template children="no" modify="no" >
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="a4j:keepAlive" case-sensitive="yes">
+ <vpe:template children="no" modify="no">
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="a4j:support" case-sensitive="yes">
+ <vpe:template children="no" modify="no" />
+ </vpe:tag>
+
+ <vpe:tag name="a4j:poll" case-sensitive="yes">
+ <vpe:template children="no" modify="no" >
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="a4j:commandLink" case-sensitive="yes">
+ <vpe:template children="yes" modify="yes">
+ <vpe:a class="{@styleClass}" value="{jsfvalue(@value)}"
+ style="{@style}" dir="{@dir}" title="{tagstring()}"/>
+ <vpe:dnd>
+ <vpe:drag start-enable="yes"/>
+ <vpe:drop container="yes">
+ <vpe:container-child tag-name="outputText"/>
+ </vpe:drop>
+ </vpe:dnd>
+ <vpe:textFormatting use-default-formats="yes">
+ <vpe:format type="UnderlineFormat" setDefault="true">
+ <vpe:formatAttribute type="style"/>
+ </vpe:format>
+ </vpe:textFormatting>
+ <vpe:pseudoContent/>
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="a4j:commandButton" case-sensitive="yes">
+ <!-- This is a very big if-statement.
+ Its goal is to add support of 'disabled property'
+ DO NOT FORGET TO EDIT 'ELSE' PART IN FUTURE MODIFICATIONS -->
+ <vpe:if test="(@disabled='true')">
+ <vpe:if test="not(attrpresent('image'))">
+ <vpe:if test="(@type='')">
+ <vpe:template children="no" modify="no">
+ <input type="button" value="{jsfvalue(@value)}"
+ class="{@styleClass}" style="{@style}"
+ title="{tagstring()}" dir="{@dir}"
+ disabled="disabled"/>
+ <vpe:resize>
+ <vpe:width width-attr="style.width" />
+ <vpe:height height-attr="style.height" />
+ </vpe:resize>
+ <vpe:dnd>
+ <vpe:drag start-enable="yes"/>
+ </vpe:dnd>
+ <vpe:textFormatting use-default-formats="yes">
+ </vpe:textFormatting>
+ </vpe:template>
+ </vpe:if>
+ <vpe:if test="not(@type='')">
+ <vpe:template children="no" modify="no">
+ <input type="{@type}" value="{jsfvalue(@value)}"
+ class="{@styleClass}" style="{@style}"
+ title="{tagstring()}" dir="{@dir}"
+ disabled="disabled"/>
+ <vpe:resize>
+ <vpe:width width-attr="style.width" />
+ <vpe:height height-attr="style.height" />
+ </vpe:resize>
+ <vpe:dnd>
+ <vpe:drag start-enable="yes"/>
+ </vpe:dnd>
+ <vpe:textFormatting use-default-formats="yes">
+ </vpe:textFormatting>
+ </vpe:template>
+ </vpe:if>
+ </vpe:if>
+ <vpe:if test="attrpresent('image')">
+ <vpe:template children="no" modify="no">
+ <input type="image" src="{src(@image)}"
+ class="{@styleClass}" style="{@style}" title="{tagstring()}"
+ disabled="disabled"/>
+ <vpe:resize>
+ <vpe:width width-attr="style.width" />
+ <vpe:height height-attr="style.height" />
+ </vpe:resize>
+ <vpe:textFormatting use-default-formats="yes">
+ </vpe:textFormatting>
+ </vpe:template>
+ </vpe:if>
+ </vpe:if>
+ <!--else-->
+ <vpe:if test="not(attrpresent('image'))">
+ <vpe:if test="(@type='')">
+ <vpe:template children="no" modify="no">
+ <input type="button" value="{jsfvalue(@value)}"
+ class="{@styleClass}" style="{@style}"
+ title="{tagstring()}" dir="{@dir}"/>
+ <vpe:resize>
+ <vpe:width width-attr="style.width" />
+ <vpe:height height-attr="style.height" />
+ </vpe:resize>
+ <vpe:dnd>
+ <vpe:drag start-enable="yes"/>
+ </vpe:dnd>
+ <vpe:textFormatting use-default-formats="yes">
+ </vpe:textFormatting>
+ </vpe:template>
+ </vpe:if>
+ <vpe:if test="not(@type='')">
+ <vpe:template children="no" modify="no">
+ <input type="{@type}" value="{jsfvalue(@value)}"
+ class="{@styleClass}" style="{@style}"
+ title="{tagstring()}" dir="{@dir}"/>
+ <vpe:resize>
+ <vpe:width width-attr="style.width" />
+ <vpe:height height-attr="style.height" />
+ </vpe:resize>
+ <vpe:dnd>
+ <vpe:drag start-enable="yes"/>
+ </vpe:dnd>
+ <vpe:textFormatting use-default-formats="yes">
+ </vpe:textFormatting>
+ </vpe:template>
+ </vpe:if>
+ </vpe:if>
+ <vpe:if test="attrpresent('image')">
+ <vpe:template children="no" modify="no">
+ <input type="image" src="{src(@image)}" class="{@styleClass}" style="{@style}" title="{tagstring()}"/>
+ <vpe:resize>
+ <vpe:width width-attr="style.width" />
+ <vpe:height height-attr="style.height" />
+ </vpe:resize>
+ <vpe:textFormatting use-default-formats="yes">
+ </vpe:textFormatting>
+ </vpe:template>
+ </vpe:if>
+ <!--end-of-else-->
+ </vpe:tag>
+
+ <vpe:tag name="a4j:outputPanel" case-sensitive="yes">
+ <vpe:template children="yes" modify="yes">
+ <div id="{@id}" style="{@style}" dir="{@dir}"/>
+ <vpe:resize>
+ <vpe:width width-attr="style.width" />
+ <vpe:height height-attr="style.height" />
+ </vpe:resize>
+ <vpe:dnd>
+ <vpe:drag start-enable="yes" />
+ <vpe:drop container="yes" />
+ </vpe:dnd>
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="a4j:actionparam" case-sensitive="yes">
+ <vpe:template children="no" modify="no" >
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="a4j:status" case-sensitive="yes">
+ <vpe:template children="yes" modify="yes"
+ class="org.jboss.tools.jsf.vpe.ajax4jsf.template.Ajax4JSFStatusTemplate">
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="a4j:loadBundle" case-sensitive="yes">
+ <vpe:template children="no" modify="no">
+ <vpe:load-bundle/>
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="a4j:loadStyle" case-sensitive="yes">
+ <vpe:template children="no" modify="no" >
+ <vpe:link rel="stylesheet" href="{href(@src)}" />
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="a4j:loadScript" case-sensitive="yes">
+ <vpe:template children="no" modify="no" >
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="a4j:jsFunction" case-sensitive="yes">
+ <vpe:template children="no" modify="no" >
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="a4j:mediaOutput" case-sensitive="yes">
+ <vpe:template children="no" modify="no"
+ class="org.jboss.tools.jsf.vpe.ajax4jsf.template.Ajax4JSFMediaOutput">
+
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="a4j:log" case-sensitive="yes">
+ <vpe:template children="yes" modify="no"
+ class="org.jboss.tools.jsf.vpe.ajax4jsf.template.Ajax4JSFLogTemplate">
+ <vpe:pseudoContent defaultText="no" />
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="a4j:form" case-sensitive="yes">
+ <vpe:template children="yes" modify="yes">
+ <div id="{@id}" class="{@styleClass}" style="{@style}" title="{tagstring()}">
+ </div>
+ <vpe:dnd>
+ <vpe:drag start-enable="yes" />
+ <vpe:drop container="yes" />
+ </vpe:dnd>
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="a4j:htmlCommandLink" case-sensitive="yes">
+ <vpe:template children="yes" modify="yes">
+ <vpe:a class="{@styleClass}" value="{jsfvalue(@value)}"
+ style="{@style}" title="{tagstring()}" dir="{@dir}"/>
+ <vpe:dnd>
+ <vpe:drag start-enable="yes"/>
+ <vpe:drop container="yes">
+ <vpe:container-child tag-name="outputText"/>
+ </vpe:drop>
+ </vpe:dnd>
+ <vpe:textFormatting use-default-formats="yes">
+ <vpe:format type="BlockFormat"
+ handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BlockFormatHandler" />
+ <vpe:format type="UnderlineFormat" setDefault="true">
+ <vpe:formatAttribute type="style"/>
+ </vpe:format>
+ </vpe:textFormatting>
+ <vpe:pseudoContent/>
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="a4j:include" case-sensitive="yes">
+ <vpe:template children="yes" file="{@viewId}" class="org.jboss.tools.vpe.editor.template.VpeIncludeTemplate"/>
+ </vpe:tag>
+
+ <vpe:tag name="a4j:repeat" case-sensitive="yes" haveVisualPreview="no">
+ <vpe:template children="yes" modify="yes" class="org.jboss.tools.jsf.vpe.ajax4jsf.template.Ajax4JSFReapeatTemplate">
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="a4j:portlet" case-sensitive="yes">
+ <vpe:template children="yes" modify="no">
+ <span>
+ </span>
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="a4j:push" case-sensitive="yes">
+ <vpe:template children="no" modify="no" >
+ </vpe:template>
+ </vpe:tag>
+
+ <!-- Since RichFaces 3.3.0 -->
+ <vpe:tag name="a4j:queue" case-sensitive="yes">
+ <vpe:if test="tld_version('min=3.3')">
+ <vpe:template children="no" modify="no">
+ <vpe:dnd>
+ <vpe:drag start-enable="yes" />
+ <vpe:drop container="no"/>
+ </vpe:dnd>
+ </vpe:template>
+ </vpe:if>
+ </vpe:tag>
+</vpe:templates>
16 years, 10 months
JBoss Tools SVN: r13631 - trunk/documentation/guides/GettingStartedGuide/en/modules.
by jbosstools-commits@lists.jboss.org
Author: ochikvina
Date: 2009-02-16 10:29:30 -0500 (Mon, 16 Feb 2009)
New Revision: 13631
Modified:
trunk/documentation/guides/GettingStartedGuide/en/modules/manage.xml
Log:
https://jira.jboss.org/jira/browse/JBDS-616 - updating the chapter according to adding the separation between .org and product servers;
Modified: trunk/documentation/guides/GettingStartedGuide/en/modules/manage.xml
===================================================================
--- trunk/documentation/guides/GettingStartedGuide/en/modules/manage.xml 2009-02-16 15:28:30 UTC (rev 13630)
+++ trunk/documentation/guides/GettingStartedGuide/en/modules/manage.xml 2009-02-16 15:29:30 UTC (rev 13631)
@@ -17,8 +17,8 @@
AS</property> from <property>JBoss Developer Studio</property>.</para>
<para><property>JBoss Developer Studio</property> ships with <property>JBoss EAP
v.4.2</property> bundled. When you followed the default installation of <property>JBoss
- Developer Studio</property>, you should already have a JBoss 4.2 Server installed and
- defined. To run JBoss AS 4.2 you need JDK 1.5, JDK 6 is not formally supported yet, although
+ Developer Studio</property>, you should already have a JBoss EAP 4.3 Server installed and
+ defined. To run JBoss AS you need JDK 1.5, JDK 6 is not formally supported yet, although
you may be able to start the server with it.</para>
<section id="JBossbundled">
@@ -34,7 +34,7 @@
<title>Starting JBoss Server</title>
<para>Starting <property>JBoss Server</property> is quite simple. <property>JBoss
Developer Studio</property> allows you to control its behaviour with the help of
- a special toolbar: where you could start it in a regular or debug mode, stop it or
+ a special toolbar, where you could start it in a regular or debug mode, stop it or
restart it.</para>
<itemizedlist>
@@ -58,15 +58,6 @@
</mediaobject>
</figure>
- <figure>
- <title>Starting from JBoss Server View</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/manage/manage_2.png"/>
- </imageobject>
- </mediaobject>
- </figure>
-
<para>While launching, server output is written to the <property>Console
view</property>:</para>
@@ -80,8 +71,9 @@
</figure>
<para>When the server is started you should see <emphasis>
<property>Started</property>
- </emphasis> right to its name in <property>JBoss Server View</property> (column
- "Status").</para>
+ </emphasis> in the square brackets right next its name in <property>JBoss Server
+ View</property>.</para>
+
<figure>
<title>Server is Started</title>
<mediaobject>
@@ -90,7 +82,7 @@
</imageobject>
</mediaobject>
</figure>
- <para>To see event log after the server is started, expand <property>Event
+ <!--para>To see event log after the server is started, expand <property>Event
Log</property> branch beneath <property>JBoss Server View</property>:</para>
<figure>
<title>Event Log</title>
@@ -99,7 +91,7 @@
<imagedata fileref="images/manage/manage_5.png"/>
</imageobject>
</mediaobject>
- </figure>
+ </figure-->
</section>
<section id="StoppingJBoss">
@@ -107,10 +99,10 @@
<title>Stopping JBoss Server</title>
<para>To stop the server, click the <emphasis>
<property>Stop</property>
- </emphasis> icon in <property>JBoss Server view</property> or right click the server
+ </emphasis> icon in <property>JBoss Server View</property> or right click the server
name and press <emphasis>
- <property>Stop</property>
- </emphasis>.</para>
+ <property>Stop</property>. </emphasis></para>
+
<figure>
<title>Stopping Server</title>
<mediaobject>
@@ -121,7 +113,7 @@
</figure>
<para>When the server is stopped you will see <emphasis>
<property>Stopped</property>
- </emphasis> next to its name in the Status column.</para>
+ </emphasis> in the square brackets next to its name.</para>
</section>
<section id="ServerPreferences">
<?dbhtml filename="ServerPreferences.html"?>
@@ -152,14 +144,14 @@
<property>JBoss EAP 4.2</property> we do not ultimately tie you to any particular
server for deployment. There are some servers that Studio supports directly (via the
bundled Eclipse WTP plug-ins). In this section we discuss how to manage self-installed
- JBoss AS. Suppose you want to deploy the application to <property>JBoss 4.2.1
+ JBoss AS. Suppose you want to deploy the application to <property>JBoss 4.2.3
server</property>. First of all you need to install it.</para>
<section id="JBossInstalling">
<?dbhtml filename="JBossInstalling.html"?>
<title>JBoss AS Installation</title>
<itemizedlist>
<listitem>
- <para>Download the binary package of <property>JBoss 4.2.1</property> and save
+ <para>Download the binary package of <property>JBoss 4.2.3</property> and save
it on your computer: <ulink url="http://labs.jboss.com/jbossas/downloads"
>http://labs.jboss.com/jbossas/downloads</ulink></para>
</listitem>
@@ -179,35 +171,35 @@
<itemizedlist>
<listitem>
<para>After you have the binary archive you want to install, use the JDK jar
- tool (or any other ZIP extraction tool) to extract the jboss-4.2.1.zip
- archive contents into a location of your choice. The jboss-4.2.1.tgz archive
- is a gzipped tar file that requires a gnutar compatible tar which can handle
- the long pathnames in the archive. The extraction process will create a
- jboss-4.2.1 directory. </para>
+ tool (or any other ZIP extraction tool) to extract the jboss-4.2.3.GA.zip
+ archive contents into a location of your choice. The jboss-4.2.3.GA.tgz
+ archive is a gzipped tar file that requires a gnutar compatible tar which
+ can handle the long pathnames in the archive. The extraction process will
+ create a jboss-4.2.3.GA directory. </para>
</listitem>
</itemizedlist>
</section>
<section id="AddingJBossServer">
<?dbhtml filename="AddingJBossServer.html"?>
- <title>Adding and configuring JBoss Server</title>
+ <title>Adding and Configuring JBoss Server</title>
<para>Now we should add just installed server into server manager in <property>JBoss
Developer Studio</property>.</para>
<itemizedlist>
<listitem>
- <para>Open the JBoss Server View by selecting <emphasis>
+ <para>Open the <property>JBoss Server View</property> by selecting <emphasis>
<property>Window > Show View > Other > Server
> JBoss Server View</property>
- </emphasis>. You will see JBoss Server view.</para>
+ </emphasis></para>
</listitem>
<listitem>
<para>Right click anywhere in this view and select <emphasis>
<property>New Server</property>
- </emphasis>.</para>
+ </emphasis></para>
</listitem>
<listitem>
<para>Select <emphasis>
- <property>JBoss, a division of Red Hat > JBoss AS 4.2</property>.
+ <property>JBoss Community > JBoss 4.2 Server</property>
</emphasis></para>
</listitem>
</itemizedlist>
@@ -220,28 +212,22 @@
</mediaobject>
</figure>
- <itemizedlist>
- <listitem>
- <para>Click <property>Configure Runtime environments</property> to observe all
- configured runtimes.</para>
- </listitem>
- </itemizedlist>
+ <note>
+ <title>Note:</title>
- <figure>
- <title>Installed Runtimes</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/manage/manage_10.png"/>
- </imageobject>
- </mediaobject>
- </figure>
+ <para>Now in the <property>New Server wizard</property> there is a separation
+ between the .org servers (the <emphasis>
+ <property>JBoss Community</property>
+ </emphasis> category) and product server that comes bundled with JBoss EAP (the
+ <emphasis>
+ <property>JBoss Enterprise Middleware</property></emphasis> category).</para>
+ </note>
<itemizedlist>
<listitem>
- <para>To add a new runtime, which Jboss AS 4.2 matches to, click <emphasis>
- <property>Add</property>
- </emphasis> next to <property>Server runtime environment</property>
- section.</para>
+ <para>To create a new runtime, which Jboss AS 4.2 matches to, click <emphasis>
+ <property>Next</property>
+ </emphasis></para>
</listitem>
</itemizedlist>
@@ -266,44 +252,13 @@
to run Web applications, JRE will not be enough.</para>
</note>
- <!--para>A new runtime will now appear in the <emphasis>
- <property>Preferences > Server > Runtime Environments</property>
- </emphasis> dialog.</para>
- <figure>
- <title>Runtime is Added</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/manage/manage_13.png"/>
- </imageobject>
- </mediaobject>
- </figure-->
-
<itemizedlist>
<listitem>
- <para>Click <emphasis>
- <property>Finish</property>
- </emphasis>. Then select a new added runtime in Server runtime drop down
- list and click the <emphasis>
- <property>Next</property>
- </emphasis> button.</para>
+ <para>In the next dialog verify the specified information and if something is
+ unfair go back and correct it</para>
</listitem>
</itemizedlist>
<figure>
- <title>Choosing Runtime</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/manage/manage_14.png"/>
- </imageobject>
- </mediaobject>
- </figure>
-
- <itemizedlist>
- <listitem>
- <para>In the next dialog verify a <property>JBoss</property> runtime information
- and if something is unfair go back and correct it.</para>
- </listitem>
- </itemizedlist>
- <figure>
<title>Configuring Projects</title>
<mediaobject>
<imageobject>
16 years, 10 months
JBoss Tools SVN: r13630 - trunk/documentation/guides/GettingStartedGuide/en/images/manage.
by jbosstools-commits@lists.jboss.org
Author: ochikvina
Date: 2009-02-16 10:28:30 -0500 (Mon, 16 Feb 2009)
New Revision: 13630
Modified:
trunk/documentation/guides/GettingStartedGuide/en/images/manage/manage_1.png
trunk/documentation/guides/GettingStartedGuide/en/images/manage/manage_10.png
trunk/documentation/guides/GettingStartedGuide/en/images/manage/manage_11.png
trunk/documentation/guides/GettingStartedGuide/en/images/manage/manage_14.png
trunk/documentation/guides/GettingStartedGuide/en/images/manage/manage_15.png
trunk/documentation/guides/GettingStartedGuide/en/images/manage/manage_17.png
trunk/documentation/guides/GettingStartedGuide/en/images/manage/manage_2.png
trunk/documentation/guides/GettingStartedGuide/en/images/manage/manage_4.png
trunk/documentation/guides/GettingStartedGuide/en/images/manage/manage_5.png
trunk/documentation/guides/GettingStartedGuide/en/images/manage/manage_6.png
trunk/documentation/guides/GettingStartedGuide/en/images/manage/manage_9.png
Log:
https://jira.jboss.org/jira/browse/JBDS-616 - updating the screens;
Modified: trunk/documentation/guides/GettingStartedGuide/en/images/manage/manage_1.png
===================================================================
(Binary files differ)
Modified: trunk/documentation/guides/GettingStartedGuide/en/images/manage/manage_10.png
===================================================================
(Binary files differ)
Modified: trunk/documentation/guides/GettingStartedGuide/en/images/manage/manage_11.png
===================================================================
(Binary files differ)
Modified: trunk/documentation/guides/GettingStartedGuide/en/images/manage/manage_14.png
===================================================================
(Binary files differ)
Modified: trunk/documentation/guides/GettingStartedGuide/en/images/manage/manage_15.png
===================================================================
(Binary files differ)
Modified: trunk/documentation/guides/GettingStartedGuide/en/images/manage/manage_17.png
===================================================================
(Binary files differ)
Modified: trunk/documentation/guides/GettingStartedGuide/en/images/manage/manage_2.png
===================================================================
(Binary files differ)
Modified: trunk/documentation/guides/GettingStartedGuide/en/images/manage/manage_4.png
===================================================================
(Binary files differ)
Modified: trunk/documentation/guides/GettingStartedGuide/en/images/manage/manage_5.png
===================================================================
(Binary files differ)
Modified: trunk/documentation/guides/GettingStartedGuide/en/images/manage/manage_6.png
===================================================================
(Binary files differ)
Modified: trunk/documentation/guides/GettingStartedGuide/en/images/manage/manage_9.png
===================================================================
(Binary files differ)
16 years, 10 months
JBoss Tools SVN: r13629 - trunk/documentation/guides/GettingStartedGuide/en/images/first_seam.
by jbosstools-commits@lists.jboss.org
Author: ochikvina
Date: 2009-02-16 10:27:57 -0500 (Mon, 16 Feb 2009)
New Revision: 13629
Modified:
trunk/documentation/guides/GettingStartedGuide/en/images/first_seam/first_seam15.png
trunk/documentation/guides/GettingStartedGuide/en/images/first_seam/first_seam3.png
Log:
https://jira.jboss.org/jira/browse/JBDS-616 - updating the screens;
Modified: trunk/documentation/guides/GettingStartedGuide/en/images/first_seam/first_seam15.png
===================================================================
(Binary files differ)
Modified: trunk/documentation/guides/GettingStartedGuide/en/images/first_seam/first_seam3.png
===================================================================
(Binary files differ)
16 years, 10 months
JBoss Tools SVN: r13628 - trunk/seam/plugins/org.jboss.tools.seam.pages.xml/resources/meta.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2009-02-16 09:48:45 -0500 (Mon, 16 Feb 2009)
New Revision: 13628
Modified:
trunk/seam/plugins/org.jboss.tools.seam.pages.xml/resources/meta/seam-pages.meta
Log:
JBIDE-3813
Modified: trunk/seam/plugins/org.jboss.tools.seam.pages.xml/resources/meta/seam-pages.meta
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.pages.xml/resources/meta/seam-pages.meta 2009-02-16 12:41:10 UTC (rev 13627)
+++ trunk/seam/plugins/org.jboss.tools.seam.pages.xml/resources/meta/seam-pages.meta 2009-02-16 14:48:45 UTC (rev 13628)
@@ -83,7 +83,7 @@
</XModelAttribute>
<XModelAttribute PROPERTIES="category=general" name="name" xmlname="NAME"/>
<XModelAttributeReference
- attributes="action,view id,switch,no conversation view id,conversation required,login required,scheme,timeout,bundle,conversation"
+ attributes="action,view id,switch,no conversation view id,conversation required,login required,scheme,timeout,bundle,conversation,restrict,description"
entity="SeamPage12" name="page"/>
<XModelAttribute default="xml" name="extension" xmlname="EXTENSION">
<Editor name="Uneditable"/>
@@ -222,7 +222,7 @@
</XModelAttribute>
<XModelAttribute PROPERTIES="category=general" name="name" xmlname="NAME"/>
<XModelAttributeReference
- attributes="action,view id,switch,no conversation view id,conversation required,login required,scheme,timeout,bundle,conversation"
+ attributes="action,view id,switch,no conversation view id,conversation required,login required,scheme,timeout,bundle,conversation,restrict,description"
entity="SeamPage12" name="page"/>
<XModelAttribute default="xml" name="extension" xmlname="EXTENSION">
<Editor name="Uneditable"/>
@@ -364,7 +364,7 @@
</XModelAttribute>
<XModelAttribute PROPERTIES="category=general" name="name" xmlname="NAME"/>
<XModelAttributeReference
- attributes="action,view id,switch,no conversation view id,conversation required,login required,scheme,timeout,bundle,conversation"
+ attributes="action,view id,switch,no conversation view id,conversation required,login required,scheme,timeout,bundle,conversation,restrict,description"
entity="SeamPage12" name="page"/>
<XModelAttribute PROPERTIES="category=advanced"
name="concurrent request timeout" xmlname="concurrent-request-timeout"/>
16 years, 10 months
JBoss Tools SVN: r13627 - trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog.
by jbosstools-commits@lists.jboss.org
Author: sdzmitrovich
Date: 2009-02-16 07:41:10 -0500 (Mon, 16 Feb 2009)
New Revision: 13627
Modified:
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/CSSClassDialog.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-3791
https://jira.jboss.org/jira/browse/JBIDE-3726
Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/CSSClassDialog.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/CSSClassDialog.java 2009-02-16 11:07:46 UTC (rev 13626)
+++ trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/CSSClassDialog.java 2009-02-16 12:41:10 UTC (rev 13627)
@@ -602,6 +602,9 @@
if (classCombo.indexOf(currentClassStyle) == -1) {
applyButton.setEnabled(true);
classCombo.add(currentClassStyle);
+ styleChanged = true;
+ } else {
+ styleChanged = false;
}
updateStyleComposite();
@@ -611,8 +614,9 @@
} else {
currentClassStyle = classCombo.getText().trim();
styleAttributes.setCssSelector(currentClassStyle);
+ styleChanged = false;
}
- styleChanged = false;
+
}
/**
16 years, 10 months
JBoss Tools SVN: r13626 - in trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog: common and 1 other directories.
by jbosstools-commits@lists.jboss.org
Author: sdzmitrovich
Date: 2009-02-16 06:07:46 -0500 (Mon, 16 Feb 2009)
New Revision: 13626
Modified:
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/CSSClassDialog.java
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/StyleComposite.java
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/common/CSSModel.java
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/common/Util.java
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/tabs/TabPreviewControl.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-3791
https://jira.jboss.org/jira/browse/JBIDE-3726
Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/CSSClassDialog.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/CSSClassDialog.java 2009-02-16 10:06:23 UTC (rev 13625)
+++ trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/CSSClassDialog.java 2009-02-16 11:07:46 UTC (rev 13626)
@@ -50,6 +50,7 @@
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.graphics.Image;
+import org.eclipse.swt.graphics.Point;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Button;
@@ -387,11 +388,11 @@
if (result == SWT.YES) {
saveChanges(true);
} else {
- styleComposite.closePreview(false);
updateStyleComposite();
}
}
styleComposite.revertPreview();
+ releaseResources();
// open new CSS file and initialize dialog
boolean useRelativePath = true;
@@ -632,6 +633,11 @@
} else {
text.setText(file.getFullPath().toOSString());
}
+
+ Point selectionInFile = Util.getSelectionInFile(file);
+
+ currentClassStyle = cssModel.getSelectorByPosition(selectionInFile);
+
// fill in ComboBox component with CSS model selectors
// List<Selector> selectors = cssModel.getSelectors();
List<String> selectors = cssModel.getSelectorLabels();
@@ -757,6 +763,11 @@
return classComposite;
}
+
+ public void releaseResources(){
+
+ cssModel.releaseModel();
+ }
/**
* Method should be called in case of dialog closure operation.
@@ -765,9 +776,6 @@
styleComposite.updateStyle();
cssModel.setCSS(currentClassStyle, styleAttributes);
cssModel.saveModel();
- if (close) {
- styleComposite.closePreview(true);
- }
}
/**
@@ -806,22 +814,20 @@
*/
@Override
public boolean close() {
- int code = getReturnCode();
- switch (code) {
- case OK:
- if (styleChanged || classCombo.indexOf(currentClassStyle) == -1) {
- saveChanges(true);
- } else {
- styleComposite.closePreview(true);
- }
- break;
- case CANCEL:
- default:
- // make some closure operation
- styleComposite.closePreview(false);
+ int code = getReturnCode();
+ switch (code) {
+ case OK:
+ if (styleChanged || classCombo.indexOf(currentClassStyle) == -1) {
+ saveChanges(true);
+ }
+ break;
+ case CANCEL:
+ default:
+ // make some closure operation
}
- return super.close();
- }
+ releaseResources();
+ return super.close();
+ }
/**
* Add MessageDialogListener object.
Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/StyleComposite.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/StyleComposite.java 2009-02-16 10:06:23 UTC (rev 13625)
+++ trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/StyleComposite.java 2009-02-16 11:07:46 UTC (rev 13626)
@@ -472,17 +472,6 @@
}
}
- /**
- * Method is used to close preview tab correctly.
- *
- * @param save close editor with saving or not
- */
- public void closePreview(boolean save) {
- if (tabPreviewControl != null) {
- tabPreviewControl.closeEditor(save);
- }
- }
-
/**
* @param showPreviewTab the showPreviewTab to set
*/
Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/common/CSSModel.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/common/CSSModel.java 2009-02-16 10:06:23 UTC (rev 13625)
+++ trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/common/CSSModel.java 2009-02-16 11:07:46 UTC (rev 13626)
@@ -28,9 +28,11 @@
import org.eclipse.jface.text.IDocument;
import org.eclipse.jface.text.IDocumentExtension3;
import org.eclipse.jface.text.IDocumentPartitioner;
+import org.eclipse.swt.graphics.Point;
import org.eclipse.wst.css.core.internal.format.FormatProcessorCSS;
import org.eclipse.wst.css.core.internal.provisional.document.ICSSDocument;
import org.eclipse.wst.css.core.internal.provisional.document.ICSSModel;
+import org.eclipse.wst.css.core.internal.provisional.document.ICSSNode;
import org.eclipse.wst.css.core.internal.provisional.document.ICSSStyleSheet;
import org.eclipse.wst.css.core.internal.text.StructuredTextPartitionerForCSS;
import org.eclipse.wst.sse.core.StructuredModelManager;
@@ -331,10 +333,11 @@
* Release CSS model correctly from editing.
*/
public void releaseModel() {
- IModelManager modelManager = StructuredModelManager.getModelManager();
- if (!modelManager.isShared(model.getId()))
+ IModelManager modelManager = StructuredModelManager.getModelManager();
+ if (model != null && !modelManager.isShared(model.getId()))
model.releaseFromEdit();
- }
+ model = null;
+ }
/**
* Save model. Associate file will be saved automatically.
@@ -415,4 +418,30 @@
}
}
+
+ public String getSelectorByPosition(Point selectionInFile) {
+
+ ICSSNode node = (ICSSNode) model.getIndexedRegion(selectionInFile.x);
+
+ while (node != null) {
+
+ if (node.getNodeType() == ICSSNode.STYLERULE_NODE) {
+ break;
+ } else if (node.getNodeType() == ICSSNode.STYLESHEET_NODE) {
+ node = ((ICSSStyleSheet) node).getFirstChild();
+ break;
+ }
+
+ node = node.getParentNode();
+ }
+
+ Object rules= getRulesMapping();
+ if (node != null)
+ for (Entry<String, CSSStyleRule> rule : getRulesMapping()
+ .entrySet()) {
+ if (node.equals(rule.getValue()))
+ return rule.getKey();
+ }
+ return null;
+ }
}
Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/common/Util.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/common/Util.java 2009-02-16 10:06:23 UTC (rev 13625)
+++ trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/common/Util.java 2009-02-16 11:07:46 UTC (rev 13626)
@@ -21,14 +21,24 @@
import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.jface.viewers.ISelection;
import org.eclipse.jface.viewers.IStructuredSelection;
+import org.eclipse.swt.graphics.Point;
import org.eclipse.swt.graphics.RGB;
import org.eclipse.ui.IEditorInput;
import org.eclipse.ui.IEditorPart;
+import org.eclipse.ui.IEditorReference;
import org.eclipse.ui.IFileEditorInput;
import org.eclipse.ui.IWorkbenchPage;
+import org.eclipse.ui.PlatformUI;
+import org.eclipse.ui.editors.text.TextEditor;
+import org.eclipse.ui.internal.EditorAreaHelper;
+import org.eclipse.ui.internal.WorkbenchPage;
+import org.eclipse.ui.internal.WorkbenchWindow;
+import org.eclipse.ui.part.FileEditorInput;
+import org.eclipse.ui.texteditor.ITextEditor;
import org.eclipse.wst.css.core.internal.provisional.document.ICSSNode;
import org.eclipse.wst.css.core.internal.provisional.document.ICSSStyleRule;
import org.eclipse.wst.css.core.internal.provisional.document.ICSSStyleSheet;
+import org.eclipse.wst.sse.ui.StructuredTextEditor;
import org.jboss.tools.jst.jsp.JspEditorPlugin;
import org.jboss.tools.jst.jsp.outline.cssdialog.parsers.ColorParser;
@@ -70,6 +80,7 @@
private static String ZERO_STR = "0"; //$NON-NLS-1$
private static int NORMAL_MIN_VALUE = 10;
+ private final static String EDITOR_ID = "org.eclipse.wst.css.core.csssource.source"; //$NON-NLS-1$
/**
* Method for checking contain or not css attribute folder
@@ -427,4 +438,21 @@
return className;
}
+
+ public static Point getSelectionInFile(IFile file) {
+
+ IEditorReference[] editorReference = PlatformUI.getWorkbench()
+ .getActiveWorkbenchWindow().getActivePage().findEditors(
+ new FileEditorInput(file), EDITOR_ID,
+ IWorkbenchPage.MATCH_INPUT | IWorkbenchPage.MATCH_ID);
+ Point point = new Point(0, 0);
+ if ((editorReference != null) && (editorReference.length > 0)) {
+
+ IEditorPart editorPart = editorReference[0].getEditor(false);
+ if (editorPart != null)
+ point = ((StructuredTextEditor) editorPart).getTextViewer()
+ .getSelectedRange();
+ }
+ return point;
+ }
}
\ No newline at end of file
Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/tabs/TabPreviewControl.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/tabs/TabPreviewControl.java 2009-02-16 10:06:23 UTC (rev 13625)
+++ trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/tabs/TabPreviewControl.java 2009-02-16 11:07:46 UTC (rev 13626)
@@ -33,8 +33,6 @@
public class TabPreviewControl extends Composite {
/** Editor in which we open visual page. */
- protected final static String EDITOR_ID = "org.eclipse.wst.css.core.csssource.source"; //$NON-NLS-1$
-
SourceViewer viewer = null;
private CSSModel cssModel = null;
@@ -114,19 +112,4 @@
}
}
- /**
- * Method is used to close CSS file editor correctly.
- *
- * @param save true if close editor with closure operation; false - otherwise
- */
- public void closeEditor(boolean save) {
-
- // TODO if copy of model is used then reverting will not be required
- if (!save)
- doRevertToSaved();
-
- if (cssModel != null) {
- cssModel.releaseModel();
- }
- }
}
16 years, 10 months
JBoss Tools SVN: r13625 - trunk/documentation/development/setup/workingsets.
by jbosstools-commits@lists.jboss.org
Author: max.andersen(a)jboss.com
Date: 2009-02-16 05:06:23 -0500 (Mon, 16 Feb 2009)
New Revision: 13625
Modified:
trunk/documentation/development/setup/workingsets/jbosstools.wst
trunk/documentation/development/setup/workingsets/workingsets.xml
Log:
updated jbosstools workingsets
Modified: trunk/documentation/development/setup/workingsets/jbosstools.wst
===================================================================
--- trunk/documentation/development/setup/workingsets/jbosstools.wst 2009-02-15 23:46:19 UTC (rev 13624)
+++ trunk/documentation/development/setup/workingsets/jbosstools.wst 2009-02-16 10:06:23 UTC (rev 13625)
@@ -1,220 +1,245 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<workingSets>
-<workingSet editPageId="org.eclipse.jdt.ui.JavaWorkingSetPage" label="Birt" name="Birt">
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.birt.oda" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.birt.core" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.birt.oda.ui" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.birt.feature" type="4"/>
-</workingSet>
-<workingSet editPageId="org.eclipse.jdt.ui.JavaWorkingSetPage" label="Core/Common" name="Core/Common">
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.common.model.ui" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.common.text.ext" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.common.el.ui" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.common.kb" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.common.model.test" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.common.verification.feature" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.common.text.ext.feature" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.common.resref.ui" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.common.feature" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.common.text.xml" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.common.projecttemplates" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.common.el.core" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.common.gef" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.common.verification" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.common.resref.core" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.ide.eclipse.core.test" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.common.test" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.common.kb.test" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.common.model.ui.test" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.common.verification.test" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.common.model" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.common" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.common.meta.ui" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.common.ui.feature" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.common.core.feature" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.common.verification.ui" type="4"/>
-</workingSet>
-<workingSet editPageId="org.eclipse.jdt.ui.JavaWorkingSetPage" label="Docs" name="Docs">
-<item elementID="=toolsdocs" factoryID="org.eclipse.jdt.ui.PersistableJavaElementFactory"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.doc.development" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/test-plan" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/test-strategy" type="4"/>
-</workingSet>
-<workingSet editPageId="org.eclipse.jdt.ui.JavaWorkingSetPage" label="ESB" name="ESB">
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.esb.core.test" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.esb.feature" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.esb.project.core" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.esb.core" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.esb.ui" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.esb.project.ui" type="4"/>
-</workingSet>
-<workingSet editPageId="org.eclipse.jdt.ui.JavaWorkingSetPage" label="Flow" name="Flow">
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.flow.jpdl4" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.flow.common" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.flow.ruleflow" type="4"/>
-</workingSet>
-<workingSet editPageId="org.eclipse.jdt.ui.JavaWorkingSetPage" label="Freemarker" name="Freemarker">
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.ide.eclipse.freemarker.feature" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.ide.eclipse.freemarker" type="4"/>
-</workingSet>
-<workingSet editPageId="org.eclipse.jdt.ui.JavaWorkingSetPage" label="Hibernate" name="Hibernate">
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.hibernate.eclipse.jdt.apt.ui" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.hibernate.hblibs" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.hibernate.eclipse.feature" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.hibernate.eclipse.console" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.hibernate.eclipse.test.feature" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.hibernate.jpt.ui" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.hibernate.jpt.core" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.hibernate.ui.view" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.hibernate.eclipse.jdt.ui" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.hibernate.eclipse.console.test" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/hibernatetools.doc" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.hibernate.eclipse.jdt.ui.test" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.hibernate.xml" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.hibernate.eclipse.mapper" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.hibernate.xml.ui" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.hibernate.ui.veditor" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.hibernate.sampleproject.mappingtypes" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.hibernate.eclipse" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.hibernate.eclipse.help" type="4"/>
-</workingSet>
-<workingSet editPageId="org.eclipse.jdt.ui.JavaWorkingSetPage" label="JSF" name="JSF">
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jsf.doc.user" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jsf.ui.test" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jsf.text.ext.facelets" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jsf.ui" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jsf.vpe.richfaces" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jsf.verification.test" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jsf.vpe.facelets" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jsf.feature" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jsf.vpe.ajax4jsf" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jsf.verification" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jsf.vpe.myfaces.test" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jsf.vpe.jsf.test" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jsf.text.ext.test" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jsf" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jsf.vpe.jsf" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jsf.text.ext" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jsf.vpe.seam.test" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jsf.vpe.myfaces" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jsf.vpe.richfaces.test" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jsf.vpe.seam" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jsf.vpe.facelets.test" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jsf.test" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.richfaces.feature" type="4"/>
-</workingSet>
-<workingSet editPageId="org.eclipse.jdt.ui.JavaWorkingSetPage" label="JST" name="JST">
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jst.jsp" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jst.web.debug" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jst.web" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jst.web.tiles.ui" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jst.web.verification" type="4"/>
-<item elementID="=org.jboss.tools.jst.firstrun" factoryID="org.eclipse.jdt.ui.PersistableJavaElementFactory"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jst.web.tiles.feature" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jst.web.test" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jst.web.ui" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jst.jsp.test" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jst.feature" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jst.web.debug.ui" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jst.web.tiles" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jst.web.ui.test" type="4"/>
-</workingSet>
-<workingSet editPageId="org.eclipse.jdt.ui.JavaWorkingSetPage" label="Labs" name="Labs">
-<item elementID="=org.jboss.tools.labs.pde.sourceprovider" factoryID="org.eclipse.jdt.ui.PersistableJavaElementFactory"/>
-</workingSet>
-<workingSet editPageId="org.eclipse.jdt.ui.JavaWorkingSetPage" label="Portlet" name="Portlet">
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.portlet.core" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.portlet.feature" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.portlet.ui" type="4"/>
-</workingSet>
-<workingSet editPageId="org.eclipse.jdt.ui.JavaWorkingSetPage" label="Project Archives" name="Project Archives">
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.ide.eclipse.archives.feature" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.ide.eclipse.archives.webtools" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.ide.eclipse.archives.core" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.ide.eclipse.archives.test" type="4"/>
-<item elementID="=packaging-convert" factoryID="org.eclipse.jdt.ui.PersistableJavaElementFactory"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.ide.eclipse.archives.ui" type="4"/>
-</workingSet>
-<workingSet editPageId="org.eclipse.jdt.ui.JavaWorkingSetPage" label="Seam" name="Seam">
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.seam.feature" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.seam.text.ext" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.seam.pages.xml" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.seam.core" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.seam.ui" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.seam.ui.test" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.ide.seam.gen" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.seam.pages.xml.test" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.ide.eclipse.seam.feature" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.seam.doc.user" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.seam.core.test" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.seam.xml.ui" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.seam.xml" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.seam.ui.pages" type="4"/>
-</workingSet>
-<workingSet editPageId="org.eclipse.jdt.ui.JavaWorkingSetPage" label="Server tools" name="Server tools">
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.ide.eclipse.as.ui" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.ide.eclipse.as.test" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.ide.eclipse.as.feature" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.ide.eclipes.as.test.feature" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.eclipse.as.tptp" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.ide.eclipse.as.classpath.core" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.ide.eclipse.as.core" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.ide.eclipse.as.ui.mbeans" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.ide.eclipse.as.classpath.ui" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.ide.eclipse.as.doc.user" type="4"/>
-</workingSet>
-<workingSet editPageId="org.eclipse.jdt.ui.JavaWorkingSetPage" label="Smooks" name="Smooks">
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.smooks.xml" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.smooks.feature" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.smooks.model.edit" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.smooks.graphicalInfo" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.smooks.test" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.smooks.model" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.smooks.javabean" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.smooks.ui" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.smooks.xml2java" type="4"/>
-</workingSet>
-<workingSet editPageId="org.eclipse.jdt.ui.JavaWorkingSetPage" label="Struts" name="Struts">
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.struts.vpe.struts.test" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.struts.verification" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.struts.ui" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.struts.text.ext.test" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.struts.text.ext" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.struts.validator.ui" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.struts" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.struts.debug" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.struts.vpe.struts" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.struts.feature" type="4"/>
-</workingSet>
-<workingSet editPageId="org.eclipse.jdt.ui.JavaWorkingSetPage" label="Test/QA" name="Test/QA">
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.ide.eclipse.test.feature" type="4"/>
-<item elementID="=org.jboss.tools.tests" factoryID="org.eclipse.jdt.ui.PersistableJavaElementFactory"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.test.feature" type="4"/>
-</workingSet>
-<workingSet editPageId="org.eclipse.jdt.ui.JavaWorkingSetPage" label="Visual Page Editor" name="Visual Page Editor">
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.vpe.ui.palette" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.vpe.html" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.vpe.docbook" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.vpe.jsp.test" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.vpe.resref" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.vpe.jsp" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.vpe.xulrunner.test" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.vpe.xulrunner" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.vpe" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.vpe.html.test" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.vpe.ui.test" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.vpe.test" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.vpe.feature" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.xulrunner.feature" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.xulrunner.initializer" type="4"/>
-</workingSet>
-<workingSet editPageId="org.eclipse.jdt.ui.JavaWorkingSetPage" label="Webservices" name="Webservices">
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.ws.ui" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.ws.core" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.ws.creation.ui" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.ws.feature" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.ws.ui.test" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.ws.creation.core" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.ws.core.test" type="4"/>
-</workingSet>
+<?xml version="1.0" encoding="UTF-8"?>
+<workingSets>
+<workingSet editPageId="org.eclipse.jdt.ui.JavaWorkingSetPage" label="Birt" name="Birt">
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.birt.oda" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.birt.feature" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.birt.oda.ui" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.birt.core" type="4"/>
+</workingSet>
+<workingSet editPageId="org.eclipse.jdt.ui.JavaWorkingSetPage" label="Core/Common" name="Core/Common">
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.common.text.xml" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.common.feature" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.common.meta.ui" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.common.verification.feature" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.common" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.common.projecttemplates" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.common.el.core" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.common.core.feature" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.common.verification.ui" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.common.kb.test" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.common.gef" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.common.test" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.common.verification.test" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.common.verification" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.common.model" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.common.ui.feature" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.common.kb" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.common.resref.core" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.common.el.ui" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.common.text.ext" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.common.text.ext.feature" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.common.resref.ui" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.common.model.ui.test" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.common.model.ui" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.common.model.test" type="4"/>
+<item elementID="=org.jboss.tools.common.el.core.test" factoryID="org.eclipse.jdt.ui.PersistableJavaElementFactory"/>
+<item elementID="=org.jboss.tools.common.text.ext.test" factoryID="org.eclipse.jdt.ui.PersistableJavaElementFactory"/>
+</workingSet>
+<workingSet editPageId="org.eclipse.jdt.ui.JavaWorkingSetPage" label="Docs" name="Docs">
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/test-strategy" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/test-plan" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/toolsdocs" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.doc.development" type="4"/>
+</workingSet>
+<workingSet editPageId="org.eclipse.jdt.ui.JavaWorkingSetPage" label="ESB" name="ESB">
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.esb.project.ui" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.esb.ui" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.esb.core" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.esb.core.test" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.esb.feature" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.esb.project.core" type="4"/>
+<item elementID="=org.jboss.tools.esb.project.core.test" factoryID="org.eclipse.jdt.ui.PersistableJavaElementFactory"/>
+</workingSet>
+<workingSet editPageId="org.eclipse.jdt.ui.JavaWorkingSetPage" label="Flow" name="Flow">
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.flow.jpdl4" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.flow.common" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.flow.ruleflow" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.flow.common.feature" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.flow.jpdl4.builder" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.flow.jpdl4.feature" type="4"/>
+</workingSet>
+<workingSet editPageId="org.eclipse.jdt.ui.JavaWorkingSetPage" label="Freemarker" name="Freemarker">
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.ide.eclipse.freemarker" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.ide.eclipse.freemarker.feature" type="4"/>
+</workingSet>
+<workingSet editPageId="org.eclipse.jdt.ui.JavaWorkingSetPage" label="Hibernate" name="Hibernate">
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.hibernate.hblibs" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.hibernate.xml" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.hibernate.jpt.core" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.hibernate.eclipse.help" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/hibernatetools.doc" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.hibernate.jpt.ui" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.hibernate.sampleproject.mappingtypes" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.hibernate.eclipse.test.feature" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.hibernate.eclipse.jdt.ui" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.hibernate.eclipse.jdt.ui.test" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.hibernate.eclipse.feature" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.hibernate.eclipse.console" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.hibernate.ui.view" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.hibernate.eclipse" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.hibernate.ui.veditor" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.hibernate.eclipse.mapper" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.hibernate.eclipse.jdt.apt.ui" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.hibernate.xml.ui" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.hibernate.eclipse.console.test" type="4"/>
+</workingSet>
+<workingSet editPageId="org.eclipse.jdt.ui.JavaWorkingSetPage" label="jbpm" name="jbpm">
+<item elementID="=org.jboss.tools.jbpm.convert" factoryID="org.eclipse.jdt.ui.PersistableJavaElementFactory"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jbpm.convert.feature" type="4"/>
+<item elementID="=org.jboss.tools.jbpm.convert.test" factoryID="org.eclipse.jdt.ui.PersistableJavaElementFactory"/>
+</workingSet>
+<workingSet editPageId="org.eclipse.jdt.ui.JavaWorkingSetPage" label="JMX" name="JMX">
+<item elementID="=org.jboss.tools.jmx.core" factoryID="org.eclipse.jdt.ui.PersistableJavaElementFactory"/>
+<item elementID="=org.jboss.tools.jmx.core.test" factoryID="org.eclipse.jdt.ui.PersistableJavaElementFactory"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jmx.feature" type="4"/>
+<item elementID="=org.jboss.tools.jmx.ui" factoryID="org.eclipse.jdt.ui.PersistableJavaElementFactory"/>
+<item elementID="=org.jboss.tools.jmx.ui.test" factoryID="org.eclipse.jdt.ui.PersistableJavaElementFactory"/>
+<item elementID="=org.jboss.tools.jmx.ui.test.interactive" factoryID="org.eclipse.jdt.ui.PersistableJavaElementFactory"/>
+</workingSet>
+<workingSet editPageId="org.eclipse.jdt.ui.JavaWorkingSetPage" label="JSF" name="JSF">
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jsf.vpe.facelets" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jsf.verification" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jsf.vpe.seam" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jsf.vpe.jsf" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jsf.ui.test" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jsf.vpe.myfaces.test" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jsf.text.ext.facelets" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jsf.verification.test" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jsf.feature" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jsf.vpe.ajax4jsf" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jsf.vpe.jsf.test" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jsf.doc.user" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jsf.test" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jsf.vpe.richfaces.test" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jsf" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jsf.vpe.seam.test" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jsf.vpe.facelets.test" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jsf.ui" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.richfaces.feature" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jsf.vpe.richfaces" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jsf.text.ext.test" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jsf.text.ext" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jsf.vpe.myfaces" type="4"/>
+<item elementID="=org.jboss.tools.jsf.text.ext.richfaces" factoryID="org.eclipse.jdt.ui.PersistableJavaElementFactory"/>
+</workingSet>
+<workingSet editPageId="org.eclipse.jdt.ui.JavaWorkingSetPage" label="JST" name="JST">
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jst.web.ui" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jst.firstrun" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jst.web.test" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jst.web.debug.ui" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jst.web.ui.test" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jst.web.verification" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jst.web.tiles.ui" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jst.feature" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jst.web.debug" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jst.jsp" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jst.web.tiles" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jst.web.tiles.feature" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jst.web" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jst.jsp.test" type="4"/>
+</workingSet>
+<workingSet editPageId="org.eclipse.jdt.ui.JavaWorkingSetPage" label="Labs" name="Labs">
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.labs.pde.sourceprovider" type="4"/>
+</workingSet>
+<workingSet editPageId="org.eclipse.jdt.ui.JavaWorkingSetPage" label="Portlet" name="Portlet">
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.portlet.ui" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.portlet.feature" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.portlet.core" type="4"/>
+</workingSet>
+<workingSet editPageId="org.eclipse.jdt.ui.JavaWorkingSetPage" label="Project Archives" name="Project Archives">
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.ide.eclipse.archives.test" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/packaging-convert" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.ide.eclipse.archives.feature" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.ide.eclipse.archives.webtools" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.ide.eclipse.archives.core" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.ide.eclipse.archives.ui" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.ide.eclipse.archives.test.feature" type="4"/>
+</workingSet>
+<workingSet editPageId="org.eclipse.jdt.ui.JavaWorkingSetPage" label="Project Examples" name="Project Examples">
+<item elementID="=org.jboss.tools.project.examples" factoryID="org.eclipse.jdt.ui.PersistableJavaElementFactory"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.project.examples.feature" type="4"/>
+</workingSet>
+<workingSet editPageId="org.eclipse.jdt.ui.JavaWorkingSetPage" label="Seam" name="Seam">
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.ide.seam.gen" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.seam.ui.test" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.seam.doc.user" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.seam.text.ext" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.seam.ui" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.seam.pages.xml" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.seam.feature" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.seam.xml.ui" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.seam.pages.xml.test" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.seam.core.test" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.ide.eclipse.seam.feature" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.seam.ui.pages" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.seam.xml" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.seam.core" type="4"/>
+</workingSet>
+<workingSet editPageId="org.eclipse.jdt.ui.JavaWorkingSetPage" label="Server tools" name="Server tools">
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.ide.eclipse.as.classpath.ui" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.eclipse.as.tptp" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.ide.eclipse.as.ui" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.ide.eclipse.as.doc.user" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.ide.eclipse.as.feature" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.ide.eclipse.as.core" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.ide.eclipse.as.ui.mbeans" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.ide.eclipse.as.test" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.ide.eclipse.as.classpath.core" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.ide.eclipes.as.test.feature" type="4"/>
+</workingSet>
+<workingSet editPageId="org.eclipse.jdt.ui.JavaWorkingSetPage" label="Smooks" name="Smooks">
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.smooks.ui" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.smooks.feature" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.smooks.test" type="4"/>
+<item elementID="=org.jboss.tools.smooks.core" factoryID="org.eclipse.jdt.ui.PersistableJavaElementFactory"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/docs_smooks" type="4"/>
+</workingSet>
+<workingSet editPageId="org.eclipse.jdt.ui.JavaWorkingSetPage" label="Struts" name="Struts">
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.struts.vpe.struts" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.struts.feature" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.struts.ui" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.struts.validator.ui" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.struts.debug" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.struts" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.struts.vpe.struts.test" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.struts.text.ext.test" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.struts.text.ext" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.struts.verification" type="4"/>
+</workingSet>
+<workingSet editPageId="org.eclipse.jdt.ui.JavaWorkingSetPage" label="Test/QA" name="Test/QA">
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.test.feature" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.tests" type="4"/>
+</workingSet>
+<workingSet editPageId="org.eclipse.jdt.ui.JavaWorkingSetPage" label="tptp" name="tptp">
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.tptp.feature" type="4"/>
+</workingSet>
+<workingSet editPageId="org.eclipse.jdt.ui.JavaWorkingSetPage" label="Visual Page Editor" name="Visual Page Editor">
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.vpe.html.test" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.vpe.jsp.test" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.vpe.xulrunner.test" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.xulrunner.initializer" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.vpe.xulrunner" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.vpe.jsp" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.vpe.resref" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.vpe.ui.palette" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.vpe.ui.test" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.vpe.test" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.vpe.feature" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.xulrunner.feature" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.vpe" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.vpe.docbook" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.vpe.html" type="4"/>
+<item elementID="=org.jboss.tools.jsf.vpe.ajax4jsf.test" factoryID="org.eclipse.jdt.ui.PersistableJavaElementFactory"/>
+<item elementID="=org.jboss.tools.jsf.vpe.jstl" factoryID="org.eclipse.jdt.ui.PersistableJavaElementFactory"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.xulrunner" type="4"/>
+</workingSet>
+<workingSet editPageId="org.eclipse.jdt.ui.JavaWorkingSetPage" label="Webservices" name="Webservices">
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.ws.core.test" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.ws.ui" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.ws.feature" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.ws.core" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.ws.ui.test" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.ws.creation.ui" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.ws.creation.core" type="4"/>
+</workingSet>
</workingSets>
\ No newline at end of file
Modified: trunk/documentation/development/setup/workingsets/workingsets.xml
===================================================================
--- trunk/documentation/development/setup/workingsets/workingsets.xml 2009-02-15 23:46:19 UTC (rev 13624)
+++ trunk/documentation/development/setup/workingsets/workingsets.xml 2009-02-16 10:06:23 UTC (rev 13625)
@@ -1,224 +1,246 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<workingSetManager>
-<workingSet editPageId="org.eclipse.jdt.ui.JavaWorkingSetPage" factoryID="org.eclipse.ui.internal.WorkingSetFactory" label="Birt" name="Birt">
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.birt.oda" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.birt.core" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.birt.oda.ui" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.birt.feature" type="4"/>
-</workingSet>
-<workingSet editPageId="org.eclipse.jdt.ui.JavaWorkingSetPage" factoryID="org.eclipse.ui.internal.WorkingSetFactory" label="Core/Common" name="Core/Common">
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.common.model.ui" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.common.text.ext" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.common.el.ui" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.common.kb" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.common.model.test" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.common.verification.feature" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.common.text.ext.feature" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.common.resref.ui" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.common.feature" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.common.text.xml" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.common.projecttemplates" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.common.el.core" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.common.gef" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.common.verification" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.common.resref.core" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.ide.eclipse.core.test" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.common.test" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.common.kb.test" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.common.model.ui.test" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.common.verification.test" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.common.model" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.common" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.common.meta.ui" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.common.ui.feature" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.common.core.feature" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.common.verification.ui" type="4"/>
-</workingSet>
-<workingSet editPageId="org.eclipse.jdt.ui.JavaWorkingSetPage" factoryID="org.eclipse.ui.internal.WorkingSetFactory" label="Docs" name="Docs">
-<item elementID="=toolsdocs" factoryID="org.eclipse.jdt.ui.PersistableJavaElementFactory"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.doc.development" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/test-plan" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/test-strategy" type="4"/>
-</workingSet>
-<workingSet editPageId="org.eclipse.jdt.ui.JavaWorkingSetPage" factoryID="org.eclipse.ui.internal.WorkingSetFactory" label="ESB" name="ESB">
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.esb.core.test" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.esb.feature" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.esb.project.core" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.esb.core" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.esb.ui" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.esb.project.ui" type="4"/>
-</workingSet>
-<workingSet editPageId="org.eclipse.jdt.ui.JavaWorkingSetPage" factoryID="org.eclipse.ui.internal.WorkingSetFactory" label="Flow" name="Flow">
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.flow.jpdl4" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.flow.common" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.flow.ruleflow" type="4"/>
-</workingSet>
-<workingSet editPageId="org.eclipse.jdt.ui.JavaWorkingSetPage" factoryID="org.eclipse.ui.internal.WorkingSetFactory" label="Freemarker" name="Freemarker">
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.ide.eclipse.freemarker.feature" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.ide.eclipse.freemarker" type="4"/>
-</workingSet>
-<workingSet editPageId="org.eclipse.jdt.ui.JavaWorkingSetPage" factoryID="org.eclipse.ui.internal.WorkingSetFactory" label="Hibernate" name="Hibernate">
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.hibernate.eclipse.jdt.apt.ui" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.hibernate.hblibs" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.hibernate.eclipse.feature" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.hibernate.eclipse.console" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.hibernate.eclipse.test.feature" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.hibernate.jpt.ui" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.hibernate.jpt.core" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.hibernate.ui.view" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.hibernate.eclipse.jdt.ui" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.hibernate.eclipse.console.test" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/hibernatetools.doc" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.hibernate.eclipse.jdt.ui.test" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.hibernate.xml" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.hibernate.eclipse.mapper" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.hibernate.xml.ui" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.hibernate.ui.veditor" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.hibernate.sampleproject.mappingtypes" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.hibernate.eclipse" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.hibernate.eclipse.help" type="4"/>
-</workingSet>
-<workingSet editPageId="org.eclipse.jdt.ui.JavaWorkingSetPage" factoryID="org.eclipse.ui.internal.WorkingSetFactory" label="JSF" name="JSF">
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jsf.doc.user" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jsf.ui.test" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jsf.text.ext.facelets" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jsf.ui" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jsf.vpe.richfaces" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jsf.verification.test" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jsf.vpe.facelets" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jsf.feature" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jsf.vpe.ajax4jsf" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jsf.verification" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jsf.vpe.myfaces.test" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jsf.vpe.jsf.test" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jsf.text.ext.test" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jsf" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jsf.vpe.jsf" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jsf.text.ext" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jsf.vpe.seam.test" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jsf.vpe.myfaces" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jsf.vpe.richfaces.test" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jsf.vpe.seam" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jsf.vpe.facelets.test" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jsf.test" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.richfaces.feature" type="4"/>
-</workingSet>
-<workingSet editPageId="org.eclipse.jdt.ui.JavaWorkingSetPage" factoryID="org.eclipse.ui.internal.WorkingSetFactory" label="JST" name="JST">
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jst.jsp" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jst.web.debug" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jst.web" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jst.web.tiles.ui" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jst.web.verification" type="4"/>
-<item elementID="=org.jboss.tools.jst.firstrun" factoryID="org.eclipse.jdt.ui.PersistableJavaElementFactory"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jst.web.tiles.feature" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jst.web.test" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jst.web.ui" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jst.jsp.test" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jst.feature" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jst.web.debug.ui" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jst.web.tiles" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jst.web.ui.test" type="4"/>
-</workingSet>
-<workingSet editPageId="org.eclipse.jdt.ui.JavaWorkingSetPage" factoryID="org.eclipse.ui.internal.WorkingSetFactory" label="Misc" name="Misc">
-<item elementID="=org.jboss.tools.labs.pde.sourceprovider" factoryID="org.eclipse.jdt.ui.PersistableJavaElementFactory"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/jbosstools-setup" type="4"/>
-</workingSet>
-<workingSet editPageId="org.eclipse.jdt.ui.JavaWorkingSetPage" factoryID="org.eclipse.ui.internal.WorkingSetFactory" label="Portlet" name="Portlet">
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.portlet.core" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.portlet.feature" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.portlet.ui" type="4"/>
-</workingSet>
-<workingSet editPageId="org.eclipse.jdt.ui.JavaWorkingSetPage" factoryID="org.eclipse.ui.internal.WorkingSetFactory" label="Project Archives" name="Project Archives">
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.ide.eclipse.archives.feature" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.ide.eclipse.archives.webtools" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.ide.eclipse.archives.core" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.ide.eclipse.archives.test" type="4"/>
-<item elementID="=packaging-convert" factoryID="org.eclipse.jdt.ui.PersistableJavaElementFactory"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.ide.eclipse.archives.ui" type="4"/>
-</workingSet>
-<workingSet editPageId="org.eclipse.jdt.ui.JavaWorkingSetPage" factoryID="org.eclipse.ui.internal.WorkingSetFactory" label="Seam" name="Seam">
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.seam.feature" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.seam.text.ext" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.seam.pages.xml" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.seam.core" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.seam.ui" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.seam.ui.test" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.ide.seam.gen" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.seam.pages.xml.test" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.ide.eclipse.seam.feature" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.seam.doc.user" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.seam.core.test" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.seam.xml.ui" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.seam.xml" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.seam.ui.pages" type="4"/>
-</workingSet>
-<workingSet editPageId="org.eclipse.jdt.ui.JavaWorkingSetPage" factoryID="org.eclipse.ui.internal.WorkingSetFactory" label="Server tools" name="Server tools">
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.ide.eclipse.as.ui" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.ide.eclipse.as.test" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.ide.eclipse.as.feature" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.ide.eclipes.as.test.feature" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.eclipse.as.tptp" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.ide.eclipse.as.classpath.core" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.ide.eclipse.as.core" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.ide.eclipse.as.ui.mbeans" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.ide.eclipse.as.classpath.ui" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.ide.eclipse.as.doc.user" type="4"/>
-</workingSet>
-<workingSet editPageId="org.eclipse.jdt.ui.JavaWorkingSetPage" factoryID="org.eclipse.ui.internal.WorkingSetFactory" label="Smooks" name="Smooks">
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.smooks.xml" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.smooks.feature" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.smooks.model.edit" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.smooks.graphicalInfo" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.smooks.test" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.smooks.model" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.smooks.javabean" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.smooks.ui" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.smooks.xml2java" type="4"/>
-</workingSet>
-<workingSet editPageId="org.eclipse.jdt.ui.JavaWorkingSetPage" factoryID="org.eclipse.ui.internal.WorkingSetFactory" label="Struts" name="Struts">
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.struts.vpe.struts.test" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.struts.verification" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.struts.ui" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.struts.text.ext.test" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.struts.text.ext" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.struts.validator.ui" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.struts" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.struts.debug" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.struts.vpe.struts" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.struts.feature" type="4"/>
-</workingSet>
-<workingSet editPageId="org.eclipse.jdt.ui.JavaWorkingSetPage" factoryID="org.eclipse.ui.internal.WorkingSetFactory" label="Test/QA" name="Test/QA">
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.ide.eclipse.test.feature" type="4"/>
-<item elementID="=org.jboss.tools.tests" factoryID="org.eclipse.jdt.ui.PersistableJavaElementFactory"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.test.feature" type="4"/>
-</workingSet>
-<workingSet editPageId="org.eclipse.jdt.ui.JavaWorkingSetPage" factoryID="org.eclipse.ui.internal.WorkingSetFactory" label="Visual Page Editor" name="Visual Page Editor">
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.vpe.ui.palette" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.vpe.html" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.vpe.docbook" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.vpe.jsp.test" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.vpe.resref" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.vpe.jsp" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.vpe.xulrunner.test" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.vpe.xulrunner" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.vpe" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.vpe.html.test" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.vpe.ui.test" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.vpe.test" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.vpe.feature" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.xulrunner.feature" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.xulrunner.initializer" type="4"/>
-</workingSet>
-<workingSet editPageId="org.eclipse.jdt.ui.JavaWorkingSetPage" factoryID="org.eclipse.ui.internal.WorkingSetFactory" label="Webservices" name="Webservices">
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.ws.ui" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.ws.core" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.ws.creation.ui" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.ws.feature" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.ws.ui.test" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.ws.creation.core" type="4"/>
-<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.ws.core.test" type="4"/>
-</workingSet>
-<workingSet aggregate="true" factoryID="org.eclipse.ui.internal.WorkingSetFactory" label="Window Working Set" name="Aggregate for window 1221233733152"/>
-<mruList name="Misc"/>
-<mruList name="JST"/>
+<?xml version="1.0" encoding="UTF-8"?>
+<workingSetManager>
+<workingSet editPageId="org.eclipse.jdt.ui.JavaWorkingSetPage" factoryID="org.eclipse.ui.internal.WorkingSetFactory" label="Birt" name="Birt">
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.birt.oda" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.birt.feature" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.birt.oda.ui" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.birt.core" type="4"/>
+</workingSet>
+<workingSet editPageId="org.eclipse.jdt.ui.JavaWorkingSetPage" factoryID="org.eclipse.ui.internal.WorkingSetFactory" label="Core/Common" name="Core/Common">
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.common.text.xml" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.common.feature" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.common.meta.ui" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.common.verification.feature" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.common" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.common.projecttemplates" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.common.el.core" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.common.core.feature" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.common.verification.ui" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.common.kb.test" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.common.gef" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.common.test" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.common.verification.test" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.common.verification" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.common.model" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.common.ui.feature" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.common.kb" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.common.resref.core" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.common.el.ui" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.common.text.ext" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.common.text.ext.feature" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.common.resref.ui" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.common.model.ui.test" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.common.model.ui" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.common.model.test" type="4"/>
+<item elementID="=org.jboss.tools.common.el.core.test" factoryID="org.eclipse.jdt.ui.PersistableJavaElementFactory"/>
+<item elementID="=org.jboss.tools.common.text.ext.test" factoryID="org.eclipse.jdt.ui.PersistableJavaElementFactory"/>
+</workingSet>
+<workingSet editPageId="org.eclipse.jdt.ui.JavaWorkingSetPage" factoryID="org.eclipse.ui.internal.WorkingSetFactory" label="Docs" name="Docs">
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/test-strategy" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/test-plan" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/toolsdocs" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.doc.development" type="4"/>
+</workingSet>
+<workingSet editPageId="org.eclipse.jdt.ui.JavaWorkingSetPage" factoryID="org.eclipse.ui.internal.WorkingSetFactory" label="ESB" name="ESB">
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.esb.project.ui" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.esb.ui" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.esb.core" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.esb.core.test" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.esb.feature" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.esb.project.core" type="4"/>
+<item elementID="=org.jboss.tools.esb.project.core.test" factoryID="org.eclipse.jdt.ui.PersistableJavaElementFactory"/>
+</workingSet>
+<workingSet editPageId="org.eclipse.jdt.ui.JavaWorkingSetPage" factoryID="org.eclipse.ui.internal.WorkingSetFactory" label="Flow" name="Flow">
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.flow.jpdl4" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.flow.common" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.flow.ruleflow" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.flow.common.feature" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.flow.jpdl4.builder" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.flow.jpdl4.feature" type="4"/>
+</workingSet>
+<workingSet editPageId="org.eclipse.jdt.ui.JavaWorkingSetPage" factoryID="org.eclipse.ui.internal.WorkingSetFactory" label="Freemarker" name="Freemarker">
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.ide.eclipse.freemarker" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.ide.eclipse.freemarker.feature" type="4"/>
+</workingSet>
+<workingSet editPageId="org.eclipse.jdt.ui.JavaWorkingSetPage" factoryID="org.eclipse.ui.internal.WorkingSetFactory" label="Hibernate" name="Hibernate">
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.hibernate.hblibs" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.hibernate.xml" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.hibernate.jpt.core" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.hibernate.eclipse.help" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/hibernatetools.doc" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.hibernate.jpt.ui" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.hibernate.sampleproject.mappingtypes" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.hibernate.eclipse.test.feature" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.hibernate.eclipse.jdt.ui" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.hibernate.eclipse.jdt.ui.test" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.hibernate.eclipse.feature" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.hibernate.eclipse.console" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.hibernate.ui.view" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.hibernate.eclipse" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.hibernate.ui.veditor" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.hibernate.eclipse.mapper" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.hibernate.eclipse.jdt.apt.ui" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.hibernate.xml.ui" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.hibernate.eclipse.console.test" type="4"/>
+</workingSet>
+<workingSet editPageId="org.eclipse.jdt.ui.JavaWorkingSetPage" factoryID="org.eclipse.ui.internal.WorkingSetFactory" label="jbpm" name="jbpm">
+<item elementID="=org.jboss.tools.jbpm.convert" factoryID="org.eclipse.jdt.ui.PersistableJavaElementFactory"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jbpm.convert.feature" type="4"/>
+<item elementID="=org.jboss.tools.jbpm.convert.test" factoryID="org.eclipse.jdt.ui.PersistableJavaElementFactory"/>
+</workingSet>
+<workingSet editPageId="org.eclipse.jdt.ui.JavaWorkingSetPage" factoryID="org.eclipse.ui.internal.WorkingSetFactory" label="JMX" name="JMX">
+<item elementID="=org.jboss.tools.jmx.core" factoryID="org.eclipse.jdt.ui.PersistableJavaElementFactory"/>
+<item elementID="=org.jboss.tools.jmx.core.test" factoryID="org.eclipse.jdt.ui.PersistableJavaElementFactory"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jmx.feature" type="4"/>
+<item elementID="=org.jboss.tools.jmx.ui" factoryID="org.eclipse.jdt.ui.PersistableJavaElementFactory"/>
+<item elementID="=org.jboss.tools.jmx.ui.test" factoryID="org.eclipse.jdt.ui.PersistableJavaElementFactory"/>
+<item elementID="=org.jboss.tools.jmx.ui.test.interactive" factoryID="org.eclipse.jdt.ui.PersistableJavaElementFactory"/>
+</workingSet>
+<workingSet editPageId="org.eclipse.jdt.ui.JavaWorkingSetPage" factoryID="org.eclipse.ui.internal.WorkingSetFactory" label="JSF" name="JSF">
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jsf.vpe.facelets" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jsf.verification" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jsf.vpe.seam" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jsf.vpe.jsf" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jsf.ui.test" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jsf.vpe.myfaces.test" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jsf.text.ext.facelets" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jsf.verification.test" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jsf.feature" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jsf.vpe.ajax4jsf" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jsf.vpe.jsf.test" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jsf.doc.user" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jsf.test" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jsf.vpe.richfaces.test" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jsf" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jsf.vpe.seam.test" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jsf.vpe.facelets.test" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jsf.ui" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.richfaces.feature" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jsf.vpe.richfaces" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jsf.text.ext.test" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jsf.text.ext" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jsf.vpe.myfaces" type="4"/>
+<item elementID="=org.jboss.tools.jsf.text.ext.richfaces" factoryID="org.eclipse.jdt.ui.PersistableJavaElementFactory"/>
+</workingSet>
+<workingSet editPageId="org.eclipse.jdt.ui.JavaWorkingSetPage" factoryID="org.eclipse.ui.internal.WorkingSetFactory" label="JST" name="JST">
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jst.web.ui" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jst.firstrun" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jst.web.test" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jst.web.debug.ui" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jst.web.ui.test" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jst.web.verification" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jst.web.tiles.ui" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jst.feature" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jst.web.debug" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jst.jsp" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jst.web.tiles" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jst.web.tiles.feature" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jst.web" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.jst.jsp.test" type="4"/>
+</workingSet>
+<workingSet editPageId="org.eclipse.jdt.ui.JavaWorkingSetPage" factoryID="org.eclipse.ui.internal.WorkingSetFactory" label="Labs" name="Labs">
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.labs.pde.sourceprovider" type="4"/>
+</workingSet>
+<workingSet editPageId="org.eclipse.jdt.ui.JavaWorkingSetPage" factoryID="org.eclipse.ui.internal.WorkingSetFactory" label="Portlet" name="Portlet">
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.portlet.ui" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.portlet.feature" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.portlet.core" type="4"/>
+</workingSet>
+<workingSet editPageId="org.eclipse.jdt.ui.JavaWorkingSetPage" factoryID="org.eclipse.ui.internal.WorkingSetFactory" label="Project Archives" name="Project Archives">
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.ide.eclipse.archives.test" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/packaging-convert" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.ide.eclipse.archives.feature" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.ide.eclipse.archives.webtools" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.ide.eclipse.archives.core" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.ide.eclipse.archives.ui" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.ide.eclipse.archives.test.feature" type="4"/>
+</workingSet>
+<workingSet editPageId="org.eclipse.jdt.ui.JavaWorkingSetPage" factoryID="org.eclipse.ui.internal.WorkingSetFactory" label="Project Examples" name="Project Examples">
+<item elementID="=org.jboss.tools.project.examples" factoryID="org.eclipse.jdt.ui.PersistableJavaElementFactory"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.project.examples.feature" type="4"/>
+</workingSet>
+<workingSet editPageId="org.eclipse.jdt.ui.JavaWorkingSetPage" factoryID="org.eclipse.ui.internal.WorkingSetFactory" label="Seam" name="Seam">
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.ide.seam.gen" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.seam.ui.test" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.seam.doc.user" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.seam.text.ext" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.seam.ui" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.seam.pages.xml" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.seam.feature" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.seam.xml.ui" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.seam.pages.xml.test" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.seam.core.test" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.ide.eclipse.seam.feature" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.seam.ui.pages" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.seam.xml" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.seam.core" type="4"/>
+</workingSet>
+<workingSet editPageId="org.eclipse.jdt.ui.JavaWorkingSetPage" factoryID="org.eclipse.ui.internal.WorkingSetFactory" label="Server tools" name="Server tools">
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.ide.eclipse.as.classpath.ui" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.eclipse.as.tptp" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.ide.eclipse.as.ui" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.ide.eclipse.as.doc.user" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.ide.eclipse.as.feature" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.ide.eclipse.as.core" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.ide.eclipse.as.ui.mbeans" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.ide.eclipse.as.test" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.ide.eclipse.as.classpath.core" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.ide.eclipes.as.test.feature" type="4"/>
+</workingSet>
+<workingSet editPageId="org.eclipse.jdt.ui.JavaWorkingSetPage" factoryID="org.eclipse.ui.internal.WorkingSetFactory" label="Smooks" name="Smooks">
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.smooks.ui" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.smooks.feature" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.smooks.test" type="4"/>
+<item elementID="=org.jboss.tools.smooks.core" factoryID="org.eclipse.jdt.ui.PersistableJavaElementFactory"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/docs_smooks" type="4"/>
+</workingSet>
+<workingSet editPageId="org.eclipse.jdt.ui.JavaWorkingSetPage" factoryID="org.eclipse.ui.internal.WorkingSetFactory" label="Struts" name="Struts">
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.struts.vpe.struts" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.struts.feature" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.struts.ui" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.struts.validator.ui" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.struts.debug" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.struts" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.struts.vpe.struts.test" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.struts.text.ext.test" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.struts.text.ext" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.struts.verification" type="4"/>
+</workingSet>
+<workingSet editPageId="org.eclipse.jdt.ui.JavaWorkingSetPage" factoryID="org.eclipse.ui.internal.WorkingSetFactory" label="Test/QA" name="Test/QA">
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.test.feature" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.tests" type="4"/>
+</workingSet>
+<workingSet editPageId="org.eclipse.jdt.ui.JavaWorkingSetPage" factoryID="org.eclipse.ui.internal.WorkingSetFactory" label="tptp" name="tptp">
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.tptp.feature" type="4"/>
+</workingSet>
+<workingSet editPageId="org.eclipse.jdt.ui.JavaWorkingSetPage" factoryID="org.eclipse.ui.internal.WorkingSetFactory" label="Visual Page Editor" name="Visual Page Editor">
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.vpe.html.test" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.vpe.jsp.test" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.vpe.xulrunner.test" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.xulrunner.initializer" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.vpe.xulrunner" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.vpe.jsp" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.vpe.resref" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.vpe.ui.palette" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.vpe.ui.test" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.vpe.test" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.vpe.feature" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.xulrunner.feature" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.vpe" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.vpe.docbook" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.vpe.html" type="4"/>
+<item elementID="=org.jboss.tools.jsf.vpe.ajax4jsf.test" factoryID="org.eclipse.jdt.ui.PersistableJavaElementFactory"/>
+<item elementID="=org.jboss.tools.jsf.vpe.jstl" factoryID="org.eclipse.jdt.ui.PersistableJavaElementFactory"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.xulrunner" type="4"/>
+</workingSet>
+<workingSet editPageId="org.eclipse.jdt.ui.JavaWorkingSetPage" factoryID="org.eclipse.ui.internal.WorkingSetFactory" label="Webservices" name="Webservices">
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.ws.core.test" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.ws.ui" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.ws.feature" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.ws.core" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.ws.ui.test" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.ws.creation.ui" type="4"/>
+<item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/org.jboss.tools.ws.creation.core" type="4"/>
+</workingSet>
+<workingSet aggregate="true" factoryID="org.eclipse.ui.internal.WorkingSetFactory" label="Window Working Set" name="Aggregate for window 1234775860987"/>
</workingSetManager>
\ No newline at end of file
16 years, 10 months
JBoss Tools SVN: r13624 - in trunk/portlet/plugins/org.jboss.tools.portlet.core: src/org/jboss/tools/portlet/core and 1 other directories.
by jbosstools-commits@lists.jboss.org
Author: snjeza
Date: 2009-02-15 18:46:19 -0500 (Sun, 15 Feb 2009)
New Revision: 13624
Modified:
trunk/portlet/plugins/org.jboss.tools.portlet.core/META-INF/MANIFEST.MF
trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/IPortletConstants.java
trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/Messages.java
trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/PortletCoreActivator.java
trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/internal/project/facet/JSFPortletFacetInstallDataModelProvider.java
trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/internal/project/facet/JSFPortletFacetInstallDelegate.java
trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/internal/project/facet/PortletPostInstallListener.java
trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/messages.properties
Log:
JBIDE-3635 Fix compatibility issues with Portletbridge distribution
Modified: trunk/portlet/plugins/org.jboss.tools.portlet.core/META-INF/MANIFEST.MF
===================================================================
--- trunk/portlet/plugins/org.jboss.tools.portlet.core/META-INF/MANIFEST.MF 2009-02-15 23:46:07 UTC (rev 13623)
+++ trunk/portlet/plugins/org.jboss.tools.portlet.core/META-INF/MANIFEST.MF 2009-02-15 23:46:19 UTC (rev 13624)
@@ -21,9 +21,10 @@
org.eclipse.ui.ide,
org.eclipse.jem,
org.eclipse.jst.jsf.facesconfig,
- org.eclipse.wst.server.core,
+ org.eclipse.wst.server.core;visibility:=reexport,
org.eclipse.jem.util,
- org.jboss.ide.eclipse.as.core
+ org.jboss.ide.eclipse.as.core;visibility:=reexport,
+ org.eclipse.core.commands
Bundle-ActivationPolicy: lazy
Export-Package: org.jboss.tools.portlet.core,
org.jboss.tools.portlet.core.internal,
Modified: trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/IPortletConstants.java
===================================================================
--- trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/IPortletConstants.java 2009-02-15 23:46:07 UTC (rev 13623)
+++ trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/IPortletConstants.java 2009-02-15 23:46:19 UTC (rev 13624)
@@ -63,8 +63,6 @@
static final String USER_LIBRARY = Messages.IPortletConstants_User_library;
- //static final String LIBRARY_PROVIDED_BY_JBOSS_TOOLS = Messages.IPortletConstants_Library_provided_by_JBoss_Tools;
-
static final String LIBRARIES_PROVIDED_BY_SERVER_RUNTIME = Messages.IPortletConstants_Libraries_provided_by_server_runtime;
static final String IMPLEMENTATION_LIBRARY = "implementationLibrary"; //$NON-NLS-1$
@@ -83,5 +81,19 @@
static final String PORTLET_API = "portlet-api"; //$NON-NLS-1$
+ static final String LIBRARIES_PROVIDED_BY_PORTLETBRIDGE = Messages.Libraries_provided_by_portletbridge;
+
+ static final String LIBRARIES_PROVIDED_BY_RICHFACES = Messages.Libraries_provided_by_richfaces;
+
+ static final String RICHFACES_RUNTIME = "RICHFACES_RUNTIME"; //$NON-NLS-1$
+
+ static final String RICHFACES_LIBRARIES_SELECTED = "RICHFACES_LIBRARIES_SELECTED"; //$NON-NLS-1$
+ static final String RICHFACES_LIBRARIES_TYPE = "RICHFACES_LIBRARIES_TYPE"; //$NON-NLS-1$
+
+ static final String RICHFACES_CAPABILITIES = "RICHFACES_CAPABILITIES"; //$NON-NLS-1$
+
+ static final String PORTLET_SAR_LIB = "deploy/jboss-portal.sar/portal-identity.sar/portal-identity.war/WEB-INF/lib"; //$NON-NLS-1$
+
+ static final String PORTLET_SAR_HA_LIB = "deploy/jboss-portal-ha.sar/portal-identity.sar/portal-identity.war/WEB-INF/lib"; //$NON-NLS-1$
}
Modified: trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/Messages.java
===================================================================
--- trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/Messages.java 2009-02-15 23:46:07 UTC (rev 13623)
+++ trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/Messages.java 2009-02-15 23:46:19 UTC (rev 13624)
@@ -4,9 +4,12 @@
public class Messages extends NLS {
private static final String BUNDLE_NAME = "org.jboss.tools.portlet.core.messages"; //$NON-NLS-1$
+ public static String PortletPostInstallListener_Invalid_Richfaces_Runtime;
+ public static String PortletPostInstallListener_Cannot_find_Richfaces_Runtime;
+ public static String Libraries_provided_by_richfaces;
+ public static String Libraries_provided_by_portletbridge ;
public static String BasePortletClasspathContainer_Error_loading_classpath_container;
public static String IPortletConstants_Libraries_provided_by_server_runtime;
- public static String IPortletConstants_Library_provided_by_JBoss_Tools;
public static String IPortletConstants_User_library;
public static String JSFPortlet10LibrariesContainerInitializer_Error_loading_classpath_container;
public static String JSFPortlet10LibrariesContainerInitializer_JBoss_JSF_Portlet_Libraries_v1_0;
Modified: trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/PortletCoreActivator.java
===================================================================
--- trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/PortletCoreActivator.java 2009-02-15 23:46:07 UTC (rev 13623)
+++ trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/PortletCoreActivator.java 2009-02-15 23:46:19 UTC (rev 13624)
@@ -22,6 +22,8 @@
import org.eclipse.jst.j2ee.model.ModelProviderManager;
import org.eclipse.ui.dialogs.IOverwriteQuery;
import org.eclipse.wst.common.componentcore.ComponentCore;
+import org.eclipse.wst.server.core.IRuntime;
+import org.eclipse.wst.server.core.ServerCore;
import org.osgi.framework.BundleContext;
/**
@@ -236,4 +238,20 @@
file.create(source, true, new NullProgressMonitor());
}
+ public static IRuntime getRuntime(org.eclipse.wst.common.project.facet.core.runtime.IRuntime runtime) {
+ if (runtime == null)
+ throw new IllegalArgumentException();
+
+ String id = runtime.getProperty("id"); //$NON-NLS-1$
+ if (id == null)
+ return null;
+
+ IRuntime[] runtimes = ServerCore.getRuntimes();
+ for (IRuntime r : runtimes) {
+ if (id.equals(r.getId()))
+ return r;
+ }
+
+ return null;
+ }
}
Modified: trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/internal/project/facet/JSFPortletFacetInstallDataModelProvider.java
===================================================================
--- trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/internal/project/facet/JSFPortletFacetInstallDataModelProvider.java 2009-02-15 23:46:07 UTC (rev 13623)
+++ trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/internal/project/facet/JSFPortletFacetInstallDataModelProvider.java 2009-02-15 23:46:19 UTC (rev 13624)
@@ -31,9 +31,27 @@
if (propertyName.equals(IPortletConstants.DEPLOY_JARS)) {
return Boolean.TRUE;
}
+ if (propertyName.equals(IPortletConstants.RICHFACES_LIBRARIES_SELECTED)) {
+ return Boolean.FALSE;
+ }
+ if (propertyName.equals(IPortletConstants.RICHFACES_LIBRARIES_TYPE)) {
+ return ""; //$NON-NLS-1$
+ }
+ if (propertyName.equals(IPortletConstants.RICHFACES_CAPABILITIES)) {
+ return Boolean.TRUE;
+ }
if (propertyName.equals(IPortletConstants.PORTLET_BRIDGE_RUNTIME)) {
return ""; //$NON-NLS-1$
}
+ if (propertyName.equals(IPortletConstants.RICHFACES_RUNTIME)) {
+ return ""; //$NON-NLS-1$
+ }
+ if (propertyName.equals(IPortletConstants.IMPLEMENTATION_LIBRARY)) {
+ return IPortletConstants.LIBRARIES_PROVIDED_BY_PORTLETBRIDGE;
+ }
+ if (propertyName.equals(IPortletConstants.USER_LIBRARY_NAME)) {
+ return ""; //$NON-NLS-1$
+ }
return super.getDefaultProperty(propertyName);
}
@@ -42,6 +60,12 @@
Set<String> propertyNames = super.getPropertyNames();
propertyNames.add(IPortletConstants.DEPLOY_JARS);
propertyNames.add(IPortletConstants.PORTLET_BRIDGE_RUNTIME);
+ propertyNames.add(IPortletConstants.IMPLEMENTATION_LIBRARY);
+ propertyNames.add(IPortletConstants.USER_LIBRARY_NAME);
+ propertyNames.add(IPortletConstants.RICHFACES_RUNTIME);
+ propertyNames.add(IPortletConstants.RICHFACES_LIBRARIES_SELECTED);
+ propertyNames.add(IPortletConstants.RICHFACES_LIBRARIES_TYPE);
+ propertyNames.add(IPortletConstants.RICHFACES_CAPABILITIES);
return propertyNames;
}
}
Modified: trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/internal/project/facet/JSFPortletFacetInstallDelegate.java
===================================================================
--- trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/internal/project/facet/JSFPortletFacetInstallDelegate.java 2009-02-15 23:46:07 UTC (rev 13623)
+++ trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/internal/project/facet/JSFPortletFacetInstallDelegate.java 2009-02-15 23:46:19 UTC (rev 13624)
@@ -12,24 +12,26 @@
import java.io.File;
import java.io.FilenameFilter;
-import java.net.URL;
import java.util.ArrayList;
-import java.util.Arrays;
import java.util.Iterator;
+import java.util.LinkedHashMap;
import java.util.List;
import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IProject;
import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.FileLocator;
import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.core.runtime.NullProgressMonitor;
import org.eclipse.core.runtime.Path;
import org.eclipse.emf.common.util.EList;
+import org.eclipse.jdt.core.IClasspathAttribute;
import org.eclipse.jdt.core.IClasspathEntry;
import org.eclipse.jdt.core.IJavaProject;
import org.eclipse.jdt.core.JavaCore;
import org.eclipse.jdt.core.JavaModelException;
+import org.eclipse.jst.j2ee.classpathdep.ClasspathDependencyUtil;
+import org.eclipse.jst.j2ee.classpathdep.IClasspathDependencyConstants;
import org.eclipse.jst.j2ee.model.IModelProvider;
import org.eclipse.jst.javaee.web.WebApp;
import org.eclipse.jst.javaee.web.WebAppVersionType;
@@ -42,11 +44,16 @@
import org.eclipse.ui.wizards.datatransfer.FileSystemStructureProvider;
import org.eclipse.ui.wizards.datatransfer.ImportOperation;
import org.eclipse.wst.common.componentcore.ComponentCore;
+import org.eclipse.wst.common.componentcore.datamodel.properties.IFacetDataModelProperties;
import org.eclipse.wst.common.componentcore.resources.IVirtualComponent;
import org.eclipse.wst.common.componentcore.resources.IVirtualFile;
import org.eclipse.wst.common.frameworks.datamodel.IDataModel;
import org.eclipse.wst.common.project.facet.core.IDelegate;
+import org.eclipse.wst.common.project.facet.core.IFacetedProjectWorkingCopy;
import org.eclipse.wst.common.project.facet.core.IProjectFacetVersion;
+import org.eclipse.wst.server.core.IRuntime;
+import org.jboss.ide.eclipse.as.core.server.IJBossServerConstants;
+import org.jboss.ide.eclipse.as.core.server.IJBossServerRuntime;
import org.jboss.tools.portlet.core.IJBossWebUtil;
import org.jboss.tools.portlet.core.IPortletConstants;
import org.jboss.tools.portlet.core.JBossWebUtil;
@@ -275,66 +282,171 @@
private void configureClassPath(final IProject project,
final IProgressMonitor monitor, IDataModel config)
throws JavaModelException {
+
+ String implementationLibrary = config.getStringProperty(IPortletConstants.IMPLEMENTATION_LIBRARY);
+
+ if (IPortletConstants.LIBRARIES_PROVIDED_BY_PORTLETBRIDGE.equals(implementationLibrary)) {
+ addLibrariesFromPortletBridgeRuntime(project,monitor,config);
+ } else if (IPortletConstants.LIBRARIES_PROVIDED_BY_SERVER_RUNTIME.equals(implementationLibrary)) {
+ addLibrariesFromServerRuntime(project,monitor,config);
+ } else if (IPortletConstants.USER_LIBRARY.equals(implementationLibrary)) {
+ addUserLibrary(project,monitor,config);
+ }
+
+ }
+
+ private void addUserLibrary(IProject project, IProgressMonitor monitor,
+ IDataModel config) throws JavaModelException {
+ String userLibraryName = config.getStringProperty(IPortletConstants.USER_LIBRARY_NAME);
+ IPath containerPath = new Path(JavaCore.USER_LIBRARY_CONTAINER_ID).append(userLibraryName);
IJavaProject javaProject = JavaCore.create(project);
+ IClasspathAttribute dependencyAttribute = JavaCore.newClasspathAttribute(
+ IClasspathDependencyConstants.CLASSPATH_COMPONENT_DEPENDENCY,
+ ClasspathDependencyUtil.getDefaultRuntimePath(
+ true).toString());
+ IClasspathEntry[] oldClasspathEntries = javaProject.getRawClasspath();
+ IClasspathEntry[] newClasspathEntries = null;
+ for (int i = 0; i < oldClasspathEntries.length; i++) {
+ IClasspathEntry entry = oldClasspathEntries[i];
+ if (entry.getEntryKind() == IClasspathEntry.CPE_CONTAINER &&
+ containerPath.equals(entry.getPath())) {
+ LinkedHashMap<String, IClasspathAttribute> attrs = new LinkedHashMap<String, IClasspathAttribute>();
+ for(IClasspathAttribute attr : entry.getExtraAttributes()) {
+ attrs.put(attr.getName(), attr);
+ }
+ attrs.put(dependencyAttribute.getName(), dependencyAttribute);
+ IClasspathAttribute[] newAttrs = attrs.values().toArray(new IClasspathAttribute[attrs.size()]);
+ entry = JavaCore.newContainerEntry(entry.getPath(), entry.getAccessRules(), newAttrs, entry.isExported());
+ oldClasspathEntries[i] = entry;
+ newClasspathEntries = oldClasspathEntries;
+ break;
+ }
+ }
+ if (newClasspathEntries == null) {
+ newClasspathEntries = new IClasspathEntry[oldClasspathEntries.length + 1];
+ for (int i = 0; i < oldClasspathEntries.length; i++) {
+ newClasspathEntries[i] = oldClasspathEntries[i];
+ }
+ IClasspathEntry newClasspath = JavaCore.newContainerEntry(containerPath, null,
+ new IClasspathAttribute[] { dependencyAttribute }, true);
+ newClasspathEntries[oldClasspathEntries.length] = newClasspath;
+ }
+ javaProject.setRawClasspath(newClasspathEntries, monitor);
+ }
- boolean deployJars = config
- .getBooleanProperty(IPortletConstants.DEPLOY_JARS);
- if (deployJars) {
- try {
+ private void addLibrariesFromServerRuntime(IProject project,
+ IProgressMonitor monitor, IDataModel config) {
+ IFacetedProjectWorkingCopy fpwc = (IFacetedProjectWorkingCopy) config.getProperty(IFacetDataModelProperties.FACETED_PROJECT_WORKING_COPY);
+
+ org.eclipse.wst.common.project.facet.core.runtime.IRuntime facetRuntime = fpwc.getPrimaryRuntime();
+ IRuntime runtime = PortletCoreActivator.getRuntime(facetRuntime);
+ IJBossServerRuntime jbossRuntime = (IJBossServerRuntime)runtime.loadAdapter(IJBossServerRuntime.class, new NullProgressMonitor());
+ if (jbossRuntime != null) {
+ // JBoss Portal server
+ IPath jbossLocation = runtime.getLocation();
+ IPath configPath = jbossLocation.append(IJBossServerConstants.SERVER).append(jbossRuntime.getJBossConfiguration());
+ IPath portletLib = configPath.append(IPortletConstants.PORTLET_SAR_LIB);
+ File portletLibFile = portletLib.toFile();
+ String[] files = getPortletbridgeLibraries(portletLibFile);
+ if (files == null) {
+ portletLib = configPath.append(IPortletConstants.PORTLET_SAR_HA_LIB);
+ portletLibFile = portletLib.toFile();
+ files = getPortletbridgeLibraries(portletLibFile);
+
+ }
+ if (files != null) {
+ try {
+ List<File> filesToImport = new ArrayList<File>();
+
+ for (int i = 0; i < files.length; i++) {
+ filesToImport.add(new File(portletLibFile, files[i]));
+ }
+ IVirtualComponent component = ComponentCore
+ .createComponent(project);
+ IVirtualFile libVirtualFile = component.getRootFolder()
+ .getFile(IPortletConstants.WEB_INF_LIB);
+
+ IFile folder = libVirtualFile.getUnderlyingFile();
+
+ File sourceFolder = new File(portletLib.toOSString());
+ ImportOperation importOperation = new ImportOperation(
+ folder.getFullPath(), sourceFolder,
+ FileSystemStructureProvider.INSTANCE,
+ PortletCoreActivator.OVERWRITE_ALL_QUERY,
+ filesToImport);
+ importOperation.setCreateContainerStructure(false);
+ importOperation.run(monitor);
+ } catch (Exception e) {
+ PortletCoreActivator
+ .log(e, Messages.JSFPortletFacetInstallDelegate_Error_loading_classpath_container);
+ }
+ }
+ }
+
+ }
+
+ private String[] getPortletbridgeLibraries(File file) {
+ if (file != null && file.isDirectory()) {
+ String[] list = file.list(new FilenameFilter() {
+
+ public boolean accept(File dir, String name) {
+ if ("portletbridge-api.jar".equals(name) || //$NON-NLS-1$
+ "portletbridge-impl.jar".equals(name)) { //$NON-NLS-1$
+ return true;
+ }
+ return false;
+ }
- String pbRuntime = config
- .getStringProperty(IPortletConstants.PORTLET_BRIDGE_RUNTIME);
- if (pbRuntime != null && pbRuntime.trim().length() > 0) {
- pbRuntime = pbRuntime.trim();
- File pbFolder = new File(pbRuntime);
- if (pbFolder.exists() && pbFolder.isDirectory()) {
- String[] fileList = pbFolder.list(new FilenameFilter() {
+ });
+ return list;
+ }
+ return null;
+ }
+ private void addLibrariesFromPortletBridgeRuntime(IProject project,
+ IProgressMonitor monitor, IDataModel config) {
+ try {
- public boolean accept(File dir, String name) {
- if (name.startsWith("portletbridge") || name.endsWith(".jar")) { //$NON-NLS-1$ //$NON-NLS-2$
- return true;
- }
- return false;
+ String pbRuntime = config
+ .getStringProperty(IPortletConstants.PORTLET_BRIDGE_RUNTIME);
+ if (pbRuntime != null && pbRuntime.trim().length() > 0) {
+ pbRuntime = pbRuntime.trim();
+ File pbFolder = new File(pbRuntime);
+ if (pbFolder.exists() && pbFolder.isDirectory()) {
+ String[] fileList = pbFolder.list(new FilenameFilter() {
+
+ public boolean accept(File dir, String name) {
+ if (name.startsWith("portletbridge") || name.endsWith(".jar")) { //$NON-NLS-1$ //$NON-NLS-2$
+ return true;
}
-
- });
-
- List<File> filesToImport = new ArrayList<File>();
-
- for (int i = 0; i < fileList.length; i++) {
- filesToImport.add(new File(pbRuntime,fileList[i]));
+ return false;
}
- IVirtualComponent component = ComponentCore
- .createComponent(project);
- IVirtualFile libVirtualFile = component.getRootFolder()
- .getFile(IPortletConstants.WEB_INF_LIB);
- IFile folder = libVirtualFile.getUnderlyingFile();
+ });
- ImportOperation importOperation = new ImportOperation(
- folder.getFullPath(), pbFolder,
- FileSystemStructureProvider.INSTANCE,
- PortletCoreActivator.OVERWRITE_ALL_QUERY,
- filesToImport);
- importOperation.setCreateContainerStructure(false);
- importOperation.run(monitor);
+ List<File> filesToImport = new ArrayList<File>();
+
+ for (int i = 0; i < fileList.length; i++) {
+ filesToImport.add(new File(pbRuntime, fileList[i]));
}
+ IVirtualComponent component = ComponentCore
+ .createComponent(project);
+ IVirtualFile libVirtualFile = component.getRootFolder()
+ .getFile(IPortletConstants.WEB_INF_LIB);
+
+ IFile folder = libVirtualFile.getUnderlyingFile();
+
+ ImportOperation importOperation = new ImportOperation(
+ folder.getFullPath(), pbFolder,
+ FileSystemStructureProvider.INSTANCE,
+ PortletCoreActivator.OVERWRITE_ALL_QUERY,
+ filesToImport);
+ importOperation.setCreateContainerStructure(false);
+ importOperation.run(monitor);
}
- } catch (Exception e) {
- PortletCoreActivator
- .log(e, Messages.JSFPortletFacetInstallDelegate_Error_loading_classpath_container);
}
- } else {
- IPath containerPath = new Path(
- IPortletConstants.JSFPORTLET_CONTAINER_10_ID);
-
- IClasspathEntry entry = JavaCore.newContainerEntry(containerPath,
- true);
- IClasspathEntry[] entries = javaProject.getRawClasspath();
- IClasspathEntry[] newEntries = new IClasspathEntry[entries.length + 1];
- System.arraycopy(entries, 0, newEntries, 0, entries.length);
- newEntries[entries.length] = entry;
- javaProject.setRawClasspath(newEntries, monitor);
+ } catch (Exception e) {
+ PortletCoreActivator
+ .log(e, Messages.JSFPortletFacetInstallDelegate_Error_loading_classpath_container);
}
}
Modified: trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/internal/project/facet/PortletPostInstallListener.java
===================================================================
--- trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/internal/project/facet/PortletPostInstallListener.java 2009-02-15 23:46:07 UTC (rev 13623)
+++ trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/internal/project/facet/PortletPostInstallListener.java 2009-02-15 23:46:19 UTC (rev 13624)
@@ -1,6 +1,8 @@
package org.jboss.tools.portlet.core.internal.project.facet;
import java.io.File;
+import java.io.FilenameFilter;
+import java.io.IOException;
import java.util.ArrayList;
import java.util.Enumeration;
import java.util.List;
@@ -9,16 +11,26 @@
import java.util.zip.ZipFile;
import org.eclipse.core.resources.IContainer;
-import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IProject;
+import org.eclipse.core.resources.IResource;
+import org.eclipse.core.resources.ProjectScope;
+import org.eclipse.core.resources.ResourcesPlugin;
+import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.NullProgressMonitor;
+import org.eclipse.core.runtime.Path;
+import org.eclipse.core.runtime.preferences.IEclipsePreferences;
+import org.eclipse.core.runtime.preferences.IScopeContext;
+import org.eclipse.jst.j2ee.commonarchivecore.internal.helpers.ArchiveManifest;
+import org.eclipse.jst.j2ee.commonarchivecore.internal.helpers.ArchiveManifestImpl;
+import org.eclipse.jst.j2ee.commonarchivecore.internal.util.ArchiveUtil;
+import org.eclipse.jst.j2ee.internal.project.J2EEProjectUtilities;
import org.eclipse.ui.dialogs.IOverwriteQuery;
+import org.eclipse.ui.wizards.datatransfer.FileSystemStructureProvider;
import org.eclipse.ui.wizards.datatransfer.ImportOperation;
import org.eclipse.ui.wizards.datatransfer.ZipFileStructureProvider;
import org.eclipse.wst.common.componentcore.ComponentCore;
import org.eclipse.wst.common.componentcore.resources.IVirtualComponent;
-import org.eclipse.wst.common.componentcore.resources.IVirtualFile;
import org.eclipse.wst.common.componentcore.resources.IVirtualFolder;
import org.eclipse.wst.common.frameworks.datamodel.IDataModel;
import org.eclipse.wst.common.project.facet.core.IFacetedProject;
@@ -42,8 +54,20 @@
}
};
private String portletbridgeRuntime;
-
+ private boolean richfacesCapabilities;
+ private boolean richfacesSelected;
+ private String richfacesType;
+ private String richfacesRuntime;
+
public void handleEvent(IFacetedProjectEvent event) {
+ if (event instanceof IProjectFacetActionEvent) {
+ IProjectFacetActionEvent actionEvent = (IProjectFacetActionEvent) event;
+ IProjectFacet projectFacet = actionEvent.getProjectFacet();
+ if (!IPortletConstants.JSFPORTLET_FACET_ID.equals(projectFacet
+ .getId())) {
+ return;
+ }
+ }
IFacetedProject facetedProject = event.getProject();
Set<IProjectFacetVersion> projectFacets = facetedProject
.getProjectFacets();
@@ -69,74 +93,306 @@
try {
portletbridgeRuntime = dataModel
.getStringProperty(IPortletConstants.PORTLET_BRIDGE_RUNTIME);
- if (portletbridgeRuntime == null) {
- PortletCoreActivator.log(null, Messages.PortletPostInstallListener_Invalid_Portletbridge_Runtime);
- return;
- }
+ richfacesCapabilities = dataModel.getBooleanProperty(IPortletConstants.RICHFACES_CAPABILITIES);
+ richfacesSelected = dataModel.getBooleanProperty(IPortletConstants.RICHFACES_LIBRARIES_SELECTED);
+ richfacesType = dataModel.getStringProperty(IPortletConstants.RICHFACES_LIBRARIES_TYPE);
+ richfacesRuntime = dataModel.getStringProperty(IPortletConstants.RICHFACES_RUNTIME);
} catch (Exception e) {
//PortletCoreActivator.log(e);
}
}
+ if (!richfacesCapabilities || !richfacesSelected) {
+ return;
+ }
if (isJSFPortlet) {
- File portletbridgeHome = new File(portletbridgeRuntime);
- if (!portletbridgeHome.exists()) {
- PortletCoreActivator.log(null, Messages.PortletPostInstallListener_Cannot_find_Portletbridge_Runtime);
- return;
+ if (IPortletConstants.LIBRARIES_PROVIDED_BY_PORTLETBRIDGE.equals(richfacesType)) {
+ addRichfacesFromPortletBridgeRuntime(facetedProject,isSeamProject);
+ } else {
+ addRichfacesFromRichfacesRuntime(facetedProject,isSeamProject);
}
- if (!portletbridgeHome.isDirectory()) {
- PortletCoreActivator.log(null, Messages.PortletPostInstallListener_Invalid_Portletbridge_Runtime);
- return;
+ }
+ }
+
+ private void addRichfacesFromRichfacesRuntime(
+ IFacetedProject facetedProject, boolean isSeamProject) {
+ File richfacesRuntimeHome = new File(richfacesRuntime);
+ File richfacesLib = new File(richfacesRuntimeHome, "lib"); //$NON-NLS-1$
+ if (!richfacesLib.exists()) {
+ PortletCoreActivator.log(null, Messages.PortletPostInstallListener_Cannot_find_Richfaces_Runtime);
+ return;
+ }
+ if (!richfacesLib.isDirectory()) {
+ PortletCoreActivator.log(null,Messages.PortletPostInstallListener_Invalid_Richfaces_Runtime);
+ return;
+ }
+ try {
+ IProject project = facetedProject.getProject();
+ final IProject earProject = getEarProject(project, isSeamProject);
+ String[] fileList = richfacesLib.list(new FilenameFilter() {
+
+ public boolean accept(File dir, String name) {
+ if (name.startsWith("richfaces-ui") && name.endsWith(".jar")) { //$NON-NLS-1$ //$NON-NLS-2$
+ return true;
+ }
+ if (name.startsWith("richfaces-impl") && name.endsWith(".jar")) { //$NON-NLS-1$ //$NON-NLS-2$
+ return true;
+ }
+ if (earProject == null) {
+ if (name.startsWith("richfaces-api") && name.endsWith(".jar")) { //$NON-NLS-1$ //$NON-NLS-2$
+ return true;
+ }
+ }
+ return false;
+ }
+
+ });
+ List<File> filesToImport = new ArrayList<File>();
+ for (int i = 0; i < fileList.length; i++) {
+ filesToImport.add(new File(richfacesLib, fileList[i]));
}
- File examplesHome = new File(portletbridgeHome,"examples"); //$NON-NLS-1$
- if (!examplesHome.exists() || !examplesHome.isDirectory()) {
- PortletCoreActivator.log(null, Messages.PortletPostInstallListener_Cannot_find_the_examples_directory);
- return;
+ IVirtualComponent component = ComponentCore
+ .createComponent(project);
+ IVirtualFolder rootFolder = component.getRootFolder();
+ IContainer folder = rootFolder.getUnderlyingFolder();
+ IContainer webinf = folder.getFolder(new Path(
+ IPortletConstants.WEB_INF_LIB));
+
+ deleteOldRichfacesLibs(earProject, webinf);
+
+ ImportOperation importOperation = new ImportOperation(webinf
+ .getFullPath(), richfacesLib,
+ FileSystemStructureProvider.INSTANCE,
+ PortletCoreActivator.OVERWRITE_ALL_QUERY, filesToImport);
+ importOperation.setCreateContainerStructure(false);
+ importOperation.run(new NullProgressMonitor());
+ if (earProject != null) {
+ fileList = richfacesLib.list(new FilenameFilter() {
+
+ public boolean accept(File dir, String name) {
+ if (name.startsWith("richfaces-api") && name.endsWith(".jar")) { //$NON-NLS-1$ //$NON-NLS-2$
+ return true;
+ }
+ return false;
+ }
+
+ });
+ filesToImport = new ArrayList<File>();
+ for (int i = 0; i < fileList.length; i++) {
+ filesToImport.add(new File(richfacesLib, fileList[i]));
+ }
+ component = ComponentCore
+ .createComponent(earProject);
+ rootFolder = component.getRootFolder();
+ folder = rootFolder.getUnderlyingFolder();
+
+ deleteOldRichFacesApi(folder);
+
+ importOperation = new ImportOperation(folder
+ .getFullPath(), richfacesLib,
+ FileSystemStructureProvider.INSTANCE,
+ PortletCoreActivator.OVERWRITE_ALL_QUERY, filesToImport);
+ importOperation.setCreateContainerStructure(false);
+ importOperation.run(new NullProgressMonitor());
+ updateEARLibraries(project,isSeamProject);
}
- File richFacesPortletZip = new File(examplesHome,"RichFacesPortlet.war"); //$NON-NLS-1$
- if (!richFacesPortletZip.exists() || !richFacesPortletZip.isFile()) {
- PortletCoreActivator.log(null, Messages.PortletPostInstallListener_Cannot_find_the_RichFacesPortlet_war_file);
- return;
+ } catch (Exception e) {
+ PortletCoreActivator
+ .log(e,Messages.JSFPortletFacetInstallDelegate_Error_loading_classpath_container);
+ }
+ }
+
+ private void updateEARLibraries(IProject project, boolean isSeamProject) {
+ IProject ejbProj = getEjbProject(project, isSeamProject);
+
+ IProject earProject = getEarProject(project, isSeamProject);
+ IVirtualComponent component = ComponentCore
+ .createComponent(earProject);
+ IVirtualFolder rootFolder = component.getRootFolder();
+ IContainer folder = rootFolder.getUnderlyingFolder();
+ File earContentFolder = folder.getLocation().toFile();
+ File[] earJars = earContentFolder.listFiles(new FilenameFilter() {
+ public boolean accept(File dir, String name) {
+ return name.lastIndexOf(".jar") > 0; //$NON-NLS-1$
}
- try {
- ZipFile zipFile = new ZipFile(richFacesPortletZip);
- ZipFileStructureProvider structureProvider = new ZipFileStructureProvider(
- zipFile );
- List<ZipEntry> list = prepareList(zipFile, isSeamProject);
+ });
+ String clientURI = ""; //$NON-NLS-1$
+ for (File file : earJars) {
+ clientURI += " " + file.getName(); //$NON-NLS-1$ //$NON-NLS-2$
+ }
+
+ try {
+ new UpdateManifestOperation(ejbProj,clientURI,true).run();
+ new UpdateManifestOperation(project,clientURI,true).run();
+ } catch (Exception e) {
+ PortletCoreActivator.log(e);
+ }
+ }
+
+ private void addRichfacesFromPortletBridgeRuntime(IFacetedProject facetedProject, boolean isSeamProject) {
+ File portletbridgeHome = new File(portletbridgeRuntime);
+ if (!portletbridgeHome.exists()) {
+ PortletCoreActivator.log(null, Messages.PortletPostInstallListener_Cannot_find_Portletbridge_Runtime);
+ return;
+ }
+ if (!portletbridgeHome.isDirectory()) {
+ PortletCoreActivator.log(null, Messages.PortletPostInstallListener_Invalid_Portletbridge_Runtime);
+ return;
+ }
+ File examplesHome = new File(portletbridgeHome,"examples"); //$NON-NLS-1$
+ if (!examplesHome.exists() || !examplesHome.isDirectory()) {
+ PortletCoreActivator.log(null, Messages.PortletPostInstallListener_Cannot_find_the_examples_directory);
+ return;
+ }
+ File richFacesPortletZip = new File(examplesHome,"RichFacesPortlet.war"); //$NON-NLS-1$
+ if (!richFacesPortletZip.exists() || !richFacesPortletZip.isFile()) {
+ PortletCoreActivator.log(null, Messages.PortletPostInstallListener_Cannot_find_the_RichFacesPortlet_war_file);
+ return;
+ }
+ try {
+ ZipFile zipFile = new ZipFile(richFacesPortletZip);
+ ZipFileStructureProvider structureProvider = new ZipFileStructureProvider(
+ zipFile );
+ List<ZipEntry> list = prepareList(zipFile, facetedProject, isSeamProject);
+
+ IProject project = facetedProject.getProject();
+ IProject earProject = getEarProject(project, isSeamProject);
+
+ IVirtualComponent component = ComponentCore
+ .createComponent(project);
+
+ IVirtualFolder rootFolder = component.getRootFolder();
+ IContainer folder = rootFolder.getUnderlyingFolder();
+ IContainer webinf = folder.getFolder(new Path(
+ IPortletConstants.WEB_INF_LIB));
+ deleteOldRichfacesLibs(earProject, webinf);
+ IPath destPath = folder.getFullPath();
+
+ ImportOperation op = new ImportOperation( destPath,
+ structureProvider.getRoot( ), structureProvider, OVERWRITE_NONE_QUERY,
+ list );
+ op.run(new NullProgressMonitor() );
+ if (earProject != null) {
+ list = prepareEarList(zipFile);
- IProject project = facetedProject.getProject();
- IVirtualComponent component = ComponentCore
- .createComponent(project);
- //IVirtualFile libVirtualFile = component.getRootFolder()
- // .getFile(IPortletConstants.WEB_INF_LIB);
-
- IVirtualFolder rootFolder = component.getRootFolder();
- IContainer folder = rootFolder.getUnderlyingFolder();
- IPath destPath = folder.getFullPath();
-
- ImportOperation op = new ImportOperation( destPath,
- structureProvider.getRoot( ), structureProvider, OVERWRITE_NONE_QUERY,
+ component = ComponentCore
+ .createComponent(earProject);
+ rootFolder = component.getRootFolder();
+ folder = rootFolder.getUnderlyingFolder();
+ deleteOldRichFacesApi(folder);
+ destPath = folder.getFullPath();
+ ZipEntry root = zipFile.getEntry(IPortletConstants.WEB_INF_LIB);
+ op = new ImportOperation( destPath,
+ root, structureProvider, OVERWRITE_NONE_QUERY,
list );
+ op.setCreateContainerStructure(false);
op.run(new NullProgressMonitor() );
- } catch (Exception e) {
- PortletCoreActivator.log(e);
- }
-
+ updateEARLibraries(project, isSeamProject);
+ }
+ } catch (Exception e) {
+ PortletCoreActivator.log(e);
+ }
+ }
+
+ private void deleteOldRichFacesApi(IContainer folder) throws CoreException {
+ IResource[] members = folder.members();
+ for (int i = 0; i < members.length; i++) {
+ IResource resource = members[i];
+ if (resource != null && resource.exists()) {
+ if (resource.getName().startsWith("richfaces-api") //$NON-NLS-1$
+ && resource.getName().endsWith("jar")) { //$NON-NLS-1$
+ resource.delete(true, null);
+ break;
+ }
+ }
}
}
- private List<ZipEntry> prepareList(ZipFile zipFile, boolean isSeamProject) {
- if (zipFile == null) {
+ private void deleteOldRichfacesLibs(IProject earProject, IContainer webinf)
+ throws CoreException {
+
+ if (webinf != null && webinf.exists()) {
+ IResource[] members = webinf.members();
+ for (int i = 0; i < members.length; i++) {
+ IResource resource = members[i];
+ if (resource != null && resource.exists()) {
+ if (resource.getName().startsWith("richfaces-ui") //$NON-NLS-1$
+ && resource.getName().endsWith("jar")) { //$NON-NLS-1$
+ resource.delete(true, null);
+ }
+ if (resource.getName().startsWith("richfaces-impl") //$NON-NLS-1$
+ && resource.getName().endsWith("jar")) { //$NON-NLS-1$
+ resource.delete(true, null);
+ }
+ if (earProject == null) {
+ if (resource.getName().startsWith("richfaces-api") //$NON-NLS-1$
+ && resource.getName().endsWith("jar")) { //$NON-NLS-1$
+ resource.delete(true, null);
+ }
+ }
+ }
+ }
+ }
+ }
+
+ private IProject getEarProject(IProject project, boolean isSeamProject) {
+ if (isSeamProject && project != null) {
+ IEclipsePreferences preferences = getSeamPreferences(project);
+ String earProjectName = preferences.get("seam.ear.project", null); //$NON-NLS-1$
+ if (earProjectName == null) {
+ return null;
+ }
+ IProject earProject = ResourcesPlugin.getWorkspace().getRoot().getProject(earProjectName);
+ if (earProject != null && earProject.isOpen()) {
+ return earProject;
+ }
+ }
+ return null;
+ }
+
+ private IProject getEjbProject(IProject project, boolean isSeamProject) {
+ if (isSeamProject && project != null) {
+ IEclipsePreferences preferences = getSeamPreferences(project);
+ String ejbProjectName = preferences.get("seam.ejb.project", null); //$NON-NLS-1$
+ if (ejbProjectName == null) {
+ return null;
+ }
+ IProject ejbProject = ResourcesPlugin.getWorkspace().getRoot().getProject(ejbProjectName);
+ if (ejbProject != null && ejbProject.isOpen()) {
+ return ejbProject;
+ }
+ }
+ return null;
+ }
+
+ public static IEclipsePreferences getSeamPreferences(IProject project) {
+ IScopeContext projectScope = new ProjectScope(project);
+ return projectScope.getNode("org.jboss.tools.seam.core"); //$NON-NLS-1$
+ }
+
+ private List<ZipEntry> prepareList(ZipFile rootEntry, IFacetedProject facetedProject, boolean isSeamProject) {
+ if (rootEntry == null) {
return null;
}
List<ZipEntry> list = new ArrayList<ZipEntry>();
- Enumeration<? extends ZipEntry> entries = zipFile.entries();
+ Enumeration<? extends ZipEntry> entries = rootEntry.entries();
+ IProject earProject = getEarProject(facetedProject.getProject(),isSeamProject);
+
while (entries.hasMoreElements()) {
ZipEntry entry = entries.nextElement();
if (entry.getName().endsWith(".jar")) { //$NON-NLS-1$
- if (entry.getName().startsWith("WEB-INF/lib/richfaces")) { //$NON-NLS-1$
+ if (entry.getName().startsWith("WEB-INF/lib/richfaces-ui")) { //$NON-NLS-1$
list.add(entry);
}
+ if (entry.getName().startsWith("WEB-INF/lib/richfaces-impl")) { //$NON-NLS-1$
+ list.add(entry);
+ }
+ if (earProject == null) {
+ if (entry.getName().startsWith("WEB-INF/lib/richfaces-api")) { //$NON-NLS-1$
+ list.add(entry);
+ }
+ }
+
if (!isSeamProject) {
if (entry.getName().startsWith(
"WEB-INF/lib/commons-beanutils") //$NON-NLS-1$
@@ -152,4 +408,53 @@
return list;
}
+ private List<ZipEntry> prepareEarList(ZipFile zipFile) {
+ if (zipFile == null) {
+ return null;
+ }
+ List<ZipEntry> list = new ArrayList<ZipEntry>();
+ Enumeration<? extends ZipEntry> entries = zipFile.entries();
+
+ while (entries.hasMoreElements()) {
+ ZipEntry entry = entries.nextElement();
+ if (entry.getName().endsWith(".jar")) { //$NON-NLS-1$
+ if (entry.getName().startsWith("WEB-INF/lib/richfaces-api")) { //$NON-NLS-1$
+ list.add(entry);
+ }
+ }
+ }
+ return list;
+ }
+
+ private class UpdateManifestOperation implements Runnable {
+ protected IProject project;
+ protected String classPathValue;
+ protected boolean replace;
+
+ public UpdateManifestOperation(IProject project,
+ String aSpaceDelimitedPath, boolean replaceInsteadOfMerge) {
+ super();
+ this.project = project;
+ classPathValue = aSpaceDelimitedPath;
+ replace = replaceInsteadOfMerge;
+ }
+
+ public void run() {
+ ArchiveManifest mf = J2EEProjectUtilities.readManifest(project);
+ if (mf == null)
+ mf = new ArchiveManifestImpl();
+ mf.addVersionIfNecessary();
+ if (replace)
+ mf.setClassPath(classPathValue);
+ else
+ mf.mergeClassPath(ArchiveUtil.getTokens(classPathValue));
+ try {
+ J2EEProjectUtilities.writeManifest(project, mf);
+ } catch (IOException e) {
+ PortletCoreActivator.log(e);
+ }
+
+ }
+ }
+
}
Modified: trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/messages.properties
===================================================================
--- trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/messages.properties 2009-02-15 23:46:07 UTC (rev 13623)
+++ trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/messages.properties 2009-02-15 23:46:19 UTC (rev 13624)
@@ -1,6 +1,5 @@
BasePortletClasspathContainer_Error_loading_classpath_container=Error loading classpath container
IPortletConstants_Libraries_provided_by_server_runtime=Libraries provided by server runtime
-IPortletConstants_Library_provided_by_JBoss_Tools=Library provided by JBoss Tools
IPortletConstants_User_library=User library
JSFPortlet10LibrariesContainerInitializer_Error_loading_classpath_container=Error loading classpath container
JSFPortlet10LibrariesContainerInitializer_JBoss_JSF_Portlet_Libraries_v1_0=JBoss JSF Portlet Libraries v1.0
@@ -22,10 +21,14 @@
PortletFacetInstallDelegate_The_web_xml_file_is_not_updateable=The web.xml file is not updateable
PortletFacetInstallDelegate_User_library_name_is_invalid=User library name is invalid.
PortletPostInstallListener_Cannot_find_Portletbridge_Runtime=Cannot find Portletbridge Runtime.
+PortletPostInstallListener_Cannot_find_Richfaces_Runtime=Cannot find Richfaces Runtime.
PortletPostInstallListener_Cannot_find_the_examples_directory=Cannot find the examples directory.
PortletPostInstallListener_Cannot_find_the_RichFacesPortlet_war_file=Cannot find the RichFacesPortlet.war file.
PortletPostInstallListener_Invalid_Portletbridge_Runtime=Invalid Portletbridge Runtime.
+PortletPostInstallListener_Invalid_Richfaces_Runtime=Invalid Richfaces Runtime.
SeamPortletConfigurationPresetFactory10_JBoss_Seam_Portlet_Project_v1_0=JBoss Seam Portlet Project v1.0
SeamPortletFacetInstallDelegate_Cannot_configure_web_module_for_JBoss_Seam_Portlet_Facet=Cannot configure web module for JBoss Seam Portlet Facet
SeamPortletFacetInstallDelegate_Missing_configuration=Internal Error creating JBoss Seam Portlet Facet. Missing configuration.
SeamPortletFacetInstallDelegate_The_web_xml_file_is_not_updateable=The web.xml file is not updateable
+Libraries_provided_by_portletbridge=Libraries provided by portletbridge distribution
+Libraries_provided_by_richfaces=Libraries provided by richfaces distribution
\ No newline at end of file
16 years, 10 months
JBoss Tools SVN: r13623 - in trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui: internal/project/facet and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: snjeza
Date: 2009-02-15 18:46:07 -0500 (Sun, 15 Feb 2009)
New Revision: 13623
Modified:
trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui/Messages.java
trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui/internal/project/facet/JSFPortletFacetInstallPage.java
trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui/messages.properties
Log:
JBIDE-3635 Fix compatibility issues with Portletbridge distribution
Modified: trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui/Messages.java
===================================================================
--- trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui/Messages.java 2009-02-13 20:28:00 UTC (rev 13622)
+++ trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui/Messages.java 2009-02-15 23:46:07 UTC (rev 13623)
@@ -40,14 +40,19 @@
public static String IPortletUIConstants_Specify_class_file_information;
public static String IPortletUIConstants_Title;
public static String IPortletUIConstants_Window_name;
+ public static String JSFPortletFacetInstallPage_Add_Change_Richfaces_Libraries;
public static String JSFPortletFacetInstallPage_Add_JBoss_JSF_Portlet_capabilities_to_this_Web_Project;
public static String JSFPortletFacetInstallPage_Browse;
public static String JSFPortletFacetInstallPage_Deploy_jars;
public static String JSFPortletFacetInstallPage_Invalid_Portletbridge_Runtime_directory;
+ public static String JSFPortletFacetInstallPage_Invalid_Richfaces_Runtime_directory;
public static String JSFPortletFacetInstallPage_JBoss_JSF_Portlet_Capabilities;
public static String JSFPortletFacetInstallPage_Portletbridge_Runtime;
public static String JSFPortletFacetInstallPage_Portletbridge_Runtime_directory_is_required;
+ public static String JSFPortletFacetInstallPage_Richfaces_Capabilities;
+ public static String JSFPortletFacetInstallPage_RichFaces_Runtime_directory_is_required;
public static String JSFPortletFacetInstallPage_Select_Portletbridge_Runtime;
+ public static String JSFPortletFacetInstallPage_Select_RichFaces_Runtime;
public static String PortletFacetInstallPage_Add;
public static String PortletFacetInstallPage_Add_JBoss_Portlet_capabilities_to_this_Web_Project;
public static String PortletFacetInstallPage_Enable_implementation_library;
Modified: trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui/internal/project/facet/JSFPortletFacetInstallPage.java
===================================================================
--- trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui/internal/project/facet/JSFPortletFacetInstallPage.java 2009-02-13 20:28:00 UTC (rev 13622)
+++ trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui/internal/project/facet/JSFPortletFacetInstallPage.java 2009-02-15 23:46:07 UTC (rev 13623)
@@ -2,7 +2,11 @@
import java.io.File;
import java.io.FilenameFilter;
+import java.util.Set;
+import org.eclipse.core.runtime.IPath;
+import org.eclipse.core.runtime.NullProgressMonitor;
+import org.eclipse.jdt.core.JavaCore;
import org.eclipse.jface.dialogs.IDialogSettings;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.ModifyEvent;
@@ -12,14 +16,27 @@
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Button;
+import org.eclipse.swt.widgets.Combo;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.DirectoryDialog;
-import org.eclipse.swt.widgets.Label;
+import org.eclipse.swt.widgets.Group;
+import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.widgets.Text;
+import org.eclipse.ui.PlatformUI;
+import org.eclipse.ui.internal.dialogs.WorkbenchPreferenceDialog;
+import org.eclipse.wst.common.componentcore.datamodel.properties.IFacetDataModelProperties;
import org.eclipse.wst.common.frameworks.datamodel.IDataModel;
import org.eclipse.wst.common.frameworks.internal.datamodel.ui.DataModelSynchHelper;
+import org.eclipse.wst.common.project.facet.core.IFacetedProjectWorkingCopy;
+import org.eclipse.wst.common.project.facet.core.IProjectFacet;
+import org.eclipse.wst.common.project.facet.core.IProjectFacetVersion;
import org.eclipse.wst.common.project.facet.ui.AbstractFacetWizardPage;
+import org.eclipse.wst.server.core.IRuntime;
+import org.eclipse.wst.server.core.ServerCore;
+import org.jboss.ide.eclipse.as.core.server.IJBossServerConstants;
+import org.jboss.ide.eclipse.as.core.server.IJBossServerRuntime;
import org.jboss.tools.portlet.core.IPortletConstants;
+import org.jboss.tools.portlet.core.PortletCoreActivator;
import org.jboss.tools.portlet.ui.Messages;
import org.jboss.tools.portlet.ui.PortletUIActivator;
@@ -37,6 +54,19 @@
private DataModelSynchHelper synchHelper;
private Button folderButton;
private Button deployButton;
+ private Combo portletBridgeLibraryCombo;
+ private Combo userLibraries;
+ private String userLibraryName;
+ private Button add;
+ private String implementationLibrary;
+ private Button addRichFacesCapabilities;
+ private boolean hasSeamFacet;
+ private Button addRichFacesLibraries;
+ private Combo richFacesLibraryCombo;
+ private Text richfacesText;
+ private Button richfacesButton;
+ private String richfacesRuntime;
+ private boolean richFacesLibrariesSelected;
public JSFPortletFacetInstallPage() {
super("JSFPortletProjectConfigurationWizardPage"); //$NON-NLS-1$
@@ -54,6 +84,18 @@
portletbridgeRuntime = ""; //$NON-NLS-1$
jsfSection.put(IPortletConstants.PORTLET_BRIDGE_RUNTIME,
portletbridgeRuntime);
+
+ richfacesRuntime = ""; //$NON-NLS-1$
+ jsfSection.put(IPortletConstants.RICHFACES_RUNTIME,
+ richfacesRuntime);
+
+ implementationLibrary = IPortletConstants.LIBRARIES_PROVIDED_BY_PORTLETBRIDGE;
+ jsfSection.put(IPortletConstants.IMPLEMENTATION_LIBRARY, implementationLibrary);
+
+ richFacesLibrariesSelected = false;
+ jsfSection.put(IPortletConstants.RICHFACES_LIBRARIES_SELECTED, richFacesLibrariesSelected);
+
+
} else {
deployJars = jsfSection.getBoolean(IPortletConstants.DEPLOY_JARS);
portletbridgeRuntime = jsfSection
@@ -63,6 +105,19 @@
jsfSection.put(IPortletConstants.PORTLET_BRIDGE_RUNTIME,
portletbridgeRuntime);
}
+ implementationLibrary = jsfSection.get(IPortletConstants.IMPLEMENTATION_LIBRARY);
+ if (implementationLibrary == null) {
+ implementationLibrary = IPortletConstants.LIBRARIES_PROVIDED_BY_PORTLETBRIDGE;
+ jsfSection.put(IPortletConstants.IMPLEMENTATION_LIBRARY, implementationLibrary);
+ }
+ richfacesRuntime = jsfSection
+ .get(IPortletConstants.RICHFACES_RUNTIME);
+ if (richfacesRuntime == null) {
+ richfacesRuntime = ""; //$NON-NLS-1$
+ jsfSection.put(IPortletConstants.RICHFACES_RUNTIME,
+ richfacesRuntime);
+ }
+ richFacesLibrariesSelected = jsfSection.getBoolean(IPortletConstants.RICHFACES_LIBRARIES_SELECTED);
}
}
@@ -70,7 +125,7 @@
public void createControl(Composite parent) {
initializeDialogUnits(parent);
Composite composite = new Composite(parent, SWT.NONE);
- composite.setLayout(new GridLayout(3, false));
+ composite.setLayout(new GridLayout(1, false));
synchHelper = new DataModelSynchHelper(model);
addFolderGroup(composite);
// createButton(composite);
@@ -97,12 +152,149 @@
}
private void addFolderGroup(Composite composite) {
- // folder
- Label folderLabel = new Label(composite, SWT.LEFT);
- folderLabel.setText(Messages.JSFPortletFacetInstallPage_Portletbridge_Runtime);
- folderLabel.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_FILL));
+ portletBridgeLibraryCombo = new Combo(composite, SWT.READ_ONLY);
+ GridData gd = new GridData(GridData.FILL_HORIZONTAL);
+ portletBridgeLibraryCombo.setLayoutData(gd);
+ portletBridgeLibraryCombo.addSelectionListener(new SelectionAdapter() {
- folderText = new Text(composite, SWT.SINGLE | SWT.BORDER);
+ @Override
+ public void widgetSelected(SelectionEvent e) {
+ boolean enabled = IPortletConstants.USER_LIBRARY
+ .equals(portletBridgeLibraryCombo.getText());
+ userLibraries.setEnabled(enabled);
+ add.setEnabled(enabled);
+
+ enabled = IPortletConstants.LIBRARIES_PROVIDED_BY_PORTLETBRIDGE.equals(portletBridgeLibraryCombo.getText());
+ folderText.setEnabled(enabled);
+ folderButton.setEnabled(enabled);
+ model.setProperty(IPortletConstants.IMPLEMENTATION_LIBRARY,
+ portletBridgeLibraryCombo.getText());
+ model.setProperty(IPortletConstants.PORTLET_BRIDGE_RUNTIME,folderText.getText().trim());
+ model.setProperty(IPortletConstants.USER_LIBRARY_NAME,userLibraries.getText());
+ if (IPortletConstants.LIBRARIES_PROVIDED_BY_PORTLETBRIDGE.equals(portletBridgeLibraryCombo.getText())) {
+ richFacesLibraryCombo.removeAll();
+ richFacesLibraryCombo.add(IPortletConstants.LIBRARIES_PROVIDED_BY_PORTLETBRIDGE);
+ richFacesLibraryCombo.add(IPortletConstants.LIBRARIES_PROVIDED_BY_RICHFACES);
+ richFacesLibraryCombo.select(0);
+ } else {
+ richFacesLibraryCombo.removeAll();
+ richFacesLibraryCombo.add(IPortletConstants.LIBRARIES_PROVIDED_BY_RICHFACES);
+ richFacesLibraryCombo.select(0);
+ }
+ validatePage();
+ }
+
+ });
+
+ if (portletBridgeLibrariesExistOnServer()) {
+ portletBridgeLibraryCombo.add(IPortletConstants.LIBRARIES_PROVIDED_BY_SERVER_RUNTIME);
+ }
+ portletBridgeLibraryCombo.add(IPortletConstants.USER_LIBRARY);
+
+ addUserLibraryGroup(composite);
+
+ portletBridgeLibraryCombo.add(IPortletConstants.LIBRARIES_PROVIDED_BY_PORTLETBRIDGE);
+
+ addPortletBridgeGroup(composite);
+
+ portletBridgeLibraryCombo.setText(implementationLibrary);
+
+ synchHelper.synchCombo(portletBridgeLibraryCombo, IPortletConstants.IMPLEMENTATION_LIBRARY, null);
+
+ Group richfacesGroup = new Group(composite, SWT.NONE);
+ richfacesGroup.setLayout(new GridLayout(2, false));
+ richfacesGroup.setText(Messages.JSFPortletFacetInstallPage_Richfaces_Capabilities);
+ gd = new GridData(GridData.FILL_HORIZONTAL);
+ richfacesGroup.setLayoutData(gd);
+ /*
+ addRichFacesCapabilities= new Button(richfacesGroup,SWT.CHECK);
+ gd = new GridData(GridData.FILL_HORIZONTAL);
+ gd.horizontalSpan=2;
+ addRichFacesCapabilities.setLayoutData(gd);
+ synchHelper.synchCheckbox(addRichFacesCapabilities, IPortletConstants.RICHFACES_CAPABILITIES, null);
+
+ addRichFacesCapabilities.setText("Add Richfaces Capabilities");
+
+ if (hasSeamFacet) {
+ addRichFacesCapabilities.setSelection(true);
+ addRichFacesCapabilities.setEnabled(false);
+ }
+ */
+ addRichFacesLibraries= new Button(richfacesGroup,SWT.CHECK);
+ addRichFacesLibraries.setText(Messages.JSFPortletFacetInstallPage_Add_Change_Richfaces_Libraries);
+ synchHelper.synchCheckbox(addRichFacesLibraries, IPortletConstants.RICHFACES_LIBRARIES_SELECTED, null);
+
+ addRichFacesLibraries.addSelectionListener(new SelectionAdapter() {
+
+ @Override
+ public void widgetSelected(SelectionEvent e) {
+ enableRichfacesLibraries();
+ }
+
+ });
+ richFacesLibraryCombo = new Combo(richfacesGroup, SWT.READ_ONLY);
+ gd = new GridData(GridData.FILL_HORIZONTAL);
+ gd.horizontalSpan=2;
+ richFacesLibraryCombo.setLayoutData(gd);
+ richFacesLibraryCombo.add(IPortletConstants.LIBRARIES_PROVIDED_BY_PORTLETBRIDGE);
+ richFacesLibraryCombo.add(IPortletConstants.LIBRARIES_PROVIDED_BY_RICHFACES);
+ synchHelper.synchCombo(richFacesLibraryCombo, IPortletConstants.RICHFACES_LIBRARIES_TYPE, null);
+ richFacesLibraryCombo.addSelectionListener(new SelectionAdapter() {
+
+ @Override
+ public void widgetSelected(SelectionEvent e) {
+ boolean enabled =IPortletConstants.LIBRARIES_PROVIDED_BY_RICHFACES.equals(richFacesLibraryCombo.getText());
+ richfacesText.setEnabled(enabled);
+ richfacesButton.setEnabled(enabled);
+ validatePage();
+ }
+
+ });
+ addRichFaces(richfacesGroup);
+
+ addRichFacesLibraries.setSelection(richFacesLibrariesSelected);
+ enableRichfacesLibraries();
+ richFacesLibraryCombo.select(0);
+
+ validatePage();
+ }
+
+ private void addRichFaces(Composite parent) {
+ richfacesText = new Text(parent, SWT.SINGLE | SWT.BORDER);
+ richfacesText.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
+ synchHelper.synchText(richfacesText,
+ IPortletConstants.RICHFACES_RUNTIME, null);
+
+ richfacesText.setText(richfacesRuntime);
+ richfacesText.addModifyListener(new ModifyListener() {
+
+ public void modifyText(ModifyEvent e) {
+ validateRichFaces();
+ }
+
+ });
+
+ richfacesButton = new Button(parent, SWT.PUSH);
+ richfacesButton.setText(Messages.JSFPortletFacetInstallPage_Browse);
+ richfacesButton
+ .setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_FILL));
+ richfacesButton.addSelectionListener(new SelectionAdapter() {
+ public void widgetSelected(SelectionEvent e) {
+ handleRichFacesButtonPressed();
+ }
+
+ });
+ }
+
+ private void addPortletBridgeGroup(Composite composite) {
+ GridData gd;
+ Group portletBridgeGroup = new Group(composite, SWT.NONE);
+ portletBridgeGroup.setText(Messages.JSFPortletFacetInstallPage_Portletbridge_Runtime);
+ portletBridgeGroup.setLayout(new GridLayout(2, false));
+ gd = new GridData(GridData.FILL_HORIZONTAL);
+ portletBridgeGroup.setLayoutData(gd);
+
+ folderText = new Text(portletBridgeGroup, SWT.SINGLE | SWT.BORDER);
folderText.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
synchHelper.synchText(folderText,
IPortletConstants.PORTLET_BRIDGE_RUNTIME, null);
@@ -116,7 +308,7 @@
});
- folderButton = new Button(composite, SWT.PUSH);
+ folderButton = new Button(portletBridgeGroup, SWT.PUSH);
folderButton.setText(Messages.JSFPortletFacetInstallPage_Browse);
folderButton
.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_FILL));
@@ -126,21 +318,152 @@
}
});
- validatePortletBridge();
}
- private void validatePortletBridge() {
+ private void addUserLibraryGroup(Composite composite) {
+ GridData gd;
+ Group userLibrariesGroup = new Group(composite, SWT.NONE);
+ userLibrariesGroup.setText(Messages.PortletFacetInstallPage_User_Library);
+ userLibrariesGroup.setLayout(new GridLayout(2, false));
+ gd = new GridData(GridData.FILL_HORIZONTAL);
+ userLibrariesGroup.setLayoutData(gd);
+ userLibraries = new Combo(userLibrariesGroup, SWT.READ_ONLY);
+ gd = new GridData(GridData.FILL_HORIZONTAL);
+ userLibraries.setLayoutData(gd);
+ synchHelper.synchCombo(userLibraries, IPortletConstants.USER_LIBRARY_NAME, null);
+ setLibraryCombo();
+ add = new Button(userLibrariesGroup, SWT.PUSH);
+ add.setText(Messages.PortletFacetInstallPage_Add);
+ add.addSelectionListener(new SelectionAdapter() {
+
+ @Override
+ public void widgetSelected(SelectionEvent e) {
+ Shell shell = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell();
+ WorkbenchPreferenceDialog dialog = WorkbenchPreferenceDialog
+ .createDialogOn(shell, "org.eclipse.jdt.ui.preferences.UserLibraryPreferencePage"); //$NON-NLS-1$
+ if (dialog != null) {
+ dialog.open();
+ setLibraryCombo();
+ }
+ }
+
+ });
+ boolean enabled = IPortletConstants.USER_LIBRARY.equals(portletBridgeLibraryCombo
+ .getText());
+ userLibraries.setEnabled(enabled);
+ userLibraries.addSelectionListener(new SelectionAdapter() {
+ @Override
+ public void widgetSelected(SelectionEvent e) {
+ model.setProperty(IPortletConstants.USER_LIBRARY_NAME,
+ userLibraries
+ .getText());
+ userLibraryName = userLibraries.getText();
+ validatePage();
+ }
+ });
+ add.setEnabled(enabled);
+ }
+
+ private void setLibraryCombo() {
+ String[] libraryNames = JavaCore.getUserLibraryNames();
+ boolean exists = false;
+ for (int i = 0; i < libraryNames.length; i++) {
+ userLibraries.add(libraryNames[i]);
+ if (libraryNames[i].equals(userLibraryName)) {
+ exists = true;
+ }
+ }
+ if (exists) {
+ userLibraries.setText(userLibraryName);
+ } else {
+ userLibraries.select(0);
+ userLibraryName = userLibraries.getText();
+ }
+ validatePage();
+ }
+
+ private void validatePage() {
+ if (!validatePortletBridge()) {
+ return;
+ }
+ if (!validateRichFaces()) {
+ return;
+ }
+ if (portletBridgeLibraryCombo.getText().equals(IPortletConstants.USER_LIBRARY) && userLibraries.getText().trim().length() <= 0) {
+ setErrorMessage(Messages.PortletFacetInstallPage_You_have_to_choose_an_user_library);
+ setPageComplete(false);
+ } else {
+ setErrorMessage(null);
+ setPageComplete(true);
+ }
+
+ }
+
+ private boolean portletBridgeLibrariesExistOnServer() {
+ IFacetedProjectWorkingCopy fpwc = (IFacetedProjectWorkingCopy) model.getProperty(IFacetDataModelProperties.FACETED_PROJECT_WORKING_COPY);
+ Set<IProjectFacetVersion> facets = fpwc.getProjectFacets();
+ hasSeamFacet = false;
+ for(IProjectFacetVersion facet:facets) {
+ IProjectFacet projectFacet = facet.getProjectFacet();
+ if ("jst.seam".equals(projectFacet.getId())) { //$NON-NLS-1$
+ hasSeamFacet = true;
+ break;
+ }
+ }
+
+ org.eclipse.wst.common.project.facet.core.runtime.IRuntime facetRuntime = fpwc.getPrimaryRuntime();
+ IRuntime runtime = PortletCoreActivator.getRuntime(facetRuntime);
+ IJBossServerRuntime jbossRuntime = (IJBossServerRuntime)runtime.loadAdapter(IJBossServerRuntime.class, new NullProgressMonitor());
+ if (jbossRuntime != null) {
+ // JBoss Portal server
+ IPath jbossLocation = runtime.getLocation();
+ IPath configPath = jbossLocation.append(IJBossServerConstants.SERVER).append(jbossRuntime.getJBossConfiguration());
+ File configFile = configPath.toFile();
+ if (hasPortletbridgeLibraries(new File(configFile,IPortletConstants.PORTLET_SAR_LIB))) {
+ return true;
+ }
+ if (hasPortletbridgeLibraries(new File(configFile,IPortletConstants.PORTLET_SAR_HA_LIB))) {
+ return true;
+ }
+ }
+ return false;
+ }
+
+ private boolean hasPortletbridgeLibraries(File file) {
+ if (file != null && file.isDirectory()) {
+ String[] list = file.list(new FilenameFilter() {
+
+ public boolean accept(File dir, String name) {
+ if ("portletbridge-api.jar".equals(name) || //$NON-NLS-1$
+ "portletbridge-impl.jar".equals(name)) { //$NON-NLS-1$
+ return true;
+ }
+ return false;
+ }
+
+ });
+ return list.length == 2;
+ }
+ return false;
+ }
+
+ private boolean validatePortletBridge() {
+ if (!IPortletConstants.LIBRARIES_PROVIDED_BY_PORTLETBRIDGE.equals(portletBridgeLibraryCombo.getText())) {
+ setErrorMessage(null);
+ setPageComplete(true);
+ return true;
+ }
String folderString = folderText.getText();
folderString = folderString.trim();
if (folderString.length() <= 0) {
setErrorMessage(Messages.JSFPortletFacetInstallPage_Portletbridge_Runtime_directory_is_required);
setPageComplete(false);
- return;
+ return false;
}
File folder = new File(folderString);
if (!folder.exists() || !folder.isDirectory()) {
setInvalidPortletbridgeRuntime();
- return;
+ return false;
}
String[] fileList = folder.list(new FilenameFilter() {
@@ -154,19 +477,71 @@
});
if (fileList.length < 2) {
setInvalidPortletbridgeRuntime();
- return;
+ return false;
}
portletbridgeRuntime = folderText.getText();
setErrorMessage(null);
setPageComplete(true);
+ return true;
}
+ private boolean validateRichFaces() {
+ if (richFacesLibraryCombo == null) {
+ return true;
+ }
+ if (!IPortletConstants.LIBRARIES_PROVIDED_BY_RICHFACES.equals(richFacesLibraryCombo.getText())) {
+ setErrorMessage(null);
+ setPageComplete(true);
+ return true;
+ }
+ String folderString = richfacesText.getText();
+ folderString = folderString.trim();
+ if (folderString.length() <= 0) {
+ setErrorMessage(Messages.JSFPortletFacetInstallPage_RichFaces_Runtime_directory_is_required);
+ setPageComplete(false);
+ return false;
+ }
+ File folder = new File(folderString);
+ if (!folder.exists() || !folder.isDirectory()) {
+ setInvalidRichfacesRuntime();
+ return false;
+ }
+ folder = new File(folder,"lib"); //$NON-NLS-1$
+ if (!folder.exists() || !folder.isDirectory()) {
+ setInvalidRichfacesRuntime();
+ return false;
+ }
+ String[] fileList = folder.list(new FilenameFilter() {
+
+ public boolean accept(File dir, String name) {
+ if (name.startsWith("richfaces") || name.endsWith(".jar")) { //$NON-NLS-1$ //$NON-NLS-2$
+ return true;
+ }
+ return false;
+ }
+
+ });
+ if (fileList.length < 3) {
+ setInvalidRichfacesRuntime();
+ return false;
+ }
+ richfacesRuntime = richfacesText.getText();
+ setErrorMessage(null);
+ setPageComplete(true);
+ return true;
+ }
+
+ private void setInvalidRichfacesRuntime() {
+ setErrorMessage(Messages.JSFPortletFacetInstallPage_Invalid_Richfaces_Runtime_directory);
+ setPageComplete(false);
+ }
+
private void setInvalidPortletbridgeRuntime() {
setErrorMessage(Messages.JSFPortletFacetInstallPage_Invalid_Portletbridge_Runtime_directory);
setPageComplete(false);
}
- protected void handleFolderButtonPressed() {
+ private void handleFolderButtonPressed() {
String lastPath = folderText.getText();
DirectoryDialog dialog = new DirectoryDialog(getShell(), SWT.MULTI);
dialog.setText(Messages.JSFPortletFacetInstallPage_Select_Portletbridge_Runtime);
@@ -178,6 +553,19 @@
String newPath = dialog.getFilterPath();
folderText.setText(newPath);
}
+
+ private void handleRichFacesButtonPressed() {
+ String lastPath = richfacesText.getText();
+ DirectoryDialog dialog = new DirectoryDialog(getShell(), SWT.MULTI);
+ dialog.setText(Messages.JSFPortletFacetInstallPage_Select_RichFaces_Runtime);
+ dialog.setFilterPath(lastPath);
+ String res = dialog.open();
+ if (res == null) {
+ return;
+ }
+ String newPath = dialog.getFilterPath();
+ richfacesText.setText(newPath);
+ }
@Override
public void transferStateToConfig() {
@@ -188,6 +576,26 @@
}
jsfSection.put(IPortletConstants.PORTLET_BRIDGE_RUNTIME,
portletbridgeRuntime);
+ jsfSection.put(IPortletConstants.RICHFACES_RUNTIME,
+ richfacesRuntime);
+ jsfSection.put(IPortletConstants.IMPLEMENTATION_LIBRARY,
+ implementationLibrary);
+ jsfSection.put(IPortletConstants.RICHFACES_LIBRARIES_SELECTED,
+ richFacesLibrariesSelected);
+
}
+ private void enableRichfacesLibraries() {
+ boolean enabled = addRichFacesLibraries.getSelection();
+ richFacesLibraryCombo.setEnabled(enabled);
+ if (enabled) {
+ enabled =IPortletConstants.LIBRARIES_PROVIDED_BY_RICHFACES.equals(richFacesLibraryCombo.getText());
+ richfacesText.setEnabled(enabled);
+ richfacesButton.setEnabled(enabled);
+ } else {
+ richfacesText.setEnabled(false);
+ richfacesButton.setEnabled(false);
+ }
+ }
+
}
Modified: trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui/messages.properties
===================================================================
--- trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui/messages.properties 2009-02-13 20:28:00 UTC (rev 13622)
+++ trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui/messages.properties 2009-02-15 23:46:07 UTC (rev 13623)
@@ -24,14 +24,19 @@
IPortletUIConstants_Specify_class_file_information=Specify class file information
IPortletUIConstants_Title=Title:
IPortletUIConstants_Window_name=Window Name:
+JSFPortletFacetInstallPage_Add_Change_Richfaces_Libraries=Add/Change Richfaces Libraries
JSFPortletFacetInstallPage_Add_JBoss_JSF_Portlet_capabilities_to_this_Web_Project=Add JBoss JSF Portlet capabilities to this Web Project
JSFPortletFacetInstallPage_Browse=Browse...
JSFPortletFacetInstallPage_Deploy_jars=Deploy jars to WEB-INF/lib
JSFPortletFacetInstallPage_Invalid_Portletbridge_Runtime_directory=Invalid Portletbridge Runtime directory.
+JSFPortletFacetInstallPage_Invalid_Richfaces_Runtime_directory=Invalid Richfaces Runtime directory.
JSFPortletFacetInstallPage_JBoss_JSF_Portlet_Capabilities=JBoss JSF Portlet Capabilities
JSFPortletFacetInstallPage_Portletbridge_Runtime=Portletbridge Runtime
JSFPortletFacetInstallPage_Portletbridge_Runtime_directory_is_required=Portletbridge Runtime directory is required.
+JSFPortletFacetInstallPage_Richfaces_Capabilities=Richfaces Capabilities
+JSFPortletFacetInstallPage_RichFaces_Runtime_directory_is_required=RichFaces Runtime directory is required.
JSFPortletFacetInstallPage_Select_Portletbridge_Runtime=Select Portletbridge Runtime
+JSFPortletFacetInstallPage_Select_RichFaces_Runtime=Select RichFaces Runtime
PortletFacetInstallPage_Add=Add...
PortletFacetInstallPage_Add_JBoss_Portlet_capabilities_to_this_Web_Project=Add JBoss Portlet capabilities to this Web Project
PortletFacetInstallPage_Enable_implementation_library=Enable implementation library
16 years, 10 months