JBoss Tools SVN: r20771 - branches/jbosstools-3.1.x/documentation/guides/JBDS_3.0_Release_Notes/en-US.
by jbosstools-commits@lists.jboss.org
Author: irooskov(a)redhat.com
Date: 2010-03-11 18:51:54 -0500 (Thu, 11 Mar 2010)
New Revision: 20771
Modified:
branches/jbosstools-3.1.x/documentation/guides/JBDS_3.0_Release_Notes/en-US/Fixed_Issues.xml
branches/jbosstools-3.1.x/documentation/guides/JBDS_3.0_Release_Notes/en-US/Known_Issues.xml
branches/jbosstools-3.1.x/documentation/guides/JBDS_3.0_Release_Notes/en-US/Release_Notes.xml
branches/jbosstools-3.1.x/documentation/guides/JBDS_3.0_Release_Notes/en-US/master.xml
Log:
updated with new content
Modified: branches/jbosstools-3.1.x/documentation/guides/JBDS_3.0_Release_Notes/en-US/Fixed_Issues.xml
===================================================================
--- branches/jbosstools-3.1.x/documentation/guides/JBDS_3.0_Release_Notes/en-US/Fixed_Issues.xml 2010-03-11 23:39:53 UTC (rev 20770)
+++ branches/jbosstools-3.1.x/documentation/guides/JBDS_3.0_Release_Notes/en-US/Fixed_Issues.xml 2010-03-11 23:51:54 UTC (rev 20771)
@@ -1,11 +1,11 @@
<?xml version='1.0' encoding='utf-8' ?>
<section id="Issues-fixed-in-this-release">
<title>
- Issues fixed in this release
+ Features added and issues fixed in this release
</title>
<para>
- Following is a list of issues fixed in this release:
+ Following is a list of new and noteworthy features and bug fixes in this release:
</para>
<formalpara>
<title>Contexts and Dependency Injection (CDI)</title>
Modified: branches/jbosstools-3.1.x/documentation/guides/JBDS_3.0_Release_Notes/en-US/Known_Issues.xml
===================================================================
--- branches/jbosstools-3.1.x/documentation/guides/JBDS_3.0_Release_Notes/en-US/Known_Issues.xml 2010-03-11 23:39:53 UTC (rev 20770)
+++ branches/jbosstools-3.1.x/documentation/guides/JBDS_3.0_Release_Notes/en-US/Known_Issues.xml 2010-03-11 23:51:54 UTC (rev 20771)
@@ -12,8 +12,24 @@
<itemizedlist>
<listitem>
<para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-3623">JBIDE-3623</ulink>: If you use the community Seam versions 2.1.0.SP1 or 2.1.1 TestNG for WAR projects they will fail with the error <errorname>Two components with the same name and precedence</errorname>. There is no known workaround, however all other Seam releases work correctly and all Seam 2.1 EAR projects are successful.
</para>
</listitem>
+ <listitem>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-2700">JBIDE-2700</ulink>: The functionality of the <guilabel>Console</guilabel> view is dependant on the Debug-UI plug-in being loaded. Starting a server does not ensure the running of the Debug-UI plug-in and without it started the <guilabel>Console</guilabel> view will not show any output. When accessing the <guilabel>Console</guilabel> tab, if no data is shown, right-click with your mouse and select <menuchoice><guimenuitem>Show In</guimenuitem><guimenuitem>Console</guimenuitem></menuchoice>.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-779">JBIDE-779</ulink>: Currently Facelet pages contain false warnings.This has occured due to Eclipse WTP's HTML Syntax Validation not allowing for Facelet specific attributes. These warnings can be stopped by disabling validation. To disable validation follow <menuchoice><guimenuitem>Windows</guimenuitem><guimenuitem>Preferences</guimenuitem><guimenuitem>Validation</guimenuitem><guimenuitem>HTML Syntax Validation</guimenuitem></menuchoice> .
+ </para>
+ <caution>
+ <para>
+ Disabling validation has the potential to remove usefull warning information.
+ </para>
+ </caution>
+ </listitem>
</itemizedlist>
</para>
</formalpara>
Modified: branches/jbosstools-3.1.x/documentation/guides/JBDS_3.0_Release_Notes/en-US/Release_Notes.xml
===================================================================
--- branches/jbosstools-3.1.x/documentation/guides/JBDS_3.0_Release_Notes/en-US/Release_Notes.xml 2010-03-11 23:39:53 UTC (rev 20770)
+++ branches/jbosstools-3.1.x/documentation/guides/JBDS_3.0_Release_Notes/en-US/Release_Notes.xml 2010-03-11 23:51:54 UTC (rev 20771)
@@ -6,6 +6,6 @@
<!-- <xi:include href="New_Features.xml" xmlns:xi="http://www.w3.org/2001/XInclude"></xi:include> -->
<xi:include href="Component_Versions.xml" xmlns:xi="http://www.w3.org/2001/XInclude"></xi:include>
<xi:include href="Fixed_Issues.xml" xmlns:xi="http://www.w3.org/2001/XInclude"></xi:include>
-<!-- <xi:include href="Known_Issues.xml" xmlns:xi="http://www.w3.org/2001/XInclude"></xi:include> -->
+ <xi:include href="Known_Issues.xml" xmlns:xi="http://www.w3.org/2001/XInclude"></xi:include>
<xi:include href="Revision_History.xml" xmlns:xi="http://www.w3.org/2001/XInclude"></xi:include>
</article>
Modified: branches/jbosstools-3.1.x/documentation/guides/JBDS_3.0_Release_Notes/en-US/master.xml
===================================================================
--- branches/jbosstools-3.1.x/documentation/guides/JBDS_3.0_Release_Notes/en-US/master.xml 2010-03-11 23:39:53 UTC (rev 20770)
+++ branches/jbosstools-3.1.x/documentation/guides/JBDS_3.0_Release_Notes/en-US/master.xml 2010-03-11 23:51:54 UTC (rev 20771)
@@ -34,7 +34,7 @@
<holder>JBoss by Red Hat</holder>
</copyright>
<releaseinfo>
- Version: 3.0.0.GA
+ Version: 1.0
</releaseinfo>
<!--<abstract>
<title/>
@@ -48,9 +48,9 @@
<toc/>
&Overview;
- &NewFeatures;
+ <!-- &NewFeatures; -->
&ComponentVersions;
&FixedIssues;
- &KnownIssues;
+<!-- &KnownIssues; -->
</article>
14 years, 3 months
JBoss Tools SVN: r20770 - in branches/jbosstools-3.1.x/documentation/guides/Exadel-migration: en-US and 3 other directories.
by jbosstools-commits@lists.jboss.org
Author: irooskov(a)redhat.com
Date: 2010-03-11 18:39:53 -0500 (Thu, 11 Mar 2010)
New Revision: 20770
Added:
branches/jbosstools-3.1.x/documentation/guides/Exadel-migration/en-US/
branches/jbosstools-3.1.x/documentation/guides/Exadel-migration/en-US/Author_Group.xml
branches/jbosstools-3.1.x/documentation/guides/Exadel-migration/en-US/Book_Info.xml
branches/jbosstools-3.1.x/documentation/guides/Exadel-migration/en-US/Exadel_Studio_Migration_Guide.ent
branches/jbosstools-3.1.x/documentation/guides/Exadel-migration/en-US/Exadel_Studio_Migration_Guide.xml
branches/jbosstools-3.1.x/documentation/guides/Exadel-migration/en-US/Preface.xml
branches/jbosstools-3.1.x/documentation/guides/Exadel-migration/en-US/Revision_History.xml
branches/jbosstools-3.1.x/documentation/guides/Exadel-migration/en-US/images/
branches/jbosstools-3.1.x/documentation/guides/Exadel-migration/en-US/images/favicon0.ico
branches/jbosstools-3.1.x/documentation/guides/Exadel-migration/en-US/images/jsf_struts/
branches/jbosstools-3.1.x/documentation/guides/Exadel-migration/en-US/images/jsf_struts/migration_1.png
branches/jbosstools-3.1.x/documentation/guides/Exadel-migration/en-US/images/jsf_struts/migration_10.png
branches/jbosstools-3.1.x/documentation/guides/Exadel-migration/en-US/images/jsf_struts/migration_2.png
branches/jbosstools-3.1.x/documentation/guides/Exadel-migration/en-US/images/jsf_struts/migration_3.png
branches/jbosstools-3.1.x/documentation/guides/Exadel-migration/en-US/images/jsf_struts/migration_4.png
branches/jbosstools-3.1.x/documentation/guides/Exadel-migration/en-US/images/jsf_struts/migration_5.png
branches/jbosstools-3.1.x/documentation/guides/Exadel-migration/en-US/images/jsf_struts/migration_6.png
branches/jbosstools-3.1.x/documentation/guides/Exadel-migration/en-US/images/jsf_struts/migration_7.png
branches/jbosstools-3.1.x/documentation/guides/Exadel-migration/en-US/images/jsf_struts/migration_8.png
branches/jbosstools-3.1.x/documentation/guides/Exadel-migration/en-US/images/jsf_struts/migration_9.png
branches/jbosstools-3.1.x/documentation/guides/Exadel-migration/en-US/images/jsf_struts_war/
branches/jbosstools-3.1.x/documentation/guides/Exadel-migration/en-US/images/jsf_struts_war/migration_war_1.png
branches/jbosstools-3.1.x/documentation/guides/Exadel-migration/en-US/images/jsf_struts_war/migration_war_2.png
branches/jbosstools-3.1.x/documentation/guides/Exadel-migration/en-US/images/jsf_struts_war/migration_war_3.png
branches/jbosstools-3.1.x/documentation/guides/Exadel-migration/en-US/images/jsf_struts_war/migration_war_4.png
branches/jbosstools-3.1.x/documentation/guides/Exadel-migration/en-US/images/jsf_struts_war/migration_war_5.png
branches/jbosstools-3.1.x/documentation/guides/Exadel-migration/en-US/introduction.xml
branches/jbosstools-3.1.x/documentation/guides/Exadel-migration/en-US/jsf_struts.xml
branches/jbosstools-3.1.x/documentation/guides/Exadel-migration/en-US/jsf_struts_war.xml
branches/jbosstools-3.1.x/documentation/guides/Exadel-migration/en-US/master.xml
branches/jbosstools-3.1.x/documentation/guides/Exadel-migration/en-US/master_output.xml
branches/jbosstools-3.1.x/documentation/guides/Exadel-migration/en-US/workspace.xml
branches/jbosstools-3.1.x/documentation/guides/Exadel-migration/publican.cfg
Removed:
branches/jbosstools-3.1.x/documentation/guides/Exadel-migration/en/
Modified:
branches/jbosstools-3.1.x/documentation/guides/Exadel-migration/pom.xml
Log:
modified to build with publican and maven
Added: branches/jbosstools-3.1.x/documentation/guides/Exadel-migration/en-US/Author_Group.xml
===================================================================
--- branches/jbosstools-3.1.x/documentation/guides/Exadel-migration/en-US/Author_Group.xml (rev 0)
+++ branches/jbosstools-3.1.x/documentation/guides/Exadel-migration/en-US/Author_Group.xml 2010-03-11 23:39:53 UTC (rev 20770)
@@ -0,0 +1,4 @@
+<?xml version='1.0' encoding='utf-8' ?>
+<!DOCTYPE Book PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
+]>
+<authorgroup><author><firstname>JBoss Tools Team</firstname></author></authorgroup>
Added: branches/jbosstools-3.1.x/documentation/guides/Exadel-migration/en-US/Book_Info.xml
===================================================================
--- branches/jbosstools-3.1.x/documentation/guides/Exadel-migration/en-US/Book_Info.xml (rev 0)
+++ branches/jbosstools-3.1.x/documentation/guides/Exadel-migration/en-US/Book_Info.xml 2010-03-11 23:39:53 UTC (rev 20770)
@@ -0,0 +1,4 @@
+<?xml version='1.0' encoding='utf-8' ?>
+<!DOCTYPE Book PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
+]>
+<bookinfo><title>Exadel Studio Migration Guide</title><subtitle>Provides information about migration to the JBoss Developer Studio.</subtitle><productname>JBoss Developer Studio</productname><productnumber>3.0</productnumber><edition>1.0</edition><pubsnumber>0</pubsnumber><abstract><para>The Exadel Studio Migration Guide explains how to migrate from Exadel Studio to the JBoss Developer Studio.</para></abstract><corpauthor><inlinemediaobject><imageobject><imagedata fileref="Common_Content/images/title_logo.svg" format="SVG"></imagedata></imageobject></inlinemediaobject></corpauthor><xi:include href="Common_Content/Legal_Notice.xml" xmlns:xi="http://www.w3.org/2001/XInclude"></xi:include><xi:include href="Author_Group.xml" xmlns:xi="http://www.w3.org/2001/XInclude"></xi:include></bookinfo>
Added: branches/jbosstools-3.1.x/documentation/guides/Exadel-migration/en-US/Exadel_Studio_Migration_Guide.ent
===================================================================
--- branches/jbosstools-3.1.x/documentation/guides/Exadel-migration/en-US/Exadel_Studio_Migration_Guide.ent (rev 0)
+++ branches/jbosstools-3.1.x/documentation/guides/Exadel-migration/en-US/Exadel_Studio_Migration_Guide.ent 2010-03-11 23:39:53 UTC (rev 20770)
@@ -0,0 +1,4 @@
+<!ENTITY PRODUCT "JBoss">
+<!ENTITY BOOKID "Exadel_Studio_Migration_Guide">
+<!ENTITY YEAR "2010">
+<!ENTITY HOLDER "Red Hat">
Added: branches/jbosstools-3.1.x/documentation/guides/Exadel-migration/en-US/Exadel_Studio_Migration_Guide.xml
===================================================================
--- branches/jbosstools-3.1.x/documentation/guides/Exadel-migration/en-US/Exadel_Studio_Migration_Guide.xml (rev 0)
+++ branches/jbosstools-3.1.x/documentation/guides/Exadel-migration/en-US/Exadel_Studio_Migration_Guide.xml 2010-03-11 23:39:53 UTC (rev 20770)
@@ -0,0 +1,12 @@
+<?xml version='1.0' encoding='utf-8' ?>
+<!DOCTYPE Book PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
+]>
+<book>
+<xi:include href="Book_Info.xml" xmlns:xi="http://www.w3.org/2001/XInclude"></xi:include>
+<xi:include href="Preface.xml" xmlns:xi="http://www.w3.org/2001/XInclude"></xi:include>
+<xi:include href="introduction.xml" xmlns:xi="http://www.w3.org/2001/XInclude"></xi:include>
+<xi:include href="workspace.xml" xmlns:xi="http://www.w3.org/2001/XInclude"></xi:include>
+<xi:include href="jsf_struts.xml" xmlns:xi="http://www.w3.org/2001/XInclude"></xi:include>
+<xi:include href="jsf_struts_war.xml" xmlns:xi="http://www.w3.org/2001/XInclude"></xi:include>
+<xi:include href="Revision_History.xml" xmlns:xi="http://www.w3.org/2001/XInclude"></xi:include>
+</book>
Added: branches/jbosstools-3.1.x/documentation/guides/Exadel-migration/en-US/Preface.xml
===================================================================
--- branches/jbosstools-3.1.x/documentation/guides/Exadel-migration/en-US/Preface.xml (rev 0)
+++ branches/jbosstools-3.1.x/documentation/guides/Exadel-migration/en-US/Preface.xml 2010-03-11 23:39:53 UTC (rev 20770)
@@ -0,0 +1,4 @@
+<?xml version='1.0' encoding='utf-8' ?>
+<!DOCTYPE Book PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
+]>
+<preface><title>Preface</title><xi:include href="Common_Content/Conventions.xml" xmlns:xi="http://www.w3.org/2001/XInclude"></xi:include><xi:include href="Feedback.xml" xmlns:xi="http://www.w3.org/2001/XInclude"><xi:fallback xmlns:xi="http://www.w3.org/2001/XInclude"><xi:include href="Common_Content/Feedback.xml" xmlns:xi="http://www.w3.org/2001/XInclude"></xi:include></xi:fallback></xi:include></preface>
Added: branches/jbosstools-3.1.x/documentation/guides/Exadel-migration/en-US/Revision_History.xml
===================================================================
--- branches/jbosstools-3.1.x/documentation/guides/Exadel-migration/en-US/Revision_History.xml (rev 0)
+++ branches/jbosstools-3.1.x/documentation/guides/Exadel-migration/en-US/Revision_History.xml 2010-03-11 23:39:53 UTC (rev 20770)
@@ -0,0 +1,4 @@
+<?xml version='1.0' encoding='utf-8' ?>
+<!DOCTYPE Book PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
+]>
+<appendix><title>Revision History</title><simpara><revhistory><revision><revnumber>0</revnumber><date>Fri Nov 20 2009</date><author><firstname>Isaac</firstname><surname>Rooskov</surname><email>irooskov(a)redhat.com</email></author><revdescription><simplelist><member>Initial creation of book by publican</member></simplelist></revdescription></revision></revhistory></simpara></appendix>
Added: branches/jbosstools-3.1.x/documentation/guides/Exadel-migration/en-US/images/favicon0.ico
===================================================================
(Binary files differ)
Property changes on: branches/jbosstools-3.1.x/documentation/guides/Exadel-migration/en-US/images/favicon0.ico
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: branches/jbosstools-3.1.x/documentation/guides/Exadel-migration/en-US/images/jsf_struts/migration_1.png
===================================================================
(Binary files differ)
Property changes on: branches/jbosstools-3.1.x/documentation/guides/Exadel-migration/en-US/images/jsf_struts/migration_1.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: branches/jbosstools-3.1.x/documentation/guides/Exadel-migration/en-US/images/jsf_struts/migration_10.png
===================================================================
(Binary files differ)
Property changes on: branches/jbosstools-3.1.x/documentation/guides/Exadel-migration/en-US/images/jsf_struts/migration_10.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: branches/jbosstools-3.1.x/documentation/guides/Exadel-migration/en-US/images/jsf_struts/migration_2.png
===================================================================
(Binary files differ)
Property changes on: branches/jbosstools-3.1.x/documentation/guides/Exadel-migration/en-US/images/jsf_struts/migration_2.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: branches/jbosstools-3.1.x/documentation/guides/Exadel-migration/en-US/images/jsf_struts/migration_3.png
===================================================================
(Binary files differ)
Property changes on: branches/jbosstools-3.1.x/documentation/guides/Exadel-migration/en-US/images/jsf_struts/migration_3.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: branches/jbosstools-3.1.x/documentation/guides/Exadel-migration/en-US/images/jsf_struts/migration_4.png
===================================================================
(Binary files differ)
Property changes on: branches/jbosstools-3.1.x/documentation/guides/Exadel-migration/en-US/images/jsf_struts/migration_4.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: branches/jbosstools-3.1.x/documentation/guides/Exadel-migration/en-US/images/jsf_struts/migration_5.png
===================================================================
(Binary files differ)
Property changes on: branches/jbosstools-3.1.x/documentation/guides/Exadel-migration/en-US/images/jsf_struts/migration_5.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: branches/jbosstools-3.1.x/documentation/guides/Exadel-migration/en-US/images/jsf_struts/migration_6.png
===================================================================
(Binary files differ)
Property changes on: branches/jbosstools-3.1.x/documentation/guides/Exadel-migration/en-US/images/jsf_struts/migration_6.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: branches/jbosstools-3.1.x/documentation/guides/Exadel-migration/en-US/images/jsf_struts/migration_7.png
===================================================================
(Binary files differ)
Property changes on: branches/jbosstools-3.1.x/documentation/guides/Exadel-migration/en-US/images/jsf_struts/migration_7.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: branches/jbosstools-3.1.x/documentation/guides/Exadel-migration/en-US/images/jsf_struts/migration_8.png
===================================================================
(Binary files differ)
Property changes on: branches/jbosstools-3.1.x/documentation/guides/Exadel-migration/en-US/images/jsf_struts/migration_8.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: branches/jbosstools-3.1.x/documentation/guides/Exadel-migration/en-US/images/jsf_struts/migration_9.png
===================================================================
(Binary files differ)
Property changes on: branches/jbosstools-3.1.x/documentation/guides/Exadel-migration/en-US/images/jsf_struts/migration_9.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: branches/jbosstools-3.1.x/documentation/guides/Exadel-migration/en-US/images/jsf_struts_war/migration_war_1.png
===================================================================
(Binary files differ)
Property changes on: branches/jbosstools-3.1.x/documentation/guides/Exadel-migration/en-US/images/jsf_struts_war/migration_war_1.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: branches/jbosstools-3.1.x/documentation/guides/Exadel-migration/en-US/images/jsf_struts_war/migration_war_2.png
===================================================================
(Binary files differ)
Property changes on: branches/jbosstools-3.1.x/documentation/guides/Exadel-migration/en-US/images/jsf_struts_war/migration_war_2.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: branches/jbosstools-3.1.x/documentation/guides/Exadel-migration/en-US/images/jsf_struts_war/migration_war_3.png
===================================================================
(Binary files differ)
Property changes on: branches/jbosstools-3.1.x/documentation/guides/Exadel-migration/en-US/images/jsf_struts_war/migration_war_3.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: branches/jbosstools-3.1.x/documentation/guides/Exadel-migration/en-US/images/jsf_struts_war/migration_war_4.png
===================================================================
(Binary files differ)
Property changes on: branches/jbosstools-3.1.x/documentation/guides/Exadel-migration/en-US/images/jsf_struts_war/migration_war_4.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: branches/jbosstools-3.1.x/documentation/guides/Exadel-migration/en-US/images/jsf_struts_war/migration_war_5.png
===================================================================
(Binary files differ)
Property changes on: branches/jbosstools-3.1.x/documentation/guides/Exadel-migration/en-US/images/jsf_struts_war/migration_war_5.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: branches/jbosstools-3.1.x/documentation/guides/Exadel-migration/en-US/introduction.xml
===================================================================
--- branches/jbosstools-3.1.x/documentation/guides/Exadel-migration/en-US/introduction.xml (rev 0)
+++ branches/jbosstools-3.1.x/documentation/guides/Exadel-migration/en-US/introduction.xml 2010-03-11 23:39:53 UTC (rev 20770)
@@ -0,0 +1,70 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<chapter id="introduction" xreflabel="introduction">
+ <?dbhtml filename="introduction.html"?>
+ <chapterinfo>
+ <keywordset>
+ <keyword>JBoss Developer Studio</keyword>
+ <keyword>JBDS</keyword>
+ <keyword>Exadel Studio Pro</keyword>
+ </keywordset>
+ </chapterinfo>
+
+ <title>Introduction </title>
+ <para>This document is intended to help you to migrate an existing Exadel JSF or Struts projects
+ into <property>JBoss Developer Studio</property>. Preferences can be exported from Eclipse 3.2.0
+ (3.2.1 or 3.2.2) and imported in Eclipse 3.4.x by the standard Eclipse means.</para>
+
+ <section>
+ <title>Key Features of Projects Migration to JBoss Developer Studio</title>
+ <para>For a start, we propose you to look through the table of main features of migrating projects to JBoss Developer Studio:</para>
+
+ <table>
+
+ <title>Key Features of Project Migration to JBoss Developer Studio</title>
+ <tgroup cols="3">
+
+ <colspec colnum="1" align="left" colwidth="2*"/>
+ <colspec colnum="2" colwidth="4*"/>
+ <colspec colnum="3" align="left" colwidth="2*"/>
+
+ <thead>
+ <row>
+ <entry>Feature</entry>
+ <entry>Benefit</entry>
+ <entry>Chapter</entry>
+ </row>
+ </thead>
+
+ <tbody>
+
+ <row>
+ <entry><para>Import JSF Project Wizard</para></entry>
+ <entry><para>It simplifies the process of bringing your existing JSF applications into your JBoss Developer Studio workspace as JSF projects. The import is possible with *.war files.</para></entry>
+ <entry>
+ <link linkend="import_jsf">Migration of JSF project</link> and <link linkend="jsf_war">Migration of JSF project from *.war file</link>
+ </entry>
+ </row>
+
+ <row>
+ <entry><para>Import Struts Project Wizard</para></entry>
+ <entry><para>It simplifies the process of bringing your existing Struts applications into your JBoss Developer Studio workspace as Struts projects. The import is possible with *.war files.</para></entry>
+ <entry>
+ <link linkend="struts_import">Migration of Struts project</link> and <link linkend="struts_war">Migration of Struts project from *.war file</link>
+ </entry>
+ </row>
+
+ </tbody>
+
+ </tgroup>
+ </table>
+
+ </section>
+
+ <section>
+ <title>Other relevant resources on the topic</title>
+ <para>All JBoss Developer Studio/JBoss Tools release documentation you can find at<ulink url="http://docs.jboss.org/tools/">http://docs.jboss.org/tools</ulink> in the corresponding release directory.</para>
+ <para>The latest documentation builds are available at <ulink url="http://download.jboss.org/jbosstools/nightly-docs/">http://download.jboss.org/jbosstools/nightly-docs</ulink>.</para>
+
+ </section>
+
+</chapter>
Added: branches/jbosstools-3.1.x/documentation/guides/Exadel-migration/en-US/jsf_struts.xml
===================================================================
--- branches/jbosstools-3.1.x/documentation/guides/Exadel-migration/en-US/jsf_struts.xml (rev 0)
+++ branches/jbosstools-3.1.x/documentation/guides/Exadel-migration/en-US/jsf_struts.xml 2010-03-11 23:39:53 UTC (rev 20770)
@@ -0,0 +1,183 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<chapter id="jsf_struts" xreflabel="jsf_struts">
+ <?dbhtml filename="jsf_struts.html"?>
+ <chapterinfo>
+ <keywordset>
+ <keyword>JBoss Developer Studio</keyword>
+ <keyword>JBDS</keyword>
+ <keyword>Exadel Studio Pro</keyword>
+ <keyword>Migration</keyword>
+ </keywordset>
+ </chapterinfo>
+
+ <title>Migration of JSF and Struts Projects</title>
+ <para>In this chapter you can find concise description of migration of JSF and Struts Projects.</para>
+ <section id="import_jsf">
+ <title>JSF</title>
+ <para>JBoss Developer Studio includes an Import <property>JSF Project</property> Wizard that radically simplifies the process of bringing your existing JSF applications
+ into your JBoss Developer Studio workspace as JSF projects. You just need to follow these four steps:</para>
+ <itemizedlist>
+ <listitem><para><emphasis><property>Select File > Import...</property></emphasis> from the menu bar, and then select <emphasis><property>Other > JSF Project </property></emphasis>from the Import dialog box that appears.</para></listitem>
+ </itemizedlist>
+
+ <figure>
+ <title>Selecting the Import Menu Item</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/jsf_struts/migration_1.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <figure>
+ <title>Selecting the Import JSF Project Wizard</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/jsf_struts/migration_2.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <itemizedlist>
+ <listitem><para>In the first screen of the wizard, select the <emphasis><property>Change...</property></emphasis> button next to the <emphasis><property>web.xml Location</property></emphasis> field. Browse to the location of the web.xml file for the application you
+ want to import as a <property>JSF project</property>. Once you select it, you'll be returned to the dialog box to see a project name derived from the web.xml file you selected.
+ You can edit this project name, if you wish.</para></listitem>
+ </itemizedlist>
+
+ <figure>
+ <title>Selecting the Web.xml File in the Project Location Screen</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/jsf_struts/migration_3.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <itemizedlist id="import_jsf_screen">
+ <listitem><para>In the <emphasis><property>Project Folders</property></emphasis> screen, you can configure the rest of your project. Afterwards click on the <emphasis><property>Finish</property></emphasis> button.</para></listitem>
+ </itemizedlist>
+ <para>On this step JBoss Developer Studio will try to determine your project
+ structure and set the values for: <emphasis><property>Web Root</property></emphasis>, <emphasis><property>Source Folder</property></emphasis>, <emphasis><property>Classes Folder</property></emphasis>, <emphasis><property>Lib Folder</property></emphasis>. If your project has a custom structure, some values might not be
+ set. If this is the case, you can manually set those values by clicking the <emphasis><property>Change...</property></emphasis> button.</para>
+ <para>After dealing with these settings, you have to work through a few more configuration settings. These settings deal primarily with how the project will be deployed within JBoss Developer Studio.</para>
+ <para>First, if the project you are importing is not already a JSF project, select the <emphasis><property>Add Libraries</property></emphasis> check box to add all the JSF-related libraries to your project. </para>
+ <para>Then, you may select the JavaServer Faces implementation (<emphasis><property>Environment</property></emphasis>) and <emphasis><property>Servlet Version</property></emphasis>.</para>
+ <para>The <emphasis><property>Context Path</property></emphasis> is the name under which the application will be deployed. </para>
+ <para>The <emphasis><property>Runtime</property></emphasis> value tells Eclipse where to find Web libraries in order to build the project. It is not possible to finish the importing of a project without selecting a Runtime. If you don't have any choices displayed for this, select <emphasis><property>New...</property></emphasis> to add a new Runtime.</para>
+ <para>Finally, <emphasis><property>Target Server</property></emphasis> sets the server to deploy the application under. The Target Server corresponds to the Runtime value selected above. If you don't want to deploy the application, uncheck this value.</para>
+
+
+ <figure>
+ <title>The Project Folders Screen</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/jsf_struts/migration_4.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <itemizedlist>
+ <listitem><para>Once the project is imported, it will appear in the Package Explorer view.</para></listitem>
+ </itemizedlist>
+
+ <figure>
+ <title>Imported Project in the Package Explorer View</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/jsf_struts/migration_5.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ </section>
+ <section id="struts_import">
+ <title>Struts</title>
+ <itemizedlist>
+ <listitem><para><emphasis><property>Select File > Import...</property></emphasis> from the menu bar, and then select <emphasis><property>Other > Struts Project</property></emphasis> from the Import dialog box that appears.</para></listitem>
+ </itemizedlist>
+
+ <figure>
+ <title>Selecting the Import Menu Item</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/jsf_struts/migration_1.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <figure>
+ <title>Selecting the Import Struts Project Wizard</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/jsf_struts/migration_6.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <itemizedlist>
+ <listitem><para>In the Project Location screen of the wizard, select the <emphasis><property>Change... </property></emphasis>button next to the <emphasis><property>web.xml Location</property></emphasis> field. Browse the location of the web.xml file for the application you
+ want to import as a <property>Struts project</property>. Once you select it, you'll be returned to the dialog box to see a project name derived from the web.xml file you selected.
+ You can edit this project name, if you wish.</para></listitem>
+ </itemizedlist>
+
+ <figure>
+ <title>The Project Location Screen</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/jsf_struts/migration_10.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <itemizedlist>
+ <listitem><para>In the next screen, JBoss Developer Studio will try to determine your project structure. The upper pane shows the modules in this project.
+ The lower pane allows you to edit the details of the select module. If the project structure is non-standard, some values might be left blank.
+ You can edit any values by hand or by using the <emphasis><property>Change...</property></emphasis> button.</para></listitem>
+ </itemizedlist>
+
+ <figure>
+ <title>The Project Modules Screen</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/jsf_struts/migration_7.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <itemizedlist>
+ <listitem><para>In the <emphasis><property>Project Folders</property></emphasis> screen, you can configure the rest of your project. Afterwards click on the <emphasis><property>Finish</property></emphasis> button.</para>
+ </listitem>
+ </itemizedlist>
+ <para>On this step JBoss Developer Studio will try to determine your project structure and set the values for: <emphasis><property>Classes Folder</property></emphasis>, <emphasis><property>Lib Folder</property></emphasis>, and <emphasis><property>Ant Build File</property></emphasis>. If your project has a custom structure, some values might not be set. If this is the case, you can manually set those values by clicking <emphasis><property>Change</property></emphasis>.</para>
+ <para>After dealing with these settings, you have to work through a few more configuration settings. These settings deal primarily with how the project will be deployed within JBoss Developer Studio.</para>
+ <para>First, if the project you are importing is not already a Struts project, select the <emphasis><property>Add Libraries</property></emphasis> check box to add all the Struts-related libraries to your project. </para>
+ <para>Then, you may select the Struts <emphasis><property>Environment</property></emphasis> and <emphasis><property>Servlet Version</property></emphasis>.</para>
+ <para>The <emphasis><property>Context Path</property></emphasis> is the name under which the application will be deployed. </para>
+ <para>The <emphasis><property>Runtime</property></emphasis> value tells Eclipse where to find Web libraries in order to build the project. It is not possible to finish the importing of a project without selecting a Runtime. If you don't have any choices displayed for this, select<emphasis><property> New...</property></emphasis> to add a new Runtime.</para>
+ <para>Finally, <emphasis><property>Target Server</property></emphasis> sets the server to deploy the application under. The Target Server corresponds to the Runtime value selected above. If you don't want to deploy the application, uncheck this value.</para>
+
+
+ <figure>
+ <title>The Project Folders Screen</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/jsf_struts/migration_8.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <itemizedlist>
+ <listitem><para>Once the project is imported, it will appear in the Package Explorer view.</para></listitem>
+ </itemizedlist>
+
+ <figure>
+ <title>Imported Project in the Package Explorer View</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/jsf_struts/migration_9.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ </section>
+</chapter>
Added: branches/jbosstools-3.1.x/documentation/guides/Exadel-migration/en-US/jsf_struts_war.xml
===================================================================
--- branches/jbosstools-3.1.x/documentation/guides/Exadel-migration/en-US/jsf_struts_war.xml (rev 0)
+++ branches/jbosstools-3.1.x/documentation/guides/Exadel-migration/en-US/jsf_struts_war.xml 2010-03-11 23:39:53 UTC (rev 20770)
@@ -0,0 +1,157 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<chapter id="jsf_struts_war" xreflabel="jsf_struts_war">
+ <?dbhtml filename="jsf_struts_war.html"?>
+
+ <chapterinfo>
+ <keywordset>
+ <keyword>JBoss Developer Studio</keyword>
+
+ <keyword>JBDS</keyword>
+
+ <keyword>Exadel Studio Pro</keyword>
+ </keywordset>
+ </chapterinfo>
+
+ <title>Migrate JSF and Struts projects from *.war file</title>
+ <para>After you familiarized oneself with last chapter you can read this chapter. It looks as if you read in last chapter.</para>
+ <section id="jsf_war">
+ <title>JSF</title>
+
+ <itemizedlist>
+ <listitem>
+ <para>Select <emphasis><property>File > Import...</property></emphasis> from the menu bar, and then select
+ <emphasis><property>Other > JSF Project From *.war</property></emphasis> from the Import dialog box that
+ appears.</para>
+ </listitem>
+ </itemizedlist>
+
+ <figure>
+ <title>Selecting the Import Menu Item</title>
+
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/jsf_struts_war/migration_war_1.png" />
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <figure>
+ <title>Selecting the JSF Project From *.war Import Wizard</title>
+
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/jsf_struts_war/migration_war_2.png" />
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <itemizedlist>
+ <listitem>
+ <para>In the wizard screen, select the <emphasis><property>Change...</property></emphasis> button next to
+ the <emphasis><property>*.war Location</property></emphasis> field. Browse to the location of the *.war file for
+ the application you want to import as a JSF project. Once you select
+ it, you'll be returned to the dialog box to see a project name
+ derived from the *.war file you selected. You can edit this name, if
+ you wish.</para>
+
+ <para>Uncheck the <emphasis><property>Use Default Path</property></emphasis> check box if you want to import
+ your project outside of the Eclipse workspace. In this case, you would
+ use <emphasis><property> Change... </property></emphasis> button next to the <emphasis><property>Location</property></emphasis> field to choose a
+ location.</para>
+
+ <para><emphasis><property>Context Path</property></emphasis> is the name under which the application will be
+ deployed.</para>
+
+ <para>The <emphasis><property>Runtime</property></emphasis> value tells Eclipse where to find Web libraries in
+ order to build the project. It is not possible to finish project
+ import without selecting Runtime. If you don't have any options
+ here, select <emphasis><property>New...</property></emphasis> to add a new Runtime.</para>
+
+ <para>Finally, <emphasis><property>Target Server</property></emphasis> sets the server to deploy the application
+ under. The Target Server corresponds to the Runtime value selected
+ above. If you don't want to deploy the application, uncheck this
+ value.</para>
+ </listitem>
+ </itemizedlist>
+
+ <figure>
+ <title>The JSF Project From *.war Import Wizard</title>
+
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/jsf_struts_war/migration_war_3.png" />
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <itemizedlist>
+ <listitem>
+ <para>Click on the <emphasis><property>Finish</property></emphasis> button.</para>
+ </listitem>
+ </itemizedlist>
+ </section>
+
+ <section id="struts_war">
+ <title>Struts</title>
+
+ <itemizedlist>
+ <listitem>
+ <para>Select <emphasis><property>File > Import...</property></emphasis> from the menu bar, and then select
+ <emphasis><property>Other > Struts Project From *.war</property></emphasis> from the Import dialog box that
+ appears.</para>
+ </listitem>
+ </itemizedlist>
+
+ <figure>
+ <title>Selecting the Import Menu Item</title>
+
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/jsf_struts_war/migration_war_1.png" />
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <figure>
+ <title>Selecting the Struts Project From *.war Import Wizard</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/jsf_struts_war/migration_war_4.png" />
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <itemizedlist>
+ <listitem>
+ <para>Follow the same steps as with the JSF Project From <property>*.war</property> import
+ wizard.</para>
+ </listitem>
+ </itemizedlist>
+
+ <figure>
+ <title>The Struts Project From *.war Import Wizard</title>
+
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/jsf_struts_war/migration_war_5.png" />
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <itemizedlist>
+ <listitem>
+ <para>Click on the <emphasis><property>Finish</property></emphasis> button.</para>
+ </listitem>
+ </itemizedlist>
+ <para>The migration process is completed</para>
+
+ <para>If there's anything we didn't cover or you can't figure
+ out, please feel free to visit our <ulink
+ url="http://www.jboss.com/index.html?module=bb&op=viewforum&f=258"
+ >JBoss Developer Studio Users Forum</ulink> or <ulink
+ url="http://www.jboss.com/index.html?module=bb&op=viewforum&f=201"
+ >JBoss Tools Users Forum</ulink> to ask questions. There we are also looking for
+ your suggestions and comments.</para>
+ </section>
+
+</chapter>
\ No newline at end of file
Added: branches/jbosstools-3.1.x/documentation/guides/Exadel-migration/en-US/master.xml
===================================================================
--- branches/jbosstools-3.1.x/documentation/guides/Exadel-migration/en-US/master.xml (rev 0)
+++ branches/jbosstools-3.1.x/documentation/guides/Exadel-migration/en-US/master.xml 2010-03-11 23:39:53 UTC (rev 20770)
@@ -0,0 +1,58 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+"http://www.docbook.org/xml/4.3/docbookx.dtd"
+
+[<!ENTITY jsf_struts SYSTEM "jsf_struts.xml">
+<!ENTITY jsf_struts_war SYSTEM "jsf_struts_war.xml">
+<!ENTITY introduction SYSTEM "introduction.xml">
+<!ENTITY workspace SYSTEM "workspace.xml">
+
+<!ENTITY seamlink "../../seam/html_single/index.html">
+<!ENTITY aslink "../../as/html_single/index.html">
+<!ENTITY esblink "../../esb_ref_guide/html_single/index.html">
+<!ENTITY gsglink "../../GettingStartedGuide/html_single/index.html">
+<!ENTITY hibernatelink "../../hibernatetools/html_single/index.html">
+<!ENTITY jbpmlink "../../jbpm/html_single/index.html">
+<!ENTITY jsflink "../../jsf/html_single/index.html">
+<!ENTITY jsfreflink "../../jsf_tools_ref_guide/html_single/index.html">
+<!ENTITY jsftutoriallink "../../jsf_tools_tutorial/html_single/index.html">
+<!ENTITY strutsreflink "../../struts_tools_ref_guide/html_single/index.html">
+<!ENTITY strutstutoriallink "../../struts_tools_tutorial/html_single/index.html">
+<!ENTITY migrationlink "../../Exadel-migration/html_single/index.html">
+
+]>
+
+<book>
+ <bookinfo>
+ <title>Exadel Studio Migration Guide</title>
+
+
+ <copyright>
+ <year>2007</year>
+ <year>2008</year>
+ <year>2009</year>
+ <year>2010</year>
+ <holder>JBoss by Red Hat</holder>
+ </copyright>
+ <releaseinfo>
+Version: 3.0.0.GA
+</releaseinfo>
+
+<abstract>
+ <title/>
+ <para>
+ <ulink url="http://download.jboss.org/jbosstools/nightly-docs/en/Exadel-migration/pdf...">PDF version</ulink>
+ </para>
+</abstract>
+
+
+ </bookinfo>
+
+ <toc/>
+&introduction;
+&workspace;
+&jsf_struts;
+&jsf_struts_war;
+
+
+</book>
Added: branches/jbosstools-3.1.x/documentation/guides/Exadel-migration/en-US/master_output.xml
===================================================================
--- branches/jbosstools-3.1.x/documentation/guides/Exadel-migration/en-US/master_output.xml (rev 0)
+++ branches/jbosstools-3.1.x/documentation/guides/Exadel-migration/en-US/master_output.xml 2010-03-11 23:39:53 UTC (rev 20770)
@@ -0,0 +1,479 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+"http://www.docbook.org/xml/4.3/docbookx.dtd"
+
+[<!ENTITY jsf_struts SYSTEM "modules/jsf_struts.xml">
+<!ENTITY jsf_struts_war SYSTEM "modules/jsf_struts_war.xml">
+<!ENTITY introduction SYSTEM "modules/introduction.xml">
+<!ENTITY workspace SYSTEM "modules/workspace.xml">
+
+<!ENTITY seamlink "../../seam/html_single/index.html">
+<!ENTITY aslink "../../as/html_single/index.html">
+<!ENTITY esblink "../../esb_ref_guide/html_single/index.html">
+<!ENTITY gsglink "../../GettingStartedGuide/html_single/index.html">
+<!ENTITY hibernatelink "../../hibernatetools/html_single/index.html">
+<!ENTITY jbpmlink "../../jbpm/html_single/index.html">
+<!ENTITY jsflink "../../jsf/html_single/index.html">
+<!ENTITY jsfreflink "../../jsf_tools_ref_guide/html_single/index.html">
+<!ENTITY jsftutoriallink "../../jsf_tools_tutorial/html_single/index.html">
+<!ENTITY strutsreflink "../../struts_tools_ref_guide/html_single/index.html">
+<!ENTITY strutstutoriallink "../../struts_tools_tutorial/html_single/index.html">
+<!ENTITY migrationlink "../../Exadel-migration/html_single/index.html">
+
+]><book xmlns:diffmk="http://diffmk.sf.net/ns/diff">
+ <bookinfo>
+ <title>Exadel Studio Migration Guide</title>
+
+
+ <copyright>
+ <year>2007</year>
+ <year>2008</year>
+ <year>2009</year>
+ <year>2010</year>
+ <holder>JBoss by Red Hat</holder>
+ </copyright>
+ <releaseinfo>
+Version: 3.0.0.GA
+</releaseinfo>
+
+<abstract>
+ <title></title>
+ <para>
+ <ulink url="http://download.jboss.org/jbosstools/nightly-docs/en/Exadel-migration/pdf...">PDF version</ulink>
+ </para>
+</abstract>
+
+
+ </bookinfo>
+
+ <toc></toc>
+
+<chapter id="introduction" xml:base="file:///home/vchukhutsina/repos/ochik_jboss/documentation/guides/Exadel-migration/en/modules/introduction.xml" xreflabel="introduction">
+ <?dbhtml filename="introduction.html"?>
+ <chapterinfo>
+ <keywordset>
+ <keyword>JBoss Developer Studio</keyword>
+ <keyword>JBDS</keyword>
+ <keyword>Exadel Studio Pro</keyword>
+ </keywordset>
+ </chapterinfo>
+
+ <title>Introduction </title>
+ <para>This document is intended to help you to migrate an existing Exadel JSF or Struts projects
+ into <property moreinfo="none">JBoss Developer Studio</property>. Preferences can be exported from Eclipse 3.2.0
+ (3.2.1 or 3.2.2) and imported in Eclipse 3.4.x by the standard Eclipse means.</para>
+
+ <section>
+ <title>Key Features of Projects Migration to JBoss Developer Studio</title>
+ <para>For a start, we propose you to look through the table of main features of migrating projects to JBoss Developer Studio:</para>
+
+ <table>
+
+ <title>Key Features of Project Migration to JBoss Developer Studio</title>
+ <tgroup cols="3">
+
+ <colspec align="left" colnum="1" colwidth="2*"></colspec>
+ <colspec colnum="2" colwidth="4*"></colspec>
+ <colspec align="left" colnum="3" colwidth="2*"></colspec>
+
+ <thead>
+ <row>
+ <entry>Feature</entry>
+ <entry>Benefit</entry>
+ <entry>Chapter</entry>
+ </row>
+ </thead>
+
+ <tbody>
+
+ <row>
+ <entry><para>Import JSF Project Wizard</para></entry>
+ <entry><para>It simplifies the process of bringing your existing JSF applications into your JBoss Developer Studio workspace as JSF projects. The import is possible with *.war files.</para></entry>
+ <entry>
+ <link linkend="import_jsf">Migration of JSF project</link> and <link linkend="jsf_war">Migration of JSF project from *.war file</link>
+ </entry>
+ </row>
+
+ <row>
+ <entry><para>Import Struts Project Wizard</para></entry>
+ <entry><para>It simplifies the process of bringing your existing Struts applications into your JBoss Developer Studio workspace as Struts projects. The import is possible with *.war files.</para></entry>
+ <entry>
+ <link linkend="struts_import">Migration of Struts project</link> and <link linkend="struts_war">Migration of Struts project from *.war file</link>
+ </entry>
+ </row>
+
+ </tbody>
+
+ </tgroup>
+ </table>
+
+ </section>
+
+ <section>
+ <title>Other relevant resources on the topic</title>
+ <para>All JBoss Developer Studio/JBoss Tools release documentation you can find at<ulink url="http://docs.jboss.org/tools/">http://docs.jboss.org/tools</ulink> in the corresponding release directory.</para>
+ <para>The latest documentation builds are available at <ulink url="http://download.jboss.org/jbosstools/nightly-docs/">http://download.jboss.org/jbosstools/nightly-docs</ulink>.</para>
+
+ </section>
+
+</chapter>
+
+
+<chapter id="workspace" xml:base="file:///home/vchukhutsina/repos/ochik_jboss/documentation/guides/Exadel-migration/en/modules/workspace.xml" xreflabel="workspace">
+ <?dbhtml filename="workspace.html"?>
+ <chapterinfo>
+ <keywordset>
+ <keyword>JBoss Developer Studio</keyword>
+ <keyword>JBDS</keyword>
+ <keyword>Exadel Studio Pro</keyword>
+ </keywordset>
+ </chapterinfo>
+
+ <title>Migrate workspace</title>
+ <para>You will not be able to run projects in JBoss Developer Studio
+ using <property moreinfo="none">Exadel Studio workspace</property>. In this case, project capabilities and settings specified in Exadel Studio will be lost. The simplest way to avoid this, is to copy your projects in <property moreinfo="none">JBoss Developer Studio workspace</property> and make an import as it is described in the following chapters.</para>
+</chapter>
+
+
+<chapter id="jsf_struts" xml:base="file:///home/vchukhutsina/repos/ochik_jboss/documentation/guides/Exadel-migration/en/modules/jsf_struts.xml" xreflabel="jsf_struts">
+ <?dbhtml filename="jsf_struts.html"?>
+ <chapterinfo>
+ <keywordset>
+ <keyword>JBoss Developer Studio</keyword>
+ <keyword>JBDS</keyword>
+ <keyword>Exadel Studio Pro</keyword>
+ <keyword>Migration</keyword>
+ </keywordset>
+ </chapterinfo>
+
+ <title>Migration of JSF and Struts Projects</title>
+ <para>In this chapter you can find concise description of migration of JSF and Struts Projects.</para>
+ <section id="import_jsf">
+ <title>JSF</title>
+ <para>JBoss Developer Studio includes an Import <property moreinfo="none">JSF Project</property> Wizard that radically simplifies the process of bringing your existing JSF applications
+ into your JBoss Developer Studio workspace as JSF projects. You just need to follow these four steps:</para>
+ <itemizedlist>
+ <listitem><para><emphasis><property moreinfo="none">Select File > Import...</property></emphasis> from the menu bar, and then select <emphasis><property moreinfo="none">Other > JSF Project </property></emphasis>from the Import dialog box that appears.</para></listitem>
+ </itemizedlist>
+
+ <figure float="0">
+ <title>Selecting the Import Menu Item</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/jsf_struts/migration_1.png"></imagedata>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <figure float="0">
+ <title>Selecting the Import JSF Project Wizard</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/jsf_struts/migration_2.png"></imagedata>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <itemizedlist>
+ <listitem><para>In the first screen of the wizard, select the <emphasis><property moreinfo="none">Change...</property></emphasis> button next to the <emphasis><property moreinfo="none">web.xml Location</property></emphasis> field. Browse to the location of the web.xml file for the application you
+ want to import as a <property moreinfo="none">JSF project</property>. Once you select it, you'll be returned to the dialog box to see a project name derived from the web.xml file you selected.
+ You can edit this project name, if you wish.</para></listitem>
+ </itemizedlist>
+
+ <figure float="0">
+ <title>Selecting the Web.xml File in the Project Location Screen</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/jsf_struts/migration_3.png"></imagedata>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <itemizedlist id="import_jsf_screen">
+ <listitem><para>In the <emphasis><property moreinfo="none">Project Folders</property></emphasis> screen, you can configure the rest of your project. Afterwards click on the <emphasis><property moreinfo="none">Finish</property></emphasis> button.</para></listitem>
+ </itemizedlist>
+ <para>On this step JBoss Developer Studio will try to determine your project
+ structure and set the values for: <emphasis><property moreinfo="none">Web Root</property></emphasis>, <emphasis><property moreinfo="none">Source Folder</property></emphasis>, <emphasis><property moreinfo="none">Classes Folder</property></emphasis>, <emphasis><property moreinfo="none">Lib Folder</property></emphasis>. If your project has a custom structure, some values might not be
+ set. If this is the case, you can manually set those values by clicking the <emphasis><property moreinfo="none">Change...</property></emphasis> button.</para>
+ <para>After dealing with these settings, you have to work through a few more configuration settings. These settings deal primarily with how the project will be deployed within JBoss Developer Studio.</para>
+ <para>First, if the project you are importing is not already a JSF project, select the <emphasis><property moreinfo="none">Add Libraries</property></emphasis> check box to add all the JSF-related libraries to your project. </para>
+ <para>Then, you may select the JavaServer Faces implementation (<emphasis><property moreinfo="none">Environment</property></emphasis>) and <emphasis><property moreinfo="none">Servlet Version</property></emphasis>.</para>
+ <para>The <emphasis><property moreinfo="none">Context Path</property></emphasis> is the name under which the application will be deployed. </para>
+ <para>The <emphasis><property moreinfo="none">Runtime</property></emphasis> value tells Eclipse where to find Web libraries in order to build the project. It is not possible to finish the importing of a project without selecting a Runtime. If you don't have any choices displayed for this, select <emphasis><property moreinfo="none">New...</property></emphasis> to add a new Runtime.</para>
+ <para>Finally, <emphasis><property moreinfo="none">Target Server</property></emphasis> sets the server to deploy the application under. The Target Server corresponds to the Runtime value selected above. If you don't want to deploy the application, uncheck this value.</para>
+
+
+ <figure float="0">
+ <title>The Project Folders Screen</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/jsf_struts/migration_4.png"></imagedata>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <itemizedlist>
+ <listitem><para>Once the project is imported, it will appear in the Package Explorer view.</para></listitem>
+ </itemizedlist>
+
+ <figure float="0">
+ <title>Imported Project in the Package Explorer View</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/jsf_struts/migration_5.png"></imagedata>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ </section>
+ <section id="struts_import">
+ <title>Struts</title>
+ <itemizedlist>
+ <listitem><para><emphasis><property moreinfo="none">Select File > Import...</property></emphasis> from the menu bar, and then select <emphasis><property moreinfo="none">Other > Struts Project</property></emphasis> from the Import dialog box that appears.</para></listitem>
+ </itemizedlist>
+
+ <figure float="0">
+ <title>Selecting the Import Menu Item</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/jsf_struts/migration_1.png"></imagedata>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <figure float="0">
+ <title>Selecting the Import Struts Project Wizard</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/jsf_struts/migration_6.png"></imagedata>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <itemizedlist>
+ <listitem><para>In the Project Location screen of the wizard, select the <emphasis><property moreinfo="none">Change... </property></emphasis>button next to the <emphasis><property moreinfo="none">web.xml Location</property></emphasis> field. Browse the location of the web.xml file for the application you
+ want to import as a <property moreinfo="none">Struts project</property>. Once you select it, you'll be returned to the dialog box to see a project name derived from the web.xml file you selected.
+ You can edit this project name, if you wish.</para></listitem>
+ </itemizedlist>
+
+ <figure float="0">
+ <title>The Project Location Screen</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/jsf_struts/migration_10.png"></imagedata>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <itemizedlist>
+ <listitem><para>In the next screen, JBoss Developer Studio will try to determine your project structure. The upper pane shows the modules in this project.
+ The lower pane allows you to edit the details of the select module. If the project structure is non-standard, some values might be left blank.
+ You can edit any values by hand or by using the <emphasis><property moreinfo="none">Change...</property></emphasis> button.</para></listitem>
+ </itemizedlist>
+
+ <figure float="0">
+ <title>The Project Modules Screen</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/jsf_struts/migration_7.png"></imagedata>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <itemizedlist>
+ <listitem><para>In the <emphasis><property moreinfo="none">Project Folders</property></emphasis> screen, you can configure the rest of your project. Afterwards click on the <emphasis><property moreinfo="none">Finish</property></emphasis> button.</para>
+ </listitem>
+ </itemizedlist>
+ <para>On this step JBoss Developer Studio will try to determine your project structure and set the values for: <emphasis><property moreinfo="none">Classes Folder</property></emphasis>, <emphasis><property moreinfo="none">Lib Folder</property></emphasis>, and <emphasis><property moreinfo="none">Ant Build File</property></emphasis>. If your project has a custom structure, some values might not be set. If this is the case, you can manually set those values by clicking <emphasis><property moreinfo="none">Change</property></emphasis>.</para>
+ <para>After dealing with these settings, you have to work through a few more configuration settings. These settings deal primarily with how the project will be deployed within JBoss Developer Studio.</para>
+ <para>First, if the project you are importing is not already a Struts project, select the <emphasis><property moreinfo="none">Add Libraries</property></emphasis> check box to add all the Struts-related libraries to your project. </para>
+ <para>Then, you may select the Struts <emphasis><property moreinfo="none">Environment</property></emphasis> and <emphasis><property moreinfo="none">Servlet Version</property></emphasis>.</para>
+ <para>The <emphasis><property moreinfo="none">Context Path</property></emphasis> is the name under which the application will be deployed. </para>
+ <para>The <emphasis><property moreinfo="none">Runtime</property></emphasis> value tells Eclipse where to find Web libraries in order to build the project. It is not possible to finish the importing of a project without selecting a Runtime. If you don't have any choices displayed for this, select<emphasis><property moreinfo="none"> New...</property></emphasis> to add a new Runtime.</para>
+ <para>Finally, <emphasis><property moreinfo="none">Target Server</property></emphasis> sets the server to deploy the application under. The Target Server corresponds to the Runtime value selected above. If you don't want to deploy the application, uncheck this value.</para>
+
+
+ <figure float="0">
+ <title>The Project Folders Screen</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/jsf_struts/migration_8.png"></imagedata>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <itemizedlist>
+ <listitem><para>Once the project is imported, it will appear in the Package Explorer view.</para></listitem>
+ </itemizedlist>
+
+ <figure float="0">
+ <title>Imported Project in the Package Explorer View</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/jsf_struts/migration_9.png"></imagedata>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ </section>
+</chapter>
+
+
+<chapter id="jsf_struts_war" xml:base="file:///home/vchukhutsina/repos/ochik_jboss/documentation/guides/Exadel-migration/en/modules/jsf_struts_war.xml" xreflabel="jsf_struts_war">
+ <?dbhtml filename="jsf_struts_war.html"?>
+
+ <chapterinfo>
+ <keywordset>
+ <keyword>JBoss Developer Studio</keyword>
+
+ <keyword>JBDS</keyword>
+
+ <keyword>Exadel Studio Pro</keyword>
+ </keywordset>
+ </chapterinfo>
+
+ <title>Migrate JSF and Struts projects from *.war file</title>
+ <para>After you familiarized oneself with last chapter you can read this chapter. It looks as if you read in last chapter.</para>
+ <section id="jsf_war">
+ <title>JSF</title>
+
+ <itemizedlist>
+ <listitem>
+ <para>Select <emphasis><property moreinfo="none">File > Import...</property></emphasis> from the menu bar, and then select
+ <emphasis><property moreinfo="none">Other > JSF Project From *.war</property></emphasis> from the Import dialog box that
+ appears.</para>
+ </listitem>
+ </itemizedlist>
+
+ <figure float="0">
+ <title>Selecting the Import Menu Item</title>
+
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/jsf_struts_war/migration_war_1.png"></imagedata>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <figure float="0">
+ <title>Selecting the JSF Project From *.war Import Wizard</title>
+
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/jsf_struts_war/migration_war_2.png"></imagedata>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <itemizedlist>
+ <listitem>
+ <para>In the wizard screen, select the <emphasis><property moreinfo="none">Change...</property></emphasis> button next to
+ the <emphasis><property moreinfo="none">*.war Location</property></emphasis> field. Browse to the location of the *.war file for
+ the application you want to import as a JSF project. Once you select
+ it, you'll be returned to the dialog box to see a project name
+ derived from the *.war file you selected. You can edit this name, if
+ you wish.</para>
+
+ <para>Uncheck the <emphasis><property moreinfo="none">Use Default Path</property></emphasis> check box if you want to import
+ your project outside of the Eclipse workspace. In this case, you would
+ use <emphasis><property moreinfo="none"> Change... </property></emphasis> button next to the <emphasis><property moreinfo="none">Location</property></emphasis> field to choose a
+ location.</para>
+
+ <para><emphasis><property moreinfo="none">Context Path</property></emphasis> is the name under which the application will be
+ deployed.</para>
+
+ <para>The <emphasis><property moreinfo="none">Runtime</property></emphasis> value tells Eclipse where to find Web libraries in
+ order to build the project. It is not possible to finish project
+ import without selecting Runtime. If you don't have any options
+ here, select <emphasis><property moreinfo="none">New...</property></emphasis> to add a new Runtime.</para>
+
+ <para>Finally, <emphasis><property moreinfo="none">Target Server</property></emphasis> sets the server to deploy the application
+ under. The Target Server corresponds to the Runtime value selected
+ above. If you don't want to deploy the application, uncheck this
+ value.</para>
+ </listitem>
+ </itemizedlist>
+
+ <figure float="0">
+ <title>The JSF Project From *.war Import Wizard</title>
+
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/jsf_struts_war/migration_war_3.png"></imagedata>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <itemizedlist>
+ <listitem>
+ <para>Click on the <emphasis><property moreinfo="none">Finish</property></emphasis> button.</para>
+ </listitem>
+ </itemizedlist>
+ </section>
+
+ <section id="struts_war">
+ <title>Struts</title>
+
+ <itemizedlist>
+ <listitem>
+ <para>Select <emphasis><property moreinfo="none">File > Import...</property></emphasis> from the menu bar, and then select
+ <emphasis><property moreinfo="none">Other > Struts Project From *.war</property></emphasis> from the Import dialog box that
+ appears.</para>
+ </listitem>
+ </itemizedlist>
+
+ <figure float="0">
+ <title>Selecting the Import Menu Item</title>
+
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/jsf_struts_war/migration_war_1.png"></imagedata>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <figure float="0">
+ <title>Selecting the Struts Project From *.war Import Wizard</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/jsf_struts_war/migration_war_4.png"></imagedata>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <itemizedlist>
+ <listitem>
+ <para>Follow the same steps as with the JSF Project From <property moreinfo="none">*.war</property> import
+ wizard.</para>
+ </listitem>
+ </itemizedlist>
+
+ <figure float="0">
+ <title>The Struts Project From *.war Import Wizard</title>
+
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/jsf_struts_war/migration_war_5.png"></imagedata>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <itemizedlist>
+ <listitem>
+ <para>Click on the <emphasis><property moreinfo="none">Finish</property></emphasis> button.</para>
+ </listitem>
+ </itemizedlist>
+ <para>The migration process is completed</para>
+
+ <para>If there's anything we didn't cover or you can't figure
+ out, please feel free to visit our
+ <ulink url="http://www.jboss.com/index.html?module=bb&op=viewforum&f=258">
+ JBoss Developer Studio Users Forum</ulink> or
+ <ulink url="http://www.jboss.com/index.html?module=bb&op=viewforum&f=201">JBoss Tools Users Forum</ulink> to ask questions. There we are also looking for
+ your suggestions and comments.</para>
+ </section>
+
+</chapter>
+
+
+</book>
Added: branches/jbosstools-3.1.x/documentation/guides/Exadel-migration/en-US/workspace.xml
===================================================================
--- branches/jbosstools-3.1.x/documentation/guides/Exadel-migration/en-US/workspace.xml (rev 0)
+++ branches/jbosstools-3.1.x/documentation/guides/Exadel-migration/en-US/workspace.xml 2010-03-11 23:39:53 UTC (rev 20770)
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<chapter id="workspace" xreflabel="workspace">
+ <?dbhtml filename="workspace.html"?>
+ <chapterinfo>
+ <keywordset>
+ <keyword>JBoss Developer Studio</keyword>
+ <keyword>JBDS</keyword>
+ <keyword>Exadel Studio Pro</keyword>
+ </keywordset>
+ </chapterinfo>
+
+ <title>Migrate workspace</title>
+ <para>You will not be able to run projects in JBoss Developer Studio
+ using <property>Exadel Studio workspace</property>. In this case, project capabilities and settings specified in Exadel Studio will be lost. The simplest way to avoid this, is to copy your projects in <property>JBoss Developer Studio workspace</property> and make an import as it is described in the following chapters.</para>
+</chapter>
Modified: branches/jbosstools-3.1.x/documentation/guides/Exadel-migration/pom.xml
===================================================================
--- branches/jbosstools-3.1.x/documentation/guides/Exadel-migration/pom.xml 2010-03-11 18:01:41 UTC (rev 20769)
+++ branches/jbosstools-3.1.x/documentation/guides/Exadel-migration/pom.xml 2010-03-11 23:39:53 UTC (rev 20770)
@@ -32,7 +32,7 @@
<profile>
<id>releaseJBDS</id>
<properties>
- <master>master.xml</master>
+ <master>master_output.xml</master>
<xsl-single>classpath:/xslt/com/jboss/tools/xhtml-single-release.xsl</xsl-single>
<xsl-chunked>classpath:/xslt/com/jboss/tools/xhtml-release.xsl</xsl-chunked>
<xsl-pdf>classpath:/xslt/com/jboss/tools/pdf.xsl</xsl-pdf>
@@ -89,9 +89,9 @@
</dependencies>
<configuration>
<sourceDocumentName>${master}</sourceDocumentName>
- <sourceDirectory>${pom.basedir}/en</sourceDirectory>
+ <sourceDirectory>${pom.basedir}/en-US</sourceDirectory>
<imageResource>
- <directory>${pom.basedir}/en</directory>
+ <directory>${pom.basedir}/en-US</directory>
<includes>
<include>images/**/*</include>
</includes>
Added: branches/jbosstools-3.1.x/documentation/guides/Exadel-migration/publican.cfg
===================================================================
--- branches/jbosstools-3.1.x/documentation/guides/Exadel-migration/publican.cfg (rev 0)
+++ branches/jbosstools-3.1.x/documentation/guides/Exadel-migration/publican.cfg 2010-03-11 23:39:53 UTC (rev 20770)
@@ -0,0 +1,7 @@
+# Config::Simple 4.59
+# Fri Nov 20 13:19:45 2009
+
+xml_lang: en-US
+type: Book
+brand: JBoss
+
14 years, 3 months
JBoss Tools SVN: r20769 - trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/mozilla.
by jbosstools-commits@lists.jboss.org
Author: yradtsevich
Date: 2010-03-11 13:01:41 -0500 (Thu, 11 Mar 2010)
New Revision: 20769
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/mozilla/MozillaPreview.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-5042
Enhance DnD support in VPE
VPE Refactoring in progress.
- a call of super.dispose() has been added to MozillaPreview.dispose()
Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/mozilla/MozillaPreview.java
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/mozilla/MozillaPreview.java 2010-03-11 17:47:38 UTC (rev 20768)
+++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/mozilla/MozillaPreview.java 2010-03-11 18:01:41 UTC (rev 20769)
@@ -23,10 +23,9 @@
import org.jboss.tools.vpe.editor.bundle.BundleMap;
import org.jboss.tools.vpe.editor.context.VpePageContext;
import org.jboss.tools.vpe.editor.mapping.VpeDomMapping;
-import org.jboss.tools.vpe.editor.mozilla.listener.MozillaDndListener;
import org.jboss.tools.vpe.editor.mozilla.listener.EditorLoadWindowListener;
+import org.jboss.tools.vpe.editor.mozilla.listener.MozillaDndListener;
import org.jboss.tools.vpe.editor.template.VpeTemplateManager;
-import org.jboss.tools.vpe.xulrunner.editor.XulRunnerEditor;
/**
* a class implementation of mozilla preview
@@ -228,7 +227,6 @@
}
public void dispose() {
- setEditorDomEventListener(null);
setEditorLoadWindowListener(null);
contentAreaEventListener = null;
if (pageContext != null) {
@@ -243,7 +241,7 @@
sourceEditor=null;
editPart=null;
- //super.dispose();
+ super.dispose();
}
/* (non-Javadoc)
14 years, 3 months
JBoss Tools SVN: r20768 - workspace/Denny/esb-example-soa-p5.0.
by jbosstools-commits@lists.jboss.org
Author: bfitzpat
Date: 2010-03-11 12:47:38 -0500 (Thu, 11 Mar 2010)
New Revision: 20768
Modified:
workspace/Denny/esb-example-soa-p5.0/helloworld_action.zip
Log:
Updated helloworld_action sample project to reflect changes to ESB quickstart for https://jira.jboss.org/jira/browse/JBIDE-5659
Modified: workspace/Denny/esb-example-soa-p5.0/helloworld_action.zip
===================================================================
(Binary files differ)
14 years, 3 months
JBoss Tools SVN: r20767 - in trunk/jsf/plugins: org.jboss.tools.jsf.text.ext.facelets/src/org/jboss/tools/jsf/text/ext/facelets/hyperlink and 3 other directories.
by jbosstools-commits@lists.jboss.org
Author: dazarov
Date: 2010-03-11 12:33:49 -0500 (Thu, 11 Mar 2010)
New Revision: 20767
Added:
trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.facelets/src/org/jboss/tools/jsf/text/ext/facelets/hyperlink/FaceletsCSSClassHyperlink.java
trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.facelets/src/org/jboss/tools/jsf/text/ext/facelets/hyperlink/FaceletsCSSClassHyperlinkPartitioner.java
Removed:
trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/src/org/jboss/tools/jsf/text/ext/richfaces/hyperlink/RichfacesCSSClassHyperlink.java
trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/src/org/jboss/tools/jsf/text/ext/richfaces/hyperlink/RichfacesCSSClassHyperlinkPartitioner.java
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.facelets/plugin.xml
trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/META-INF/MANIFEST.MF
trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/plugin.xml
Log:
https://jira.jboss.org/jira/browse/JBIDE-5986
Modified: trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.facelets/plugin.xml
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.facelets/plugin.xml 2010-03-11 17:01:46 UTC (rev 20766)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.facelets/plugin.xml 2010-03-11 17:33:49 UTC (rev 20767)
@@ -107,6 +107,63 @@
</partitionType>
</contentType>
</hyperlinkPartitioner>
+
+ <hyperlinkPartitioner
+ id="org.jboss.tools.jsf.text.ext.facelets.hyperlink.FaceletsCSSClassHyperlinkPartitioner"
+ class="org.jboss.tools.jsf.text.ext.facelets.hyperlink.FaceletsCSSClassHyperlinkPartitioner">
+
+ <contentType id="org.eclipse.jst.jsp.core.jspsource">
+ <partitionType id="org.jboss.tools.common.text.ext.xml.XML_ATTRIBUTE_VALUE">
+ <axis path="*/[http://java.sun.com/jsf/html]:*/columnClasses/" />
+ <axis path="*/[http://java.sun.com/jsf/html]:*/footerClass/" />
+ <axis path="*/[http://java.sun.com/jsf/html]:*/headerClass/" />
+ <axis path="*/[http://java.sun.com/jsf/html]:*/rowClasses/" />
+ <axis path="*/[http://java.sun.com/jsf/html]:*/captionClass/" />
+ <axis path="*/[http://java.sun.com/jsf/html]:*/styleClass/" />
+ <axis path="*/[http://java.sun.com/jsf/html]:*/errorClass/" />
+ <axis path="*/[http://java.sun.com/jsf/html]:*/fatalClass/" />
+ <axis path="*/[http://java.sun.com/jsf/html]:*/infoClass/" />
+ <axis path="*/[http://java.sun.com/jsf/html]:*/warnClass/" />
+ <axis path="*/[http://java.sun.com/jsf/html]:*/disabledClass/" />
+ <axis path="*/[http://java.sun.com/jsf/html]:*/enabledClass/" />
+ </partitionType>
+ </contentType>
+ <contentType id="org.eclipse.wst.html.core.htmlsource">
+ <partitionType id="org.jboss.tools.common.text.ext.xml.XML_ATTRIBUTE_VALUE">
+ <axis path="*/[http://java.sun.com/jsf/html]:*/columnClasses/" />
+ <axis path="*/[http://java.sun.com/jsf/html]:*/footerClass/" />
+ <axis path="*/[http://java.sun.com/jsf/html]:*/headerClass/" />
+ <axis path="*/[http://java.sun.com/jsf/html]:*/rowClasses/" />
+ <axis path="*/[http://java.sun.com/jsf/html]:*/captionClass/" />
+ <axis path="*/[http://java.sun.com/jsf/html]:*/styleClass/" />
+ <axis path="*/[http://java.sun.com/jsf/html]:*/errorClass/" />
+ <axis path="*/[http://java.sun.com/jsf/html]:*/fatalClass/" />
+ <axis path="*/[http://java.sun.com/jsf/html]:*/infoClass/" />
+ <axis path="*/[http://java.sun.com/jsf/html]:*/warnClass/" />
+ <axis path="*/[http://java.sun.com/jsf/html]:*/disabledClass/" />
+ <axis path="*/[http://java.sun.com/jsf/html]:*/enabledClass/" />
+ </partitionType>
+ </contentType>
+ </hyperlinkPartitioner>
+
+ </extension>
+
+ <extension
+ point="org.jboss.tools.common.text.ext.hyperlink"
+ id="org.jboss.tools.common.text.ext.jsf.facelets.hyperlink"
+ name="org.jboss.tools.common.text.ext.jsf.facelets.hyperlink">
+
+ <hyperlink
+ class="org.jboss.tools.jsf.text.ext.facelets.hyperlink.FaceletsCSSClassHyperlink"
+ id="org.jboss.tools.jsf.text.ext.facelets.hyperlink.FaceletsCSSClassHyperlink">
+ <contenttypeidentifier id="org.eclipse.jst.jsp.core.jspsource">
+ <partitiontype id="org.jboss.tools.common.text.ext.FACELETS_CSS_CLASS" />
+ </contenttypeidentifier>
+ <contenttypeidentifier id="org.eclipse.wst.html.core.htmlsource">
+ <partitiontype id="org.jboss.tools.common.text.ext.FACELETS_CSS_CLASS" />
+ </contenttypeidentifier>
+ </hyperlink>
+
</extension>
<extension point="org.jboss.tools.jst.web.kb.KbIncludeContext">
Added: trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.facelets/src/org/jboss/tools/jsf/text/ext/facelets/hyperlink/FaceletsCSSClassHyperlink.java
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.facelets/src/org/jboss/tools/jsf/text/ext/facelets/hyperlink/FaceletsCSSClassHyperlink.java (rev 0)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.facelets/src/org/jboss/tools/jsf/text/ext/facelets/hyperlink/FaceletsCSSClassHyperlink.java 2010-03-11 17:33:49 UTC (rev 20767)
@@ -0,0 +1,37 @@
+/*******************************************************************************
+ * Copyright (c) 2009 Exadel, Inc. and Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Exadel, Inc. and Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+
+package org.jboss.tools.jsf.text.ext.facelets.hyperlink;
+
+import java.text.MessageFormat;
+
+import org.jboss.tools.common.text.ext.hyperlink.xpl.Messages;
+import org.jboss.tools.jst.text.ext.hyperlink.CSSClassHyperlink;
+
+/**
+ *
+ * @author Victor Rubezhny
+ *
+ */
+public class FaceletsCSSClassHyperlink extends CSSClassHyperlink {
+ /*
+ * (non-Javadoc)
+ *
+ * @see IHyperlink#getHyperlinkText()
+ */
+ public String getHyperlinkText() {
+ String styleName = getStyleName(fLastRegion);
+ if (styleName == null)
+ return MessageFormat.format(Messages.OpenA, Messages.CSSStyle);
+
+ return MessageFormat.format(Messages.OpenCSSStyle, styleName);
+ }
+}
Added: trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.facelets/src/org/jboss/tools/jsf/text/ext/facelets/hyperlink/FaceletsCSSClassHyperlinkPartitioner.java
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.facelets/src/org/jboss/tools/jsf/text/ext/facelets/hyperlink/FaceletsCSSClassHyperlinkPartitioner.java (rev 0)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.facelets/src/org/jboss/tools/jsf/text/ext/facelets/hyperlink/FaceletsCSSClassHyperlinkPartitioner.java 2010-03-11 17:33:49 UTC (rev 20767)
@@ -0,0 +1,40 @@
+/*******************************************************************************
+ * Copyright (c) 2009 Exadel, Inc. and Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Exadel, Inc. and Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+
+package org.jboss.tools.jsf.text.ext.facelets.hyperlink;
+
+import org.eclipse.jface.text.IDocument;
+import org.jboss.tools.common.text.ext.hyperlink.IHyperlinkRegion;
+import org.jboss.tools.jst.text.ext.hyperlink.CSSClassHyperlinkPartitioner;
+
+/**
+ *
+ * @author Victor Rubezhny
+ *
+ */
+public class FaceletsCSSClassHyperlinkPartitioner extends CSSClassHyperlinkPartitioner {
+ public static final String FACELETS_CSS_CLASS_PARTITION = "org.jboss.tools.common.text.ext.FACELETS_CSS_CLASS"; //$NON-NLS-1$
+
+
+ @Override
+ public boolean recognize(IDocument document, IHyperlinkRegion region) {
+ if (region.getAxis() != null){
+ return true;
+ }
+ return false;
+ }
+
+ @Override
+ protected String getPartitionType(String axis) {
+ return FACELETS_CSS_CLASS_PARTITION;
+ }
+
+}
Modified: trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/META-INF/MANIFEST.MF
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/META-INF/MANIFEST.MF 2010-03-11 17:01:46 UTC (rev 20766)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/META-INF/MANIFEST.MF 2010-03-11 17:33:49 UTC (rev 20767)
@@ -15,7 +15,8 @@
org.jboss.tools.jst.web;bundle-version="2.0.0",
org.jboss.tools.jst.web.kb;bundle-version="1.0.0",
org.eclipse.wst.css.core;bundle-version="1.1.300",
- org.jboss.tools.common.el.core;bundle-version="2.0.0"
+ org.jboss.tools.common.el.core;bundle-version="2.0.0",
+ org.jboss.tools.jsf.text.ext.facelets;bundle-version="2.0.0"
Export-Package: org.jboss.tools.jsf.text.ext.richfaces,
org.jboss.tools.jsf.text.ext.richfaces.hyperlink
Bundle-Version: 2.0.0
Modified: trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/plugin.xml
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/plugin.xml 2010-03-11 17:01:46 UTC (rev 20766)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/plugin.xml 2010-03-11 17:33:49 UTC (rev 20767)
@@ -315,14 +315,200 @@
</hyperlinkPartitioner>
<hyperlinkPartitioner
- id="org.jboss.tools.jsf.text.ext.richfaces.hyperlink.RichfacesCSSClassHyperlinkPartitioner"
- class="org.jboss.tools.jsf.text.ext.richfaces.hyperlink.RichfacesCSSClassHyperlinkPartitioner">
+ id="org.jboss.tools.jsf.text.ext.richfaces.hyperlink.FaceletsCSSClassHyperlinkPartitioner"
+ class="org.jboss.tools.jsf.text.ext.facelets.hyperlink.FaceletsCSSClassHyperlinkPartitioner">
<contentType id="org.eclipse.jst.jsp.core.jspsource">
<partitionType id="org.jboss.tools.common.text.ext.xml.XML_ATTRIBUTE_VALUE">
+ <axis path="*/[http://richfaces.org/rich]:*/addButtonClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/activeClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/activeTabClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/buttonClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/buttonDisabledClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/buttonInactiveClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/barClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/bottomControlClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/bodyClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/columnClasses/" />
+ <axis path="*/[http://richfaces.org/rich]:*/controlClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/controlsClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/controlHoverClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/controlPressedClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/controlPressClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/cleanButtonClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/changedClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/changedHoverClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/copyAllControlClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/copyControlClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/contentClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/completeClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/dayStyleClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/decreaseClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/decreaseSelectedClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/disabledItemClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/disabledControlClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/downControlClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/disabledGroupClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/disabledClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/errorClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/errorLabelClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/errorMarkerClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/entryClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/footerClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/fileEntryClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/fileEntryControlClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/fatalClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/fatalLabelClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/fatalMarkerClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/finishClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/headerClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/handleClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/handleSelectedClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/hoveredGroupClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/hoveredItemClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/highlightedClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/inputClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/inputDisabledClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/inputInactiveClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/itemClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/itemSelectedClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/increaseClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/increaseSelectedClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/iconClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/infoClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/infoLabelClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/infoMarkerClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/initialClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/listClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/labelClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/popupClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/rowClasses/" />
+ <axis path="*/[http://richfaces.org/rich]:*/removeAllControlClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/removeControlClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/remainClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/styleClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/selectItemClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/stopButtonClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/selectClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/sidebarClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/selectedClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/selectValueClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/separatorClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/uploadButtonClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/uploadListClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/upControlClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/editClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/viewClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/viewHoverClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/tipClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/topControlClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/topGroupClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/topItemClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/tabClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/markerClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/warnClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/warnLabelClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/warnMarkerClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/groupClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/disabledTabClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/inactiveTabClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/nodeClass/" />
</partitionType>
</contentType>
<contentType id="org.eclipse.wst.html.core.htmlsource">
<partitionType id="org.jboss.tools.common.text.ext.xml.XML_ATTRIBUTE_VALUE">
+ <axis path="*/[http://richfaces.org/rich]:*/addButtonClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/activeClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/activeTabClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/buttonClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/buttonDisabledClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/buttonInactiveClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/barClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/bottomControlClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/bodyClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/columnClasses/" />
+ <axis path="*/[http://richfaces.org/rich]:*/controlClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/controlsClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/controlHoverClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/controlPressedClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/controlPressClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/cleanButtonClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/changedClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/changedHoverClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/copyAllControlClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/copyControlClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/contentClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/completeClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/dayStyleClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/decreaseClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/decreaseSelectedClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/disabledItemClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/disabledControlClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/downControlClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/disabledGroupClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/disabledClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/errorClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/errorLabelClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/errorMarkerClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/entryClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/footerClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/fileEntryClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/fileEntryControlClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/fatalClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/fatalLabelClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/fatalMarkerClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/finishClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/headerClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/handleClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/handleSelectedClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/hoveredGroupClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/hoveredItemClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/highlightedClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/inputClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/inputDisabledClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/inputInactiveClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/itemClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/itemSelectedClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/increaseClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/increaseSelectedClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/iconClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/infoClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/infoLabelClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/infoMarkerClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/initialClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/listClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/labelClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/popupClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/rowClasses/" />
+ <axis path="*/[http://richfaces.org/rich]:*/removeAllControlClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/removeControlClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/remainClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/styleClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/selectItemClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/stopButtonClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/selectClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/sidebarClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/selectedClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/selectValueClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/separatorClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/uploadButtonClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/uploadListClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/upControlClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/editClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/viewClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/viewHoverClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/tipClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/topControlClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/topGroupClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/topItemClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/tabClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/markerClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/warnClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/warnLabelClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/warnMarkerClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/groupClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/disabledTabClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/inactiveTabClass/" />
+ <axis path="*/[http://richfaces.org/rich]:*/nodeClass/" />
</partitionType>
</contentType>
</hyperlinkPartitioner>
@@ -356,16 +542,6 @@
</contenttypeidentifier>
</hyperlink>
- <hyperlink
- class="org.jboss.tools.jsf.text.ext.richfaces.hyperlink.RichfacesCSSClassHyperlink"
- id="org.jboss.tools.jsf.text.ext.richfaces.hyperlink.RichfacesCSSClassHyperlink">
- <contenttypeidentifier id="org.eclipse.jst.jsp.core.jspsource">
- <partitiontype id="org.jboss.tools.common.text.ext.RICHFACES_CSS_CLASS" />
- </contenttypeidentifier>
- <contenttypeidentifier id="org.eclipse.wst.html.core.htmlsource">
- <partitiontype id="org.jboss.tools.common.text.ext.RICHFACES_CSS_CLASS" />
- </contenttypeidentifier>
- </hyperlink>
</extension>
<extension point="org.jboss.tools.jst.web.kb.KbIncludeContext">
Deleted: trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/src/org/jboss/tools/jsf/text/ext/richfaces/hyperlink/RichfacesCSSClassHyperlink.java
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/src/org/jboss/tools/jsf/text/ext/richfaces/hyperlink/RichfacesCSSClassHyperlink.java 2010-03-11 17:01:46 UTC (rev 20766)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/src/org/jboss/tools/jsf/text/ext/richfaces/hyperlink/RichfacesCSSClassHyperlink.java 2010-03-11 17:33:49 UTC (rev 20767)
@@ -1,37 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 Exadel, Inc. and Red Hat, Inc.
- * Distributed under license by Red Hat, Inc. All rights reserved.
- * This program is made available under the terms of the
- * Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Exadel, Inc. and Red Hat, Inc. - initial API and implementation
- ******************************************************************************/
-
-package org.jboss.tools.jsf.text.ext.richfaces.hyperlink;
-
-import java.text.MessageFormat;
-
-import org.jboss.tools.common.text.ext.hyperlink.xpl.Messages;
-import org.jboss.tools.jst.text.ext.hyperlink.CSSClassHyperlink;
-
-/**
- *
- * @author Victor Rubezhny
- *
- */
-public class RichfacesCSSClassHyperlink extends CSSClassHyperlink {
- /*
- * (non-Javadoc)
- *
- * @see IHyperlink#getHyperlinkText()
- */
- public String getHyperlinkText() {
- String styleName = getStyleName(fLastRegion);
- if (styleName == null)
- return MessageFormat.format(Messages.OpenA, Messages.CSSStyle);
-
- return MessageFormat.format(Messages.OpenCSSStyle, styleName);
- }
-}
Deleted: trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/src/org/jboss/tools/jsf/text/ext/richfaces/hyperlink/RichfacesCSSClassHyperlinkPartitioner.java
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/src/org/jboss/tools/jsf/text/ext/richfaces/hyperlink/RichfacesCSSClassHyperlinkPartitioner.java 2010-03-11 17:01:46 UTC (rev 20766)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/src/org/jboss/tools/jsf/text/ext/richfaces/hyperlink/RichfacesCSSClassHyperlinkPartitioner.java 2010-03-11 17:33:49 UTC (rev 20767)
@@ -1,140 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 Exadel, Inc. and Red Hat, Inc.
- * Distributed under license by Red Hat, Inc. All rights reserved.
- * This program is made available under the terms of the
- * Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Exadel, Inc. and Red Hat, Inc. - initial API and implementation
- ******************************************************************************/
-
-package org.jboss.tools.jsf.text.ext.richfaces.hyperlink;
-
-import org.eclipse.jface.text.IDocument;
-import org.jboss.tools.common.text.ext.hyperlink.IHyperlinkRegion;
-import org.jboss.tools.jst.text.ext.hyperlink.CSSClassHyperlinkPartitioner;
-
-/**
- *
- * @author Victor Rubezhny
- *
- */
-public class RichfacesCSSClassHyperlinkPartitioner extends CSSClassHyperlinkPartitioner {
- public static final String RICHFACES_CSS_CLASS_PARTITION = "org.jboss.tools.common.text.ext.RICHFACES_CSS_CLASS"; //$NON-NLS-1$
-
- private static final String[] tokens = new String[]{
- "/columnClasses/",
- "/footerClass/",
- "/headerClass/",
- "/rowClasses/",
- "/captionClass/",
- "/styleClass/",
- "/errorClass/",
- "/errorMarkerClass/",
- "/fatalClass/",
- "/fatalLabelClass/",
- "/fatalMarkerClass/",
- "/infoClass/",
- "/infoLabelClass/",
- "/infoMarkerClass/",
- "/disabledClass/",
- "/enabledClass/",
- "/buttonClass/",
- "/buttonDisabledClass/",
- "/buttonInactiveClass/",
- "/bodyClass/",
- "/addButtonClass/",
- "/cleanButtonClass/",
- "/stopButtonClass/",
- "/uploadButtonClass/",
- "/uploadListClass/",
- "/fileEntryClass/",
- "/fileEntryControlClass/",
- "/dayStyleClass/",
- "/inputClass/",
- "/inputDisabledClass/",
- "/inputInactiveClass/",
- "/itemClass/",
- "/itemSelectedClass/",
- "/selectItemClass/",
- "/selectClass/",
- "/disabledItemClass/",
- "/listClass/",
- "/changedClass/",
- "/changedHoverClass/",
- "/controlClass/",
- "/controlsClass/",
- "/controlHoverClass/",
- "/controlPressedClass/",
- "/editClass/",
- "/viewClass/",
- "/viewHoverClass/",
- "/barClass/",
- "/decreaseClass/",
- "/decreaseSelectedClass/",
- "/handleClass/",
- "/handleSelectedClass/",
- "/increaseClass/",
- "/increaseSelectedClass/",
- "/tipClass/",
- "/bottomControlClass/",
- "/copyAllControlClass/",
- "/copyControlClass/",
- "/disabledControlClass/",
- "/downControlClass/",
- "/removeAllControlClass/",
- "/removeControlClass/",
- "/topControlClass/",
- "/upControlClass/",
- "/iconClass/",
- "/labelClass/",
- "/markerClass/",
- "/warnClass/",
- "/warnLabelClass/",
- "/warnMarkerClass/",
- "/sidebarClass/",
- "/contentClass/",
- "/disabledGroupClass/",
- "/disabledItemClass/",
- "/groupClass/",
- "/hoveredGroupClass/",
- "/hoveredItemClass/",
- "/topGroupClass/",
- "/topItemClass/",
- "/completeClass/",
- "/finishClass/",
- "/initialClass/",
- "/remainClass/",
- "/activeClass/",
- "/selectedClass/",
- "/entryClass/",
- "/popupClass/",
- "/selectValueClass/",
- "/activeTabClass/",
- "/disabledTabClass/",
- "/inactiveTabClass/",
- "/tabClass/",
- "/separatorClass/",
- "/highlightedClass/",
- "/nodeClass/",
- "/controlPressClass/",
- "/errorLabelClass/"
- };
-
- @Override
- public boolean recognize(IDocument document, IHyperlinkRegion region) {
- if (region.getAxis() != null){
- for(String token : tokens)
- if(region.getAxis().endsWith(token))
- return true;
- }
- return false;
- }
-
- @Override
- protected String getPartitionType(String axis) {
- return RICHFACES_CSS_CLASS_PARTITION;
- }
-
-}
14 years, 3 months
JBoss Tools SVN: r20766 - trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/dnd.
by jbosstools-commits@lists.jboss.org
Author: yradtsevich
Date: 2010-03-11 12:01:46 -0500 (Thu, 11 Mar 2010)
New Revision: 20766
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/dnd/VpeDnD.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-5042
Enhance DnD support in VPE
VPE Refactoring in progress.
- References to MozillaDndListener replaced by references to VpeController
Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/dnd/VpeDnD.java
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/dnd/VpeDnD.java 2010-03-11 16:34:07 UTC (rev 20765)
+++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/dnd/VpeDnD.java 2010-03-11 17:01:46 UTC (rev 20766)
@@ -14,8 +14,6 @@
import org.jboss.tools.vpe.editor.VpeController;
import org.jboss.tools.vpe.editor.VpeVisualCaretInfo;
import org.jboss.tools.vpe.editor.mozilla.MozillaDropInfo;
-import org.jboss.tools.vpe.editor.mozilla.listener.MozillaDndListener;
-import org.jboss.tools.vpe.editor.mozilla.listener.MozillaEventListener;
import org.jboss.tools.vpe.editor.selection.VpeSelectionController;
import org.jboss.tools.vpe.xulrunner.XPCOM;
import org.jboss.tools.vpe.xulrunner.editor.XulRunnerEditor;
@@ -146,31 +144,31 @@
* Calls when drag over event ocure
* @param event
*/
- public void dragOver(nsIDOMEvent event, MozillaEventListener mozillaEventListener) {
+ public void dragOver(nsIDOMEvent event, VpeController vpeController) {
final nsIDOMMouseEvent mouseEvent =
(nsIDOMMouseEvent) event.queryInterface(nsIDOMMouseEvent.NS_IDOMMOUSEEVENT_IID);
- final XulRunnerEditor editor = ((VpeController) mozillaEventListener).getXulRunnerEditor();
+ final XulRunnerEditor editor = vpeController.getXulRunnerEditor();
new ScrollingSupport(editor).scroll(mouseEvent);
- refreshCanDrop(event, mozillaEventListener);
+ refreshCanDrop(event, vpeController);
}
private void refreshCanDrop(nsIDOMEvent event,
- MozillaEventListener mozillaEventListener) {
+ VpeController vpeController) {
boolean canDrop = true;
nsIDOMMouseEvent mouseEvent = (nsIDOMMouseEvent) event.queryInterface(nsIDOMMouseEvent.NS_IDOMMOUSEEVENT_IID);
//in this condition early was check for xulelement
- if (mozillaEventListener != null) {
+ if (vpeController != null) {
if (getDragService().getCurrentSession().isDataFlavorSupported(VpeController.MODEL_FLAVOR)) {
MozillaDropInfo info;
if(getDragService().getCurrentSession().getSourceNode()==null){
//external drag
- info = mozillaEventListener.canExternalDrop(mouseEvent, VpeController.MODEL_FLAVOR, ""); //$NON-NLS-1$
+ info = vpeController.canExternalDrop(mouseEvent, VpeController.MODEL_FLAVOR, ""); //$NON-NLS-1$
} else {
//internal drag
- info = mozillaEventListener.canInnerDrop(mouseEvent);
+ info = vpeController.canInnerDrop(mouseEvent);
}
if (info != null) {
canDrop = info.canDrop();
@@ -179,11 +177,9 @@
}
//sets possability to drop current element here
//Added by estherbin fix jbide-1046
- VpeController controller = (VpeController) mozillaEventListener;
+ VpeSelectionController selectionController = vpeController.getVisualSelectionController();
+ final VpeVisualCaretInfo visualCaretInfo = vpeController.getSelectionBuilder().getVisualCaretInfo(event);
- VpeSelectionController selectionController = controller.getVisualSelectionController();
- final VpeVisualCaretInfo visualCaretInfo = controller.getSelectionBuilder().getVisualCaretInfo(event);
-
final nsIDOMEventTarget target = event.getTarget();
final nsIDOMNode targetDomNode = (nsIDOMNode) target.queryInterface(nsIDOMNode.NS_IDOMNODE_IID);
// final nsIDOMNode selectedVisualNode = controller.getXulRunnerEditor().getLastSelectedNode();
@@ -207,18 +203,17 @@
/**
* Drop Event handler
* @param domEvent
- * @param editorDomEventListener
+ * @param vpeController
*/
- public void dragDrop(nsIDOMEvent domEvent, MozillaDndListener editorDomEventListener) {
+ public void dragDrop(nsIDOMEvent domEvent, VpeController vpeController) {
+ if(vpeController!=null) {
- if(editorDomEventListener!=null) {
-
if(getDragService().getCurrentSession().getSourceDocument()==null) {
//in this case it's is external drag
- editorDomEventListener.externalDrop((nsIDOMMouseEvent)domEvent.queryInterface(nsIDOMMouseEvent.NS_IDOMMOUSEEVENT_IID), VpeController.MODEL_FLAVOR, ""); //$NON-NLS-1$
+ vpeController.externalDrop((nsIDOMMouseEvent)domEvent.queryInterface(nsIDOMMouseEvent.NS_IDOMMOUSEEVENT_IID), VpeController.MODEL_FLAVOR, ""); //$NON-NLS-1$
} else {
// in this case it's is an internal drag
- editorDomEventListener.innerDrop((nsIDOMMouseEvent)domEvent.queryInterface(nsIDOMMouseEvent.NS_IDOMMOUSEEVENT_IID));
+ vpeController.innerDrop((nsIDOMMouseEvent)domEvent.queryInterface(nsIDOMMouseEvent.NS_IDOMMOUSEEVENT_IID));
}
}
}
14 years, 3 months
JBoss Tools SVN: r20765 - trunk/jsf/docs/userguide/en-US/images/preferences.
by jbosstools-commits@lists.jboss.org
Author: smukhina
Date: 2010-03-11 11:34:07 -0500 (Thu, 11 Mar 2010)
New Revision: 20765
Modified:
trunk/jsf/docs/userguide/en-US/images/preferences/preferences_36.png
Log:
https://jira.jboss.org/jira/browse/JBDS-1145 Wrong screen shot used within Visual Web Tools Reference Guide documentation Figure 8.35. Server Preferences - screen is updated
Modified: trunk/jsf/docs/userguide/en-US/images/preferences/preferences_36.png
===================================================================
(Binary files differ)
14 years, 3 months
JBoss Tools SVN: r20764 - in trunk/jsf/docs/userguide/en-US: images/editors_features and 1 other directories.
by jbosstools-commits@lists.jboss.org
Author: smukhina
Date: 2010-03-11 10:45:53 -0500 (Thu, 11 Mar 2010)
New Revision: 20764
Added:
trunk/jsf/docs/userguide/en-US/images/editors_features/editors_features_14_b.png
trunk/jsf/docs/userguide/en-US/images/editors_features/icons_enumaration.png
trunk/jsf/docs/userguide/en-US/images/editors_features/icons_jsf_actions.png
trunk/jsf/docs/userguide/en-US/images/editors_features/icons_jsf_el.png
trunk/jsf/docs/userguide/en-US/images/editors_features/icons_message_bundles.png
trunk/jsf/docs/userguide/en-US/images/editors_features/icons_resource_paths.png
trunk/jsf/docs/userguide/en-US/images/editors_features/icons_seam_el.png
Modified:
trunk/jsf/docs/userguide/en-US/editors.xml
trunk/jsf/docs/userguide/en-US/images/visual_page/visual_page_7b.png
Log:
JBDS-1020 Code assist for class and style Class attributes for html and jsf tags is implemented -
Table Content assist icons are added
Resource Bundles from template page in Content Assist Based on Project Data - added
Modified: trunk/jsf/docs/userguide/en-US/editors.xml
===================================================================
--- trunk/jsf/docs/userguide/en-US/editors.xml 2010-03-11 15:16:40 UTC (rev 20763)
+++ trunk/jsf/docs/userguide/en-US/editors.xml 2010-03-11 15:45:53 UTC (rev 20764)
@@ -316,8 +316,136 @@
</itemizedlist>
<para>Notice, that code completion for EL variables has icons illustrating what they are
- from. Currently it's performed for resource bundles, JSF and Seam
- components.</para>
+ from. The most of this icons are described in the table below.</para>
+ <table>
+ <title>Content assist icons</title>
+ <tgroup cols="3">
+ <colspec colnum="1" align="left" colwidth="2*"/>
+ <colspec colnum="2" colwidth="4*"/>
+ <colspec colnum="3" colwidth="2*" align="left" />
+ <thead>
+ <row>
+ <entry>Icon </entry>
+ <entry>Type </entry>
+ <entry>Context </entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>
+ <para><inlinemediaobject><imageobject>
+ <imagedata fileref="images/editors_features/icons_enumaration.png"/>
+ </imageobject>
+ </inlinemediaobject>
+ </para>
+ </entry>
+ <entry>
+ <para>Enumeration
+ </para>
+ </entry>
+ <entry>
+ <para>Used to show items which exist in the predefined set of equivalent proposals.
+ </para>
+ </entry>
+ </row>
+ <row>
+ <entry>
+ <para><inlinemediaobject><imageobject>
+ <imagedata fileref="images/editors_features/icons_seam_el.png"/>
+ </imageobject>
+ </inlinemediaobject>
+ </para>
+ </entry>
+ <entry>
+ <para>Seam Proposal</para>
+ </entry>
+ <entry>
+ <para>Used to show Seam Context variables, its properties and methods.
+
+ </para>
+ </entry>
+ </row>
+ <row>
+ <entry>
+ <para><inlinemediaobject><imageobject>
+ <imagedata fileref="images/editors_features/icons_jsf_el.png"/>
+ </imageobject>
+ </inlinemediaobject>
+ </para>
+ </entry>
+ <entry>
+ <para>JSF EL
+ </para>
+ </entry>
+ <entry>
+ <para>Used to show Managed Beans, Managed Bean Properties, Managed Bean Methods, Constants, Resource Bundles, Resource Bundle Properties.
+
+
+ </para>
+ </entry>
+
+ </row>
+ <row>
+ <entry>
+ <para><inlinemediaobject><imageobject>
+ <imagedata fileref="images/editors_features/icons_jsf_actions.png"/>
+ </imageobject>
+ </inlinemediaobject>
+ </para>
+ </entry>
+ <entry>
+ <para>JSF Action
+
+ </para>
+ </entry>
+ <entry>
+ <para>Used to show navigation rules defined in the <property>faces-config.xml</property> .
+
+ </para>
+ </entry>
+ </row>
+ <row>
+ <entry>
+ <para><inlinemediaobject><imageobject>
+ <imagedata fileref="images/editors_features/icons_message_bundles.png"/>
+ </imageobject>
+ </inlinemediaobject>
+ </para>
+ </entry>
+ <entry>
+ <para>Message Bundle</para>
+ </entry>
+ <entry>
+ <para>Used to show <property>Messages Resources</property> items.
+
+ </para>
+ </entry>
+ </row>
+
+ <row>
+ <entry>
+ <para><inlinemediaobject><imageobject>
+ <imagedata fileref="images/editors_features/icons_resource_paths.png"/>
+ </imageobject>
+ </inlinemediaobject>
+ </para>
+ </entry>
+ <entry>
+ <para>Resource path
+ </para>
+ </entry>
+ <entry>
+ <para>Used to show paths which are accessible from the cursor place.
+
+
+ </para>
+ </entry>
+ </row>
+ </tbody>
+ </tgroup>
+
+
+ </table>
<figure>
<title>JSF Content Assist</title>
@@ -441,6 +569,9 @@
<listitem>
<para>JSF variables (context, request etc...)</para>
</listitem>
+ <listitem>
+ <para>Resource Bundles from template page</para>
+ </listitem>
</itemizedlist>
<para>The figure below shows how to insert message from a Properties files. You
simply put the cursor inside the <emphasis role="italic">
@@ -498,7 +629,18 @@
</imageobject>
</mediaobject>
</figure>
+ <para>Moreover <property>Code Assist</property> is able to define <property>Resource Bundles</property> on template page and gives the proposals on the client page. </para>
+ <figure>
+ <title>Code Assist: Message Bundles proposals from template page</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/editors_features/editors_features_14_b.png"/>
+ </imageobject>
+
+ </mediaobject>
+ </figure>
+
</section>
<section id="ContentAssistWithinJSFGraphicalEditor44">
Added: trunk/jsf/docs/userguide/en-US/images/editors_features/editors_features_14_b.png
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/docs/userguide/en-US/images/editors_features/editors_features_14_b.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jsf/docs/userguide/en-US/images/editors_features/icons_enumaration.png
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/docs/userguide/en-US/images/editors_features/icons_enumaration.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jsf/docs/userguide/en-US/images/editors_features/icons_jsf_actions.png
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/docs/userguide/en-US/images/editors_features/icons_jsf_actions.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jsf/docs/userguide/en-US/images/editors_features/icons_jsf_el.png
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/docs/userguide/en-US/images/editors_features/icons_jsf_el.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jsf/docs/userguide/en-US/images/editors_features/icons_message_bundles.png
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/docs/userguide/en-US/images/editors_features/icons_message_bundles.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jsf/docs/userguide/en-US/images/editors_features/icons_resource_paths.png
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/docs/userguide/en-US/images/editors_features/icons_resource_paths.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jsf/docs/userguide/en-US/images/editors_features/icons_seam_el.png
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/docs/userguide/en-US/images/editors_features/icons_seam_el.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Modified: trunk/jsf/docs/userguide/en-US/images/visual_page/visual_page_7b.png
===================================================================
(Binary files differ)
14 years, 3 months
JBoss Tools SVN: r20763 - trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/cssselector.
by jbosstools-commits@lists.jboss.org
Author: yzhishko
Date: 2010-03-11 10:16:40 -0500 (Thu, 11 Mar 2010)
New Revision: 20763
Modified:
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/cssselector/CSSSelectorPartComposite.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-3288 - support to key navigation was added.
Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/cssselector/CSSSelectorPartComposite.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/cssselector/CSSSelectorPartComposite.java 2010-03-11 15:04:48 UTC (rev 20762)
+++ trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/cssselector/CSSSelectorPartComposite.java 2010-03-11 15:16:40 UTC (rev 20763)
@@ -30,6 +30,8 @@
import org.eclipse.swt.dnd.Transfer;
import org.eclipse.swt.events.DisposeEvent;
import org.eclipse.swt.events.DisposeListener;
+import org.eclipse.swt.events.KeyEvent;
+import org.eclipse.swt.events.KeyListener;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.events.SelectionListener;
import org.eclipse.swt.graphics.Image;
@@ -37,7 +39,6 @@
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.Table;
import org.eclipse.swt.widgets.TableItem;
import org.eclipse.swt.widgets.Tree;
import org.eclipse.swt.widgets.TreeItem;
@@ -176,7 +177,6 @@
private void initListeners() {
final Tree tree = allCSSStyleClassViewer.getTree();
- final Table table = selectedClassesTableViewer.getTable();
allCSSStyleClassViewer
.addDoubleClickListener(new IDoubleClickListener() {
@@ -207,13 +207,7 @@
.addDoubleClickListener(new IDoubleClickListener() {
public void doubleClick(DoubleClickEvent event) {
- TableItem[] selectedItems = table.getSelection();
- if (selectedItems != null && selectedItems.length > 0) {
- TableItem selectedItem = selectedItems[selectedItems.length - 1];
- selectedClassesTableViewer.remove(selectedItem
- .getData());
- updateStyles();
- }
+ handleRemoveClass();
}
});
@@ -265,6 +259,30 @@
}
});
+ allCSSStyleClassViewer.getTree().addKeyListener(new KeyListener() {
+
+ public void keyReleased(KeyEvent e) {
+ if (SWT.ARROW_RIGHT == e.keyCode && SWT.ALT == e.stateMask) {
+ handleAddClass();
+ }
+ }
+
+ public void keyPressed(KeyEvent e) {
+ }
+ });
+
+ selectedClassesTableViewer.getTable().addKeyListener(new KeyListener() {
+
+ public void keyReleased(KeyEvent e) {
+ if (SWT.ARROW_LEFT== e.keyCode && SWT.ALT == e.stateMask) {
+ handleRemoveClass();
+ }
+ }
+
+ public void keyPressed(KeyEvent e) {
+ }
+ });
+
rightButton.addSelectionListener(this);
leftButton.addSelectionListener(this);
}
@@ -324,9 +342,9 @@
public void widgetDefaultSelected(SelectionEvent e) {
Object ob = e.getSource();
if (ob.equals(leftButton)) {
- handleLeftButtonSelection();
+ handleRemoveClass();
} else if (ob.equals(rightButton)) {
- handleRightButtonSelection();
+ handleAddClass();
} else if (ob.equals(allCSSStyleClassViewer.getTree())) {
selectedClassesTableViewer.getTable().deselectAll();
leftButton.setEnabled(false);
@@ -341,23 +359,24 @@
public void widgetSelected(SelectionEvent e) {
Object ob = e.getSource();
if (ob.equals(leftButton)) {
- handleLeftButtonSelection();
+ handleRemoveClass();
} else if (ob.equals(rightButton)) {
- handleRightButtonSelection();
+ handleAddClass();
}
}
- private void handleLeftButtonSelection() {
+ private void handleRemoveClass() {
TableItem[] selectedItems = selectedClassesTableViewer.getTable()
.getSelection();
-
- for (int i = 0; i < selectedItems.length; i++) {
- selectedClassesTableViewer.remove(selectedItems[i].getData());
+ if (selectedItems != null && selectedItems.length > 0) {
+ for (int i = 0; i < selectedItems.length; i++) {
+ selectedClassesTableViewer.remove(selectedItems[i].getData());
+ }
+ updateStyles();
}
- updateStyles();
}
- private void handleRightButtonSelection() {
+ private void handleAddClass() {
TreeItem[] selectedItems = allCSSStyleClassViewer.getTree()
.getSelection();
if (selectedItems != null && selectedItems.length > 0) {
@@ -369,8 +388,8 @@
selectedClassesTableViewer.add(((CSSTreeNode) item.getData())
.toString());
}
+ updateStyles();
}
- updateStyles();
}
private void createLayout() {
14 years, 3 months
JBoss Tools SVN: r20762 - trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog.
by jbosstools-commits@lists.jboss.org
Author: yzhishko
Date: 2010-03-11 10:04:48 -0500 (Thu, 11 Mar 2010)
New Revision: 20762
Modified:
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/FontFamilyDialog.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-5875 - dialog was redesigned. Support to key navigation was added.
Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/FontFamilyDialog.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/FontFamilyDialog.java 2010-03-11 15:00:38 UTC (rev 20761)
+++ trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/FontFamilyDialog.java 2010-03-11 15:04:48 UTC (rev 20762)
@@ -12,524 +12,477 @@
import org.eclipse.jface.dialogs.Dialog;
import org.eclipse.jface.resource.ImageDescriptor;
-
+import org.eclipse.jface.viewers.DoubleClickEvent;
+import org.eclipse.jface.viewers.IDoubleClickListener;
+import org.eclipse.jface.viewers.ISelectionChangedListener;
+import org.eclipse.jface.viewers.SelectionChangedEvent;
+import org.eclipse.jface.viewers.TableViewer;
import org.eclipse.swt.SWT;
import org.eclipse.swt.dnd.DND;
-import org.eclipse.swt.dnd.DragSource;
import org.eclipse.swt.dnd.DragSourceEvent;
import org.eclipse.swt.dnd.DragSourceListener;
-import org.eclipse.swt.dnd.DropTarget;
import org.eclipse.swt.dnd.DropTargetAdapter;
import org.eclipse.swt.dnd.DropTargetEvent;
import org.eclipse.swt.dnd.TextTransfer;
import org.eclipse.swt.dnd.Transfer;
import org.eclipse.swt.events.DisposeEvent;
import org.eclipse.swt.events.DisposeListener;
-import org.eclipse.swt.events.MouseEvent;
-import org.eclipse.swt.events.MouseListener;
+import org.eclipse.swt.events.KeyEvent;
+import org.eclipse.swt.events.KeyListener;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.events.SelectionListener;
import org.eclipse.swt.graphics.FontData;
import org.eclipse.swt.graphics.Image;
-import org.eclipse.swt.layout.FormAttachment;
-import org.eclipse.swt.layout.FormData;
-import org.eclipse.swt.layout.FormLayout;
+import org.eclipse.swt.layout.GridData;
+import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
-import org.eclipse.swt.widgets.List;
import org.eclipse.swt.widgets.Shell;
-
+import org.eclipse.swt.widgets.TableItem;
import org.jboss.tools.jst.jsp.JspEditorPlugin;
import org.jboss.tools.jst.jsp.messages.JstUIMessages;
import org.jboss.tools.jst.jsp.outline.cssdialog.common.Constants;
-
import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;
/**
* Class for choosing CCS font-family attribute
- *
+ *
* @author dsakovich(a)exadel.com
*/
public class FontFamilyDialog extends Dialog implements SelectionListener {
- private static final int HEIGHT = 300;
- private static final int BUTTON_TOP_OFFSET = 20;
- private static final int BUTTON_LEFT_OFFSET = 20;
- private static final int BUTTON_RIGHT_OFFSET = -20;
- private static final int BUTTON_RIGHT = 60;
- private static final int RIGHT_BUTTON_TOP = 30;
- private static final int LEFT_BUTTON_TOP = 40;
- private static final int LIST_TOP_OFFSET = 10;
- private static final int LIST_RIGHT_OFFSET = -10;
- private static final int LIST_LEFT_OFFSET = 10;
- private static final int LIST_BOTTOM_OFFSET = -10;
- private static final int LIST_TOP = 5;
- private static final int LIST_BOTTOM = 100;
- private static final int ALL_FONTS_LIST_LEFT = 0;
- private static final int ALL_FONTS_LIST_RIGHT = 40;
- private static final int SELECTED_FONT_LIST_LEFT = 60;
- private static final int SELECTED_FONT_LIST_RIGHT = 100;
+ private static final int VIEWER_HEIGHT = 300;
+ private static final int BUTTOND_WIDTH = 50;
+ private static final int VIEWER_WIDTH = 175;
- /** Font family string */
- private String fontFamily;
+ /** Font family string */
+ private String fontFamily;
- /** Existing font family */
- private String existFontFamily;
- private List fontFamilyList;
- private List allFontFamilyList;
- private Button rightButton;
- private Button leftButton;
+ /** Existing font family */
+ private String existFontFamily;
+ private TableViewer fontFamilyTable;
+ private TableViewer allFontFamilyTable;
+ private Button rightButton;
+ private Button leftButton;
+ private Composite buttonsContainer;
+ private static final String ALL_FONTS_TABLE_SOURCE = "all_fonts_table_source"; //$NON-NLS-1$
+ private static final String FONTS_TABLE_SOURCE = "fonts_table_source"; //$NON-NLS-1$
- /**
- * Constructor
- *
- * @param parentShell parent shell
- * @param existingFontFamily existing font family
- */
- public FontFamilyDialog(Shell parentShell, String existingFontFamily) {
- super(parentShell);
- this.existFontFamily = existingFontFamily;
- }
+ /**
+ * Constructor
+ *
+ * @param parentShell
+ * parent shell
+ * @param existingFontFamily
+ * existing font family
+ */
+ public FontFamilyDialog(Shell parentShell, String existingFontFamily) {
+ super(parentShell);
+ this.existFontFamily = existingFontFamily;
+ }
- /**
- * @see org.eclipse.jface.dialogs.Dialog#createDialogArea(Composite)
- */
- @Override
- protected Control createDialogArea(Composite parent) {
- final Composite composite = (Composite) super.createDialogArea(parent);
+ /**
+ * @see org.eclipse.jface.dialogs.Dialog#createDialogArea(Composite)
+ */
+ @Override
+ protected Control createDialogArea(Composite parent) {
+ final Composite composite = (Composite) super.createDialogArea(parent);
+ initControls(composite);
+ createLayout(composite);
+ initListeners();
+ initDND();
+ initDefaultContent(composite);
+ return composite;
+ }
- composite.setLayout(new FormLayout());
+ private void initDefaultContent(Composite composite) {
+ Set<String> s = new HashSet<String>();
+ FontData[] fds = composite.getDisplay().getFontList(null, false);
- allFontFamilyList = new List(composite, SWT.MULTI | SWT.BORDER | SWT.V_SCROLL);
+ for (int i = 0; i < fds.length; ++i) {
+ s.add(fds[i].getName());
+ }
+ fds = composite.getDisplay().getFontList(null, true);
- FormData fd = new FormData();
- fd.top = new FormAttachment(LIST_TOP, LIST_TOP_OFFSET);
- fd.left = new FormAttachment(ALL_FONTS_LIST_LEFT, LIST_LEFT_OFFSET);
- fd.bottom = new FormAttachment(LIST_BOTTOM, LIST_BOTTOM_OFFSET);
- fd.right = new FormAttachment(ALL_FONTS_LIST_RIGHT, LIST_RIGHT_OFFSET);
- fd.height = HEIGHT;
- allFontFamilyList.setLayoutData(fd);
+ for (int i = 0; i < fds.length; ++i) {
+ s.add(fds[i].getName());
+ }
+ String[] existFonts = fontFamilyParser();
+ Arrays.sort(existFonts);
- Set<String> s = new HashSet<String>();
- FontData[] fds = composite.getDisplay().getFontList(null, false);
+ String[] answer = new String[s.size()];
+ s.toArray(answer);
+ Arrays.sort(answer);
- for (int i = 0; i < fds.length; ++i) {
- s.add(fds[i].getName());
- }
- fds = composite.getDisplay().getFontList(null, true);
+ for (int i = 0; i < answer.length; i++) {
+ allFontFamilyTable.add(answer[i]);
+ }
- for (int i = 0; i < fds.length; ++i) {
- s.add(fds[i].getName());
- }
- String[] existFonts = fontFamilyParser();
- Arrays.sort(existFonts);
+ if ((existFontFamily != null)
+ && !existFontFamily.equals(Constants.EMPTY)) {
+ for (int i = 0; i < existFonts.length; i++) {
+ fontFamilyTable.add(existFonts[i]);
+ allFontFamilyTable.remove(existFonts[i]);
+ }
+ }
+ }
- String[] answer = new String[s.size()];
- s.toArray(answer);
- Arrays.sort(answer);
+ private void initDND() {
+ Transfer[] types = new Transfer[] { TextTransfer.getInstance() };
- for (int i = 0; i < answer.length; i++) {
- allFontFamilyList.add(answer[i]);
- }
+ allFontFamilyTable.addDragSupport(DND.DROP_MOVE, types,
+ new DragSourceListener() {
- rightButton = new Button(composite, SWT.PUSH);
- fd = new FormData();
- fd.top = new FormAttachment(RIGHT_BUTTON_TOP, BUTTON_TOP_OFFSET);
- fd.left = new FormAttachment(allFontFamilyList, BUTTON_LEFT_OFFSET);
- fd.right = new FormAttachment(BUTTON_RIGHT, BUTTON_RIGHT_OFFSET);
- rightButton.setLayoutData(fd);
- rightButton.setToolTipText(JstUIMessages.ADD_FONT_FAMILY_TIP);
+ public void dragFinished(DragSourceEvent event) {
+ if (event.doit) {
+ if (event.detail == DND.DROP_MOVE) {
+ handleAddFont();
+ }
+ }
+ }
- ImageDescriptor rightDesc = JspEditorPlugin.getImageDescriptor(Constants.IMAGE_RIGHT_FILE_LOCATION);
- Image rightImage = rightDesc.createImage();
- rightButton.setImage(rightImage);
- rightButton.setEnabled(false);
- rightButton.addDisposeListener(new DisposeListener() {
- public void widgetDisposed(DisposeEvent e) {
- Button button = (Button) e.getSource();
- button.getImage().dispose();
- }
- });
- leftButton = new Button(composite, SWT.PUSH);
- fd = new FormData();
- fd.top = new FormAttachment(LEFT_BUTTON_TOP, BUTTON_TOP_OFFSET);
- fd.left = new FormAttachment(allFontFamilyList, BUTTON_LEFT_OFFSET);
- fd.right = new FormAttachment(BUTTON_RIGHT, BUTTON_RIGHT_OFFSET);
- leftButton.setLayoutData(fd);
- leftButton.setToolTipText(JstUIMessages.REMOVE_FONT_FAMILY_TIP);
+ public void dragSetData(DragSourceEvent event) {
+ event.data = ALL_FONTS_TABLE_SOURCE;
+ }
- ImageDescriptor leftDesc = JspEditorPlugin.getImageDescriptor(Constants.IMAGE_LEFT_FILE_LOCATION);
- Image leftImage = leftDesc.createImage();
- leftButton.setImage(leftImage);
- leftButton.setEnabled(false);
- leftButton.addDisposeListener(new DisposeListener() {
- public void widgetDisposed(DisposeEvent e) {
- Button button = (Button) e.getSource();
- button.getImage().dispose();
- }
- });
+ public void dragStart(DragSourceEvent event) {
+ event.doit = allFontFamilyTable.getTable()
+ .getSelectionCount() > 0;
+ }
+ });
- fontFamilyList = new List(composite, SWT.SINGLE | SWT.BORDER | SWT.V_SCROLL);
- fd = new FormData();
- fd.top = new FormAttachment(LIST_TOP, LIST_TOP_OFFSET);
- fd.left = new FormAttachment(SELECTED_FONT_LIST_LEFT, LIST_LEFT_OFFSET);
- fd.bottom = new FormAttachment(LIST_BOTTOM, LIST_BOTTOM_OFFSET);
- fd.right = new FormAttachment(SELECTED_FONT_LIST_RIGHT, LIST_RIGHT_OFFSET);
- fd.height = HEIGHT;
- fontFamilyList.setLayoutData(fd);
+ allFontFamilyTable.addDropSupport(DND.DROP_MOVE, types,
+ new DropTargetAdapter() {
- if ((existFontFamily != null) && !existFontFamily.equals(Constants.EMPTY)) {
- for (int i = 0; i < existFonts.length; i++) {
- fontFamilyList.add(existFonts[i]);
- }
- }
-
- /** Control listeners */
- allFontFamilyList.addMouseListener(new MouseListener() {
- public void mouseDoubleClick(MouseEvent e) {
- int selectedItem = allFontFamilyList.getSelectionIndex();
- allFontFamilyList.deselectAll();
- if (selectedItem == -1) {
- return;
+ @Override
+ public void drop(DropTargetEvent event) {
+ if (event.data == null
+ || event.data.equals(ALL_FONTS_TABLE_SOURCE)) {
+ event.detail = DND.DROP_NONE;
+ return;
+ }
}
- addFont(fontFamilyList, allFontFamilyList.getItem(selectedItem));
- allFontFamilyList.remove(selectedItem);
- rightButton.setEnabled(false);
- }
- public void mouseDown(MouseEvent e) {
- if (allFontFamilyList.getSelectionCount() > 0) {
- fontFamilyList.deselectAll();
- leftButton.setEnabled(false);
- rightButton.setEnabled(true);
- }
- }
+ });
- public void mouseUp(MouseEvent e) {
- }
- });
+ fontFamilyTable.addDragSupport(DND.DROP_MOVE, types,
+ new DragSourceListener() {
- fontFamilyList.addMouseListener(new MouseListener() {
- public void mouseDoubleClick(MouseEvent e) {
- leftButton.setEnabled(false);
+ public void dragFinished(DragSourceEvent event) {
+ if (event.doit) {
+ if (event.detail == DND.DROP_MOVE) {
+ handleRemoveFont();
+ }
+ }
+ }
- int selectedItem = fontFamilyList.getSelectionIndex();
- fontFamilyList.deselectAll();
- if (selectedItem == -1) {
- return;
+ public void dragSetData(DragSourceEvent event) {
+ event.data = FONTS_TABLE_SOURCE;
}
- addFont(allFontFamilyList, fontFamilyList.getItem(selectedItem));
- fontFamilyList.remove(selectedItem);
- }
- public void mouseDown(MouseEvent e) {
- if (fontFamilyList.getSelectionCount() > 0) {
- allFontFamilyList.deselectAll();
- rightButton.setEnabled(false);
- leftButton.setEnabled(true);
- }
- }
+ public void dragStart(DragSourceEvent event) {
+ event.doit = fontFamilyTable.getTable()
+ .getSelectionCount() > 0;
+ }
+ });
- public void mouseUp(MouseEvent e) {
- }
- });
+ fontFamilyTable.addDropSupport(DND.DROP_MOVE, types,
+ new DropTargetAdapter() {
+ @Override
+ public void drop(DropTargetEvent event) {
+ if (event.data == null
+ || event.data.equals(FONTS_TABLE_SOURCE)) {
+ event.detail = DND.DROP_NONE;
+ return;
+ }
+ }
+ });
- rightButton.addSelectionListener(this);
- leftButton.addSelectionListener(this);
+ }
- /** Add drag and drop */
- Transfer[] types = new Transfer[] { TextTransfer.getInstance() };
+ private void initListeners() {
+ /** Control listeners */
+ allFontFamilyTable.addDoubleClickListener(new IDoubleClickListener() {
- final DragSource source = new DragSource(allFontFamilyList, DND.DROP_MOVE);
- source.setTransfer(types);
- source.addDragListener(new DragSourceListener() {
- public void dragFinished(DragSourceEvent event) {
- if (event.detail == DND.DROP_MOVE) {
- int selectedItem = allFontFamilyList.getSelectionIndex();
+ public void doubleClick(DoubleClickEvent event) {
+ handleAddFont();
+ }
+ });
- if ((allFontFamilyList.getItemCount() > selectedItem) && (selectedItem >= 0)) {
- allFontFamilyList.remove(selectedItem);
- }
- }
- }
+ allFontFamilyTable
+ .addSelectionChangedListener(new ISelectionChangedListener() {
- public void dragSetData(DragSourceEvent event) {
- int selectedItem = allFontFamilyList.getSelectionIndex();
- event.data = allFontFamilyList.getItem(selectedItem);
- }
+ public void selectionChanged(SelectionChangedEvent event) {
+ fontFamilyTable.getTable().deselectAll();
+ leftButton.setEnabled(false);
+ rightButton.setEnabled(true);
+ }
+ });
- public void dragStart(DragSourceEvent event) {
- event.doit = (allFontFamilyList.getSelectionCount() != 0);
- }
- });
+ fontFamilyTable
+ .addSelectionChangedListener(new ISelectionChangedListener() {
- DropTarget target = new DropTarget(fontFamilyList, DND.DROP_MOVE);
- target.setTransfer(types);
- target.addDropListener(new DropTargetAdapter() {
- public void drop(DropTargetEvent event) {
- if (event.data == null) {
- event.detail = DND.DROP_NONE;
+ public void selectionChanged(SelectionChangedEvent event) {
+ allFontFamilyTable.getTable().deselectAll();
+ rightButton.setEnabled(false);
+ leftButton.setEnabled(true);
+ }
+ });
- return;
- }
+ fontFamilyTable.addDoubleClickListener(new IDoubleClickListener() {
- addFont(fontFamilyList, ((String) event.data));
- rightButton.setEnabled(false);
- }
- });
+ public void doubleClick(DoubleClickEvent event) {
+ handleRemoveFont();
+ }
+ });
- final DragSource sourceBack = new DragSource(fontFamilyList, DND.DROP_MOVE);
- sourceBack.setTransfer(types);
- sourceBack.addDragListener(new DragSourceListener() {
- public void dragFinished(DragSourceEvent event) {
- if (event.detail == DND.DROP_MOVE) {
- int selectedItem = fontFamilyList.getSelectionIndex();
+ fontFamilyTable.getTable().addKeyListener(new KeyListener() {
+
+ public void keyReleased(KeyEvent e) {
+ if (SWT.ARROW_LEFT == e.keyCode && SWT.ALT == e.stateMask) {
+ handleRemoveFont();
+ }
+ }
+
+ public void keyPressed(KeyEvent e) {
+ }
+ });
+
+ allFontFamilyTable.getTable().addKeyListener(new KeyListener() {
+
+ public void keyReleased(KeyEvent e) {
+ if (SWT.ARROW_RIGHT== e.keyCode && SWT.ALT == e.stateMask) {
+ handleAddFont();
+ }
+ }
+
+ public void keyPressed(KeyEvent e) {
+ }
+ });
+
+ rightButton.addSelectionListener(this);
+ leftButton.addSelectionListener(this);
+ }
- if ((fontFamilyList.getItemCount() > selectedItem) && (selectedItem >= 0)) {
- fontFamilyList.remove(selectedItem);
- }
- }
- }
+ private void createLayout(Composite composite) {
+ final GridLayout gridLayout = new GridLayout();
+ gridLayout.numColumns = 3;
+ composite.setLayout(gridLayout);
+ GridData gridData = new GridData(SWT.FILL, SWT.FILL, true, true);
+ composite.setLayoutData(gridData);
- public void dragSetData(DragSourceEvent event) {
- int selectedItem = fontFamilyList.getSelectionIndex();
- event.data = fontFamilyList.getItem(selectedItem);
- }
+ gridData = new GridData(SWT.FILL, SWT.FILL, true, true);
+ gridData.heightHint = VIEWER_HEIGHT;
+ gridData.widthHint = VIEWER_WIDTH;
+ allFontFamilyTable.getTable().setLayoutData(gridData);
- public void dragStart(DragSourceEvent event) {
- event.doit = (fontFamilyList.getSelectionCount() != 0);
- }
- });
+ gridData = new GridData(SWT.FILL, SWT.FILL, true, true);
+ gridData.heightHint = VIEWER_HEIGHT;
+ gridData.widthHint = VIEWER_WIDTH;
+ fontFamilyTable.getTable().setLayoutData(gridData);
- DropTarget targetBack = new DropTarget(allFontFamilyList, DND.DROP_MOVE);
- targetBack.setTransfer(types);
- targetBack.addDropListener(new DropTargetAdapter() {
- public void drop(DropTargetEvent event) {
- if (event.data == null) {
- event.detail = DND.DROP_NONE;
+ final GridLayout btmContGridLayout = new GridLayout();
+ btmContGridLayout.numColumns = 1;
+ buttonsContainer.setLayout(btmContGridLayout);
- return;
- }
+ gridData = new GridData(SWT.FILL, SWT.FILL, true, true);
+ gridData.widthHint = BUTTOND_WIDTH;
+ rightButton.setLayoutData(gridData);
- addFont(allFontFamilyList, ((String) event.data));
- leftButton.setEnabled(false);
- }
- });
+ gridData = new GridData(SWT.FILL, SWT.FILL, true, true);
+ gridData.widthHint = BUTTOND_WIDTH;
+ leftButton.setLayoutData(gridData);
- return composite;
- }
+ }
- /**
- * Set title for dialog
- */
- protected void configureShell(Shell newShell) {
- super.configureShell(newShell);
- newShell.setText(JstUIMessages.FONT_FAMILY_DIALOG_TITLE);
- }
+ private void initControls(Composite composite) {
+ allFontFamilyTable = new TableViewer(composite, SWT.MULTI
+ | SWT.V_SCROLL | SWT.H_SCROLL | SWT.BORDER);
+ buttonsContainer = new Composite(composite, SWT.NONE);
+ rightButton = new Button(buttonsContainer, SWT.PUSH);
+ leftButton = new Button(buttonsContainer, SWT.PUSH);
+ fontFamilyTable = new TableViewer(composite, SWT.MULTI | SWT.BORDER
+ | SWT.V_SCROLL | SWT.H_SCROLL);
+ rightButton.setToolTipText(JstUIMessages.ADD_FONT_FAMILY_TIP);
+ ImageDescriptor rightDesc = JspEditorPlugin
+ .getImageDescriptor(Constants.IMAGE_RIGHT_FILE_LOCATION);
+ Image rightImage = rightDesc.createImage();
+ rightButton.setImage(rightImage);
+ rightButton.setEnabled(false);
+ rightButton.addDisposeListener(new DisposeListener() {
+ public void widgetDisposed(DisposeEvent e) {
+ Button button = (Button) e.getSource();
+ button.getImage().dispose();
+ }
+ });
- /**
- * @see org.eclipse.jface.dialogs.Dialog#okPressed()
- */
- @Override
- protected void okPressed() {
- String[] items = fontFamilyList.getItems();
- StringBuffer buf = new StringBuffer();
+ leftButton.setToolTipText(JstUIMessages.REMOVE_FONT_FAMILY_TIP);
- for (int i = 0; i < items.length; i++) {
- buf.append(((i == 0) ? Constants.EMPTY : Constants.COMMA) + items[i]);
- }
+ ImageDescriptor leftDesc = JspEditorPlugin
+ .getImageDescriptor(Constants.IMAGE_LEFT_FILE_LOCATION);
+ Image leftImage = leftDesc.createImage();
+ leftButton.setImage(leftImage);
+ leftButton.setEnabled(false);
+ leftButton.addDisposeListener(new DisposeListener() {
+ public void widgetDisposed(DisposeEvent e) {
+ Button button = (Button) e.getSource();
+ button.getImage().dispose();
+ }
+ });
+ }
- fontFamily = buf.toString();
- super.okPressed();
- }
+ private void handleAddFont() {
+ TableItem[] selectedItems = allFontFamilyTable.getTable()
+ .getSelection();
+ if (selectedItems != null) {
+ Object[] data = new Object[selectedItems.length];
+ for (int i = 0; i < selectedItems.length; i++) {
+ data[i] = selectedItems[i].getData();
+ }
+ fontFamilyTable.add(data);
+ allFontFamilyTable.remove(data);
+ rightButton.setEnabled(false);
+ leftButton.setEnabled(false);
+ }
- /**
- * Method for add to font to sorted list
- *
- * @param list
- * @param font
- */
- private void addFont(List list, String font) {
- Set<String> s = new HashSet<String>();
- String[] items = list.getItems();
- list.removeAll();
+ }
- for (int i = 0; i < items.length; i++) {
- s.add(items[i]);
- }
+ private void handleRemoveFont() {
+ TableItem[] selectedItems = fontFamilyTable.getTable().getSelection();
+ if (selectedItems != null) {
+ Object[] data = new Object[selectedItems.length];
+ for (int i = 0; i < selectedItems.length; i++) {
+ data[i] = selectedItems[i].getData();
+ }
+ addFonts(allFontFamilyTable, data);
+ fontFamilyTable.remove(data);
+ rightButton.setEnabled(false);
+ leftButton.setEnabled(false);
+ }
+ }
- s.add(font);
+ /**
+ * Set title for dialog
+ */
+ protected void configureShell(Shell newShell) {
+ super.configureShell(newShell);
+ newShell.setText(JstUIMessages.FONT_FAMILY_DIALOG_TITLE);
+ }
- String[] answer = new String[s.size()];
- s.toArray(answer);
- Arrays.sort(answer);
+ /**
+ * @see org.eclipse.jface.dialogs.Dialog#okPressed()
+ */
+ @Override
+ protected void okPressed() {
+ TableItem[] items = fontFamilyTable.getTable().getItems();
+ StringBuffer buf = new StringBuffer();
- for (int i = 0; i < answer.length; i++) {
- list.add(answer[i]);
- }
- }
+ for (int i = 0; i < items.length; i++) {
+ buf.append(((i == 0) ? Constants.EMPTY : Constants.COMMA)
+ + items[i].getData());
+ }
- /**
- * Getter for fontFamily attribute
- *
- * @return fontFamily
- */
- public String getFontFamily() {
- return fontFamily;
- }
+ fontFamily = buf.toString();
+ super.okPressed();
+ }
- /**
- * Setter for fontFamily attribute
- *
- * @param fontFamily
- */
- public void setFontFamily(String fontFamily) {
- this.fontFamily = fontFamily;
- }
+ /**
+ * Method for add to font to sorted list
+ *
+ * @param table
+ * @param fonts
+ */
+ private void addFonts(TableViewer table, Object[] fonts) {
+ Set<Object> s = new HashSet<Object>();
+ TableItem[] items = table.getTable().getItems();
- /**
- * Method for parse font family string
- *
- * @param font
- * family string
- * @return list font family
- */
- private String[] fontFamilyParser() {
- existFontFamily = existFontFamily.trim();
+ for (int i = 0; i < items.length; i++) {
+ s.add(items[i].getData());
+ }
- return existFontFamily.split(Constants.COMMA);
- }
+ for (int i = 0; i < fonts.length; i++) {
+ s.add(fonts[i]);
+ }
+ table.getTable().removeAll();
- /**
- * Selection listener
- *
- * @see org.eclipse.swt.events.SelectionListener#widgetDefaultSelected(SelectionEvent)
- */
- public void widgetDefaultSelected(SelectionEvent e) {
- Object ob = e.getSource();
+ String[] answer = new String[s.size()];
+ s.toArray(answer);
+ Arrays.sort(answer);
- if (ob.equals(leftButton)) {
- int[] selectedItems = fontFamilyList.getSelectionIndices();
- String[] items = allFontFamilyList.getItems();
- Set<String> s = new HashSet<String>();
+ for (int i = 0; i < answer.length; i++) {
+ table.add(answer[i]);
+ }
+ }
- for (int i = 0; i < items.length; i++) {
- s.add(items[i]);
- }
+ /**
+ * Getter for fontFamily attribute
+ *
+ * @return fontFamily
+ */
+ public String getFontFamily() {
+ return fontFamily;
+ }
- for (int i = 0; i < selectedItems.length; i++) {
- s.add(fontFamilyList.getItem(selectedItems[i]));
- }
+ /**
+ * Setter for fontFamily attribute
+ *
+ * @param fontFamily
+ */
+ public void setFontFamily(String fontFamily) {
+ this.fontFamily = fontFamily;
+ }
- allFontFamilyList.removeAll();
+ /**
+ * Method for parse font family string
+ *
+ * @param font
+ * family string
+ * @return list font family
+ */
+ private String[] fontFamilyParser() {
+ existFontFamily = existFontFamily.trim();
- String[] answer = new String[s.size()];
- s.toArray(answer);
- Arrays.sort(answer);
+ return existFontFamily.split(Constants.COMMA);
+ }
- for (int i = 0; i < answer.length; i++) {
- allFontFamilyList.add(answer[i]);
- }
+ /**
+ * Selection listener
+ *
+ * @see org.eclipse.swt.events.SelectionListener#widgetDefaultSelected(SelectionEvent)
+ */
+ public void widgetDefaultSelected(SelectionEvent e) {
+ Object ob = e.getSource();
- fontFamilyList.remove(selectedItems);
- leftButton.setEnabled(false);
- } else if (ob.equals(rightButton)) {
- int[] selectedItems = allFontFamilyList.getSelectionIndices();
- String[] items = fontFamilyList.getItems();
- Set<String> s = new HashSet<String>();
+ if (ob.equals(leftButton)) {
+ handleRemoveFont();
+ } else if (ob.equals(rightButton)) {
+ handleAddFont();
+ } else if (ob.equals(allFontFamilyTable)) {
+ fontFamilyTable.getTable().deselectAll();
+ leftButton.setEnabled(false);
+ rightButton.setEnabled(true);
+ } else if (ob.equals(fontFamilyTable)) {
+ allFontFamilyTable.getTable().deselectAll();
+ rightButton.setEnabled(false);
+ leftButton.setEnabled(true);
+ }
+ }
- for (int i = 0; i < items.length; i++) {
- s.add(items[i]);
- }
+ /**
+ * Selection listener
+ *
+ * @see org.eclipse.swt.events.SelectionListener#widgetSelected(SelectionEvent)
+ */
+ public void widgetSelected(SelectionEvent e) {
+ Object ob = e.getSource();
- for (int i = 0; i < selectedItems.length; i++) {
- s.add(allFontFamilyList.getItem(selectedItems[i]));
- }
-
- fontFamilyList.removeAll();
-
- String[] answer = new String[s.size()];
- s.toArray(answer);
- Arrays.sort(answer);
-
- for (int i = 0; i < answer.length; i++) {
- fontFamilyList.add(answer[i]);
- }
-
- allFontFamilyList.remove(selectedItems);
- rightButton.setEnabled(false);
- } else if (ob.equals(allFontFamilyList)) {
- fontFamilyList.deselectAll();
- leftButton.setEnabled(false);
- rightButton.setEnabled(true);
- } else if (ob.equals(fontFamilyList)) {
- allFontFamilyList.deselectAll();
- rightButton.setEnabled(false);
- leftButton.setEnabled(true);
- }
- }
-
- /**
- * Selection listener
- *
- * @see org.eclipse.swt.events.SelectionListener#widgetSelected(SelectionEvent)
- */
- public void widgetSelected(SelectionEvent e) {
- Object ob = e.getSource();
-
- if (ob.equals(leftButton)) {
- int[] selectedItems = fontFamilyList.getSelectionIndices();
- String[] items = allFontFamilyList.getItems();
- Set<String> s = new HashSet<String>();
-
- for (int i = 0; i < items.length; i++) {
- s.add(items[i]);
- }
-
- for (int i = 0; i < selectedItems.length; i++) {
- s.add(fontFamilyList.getItem(selectedItems[i]));
- }
-
- allFontFamilyList.removeAll();
-
- String[] answer = new String[s.size()];
- s.toArray(answer);
- Arrays.sort(answer);
-
- for (int i = 0; i < answer.length; i++) {
- allFontFamilyList.add(answer[i]);
- }
-
- fontFamilyList.remove(selectedItems);
- leftButton.setEnabled(false);
- } else if (ob.equals(rightButton)) {
- int[] selectedItems = allFontFamilyList.getSelectionIndices();
- String[] items = fontFamilyList.getItems();
- Set<String> s = new HashSet<String>();
-
- for (int i = 0; i < items.length; i++) {
- s.add(items[i]);
- }
-
- for (int i = 0; i < selectedItems.length; i++) {
- s.add(allFontFamilyList.getItem(selectedItems[i]));
- }
-
- fontFamilyList.removeAll();
-
- String[] answer = new String[s.size()];
- s.toArray(answer);
- Arrays.sort(answer);
-
- for (int i = 0; i < answer.length; i++) {
- fontFamilyList.add(answer[i]);
- }
-
- allFontFamilyList.remove(selectedItems);
- rightButton.setEnabled(false);
- }
- }
+ if (ob.equals(leftButton)) {
+ handleRemoveFont();
+ } else if (ob.equals(rightButton)) {
+ handleAddFont();
+ }
+ }
}
14 years, 3 months