JBoss Tools SVN: r41565 - in trunk/as: tests/org.jboss.ide.eclipse.as.test/src/org/jboss/ide/eclipse/as/test/util and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: rob.stryker(a)jboss.com
Date: 2012-05-31 01:44:15 -0400 (Thu, 31 May 2012)
New Revision: 41565
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/util/ArgsUtil.java
trunk/as/tests/org.jboss.ide.eclipse.as.test/src/org/jboss/ide/eclipse/as/test/util/ArgsUtilTest.java
Log:
JBIDE-12001 to trunk
Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/util/ArgsUtil.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/util/ArgsUtil.java 2012-05-31 04:01:29 UTC (rev 41564)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/util/ArgsUtil.java 2012-05-31 05:44:15 UTC (rev 41565)
@@ -146,8 +146,11 @@
}
public static String setArg(String allArgs, String shortOpt, String longOpt, String value ) {
- if( value != null && value.contains(SPACE))
- value = QUOTE + value + QUOTE;
+ if( value != null && value.contains(SPACE)) {
+ // avoid double quotes
+ if( !(value.startsWith(QUOTE) && value.endsWith(QUOTE)))
+ value = QUOTE + value + QUOTE;
+ }
return setArg(allArgs, shortOpt, longOpt, value, false);
}
@@ -180,8 +183,12 @@
*/
public static String setArg(String allArgs, String[] shortOpt, String[] longOpt, String value, boolean addQuotes ) {
String originalValue = value;
- if( addQuotes )
+ String rawValue = originalValue;
+ if( value != null && addQuotes )
value = QUOTE + value + QUOTE;
+ else
+ rawValue = getRawValue(value);
+
boolean found = false;
String[] args = parse(allArgs);
String retVal = EMPTY;
@@ -196,7 +203,7 @@
if( value != null ) {
String newVal = null;
if( args[i].startsWith(QUOTE)) {
- newVal = QUOTE + longOpt[0] + EQ + originalValue + QUOTE;
+ newVal = QUOTE + longOpt[0] + EQ + rawValue + QUOTE;
} else {
newVal = longOpt[0] + EQ + value;
}
@@ -219,4 +226,11 @@
return retVal;
}
+ private static String getRawValue(String original) {
+ if( original != null && original.startsWith(QUOTE) && original.endsWith(QUOTE)) {
+ original = original.substring(1);
+ original = original.substring(0, original.length()-1);
+ }
+ return original;
+ }
}
\ No newline at end of file
Modified: trunk/as/tests/org.jboss.ide.eclipse.as.test/src/org/jboss/ide/eclipse/as/test/util/ArgsUtilTest.java
===================================================================
--- trunk/as/tests/org.jboss.ide.eclipse.as.test/src/org/jboss/ide/eclipse/as/test/util/ArgsUtilTest.java 2012-05-31 04:01:29 UTC (rev 41564)
+++ trunk/as/tests/org.jboss.ide.eclipse.as.test/src/org/jboss/ide/eclipse/as/test/util/ArgsUtilTest.java 2012-05-31 05:44:15 UTC (rev 41565)
@@ -11,10 +11,14 @@
package org.jboss.ide.eclipse.as.test.util;
import org.jboss.ide.eclipse.as.core.util.ArgsUtil;
+import org.jboss.ide.eclipse.as.core.util.IJBossRuntimeConstants;
import junit.framework.TestCase;
public class ArgsUtilTest extends TestCase {
+ private static String QUOTE = "\"";
+ private static String EQ = "=";
+
public void testParse() {
assertEquals(1, ArgsUtil.parse("").length);
assertEquals(1, ArgsUtil.parse("a").length);
@@ -104,6 +108,37 @@
}
+
+ public void testOuterQuoteMultipleSet() {
+ String argId = "-Dtest";
+ String folder = "my folder";
+ String args = QUOTE + argId + EQ + folder + QUOTE;
+ String args2 = ArgsUtil.setArg(args, null, argId, folder);
+ assertTrue(args2.trim().equals(args));
+
+ String args3 = ArgsUtil.setArg(args2, null, argId, folder + "2");
+ assertTrue(args3.trim().equals(QUOTE + argId + EQ + folder + "2" + QUOTE));
+ }
+
+ public void testInnerQuotesMultipleSet() {
+ String argId = "-Dtest";
+ String folder = "my folder";
+ String args = argId + EQ + QUOTE + folder + QUOTE;
+ String args2 = ArgsUtil.setArg(args, null, argId, folder + "2");
+ assertTrue(args2.trim().equals(argId + EQ + QUOTE + folder + "2" + QUOTE));
+ args2 = ArgsUtil.setArg(args2, null, argId, folder + "3");
+ assertTrue(args2.trim().equals(argId + EQ + QUOTE + folder + "3" + QUOTE));
+ }
+
+ public void testSetToNulLWithQuotes() {
+ String argId = "-Dtest";
+ String folder = "my folder";
+
+ String args = QUOTE + argId + EQ + folder + QUOTE;
+ String args2 = ArgsUtil.setArg(args, null, argId, null, true);
+ assertTrue(args2.trim().equals(""));
+ }
+
// Just for testing, simply split this string into a bunch of options.
// So I don't need to make new arrays all the time...
public String[] split(String val) {
12 years, 7 months
JBoss Tools SVN: r41564 - branches/jbosstools-3.3.x/esb/tests/org.jboss.tools.esb.ui.bot.test/src/org/jboss/tools/esb/ui/bot/tests/editor/action.
by jbosstools-commits@lists.jboss.org
Author: ldimaggio
Date: 2012-05-31 00:01:29 -0400 (Thu, 31 May 2012)
New Revision: 41564
Modified:
branches/jbosstools-3.3.x/esb/tests/org.jboss.tools.esb.ui.bot.test/src/org/jboss/tools/esb/ui/bot/tests/editor/action/Notifier.java
Log:
Uncommented th etest that was failing due to - JBDS-2167
Modified: branches/jbosstools-3.3.x/esb/tests/org.jboss.tools.esb.ui.bot.test/src/org/jboss/tools/esb/ui/bot/tests/editor/action/Notifier.java
===================================================================
--- branches/jbosstools-3.3.x/esb/tests/org.jboss.tools.esb.ui.bot.test/src/org/jboss/tools/esb/ui/bot/tests/editor/action/Notifier.java 2012-05-31 03:46:58 UTC (rev 41563)
+++ branches/jbosstools-3.3.x/esb/tests/org.jboss.tools.esb.ui.bot.test/src/org/jboss/tools/esb/ui/bot/tests/editor/action/Notifier.java 2012-05-31 04:01:29 UTC (rev 41564)
@@ -103,14 +103,14 @@
/* Comment out due to - https://issues.jboss.org/browse/JBDS-2167 */
-// bot.button("&Add...").click();
-// SWTBotTreeItem [] theItems = bot.tree().getAllItems();
-//
-// theItems[0].getNode("resources.jar").expand();
-// theItems[0].getNode("resources.jar").getNode("META-INF").expand();
-// theItems[0].getNode("resources.jar").getNode("META-INF").getNode("MANIFEST.MF").select();
-// bot.button("&Finish").click();
+ bot.button("&Add...").click();
+ SWTBotTreeItem [] theItems = bot.tree().getAllItems();
+ theItems[0].getNode("resources.jar").expand();
+ theItems[0].getNode("resources.jar").getNode("META-INF").expand();
+ theItems[0].getNode("resources.jar").getNode("META-INF").getNode("MANIFEST.MF").select();
+ bot.button("&Finish").click();
+
editor.save();
}
12 years, 7 months
JBoss Tools SVN: r41563 - trunk/documentation/guides/JBDS_Release_Notes/en-US.
by jbosstools-commits@lists.jboss.org
Author: irooskov(a)redhat.com
Date: 2012-05-30 23:46:58 -0400 (Wed, 30 May 2012)
New Revision: 41563
Modified:
trunk/documentation/guides/JBDS_Release_Notes/en-US/5.0.0_Release_Notes.xml
trunk/documentation/guides/JBDS_Release_Notes/en-US/Article_Info.xml
trunk/documentation/guides/JBDS_Release_Notes/en-US/Features.xml
trunk/documentation/guides/JBDS_Release_Notes/en-US/Fixed_Issues.xml
Log:
updated with new issues
Modified: trunk/documentation/guides/JBDS_Release_Notes/en-US/5.0.0_Release_Notes.xml
===================================================================
--- trunk/documentation/guides/JBDS_Release_Notes/en-US/5.0.0_Release_Notes.xml 2012-05-31 02:20:35 UTC (rev 41562)
+++ trunk/documentation/guides/JBDS_Release_Notes/en-US/5.0.0_Release_Notes.xml 2012-05-31 03:46:58 UTC (rev 41563)
@@ -6,8 +6,8 @@
<xi:include href="Article_Info.xml" xmlns:xi="http://www.w3.org/2001/XInclude"></xi:include>
<xi:include href="Overview.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="Features.xml" xmlns:xi="http://www.w3.org/2001/XInclude">
- </xi:include> -->
+ <xi:include href="Features.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="Revision_History.xml" xmlns:xi="http://www.w3.org/2001/XInclude"></xi:include>
Modified: trunk/documentation/guides/JBDS_Release_Notes/en-US/Article_Info.xml
===================================================================
--- trunk/documentation/guides/JBDS_Release_Notes/en-US/Article_Info.xml 2012-05-31 02:20:35 UTC (rev 41562)
+++ trunk/documentation/guides/JBDS_Release_Notes/en-US/Article_Info.xml 2012-05-31 03:46:58 UTC (rev 41563)
@@ -8,7 +8,7 @@
<productname>JBoss Developer Studio</productname>
<productnumber>5.0</productnumber>
<edition>5.0.0</edition>
- <pubsnumber>3</pubsnumber>
+ <pubsnumber>5</pubsnumber>
<abstract>
<para>
These release notes contain important information related to the JBoss Developer Studio. New features, known issues, resources, and other current issues are addressed here.
Modified: trunk/documentation/guides/JBDS_Release_Notes/en-US/Features.xml
===================================================================
--- trunk/documentation/guides/JBDS_Release_Notes/en-US/Features.xml 2012-05-31 02:20:35 UTC (rev 41562)
+++ trunk/documentation/guides/JBDS_Release_Notes/en-US/Features.xml 2012-05-31 03:46:58 UTC (rev 41563)
@@ -1,11 +1,11 @@
<?xml version='1.0' encoding='utf-8' ?>
-<section id="Issues-fixed-in-this-release">
+<section id="Features">
<title>
Features of version 5.0.0
</title>
-<!-- <para>
+ <para>
The following list highlights new features that have been added to this release, as well as listing notable bug fixes. You can find a complete list of bug fixes <ulink url="https://issues.jboss.org/browse/JBIDE">here</ulink>.
- </para> -->
+ </para>
<formalpara>
<title>JBoss Central</title>
<para>
@@ -30,18 +30,6 @@
The tooling in JBoss Developer Studio 5 works with the Beta version of JBoss Enterprise Application Platform 6.
</para>
</formalpara>
-<!-- <formalpara>
- <title>BPEL</title>
- <para>
- <itemizedlist>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-0000">JBIDE-0000</ulink>:
- </para>
- </listitem>
- </itemizedlist>
- </para>
- </formalpara> -->
<formalpara>
<title>Contexts and Dependency Injection (CDI)</title>
<para>
@@ -90,80 +78,30 @@
</itemizedlist>
</para>
</formalpara>
-<!-- <formalpara>
- <title>ESB</title>
- <para>
- <itemizedlist>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-0000">JBIDE-0000</ulink>:
- </para>
- </listitem>
- </itemizedlist>
- </para>
- </formalpara> -->
- <!-- Google Web Toolkit is only shipped with JBoss.org -->
- <!--
<formalpara>
<title>Google Web Toolkit</title>
<para>
<itemizedlist>
<listitem>
<para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-0000">JBIDE-0000</ulink>:
+ Google Web Toolkit tooling integration is now provided.
</para>
</listitem>
</itemizedlist>
</para>
- </formalpara> -->
- <!--<formalpara>
- <title>Hibernate</title>
- <para>
- <itemizedlist>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-0000">JBIDE-0000</ulink>:
- </para>
- </listitem>
- </itemizedlist>
- </para>
- </formalpara>-->
- <!--<formalpara>
- <title>JBoss Enterprise Portal Platform</title>
- <para>
- <itemizedlist>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-0000">JBIDE-0000</ulink>:
- </para>
- </listitem>
- </itemizedlist>
- </para>
- </formalpara>-->
- <!-- <formalpara>
+ </formalpara>
+ <formalpara>
<title>JavaServer Faces (JSF)</title>
<para>
<itemizedlist>
<listitem>
<para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-0000">JBIDE-0000</ulink>:
+ JSF2 tooling is now available with this release.
</para>
</listitem>
</itemizedlist>
</para>
- </formalpara>-->
- <!-- <formalpara>
- <title>JBoss Application Server</title>
- <para>
- <itemizedlist>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-0000">JBIDE-0000</ulink>:
- </para>
- </listitem>
- </itemizedlist>
- </para>
- </formalpara>-->
+ </formalpara>
<formalpara>
<title>Maven</title>
<para>
@@ -176,19 +114,6 @@
</itemizedlist>
</para>
</formalpara>
-
- <!--<formalpara>
- <title>Portlet</title>
- <para>
- <itemizedlist>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-0000">JBIDE-0000</ulink>:
- </para>
- </listitem>
- </itemizedlist>
- </para>
- </formalpara>-->
<!-- <formalpara>
<title>RichFaces</title>
<para>
@@ -202,18 +127,6 @@
</para>
</formalpara> -->
<!--<formalpara>
- <title>Seam</title>
- <para>
- <itemizedlist>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-0000">JBIDE-0000</ulink>:
- </para>
- </listitem>
- </itemizedlist>
- </para>
- </formalpara> -->
- <!--<formalpara>
<title>Smooks</title>
<para>
<itemizedlist>
@@ -225,105 +138,16 @@
</itemizedlist>
</para>
</formalpara>-->
- <!-- <formalpara>
- <title>Struts</title>
- <para>
- <itemizedlist>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-0000">JBIDE-0000</ulink>:
- </para>
- </listitem>
- </itemizedlist>
- </para>
- </formalpara>-->
-<!-- <formalpara>
- <title>Teiid Designer</title>
- <para>
- <itemizedlist>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-0000">JBIDE-0000</ulink>:
- </para>
- </listitem>
- </itemizedlist>
- </para>
- </formalpara> -->
- <!--<formalpara>
- <title>Usage</title>
- <para>
- <itemizedlist>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-0000">JBIDE-0000</ulink>:
- </para>
- </listitem>
- </itemizedlist>
- </para>
- </formalpara>-->
-<!-- <formalpara>
+ <formalpara>
<title>Visual Page Editor</title>
<para>
<itemizedlist>
<listitem>
<para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-0000">JBIDE-0000</ulink>:
+ A new feature is available as part of the Visual Page Editor called BrowserSim. This feature allows you to simulate application interaction on a range of mobile interfaces including mobiles and tablets.
</para>
</listitem>
</itemizedlist>
</para>
- </formalpara> -->
-<!-- <formalpara>
- <title>Web Tools Platform</title>
- <para>
- <itemizedlist>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-0000">JBIDE-0000</ulink>:
- </para>
- </listitem>
- </itemizedlist>
- </para>
- </formalpara> -->
- <!--<formalpara>
- <title>XHTML Editor</title>
- <para>
- <itemizedlist>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-0000">JBIDE-0000</ulink>:
- </para>
- </listitem>
- </itemizedlist>
- </para>
- </formalpara>-->
- <!-- <formalpara>
- <title>XML Structured Editor</title>
- <para>
- <itemizedlist>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-0000">JBIDE-0000</ulink>:
- </para>
- </listitem>
- </itemizedlist>
- </para>
- </formalpara>-->
-<!-- <formalpara>
- <title>General Issues</title>
- <para>
- <itemizedlist>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBDS-1673">JBDS-1673</ulink>: The JBoss Developer Studio installer server detection did not allign with runtime detection from within the tooling. When detection plug-ins were updated, new servers were not automatically detected due to the code split between detection through the product installation wizard and runtime detection within the user interface. In this release, on first start-up, the installer asks for a list of directories to scan for new servers. The directory selected will then be optionally scanned on every subsequent launch of the JBoss Developer Studio and new discovered servers will be displayed in a list to the user. This allows for new servers to be detected, while not having to duplicate the code and combine it with the runtime detection available from within JBoss Developer Studio.
- </para>
- </listitem>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-9497">JBIDE-9497</ulink>: JBoss Developer Studio now supports the deployment of standalone SAR projects. To undertake this a new wizard has been created to take a user through the process. For further information see the relevant documentation accompanying this release.
- </para>
- </listitem>
- </itemizedlist>
- </para>
- </formalpara> -->
+ </formalpara>
</section>
Modified: trunk/documentation/guides/JBDS_Release_Notes/en-US/Fixed_Issues.xml
===================================================================
--- trunk/documentation/guides/JBDS_Release_Notes/en-US/Fixed_Issues.xml 2012-05-31 02:20:35 UTC (rev 41562)
+++ trunk/documentation/guides/JBDS_Release_Notes/en-US/Fixed_Issues.xml 2012-05-31 03:46:58 UTC (rev 41563)
@@ -1,10 +1,18 @@
<?xml version='1.0' encoding='utf-8' ?>
<section id="Issues-fixed-in-this-release">
<title>
- Features added and issues fixed in version 5.0.0
+ Enhancements and fixed issues in version 5.0.0
</title>
<variablelist>
-
+
+
+
+
+
+
+
+
+
<!-- JBIDE-11635 -->
<varlistentry>
<term>
@@ -16,23 +24,47 @@
</para>
</listitem>
</varlistentry>
-
- <!-- JBIDE-11064 -->
+
+
+
+ <!-- JBIDE-11552 -->
<varlistentry>
<term>
- <ulink url="https://issues.jboss.org/jira/browse/JBIDE-11064">JBIDE-11064</ulink>
+ <ulink url="https://issues.jboss.org/jira/browse/JBIDE-11552">JBIDE-11552</ulink>
</term>
<listitem>
<para>
- Only customers who downloaded and used the Beta release of JBoss Developer Studio 5 may have noticed this issue, that has since been resolved.
+ Support for DeltaSpike portable CDI extensions has been added to the CDI tooling for JBoss Developer Studio 5. This has been archived through the addition of a new org.jboss.tools.cdi.deltaspike feature. The CDI validation preferences page has been updated for DeltaSpike, including security extension validation.
</para>
- <para>
- The JBoss Developer Studio 5.0.Beta JMX tooling was unable to connect to JBoss Application Server 7.1.0 correctly as the ability to connect to the new connector and URL for the server had not been incorporated. New classes have been created for interaction between JMX and JBoss Application Server 7.1.0 and area available as part of JBoss Developer Studio 5.0.
- </para>
</listitem>
</varlistentry>
+
+
+
+
+
+
+
+
+
+ <!-- JBIDE-11064 -->
+ <varlistentry>
+ <term>
+ <ulink url="https://issues.jboss.org/jira/browse/JBIDE-11064">JBIDE-11064</ulink>
+ </term>
+ <listitem>
+ <para>
+ Only customers who downloaded and used the Beta release of JBoss Developer Studio 5 may have noticed this issue, that has since been resolved.
+ </para>
+ <para>
+ The JBoss Developer Studio 5.0.Beta JMX tooling was unable to connect to JBoss Application Server 7.1.0 correctly as the ability to connect to the new connector and URL for the server had not been incorporated. New classes have been created for interaction between JMX and JBoss Application Server 7.1.0 and are available as part of JBoss Developer Studio 5.0.
+ </para>
+ </listitem>
+ </varlistentry>
+
+
<!-- JBIDE-10947 -->
<varlistentry>
<term>
@@ -47,6 +79,7 @@
+
<!-- JBIDE-10390 -->
<varlistentry>
<term>
@@ -764,7 +797,7 @@
</para>
</listitem>
</varlistentry>
-
+
<!-- JBIDE-8421 -->
<varlistentry>
<term><ulink url="https://issues.jboss.org/jira/browse/JBIDE-8421">JBIDE-8421</ulink></term>
@@ -883,4 +916,5 @@
</varlistentry>
</variablelist>
+
</section>
12 years, 7 months
JBoss Tools SVN: r41562 - in trunk/seam/docs/reference/en-US: images/create_new_seam and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: irooskov(a)redhat.com
Date: 2012-05-30 22:20:35 -0400 (Wed, 30 May 2012)
New Revision: 41562
Modified:
trunk/seam/docs/reference/en-US/Book_Info.xml
trunk/seam/docs/reference/en-US/creating_new_seam.xml
trunk/seam/docs/reference/en-US/images/create_new_seam/create_seam_1.png
trunk/seam/docs/reference/en-US/images/create_new_seam/create_seam_10.png
trunk/seam/docs/reference/en-US/images/create_new_seam/create_seam_11.png
trunk/seam/docs/reference/en-US/images/create_new_seam/create_seam_12.png
trunk/seam/docs/reference/en-US/images/create_new_seam/create_seam_15.png
trunk/seam/docs/reference/en-US/images/create_new_seam/create_seam_16.png
trunk/seam/docs/reference/en-US/images/create_new_seam/create_seam_16a.png
trunk/seam/docs/reference/en-US/images/create_new_seam/create_seam_17.png
trunk/seam/docs/reference/en-US/images/create_new_seam/create_seam_18.png
trunk/seam/docs/reference/en-US/images/create_new_seam/create_seam_19.png
trunk/seam/docs/reference/en-US/images/create_new_seam/create_seam_2.png
trunk/seam/docs/reference/en-US/images/create_new_seam/create_seam_23.png
trunk/seam/docs/reference/en-US/images/create_new_seam/create_seam_24.png
trunk/seam/docs/reference/en-US/images/create_new_seam/create_seam_3.png
trunk/seam/docs/reference/en-US/images/create_new_seam/create_seam_4.png
trunk/seam/docs/reference/en-US/images/create_new_seam/create_seam_5.png
trunk/seam/docs/reference/en-US/images/create_new_seam/create_seam_6.png
trunk/seam/docs/reference/en-US/images/create_new_seam/create_seam_7.png
trunk/seam/docs/reference/en-US/images/create_new_seam/create_seam_8.png
trunk/seam/docs/reference/en-US/images/create_new_seam/create_seam_9.png
Log:
updated for JBDS-2022
Modified: trunk/seam/docs/reference/en-US/Book_Info.xml
===================================================================
--- trunk/seam/docs/reference/en-US/Book_Info.xml 2012-05-31 01:59:58 UTC (rev 41561)
+++ trunk/seam/docs/reference/en-US/Book_Info.xml 2012-05-31 02:20:35 UTC (rev 41562)
@@ -7,7 +7,7 @@
<productname>JBoss Developer Studio</productname>
<productnumber>5.0</productnumber>
<edition>5.0.0</edition>
- <pubsnumber>2</pubsnumber>
+ <pubsnumber>4</pubsnumber>
<abstract>
<para>The Seam Developer Tools Reference Guide explains how to use the Seam Developer Tools module to create Seam projects for deployment.</para>
</abstract>
Modified: trunk/seam/docs/reference/en-US/creating_new_seam.xml
===================================================================
--- trunk/seam/docs/reference/en-US/creating_new_seam.xml 2012-05-31 01:59:58 UTC (rev 41561)
+++ trunk/seam/docs/reference/en-US/creating_new_seam.xml 2012-05-31 02:20:35 UTC (rev 41562)
@@ -20,7 +20,7 @@
</para>
<para>
- The <emphasis> <property>Open Web Browser</property></emphasis> action is directly available in the <property>Seam perspective</property>.
+ The <guibutton>Open Web Browser</guibutton> action is directly available in the <property>Seam perspective</property>.
</para>
<figure>
@@ -39,7 +39,7 @@
</para>
<para>
- Thus, you should select <menuchoice><guimenuitem>File</guimenuitem><guimenuitem>New</guimenuitem><guimenuitem>Seam Web Project</guimenuitem></menuchoice> to run the <property>New Seam Project</property> wizard. The wizard form allows you to create runtime and server instances in order to get started creating, running, and debugging J2EE (only) applications.
+ Thus, you should select <menuchoice><guimenuitem>File</guimenuitem><guimenuitem>New</guimenuitem><guimenuitem>Other</guimenuitem><guimenuitem>Seam</guimenuitem><guimenuitem>Seam Web Project</guimenuitem></menuchoice> to run the <property>New Seam Project</property> wizard. The wizard form allows you to create runtime and server instances in order to get started creating, running, and debugging J2EE (only) applications.
</para>
<para>
@@ -64,7 +64,7 @@
</para>
<para>
- If you need to create a new runtime, click on the <emphasis> <property>New...</property> </emphasis> button in the <property>Target Runtime</property> section. It brings up the wizard where you can specify a new JBoss Server Runtime environment or the other type of runtime appropriate for your project configuration. Let's create one more JBoss 4.2 Runtime. Hence, after choosing it click on <emphasis> <property>Next</property> </emphasis> button.
+ If you need to create a new runtime, click on the <guibutton>New</guibutton> button in the <property>Target Runtime</property> section. It brings up the wizard where you can specify a new JBoss Server Runtime environment or the other type of runtime appropriate for your project configuration. Let's create one more JBoss Enterprise Application Platform 6.0 Runtime. Hence, after choosing it click on <guibutton>Next</guibutton> button.
</para>
<figure>
@@ -77,7 +77,8 @@
</figure>
<para>
- All what you need here is to name runtime, type the path to its install directory or locate it by using <emphasis> <property>Browse</property> </emphasis> button, select a Java Runtime Environment, and select which configuration you want.
+ All what you need here is to name runtime, type the path to its install directory or locate it by using
+ <guibutton>Browse</guibutton> button, select a Java Runtime Environment, and select which configuration you want.
</para>
<figure>
@@ -90,15 +91,15 @@
</figure>
<para>
- Clicking on <emphasis> <property>Finish</property> </emphasis> returns you to the <xref linkend="figure_create_seam1"/>.
+ Clicking on <guibutton>Finish</guibutton> returns you to the <xref linkend="figure_create_seam1"/>.
</para>
<para>
- The next step is to define a Server by clicking on <emphasis> <property>New...</property> </emphasis> button in the <property>Target Server</property> section. In appeared <property>New Server dialog</property> the last server which matches the runtime will be selected.
+ The next step is to define a Server by clicking on <guibutton>New</guibutton> button in the <property>Target Server</property> section. In appeared <property>New Server dialog</property> the last server which matches the runtime will be selected.
</para>
<para>
- All declared runtimes are listed in the combobox under the servers view. Here, you can indicate a server runtime that you need. Click <emphasis> <property>Add</property> </emphasis> if you want to add a new Server Runtime.
+ All declared runtimes are listed in the combobox under the servers view. Here, you can indicate a server runtime that you need. Click <guibutton>Add</guibutton> if you want to add a new Server Runtime.
</para>
<figure>
@@ -111,7 +112,7 @@
</figure>
<para>
- Next page allows you to verify the information for a chosen server. Leave everything as it is and click on <emphasis> <property>Next</property> </emphasis>.
+ Next page allows you to verify the information for a chosen server. Leave everything as it is and click on <guibutton>Next</guibutton>.
</para>
<figure>
@@ -137,13 +138,12 @@
</figure>
<para>
- Once you have the Target Server defined click on <emphasis> <property>Finish</property> </emphasis> button to return to the first page of the <property>New Seam Project wizard</property>.
+ Once you have the Target Server defined click on <guibutton>Finish</guibutton> button to return to the first page of the <property>New Seam Project wizard</property>.
</para>
<note>
- <title>Tip:</title>
<para>
- We suggest that you look through the Application Server Manager Guide to find out more about runtimes and servers.
+ Refer to the Application Server Manager Guide to find out more about runtimes and servers.
</para>
</note>
@@ -157,7 +157,7 @@
</figure>
<para>
- The last section on this wizard step is <property>Configuration</property>. Here, you can select one of the predefined project configurations either associated with Seam 1.2, Seam 2.0 or with Seam 2.1. Furthermore, you can create your own configuration by pressing the <guibutton>Modify...</guibutton> button. It will open the dialog which allows to configure your own set of facets for adding extra functionality to your project.
+ The last section on this wizard step is <property>Configuration</property>. Here, you can select one of the predefined project configurations either associated with Seam 1.2, Seam 2.0 or with Seam 2.1. Furthermore, you can create your own configuration by pressing the <guibutton>Modify</guibutton> button. It will open the dialog which allows to configure your own set of facets for adding extra functionality to your project.
</para>
<para>
@@ -185,7 +185,7 @@
</figure>
<para>
- Moreover, here you can specify your own preset of selected facets by checking needed ones in project facets window and clicking on <emphasis> <property>Save</property> </emphasis> button.
+ Moreover, here you can specify your own preset of selected facets by checking needed ones in project facets window and clicking on the <guibutton>Save as</guibutton> button.
</para>
<figure>
@@ -198,7 +198,7 @@
</figure>
<para>
- To see all available Server runtimes click on <property>Runtimes</property> tab on the left. You can create a new one using the <emphasis> <property>New</property> </emphasis> button. If more than one runtime is checked here, the <emphasis> <property>Make Primary</property> </emphasis> button won't be dimmed yet. Thus, you can make use of it to mark primary runtime.
+ To see all available Server runtimes click on <property>Runtimes</property> tab on the left. You can create a new one using the <guibutton>New</guibutton> button. If more than one runtime is checked here, the <guibutton>Make Primary</guibutton> button will not be dimmed yet. Thus, you can make use of it to mark primary runtime.
</para>
<figure>
@@ -211,13 +211,13 @@
</figure>
<para>
- Clicking the <guibutton>OT</guibutton> button will bring you to the <property>Web Module</property> wizard form again.
+ Clicking the <guibutton>OK</guibutton> button will bring you to the <property>Web Module</property> wizard form again.
</para>
- <section id="seamWithJPA">
+<!-- <section id="seamWithJPA">
<title>Seam project with JPA facets</title>
<para>
- For creating Seam project with JPA support you need to select<property> Java Persistent</property> facet on <property>Project Facets</property> page and click <property>OK</property>.
+ For creating Seam project with JPA support you need to select<property> Java Persistent</property> facet on <property>Project Facets</property> page and click <guibutton>OK</guibutton>.
</para>
<para>
@@ -255,13 +255,13 @@
<para>
On the next step you will see <property>JSF Capabilities</property> and <property>Seam facet</property> pages, which are mostly the same as in general Seam project.
</para>
- </section>
- </section>
+ </section> -->
+</section>
<section id="configureJava">
<title>Java application building configuration</title>
<para>
- With this wizard you can define Java source directories which will be generated on build path. Also you can specify a default output folder. If you are agree with default values, press <property>Next</property>
+ With this wizard you can define Java source directories which will be generated on build path. Also you can specify a default output folder. If you are agree with default values, press <guibutton>Next</guibutton>
</para>
<figure>
@@ -290,7 +290,7 @@
</figure>
<para>
- Choose <emphasis> <property>Next</property> </emphasis> to switch to the next wizard form.
+ Choose <guibutton>Next</guibutton> to switch to the next wizard form.
</para>
</section>
@@ -432,7 +432,7 @@
</itemizedlist>
<para>
- For that click on <emphasis> <property>Add</property> </emphasis> button in the <property>General</property> section. Note, in the wizard shown below you can create a Seam runtime only for the version that was selected in the <xref linkend="projectFacets"/> wizard (version 1.2 in our case).
+ For that click on <guibutton>Add</guibutton> button in the <property>General</property> section. Note, in the wizard shown below you can create a Seam runtime only for the version that was selected in the <xref linkend="projectFacets"/> wizard.
</para>
<figure>
@@ -460,10 +460,10 @@
<note>
<para>
- If you want to name your web project "MyProject-war" note that the EJB project should not be "MyProject-war-ejb", it should be "MyProject-ejb". The same for EAR and Test projects' names. They should be respectively "MyProject-ear" and "MyProject-test".
+ If you want to name your web project "MyProject-war" the EJB project should not be "MyProject-war-ejb", it should be "MyProject-ejb". The same for EAR and Test projects' names. They should be respectively "MyProject-ear" and "MyProject-test".
</para>
</note>
-
+<!--
<para>
The next block of settings in the Seam Facet wizard are describing a Database and a connection to it.
</para>
@@ -527,7 +527,7 @@
</imageobject>
</mediaobject>
</figure>
-
+ -->
<para>
In the <property>Code Generation</property> section the wizard has already provided the names for your <property>Session Bean</property>, <property>Entity Bean</property> and <property>Test</property> packages generation (optional). Of course, you can change them on others of your choice.
</para>
@@ -542,7 +542,7 @@
</figure>
<para>
- Click on <emphasis> <property>Finish</property> </emphasis> to generate a project.
+ Click on <guibutton>Finish</guibutton> to generate a project.
</para>
<para/>
Modified: trunk/seam/docs/reference/en-US/images/create_new_seam/create_seam_1.png
===================================================================
(Binary files differ)
Modified: trunk/seam/docs/reference/en-US/images/create_new_seam/create_seam_10.png
===================================================================
(Binary files differ)
Modified: trunk/seam/docs/reference/en-US/images/create_new_seam/create_seam_11.png
===================================================================
(Binary files differ)
Modified: trunk/seam/docs/reference/en-US/images/create_new_seam/create_seam_12.png
===================================================================
(Binary files differ)
Modified: trunk/seam/docs/reference/en-US/images/create_new_seam/create_seam_15.png
===================================================================
(Binary files differ)
Modified: trunk/seam/docs/reference/en-US/images/create_new_seam/create_seam_16.png
===================================================================
(Binary files differ)
Modified: trunk/seam/docs/reference/en-US/images/create_new_seam/create_seam_16a.png
===================================================================
(Binary files differ)
Modified: trunk/seam/docs/reference/en-US/images/create_new_seam/create_seam_17.png
===================================================================
(Binary files differ)
Modified: trunk/seam/docs/reference/en-US/images/create_new_seam/create_seam_18.png
===================================================================
(Binary files differ)
Modified: trunk/seam/docs/reference/en-US/images/create_new_seam/create_seam_19.png
===================================================================
(Binary files differ)
Modified: trunk/seam/docs/reference/en-US/images/create_new_seam/create_seam_2.png
===================================================================
(Binary files differ)
Modified: trunk/seam/docs/reference/en-US/images/create_new_seam/create_seam_23.png
===================================================================
(Binary files differ)
Modified: trunk/seam/docs/reference/en-US/images/create_new_seam/create_seam_24.png
===================================================================
(Binary files differ)
Modified: trunk/seam/docs/reference/en-US/images/create_new_seam/create_seam_3.png
===================================================================
(Binary files differ)
Modified: trunk/seam/docs/reference/en-US/images/create_new_seam/create_seam_4.png
===================================================================
(Binary files differ)
Modified: trunk/seam/docs/reference/en-US/images/create_new_seam/create_seam_5.png
===================================================================
(Binary files differ)
Modified: trunk/seam/docs/reference/en-US/images/create_new_seam/create_seam_6.png
===================================================================
(Binary files differ)
Modified: trunk/seam/docs/reference/en-US/images/create_new_seam/create_seam_7.png
===================================================================
(Binary files differ)
Modified: trunk/seam/docs/reference/en-US/images/create_new_seam/create_seam_8.png
===================================================================
(Binary files differ)
Modified: trunk/seam/docs/reference/en-US/images/create_new_seam/create_seam_9.png
===================================================================
(Binary files differ)
12 years, 7 months
JBoss Tools SVN: r41561 - in workspace/dgolovin/new-releng: target-platform and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: dgolovin
Date: 2012-05-30 21:59:58 -0400 (Wed, 30 May 2012)
New Revision: 41561
Modified:
workspace/dgolovin/new-releng/parent/pom.xml
workspace/dgolovin/new-releng/target-platform/jboss.tools.tp.product
Log:
juno target platform version
Modified: workspace/dgolovin/new-releng/parent/pom.xml
===================================================================
--- workspace/dgolovin/new-releng/parent/pom.xml 2012-05-31 01:20:27 UTC (rev 41560)
+++ workspace/dgolovin/new-releng/parent/pom.xml 2012-05-31 01:59:58 UTC (rev 41561)
@@ -385,9 +385,122 @@
</releases>
</repository>
</repositories>
-
</profile>
-
+ <profile>
+ <id>indigo-3.7.2</id>
+ <repositories>
+ <repository>
+ <id>eclipse</id>
+ <url>http://mirrors.xmission.com/eclipse/releases/indigo</url>
+ <layout>p2</layout>
+ <snapshots>
+ <enabled>true</enabled>
+ </snapshots>
+ <releases>
+ <enabled>true</enabled>
+ </releases>
+ </repository>
+ <repository>
+ <id>gef</id>
+ <url>http://download.eclipse.org/tools/gef/updates/releases/</url>
+ <layout>p2</layout>
+ <snapshots>
+ <enabled>true</enabled>
+ </snapshots>
+ <releases>
+ <enabled>true</enabled>
+ </releases>
+ </repository>
+ <repository>
+ <id>eclipse.swtbot</id>
+ <url>http://download.eclipse.org/technology/swtbot/helios/dev-build/update-site</url>
+ <layout>p2</layout>
+ <snapshots>
+ <enabled>true</enabled>
+ </snapshots>
+ <releases>
+ <enabled>true</enabled>
+ </releases>
+ </repository>
+ <repository>
+ <id>eclipse.xulrunner</id>
+ <url>http://download.jboss.org/jbosstools/updates/requirements/xulrunner-1.9.2</url>
+ <layout>p2</layout>
+ <snapshots>
+ <enabled>true</enabled>
+ </snapshots>
+ <releases>
+ <enabled>true</enabled>
+ </releases>
+ </repository>
+ <repository>
+ <id>eclipse.wtp</id>
+ <url>http://download.eclipse.org/webtools/repository/indigo/</url>
+ <layout>p2</layout>
+ <snapshots>
+ <enabled>true</enabled>
+ </snapshots>
+ <releases>
+ <enabled>true</enabled>
+ </releases>
+ </repository>
+ <repository>
+ <id>eclipse.birt</id>
+ <url>http://download.eclipse.org/birt/update-site/3.7</url>
+ <layout>p2</layout>
+ <snapshots>
+ <enabled>true</enabled>
+ </snapshots>
+ <releases>
+ <enabled>true</enabled>
+ </releases>
+ </repository>
+ <repository>
+ <id>eclipse.m2e</id>
+ <url>http://download.eclipse.org/technology/m2e/releases/1.0/1.0.200.20111228-...</url>
+ <layout>p2</layout>
+ <snapshots>
+ <enabled>true</enabled>
+ </snapshots>
+ <releases>
+ <enabled>true</enabled>
+ </releases>
+ </repository>
+ <repository>
+ <id>eclipse.m2e-wtp</id>
+ <url>http://download.jboss.org/jbosstools/updates/requirements/m2eclipse/m2ecl...</url>
+ <layout>p2</layout>
+ <snapshots>
+ <enabled>true</enabled>
+ </snapshots>
+ <releases>
+ <enabled>true</enabled>
+ </releases>
+ </repository>
+ <repository>
+ <id>eclipse.m2e-extra</id>
+ <url>http://repository.sonatype.org/content/repositories/forge-sites/m2e-extra...</url>
+ <layout>p2</layout>
+ <snapshots>
+ <enabled>true</enabled>
+ </snapshots>
+ <releases>
+ <enabled>true</enabled>
+ </releases>
+ </repository>
+ <repository>
+ <id>gwt</id>
+ <url>http://dl.google.com/eclipse/plugin/3.7</url>
+ <layout>p2</layout>
+ <snapshots>
+ <enabled>true</enabled>
+ </snapshots>
+ <releases>
+ <enabled>true</enabled>
+ </releases>
+ </repository>
+ </repositories>
+ </profile>
</profiles>
@@ -395,7 +508,7 @@
eclipse -->
<repositories>
<repository>
- <id>eclipse</id>
+ <id>eclipse-indigo</id>
<url>http://mirrors.xmission.com/eclipse/releases/indigo</url>
<layout>p2</layout>
<snapshots>
@@ -404,6 +517,17 @@
<releases>
<enabled>true</enabled>
</releases>
+ </repository>
+ <repository>
+ <id>eclipse-juno</id>
+ <url>http://mirrors.xmission.com/eclipse/releases/juno</url>
+ <layout>p2</layout>
+ <snapshots>
+ <enabled>true</enabled>
+ </snapshots>
+ <releases>
+ <enabled>true</enabled>
+ </releases>
</repository>
<repository>
<id>gef</id>
@@ -440,7 +564,7 @@
</repository>
<repository>
<id>eclipse.wtp</id>
- <url>http://download.eclipse.org/webtools/repository/indigo/</url>
+ <url>http://download.eclipse.org/webtools/repository/juno/</url>
<layout>p2</layout>
<snapshots>
<enabled>true</enabled>
@@ -451,7 +575,7 @@
</repository>
<repository>
<id>eclipse.birt</id>
- <url>http://download.eclipse.org/birt/update-site/3.7</url>
+ <url>http://download.eclipse.org/birt/update-site/4.2-interim/</url>
<layout>p2</layout>
<snapshots>
<enabled>true</enabled>
@@ -473,7 +597,7 @@
</repository>
<repository>
<id>eclipse.m2e-wtp</id>
- <url>http://download.jboss.org/jbosstools/updates/requirements/m2eclipse/m2ecl...</url>
+ <url>http://download.jboss.org/jbosstools/updates/requirements/m2eclipse/m2ecl...</url>
<layout>p2</layout>
<snapshots>
<enabled>true</enabled>
@@ -484,7 +608,7 @@
</repository>
<repository>
<id>eclipse.m2e-extra</id>
- <url>http://repository.sonatype.org/content/repositories/forge-sites/m2e-extra...</url>
+ <url>http://repository.sonatype.org/content/repositories/forge-sites/m2e-extra...</url>
<layout>p2</layout>
<snapshots>
<enabled>true</enabled>
@@ -493,7 +617,7 @@
<enabled>true</enabled>
</releases>
</repository>
- <repository>
+ <repository>
<id>gwt</id>
<url>http://dl.google.com/eclipse/plugin/3.7</url>
<layout>p2</layout>
@@ -504,5 +628,17 @@
<enabled>true</enabled>
</releases>
</repository>
+ <repository>
+ <id>jetty</id>
+ <url>http://download.eclipse.org/jetty/updates/jetty-bundles-8.x</url>
+ <layout>p2</layout>
+ <snapshots>
+ <enabled>true</enabled>
+ </snapshots>
+ <releases>
+ <enabled>true</enabled>
+ </releases>
+ </repository>
</repositories>
+
</project>
Modified: workspace/dgolovin/new-releng/target-platform/jboss.tools.tp.product
===================================================================
--- workspace/dgolovin/new-releng/target-platform/jboss.tools.tp.product 2012-05-31 01:20:27 UTC (rev 41560)
+++ workspace/dgolovin/new-releng/target-platform/jboss.tools.tp.product 2012-05-31 01:59:58 UTC (rev 41561)
@@ -106,7 +106,7 @@
<feature id="org.eclipse.graphiti.sdk.plus.feature"/>
<feature id="org.eclipse.emf.transaction.sdk"/>
<feature id="org.eclipse.emf.validation.sdk"/>
- <feature id="org.eclipse.epp.usagedata.feature"/>
+ <!--feature id="org.eclipse.epp.usagedata.feature"/-->
<feature id="org.eclipse.ocl.core.sdk"/>
<feature id="org.eclipse.ocl.all.sdk"/>
<feature id="org.eclipse.uml2.sdk"/>
12 years, 7 months
JBoss Tools SVN: r41560 - trunk/esb/tests/org.jboss.tools.esb.ui.bot.test/src/org/jboss/tools/esb/ui/bot/tests/editor/action.
by jbosstools-commits@lists.jboss.org
Author: ldimaggio
Date: 2012-05-30 21:20:27 -0400 (Wed, 30 May 2012)
New Revision: 41560
Modified:
trunk/esb/tests/org.jboss.tools.esb.ui.bot.test/src/org/jboss/tools/esb/ui/bot/tests/editor/action/Notifier.java
Log:
Uncomment the previously failing test as JBDS-2167 is resolved
Modified: trunk/esb/tests/org.jboss.tools.esb.ui.bot.test/src/org/jboss/tools/esb/ui/bot/tests/editor/action/Notifier.java
===================================================================
--- trunk/esb/tests/org.jboss.tools.esb.ui.bot.test/src/org/jboss/tools/esb/ui/bot/tests/editor/action/Notifier.java 2012-05-30 23:53:15 UTC (rev 41559)
+++ trunk/esb/tests/org.jboss.tools.esb.ui.bot.test/src/org/jboss/tools/esb/ui/bot/tests/editor/action/Notifier.java 2012-05-31 01:20:27 UTC (rev 41560)
@@ -103,14 +103,14 @@
/* Comment out due to - https://issues.jboss.org/browse/JBDS-2167 */
-// bot.button("&Add...").click();
-// SWTBotTreeItem [] theItems = bot.tree().getAllItems();
-//
-// theItems[0].getNode("resources.jar").expand();
-// theItems[0].getNode("resources.jar").getNode("META-INF").expand();
-// theItems[0].getNode("resources.jar").getNode("META-INF").getNode("MANIFEST.MF").select();
-// bot.button("&Finish").click();
+ bot.button("&Add...").click();
+ SWTBotTreeItem [] theItems = bot.tree().getAllItems();
+ theItems[0].getNode("resources.jar").expand();
+ theItems[0].getNode("resources.jar").getNode("META-INF").expand();
+ theItems[0].getNode("resources.jar").getNode("META-INF").getNode("MANIFEST.MF").select();
+ bot.button("&Finish").click();
+
editor.save();
}
12 years, 7 months
JBoss Tools SVN: r41559 - trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2012-05-30 19:53:15 -0400 (Wed, 30 May 2012)
New Revision: 41559
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/PageContextFactory.java
Log:
JBIDE-10738
https://issues.jboss.org/browse/JBIDE-10738
Improved method PageContextFactory.getResource() to find IFile for an arbitrary IDocument.
Modified: trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/PageContextFactory.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/PageContextFactory.java 2012-05-30 23:36:06 UTC (rev 41558)
+++ trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/PageContextFactory.java 2012-05-30 23:53:15 UTC (rev 41559)
@@ -22,6 +22,7 @@
import java.util.Set;
import org.eclipse.core.filebuffers.FileBuffers;
+import org.eclipse.core.filebuffers.ITextFileBuffer;
import org.eclipse.core.internal.resources.ICoreConstants;
import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IProject;
@@ -31,6 +32,7 @@
import org.eclipse.core.resources.IResourceDelta;
import org.eclipse.core.resources.IStorage;
import org.eclipse.core.resources.IWorkspaceRoot;
+import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.Path;
@@ -503,6 +505,18 @@
sModel.releaseFromRead();
}
}
+
+ ITextFileBuffer buffer = FileBuffers.getTextFileBufferManager().getTextFileBuffer(document);
+ if (buffer != null && buffer.getLocation() != null) {
+ IPath path = buffer.getLocation();
+ if (path.segmentCount() > 1) {
+ IFile file = ResourcesPlugin.getWorkspace().getRoot().getFile(path);
+ if (file.isAccessible()) {
+ return file;
+ }
+ }
+ }
+
return null;
}
12 years, 7 months
JBoss Tools SVN: r41558 - trunk/documentation/whatsnew/cdi.
by jbosstools-commits@lists.jboss.org
Author: akazakov
Date: 2012-05-30 19:36:06 -0400 (Wed, 30 May 2012)
New Revision: 41558
Added:
trunk/documentation/whatsnew/cdi/cdi-news-3.3.0.CR1.html
Modified:
trunk/documentation/whatsnew/cdi/cdi-news-3.3.0.Beta1.html
Log:
https://issues.jboss.org/browse/JBIDE-11934 CDI Component N&N
Modified: trunk/documentation/whatsnew/cdi/cdi-news-3.3.0.Beta1.html
===================================================================
--- trunk/documentation/whatsnew/cdi/cdi-news-3.3.0.Beta1.html 2012-05-30 23:06:22 UTC (rev 41557)
+++ trunk/documentation/whatsnew/cdi/cdi-news-3.3.0.Beta1.html 2012-05-30 23:36:06 UTC (rev 41558)
@@ -6,7 +6,7 @@
<meta http-equiv="Content-Language" content="en-us" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" href="../whatsnew.css" />
-<title>CDI/Seam 3 tools 3.3.0.M5 What's New</title>
+<title>CDI/Seam 3 tools 3.3.0.Beta1 What's New</title>
<script type="text/javascript">
var _gaq = _gaq || [];
Added: trunk/documentation/whatsnew/cdi/cdi-news-3.3.0.CR1.html
===================================================================
--- trunk/documentation/whatsnew/cdi/cdi-news-3.3.0.CR1.html (rev 0)
+++ trunk/documentation/whatsnew/cdi/cdi-news-3.3.0.CR1.html 2012-05-30 23:36:06 UTC (rev 41558)
@@ -0,0 +1,77 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Language" content="en-us" />
+<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+<link rel="stylesheet" href="../whatsnew.css" />
+<title>CDI/Seam 3 tools 3.3.0.CR1 What's New</title>
+<script type="text/javascript">
+
+ var _gaq = _gaq || [];
+ _gaq.push(['_setAccount', 'UA-17645367-5']);
+ _gaq.push(['_trackPageview']);
+
+ (function() {
+ var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
+ ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
+ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
+ })();
+
+</script></head>
+<body>
+<h1>CDI tools 3.3.0.CR1 What's New</h1>
+
+<p align="right"><a href="../index.html">< Main Index</a> <a
+ href="../maven/maven-news-3.3.0.CR1.html">Maven Tools News ></a></p>
+
+<table border="0" cellpadding="10" cellspacing="0" width="80%">
+
+ <tr>
+ <td colspan="2">
+ <hr />
+ <h3>Apache Deltaspike</h3>
+ <hr />
+ </td>
+ </tr>
+ <tr>
+ <td valign="top" align="left">
+ <p><b>Deltaspike Annotations</b></p>
+ </td>
+ <td align="top">
+ <p>
+ Since this version CDI tools supports a bunch of Apache Deltaspike CDI extensions. If your project has CDI support enabled (Project->Properties->CDI) and the project classpath contains corresponding Deltaspike module then Deltaspike features will be enabled automatically.
+ </p>
+ <p>CDI tools recognizes some Deltaspike annotations which should be taken into account by the related tools features such as validation, code completion, hyperlinks, refactoring, etc.</p>
+ <p>Here is a full list of Deltaspike annotations which is now supported by CDI tools:
+ <ul>
+ <li>@Excludes</li>
+ <li>@ConfigProperty</li>
+ <li>@MessageBundle</li>
+ <li>@ExceptionHandler</li>
+ <li>@Handles</li>
+ <li>@Sequres</li>
+ <li>@SecurityBindingType</li>
+ <li>@SecurityParameterBinding</li>
+ <li>@Sequred</li>
+ </ul>
+ </p>
+ <p>
+ <small>
+ <a href="https://issues.jboss.org/browse/JBIDE-11552">Related Jira</a>
+ </small><br/>
+ </p>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="2">
+ <hr />
+ </td>
+ </tr>
+
+</table>
+
+</body>
+
+</html>
\ No newline at end of file
Property changes on: trunk/documentation/whatsnew/cdi/cdi-news-3.3.0.CR1.html
___________________________________________________________________
Added: svn:mime-type
+ text/plain
12 years, 7 months
JBoss Tools SVN: r41557 - in trunk/seam/docs/reference/en-US: images/create_new_seam and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: irooskov(a)redhat.com
Date: 2012-05-30 19:06:22 -0400 (Wed, 30 May 2012)
New Revision: 41557
Modified:
trunk/seam/docs/reference/en-US/Book_Info.xml
trunk/seam/docs/reference/en-US/creating_mavenized_seam.xml
trunk/seam/docs/reference/en-US/creating_new_seam.xml
trunk/seam/docs/reference/en-US/images/create_new_seam/create_seam_11.png
trunk/seam/docs/reference/en-US/images/create_new_seam/create_seam_12.png
trunk/seam/docs/reference/en-US/images/create_new_seam/create_seam_20.png
trunk/seam/docs/reference/en-US/images/create_new_seam/create_seam_21.png
trunk/seam/docs/reference/en-US/intro.xml
Log:
updated for JBDS-2022
Modified: trunk/seam/docs/reference/en-US/Book_Info.xml
===================================================================
--- trunk/seam/docs/reference/en-US/Book_Info.xml 2012-05-30 22:39:57 UTC (rev 41556)
+++ trunk/seam/docs/reference/en-US/Book_Info.xml 2012-05-30 23:06:22 UTC (rev 41557)
@@ -7,7 +7,7 @@
<productname>JBoss Developer Studio</productname>
<productnumber>5.0</productnumber>
<edition>5.0.0</edition>
- <pubsnumber>1</pubsnumber>
+ <pubsnumber>2</pubsnumber>
<abstract>
<para>The Seam Developer Tools Reference Guide explains how to use the Seam Developer Tools module to create Seam projects for deployment.</para>
</abstract>
Modified: trunk/seam/docs/reference/en-US/creating_mavenized_seam.xml
===================================================================
--- trunk/seam/docs/reference/en-US/creating_mavenized_seam.xml 2012-05-30 22:39:57 UTC (rev 41556)
+++ trunk/seam/docs/reference/en-US/creating_mavenized_seam.xml 2012-05-30 23:06:22 UTC (rev 41557)
@@ -12,22 +12,9 @@
</chapterinfo>
<title>Maven Integration for Seam Projects</title>
<para>
- Starting from 3.1 M2 version <property>JBoss Tools</property> includes new Jboss Maven Integration plug-in which for now allows to create mavenized Seam projects and enable Seam tools support for imported Maven projects.
+ Maven integration is included by default, allowing you to create mavenized Seam projects and use Seam tools with imported Maven projects.
</para>
- <para>
- The Jboss Maven Integration requires <ulink url="http://m2eclipse.sonatype.org/"
- >m2eclipse</ulink> to be installed.
- </para>
-
- <note>
- <title>Note:</title>
- <para>
- For M2 release of <property>Jboss Tools</property> it is important to use m2eclipse <ulink url="http://m2eclipse.sonatype.org/update/">stable updatesite</ulink> or the <ulink url="http://m2eclipse.sonatype.org/releases/0.9.9.200906081351">latest integration build</ulink> that M2 was developed against. If you want to use the latest development release of m2eclipse you need to use the <ulink
- url="http://download.jboss.org/jbosstools/updates/nightly/trunk/">nightly builds</ulink> of <property>JBoss Tools</property>.
- </para>
- </note>
-
<section id="create_mavenized_project">
<title>Creating Maven ready Seam project</title>
<para>
@@ -41,7 +28,7 @@
<itemizedlist>
<listitem>
<para>
- Navigate to <menuchoice><guimenuitem>File</guimenuitem><guimenuitem>New Seam Project.</guimenuitem></menuchoice> Give the project a meaningful name, specify a target runtime and server and select the proper configuration for your Seam project:
+ Navigate to <menuchoice><guimenuitem>File</guimenuitem><guimenuitem>New</guimenuitem><guimenuitem>Seam Project</guimenuitem></menuchoice>. Give the project a meaningful name, specify a target runtime and server and select the proper configuration for your Seam project:
</para>
<figure>
@@ -91,7 +78,7 @@
<listitem>
<para>
- On the <property>JSF Capabilities</property> page you can choose Maven as libraries provider. This is possible when you use Maven JSF 1.2 Libraries as type of JSF Implementing Library. Also it gives you capability to edit Dependencies and Exclusions for the mavenized Seam project directly from the wizard.
+ On the <property>JSF Capabilities</property> page you can choose Maven as libraries provider. This is possible when you use Seam version compatible Maven JSF Libraries as a type of JSF Implementing Library. Also it gives you capability to edit Dependencies and Exclusions for the mavenized Seam project directly from the wizard.
</para>
<figure>
Modified: trunk/seam/docs/reference/en-US/creating_new_seam.xml
===================================================================
--- trunk/seam/docs/reference/en-US/creating_new_seam.xml 2012-05-30 22:39:57 UTC (rev 41556)
+++ trunk/seam/docs/reference/en-US/creating_new_seam.xml 2012-05-30 23:06:22 UTC (rev 41557)
@@ -16,20 +16,11 @@
</para>
<para>
- At first, we suggest to set the specific Seam perspective that combines a number of different views and editors needed for work with resources concerned. For that select <menuchoice><guimenuitem>Window</guimenuitem><guimenuitem>Open Perspective</guimenuitem><guimenuitem>Other</guimenuitem><guimenuitem>Seam</guimenuitem></menuchoice> or you can also access it through the button in the right top corner.
+ It is suggested that you use the specific Seam perspective that combines a number of different views and editors needed for work with resources concerned. For that select <menuchoice><guimenuitem>Window</guimenuitem><guimenuitem>Open Perspective</guimenuitem><guimenuitem>Other</guimenuitem><guimenuitem>Seam</guimenuitem></menuchoice>.
</para>
- <figure>
- <title>Seam Perspective Icon</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/create_new_seam/create_seam_0.png"/>
- </imageobject>
- </mediaobject>
- </figure>
-
<para>
- Also the <emphasis> <property>Open Web Browser</property></emphasis> action is directly available in the <property>Seam perspective</property>.
+ The <emphasis> <property>Open Web Browser</property></emphasis> action is directly available in the <property>Seam perspective</property>.
</para>
<figure>
@@ -230,7 +221,7 @@
</para>
<para>
- Then you should press <property>Next</property> and may leave the default value on <property>Java application building</property> page and <property>Web Module Settings</property> page.
+ Then press <property>Next</property> and you can use the default value on the <property>Java application building</property> page
</para>
<para>
@@ -256,7 +247,11 @@
url="http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse.jpt.doc.user..."
>Eclipse documentation</ulink>.
</para>
-
+
+ <para>
+ The next page concerns <property>Web Module Settings</property>. Accept the default values and press the <guibutton>Next</guibutton> button.
+ </para>
+
<para>
On the next step you will see <property>JSF Capabilities</property> and <property>Seam facet</property> pages, which are mostly the same as in general Seam project.
</para>
@@ -282,7 +277,7 @@
<section id="configureWebModule">
<title>How to Configure Web Module Settings</title>
<para>
- As we deal with a Dynamic Web Application, we should at first specify the top level directory of our application for deploying it to a server afterwards. You know, this kind of application contains Web resources. Thus, it's important to indicate the content directory. The wizard will put all those values itself, so you can leave everything as is.
+ As we deal with a Dynamic Web Application, we should at first specify the top level directory of our application for deploying it to a server afterwards. This kind of application contains Web resources, so it is important to indicate the content directory. The wizard will put all those values itself, so you can leave everything as is.
</para>
<figure>
@@ -319,7 +314,7 @@
</figure>
<para>
- In case if you prefer to use your custom JSF implementation, choose <property>User Library</property> Item from Library Type list. In User Library list you can check required library.
+ If you prefer to use your custom JSF implementation, choose <property>User Library</property> Item from Library Type list. In User Library list you can check required library.
</para>
<figure>
@@ -464,12 +459,15 @@
</itemizedlist>
<note>
- <title>Tip:</title>
<para>
If you want to name your web project "MyProject-war" note that the EJB project should not be "MyProject-war-ejb", it should be "MyProject-ejb". The same for EAR and Test projects' names. They should be respectively "MyProject-ear" and "MyProject-test".
</para>
</note>
-
+
+ <para>
+ The next block of settings in the Seam Facet wizard are describing a Database and a connection to it.
+ </para>
+
<itemizedlist>
<listitem>
<para>
@@ -531,10 +529,6 @@
</figure>
<para>
- The next block of settings in the Seam Facet wizard are describing a Database and a connection to it.
- </para>
-
- <para>
In the <property>Code Generation</property> section the wizard has already provided the names for your <property>Session Bean</property>, <property>Entity Bean</property> and <property>Test</property> packages generation (optional). Of course, you can change them on others of your choice.
</para>
Modified: trunk/seam/docs/reference/en-US/images/create_new_seam/create_seam_11.png
===================================================================
(Binary files differ)
Modified: trunk/seam/docs/reference/en-US/images/create_new_seam/create_seam_12.png
===================================================================
(Binary files differ)
Modified: trunk/seam/docs/reference/en-US/images/create_new_seam/create_seam_20.png
===================================================================
(Binary files differ)
Modified: trunk/seam/docs/reference/en-US/images/create_new_seam/create_seam_21.png
===================================================================
(Binary files differ)
Modified: trunk/seam/docs/reference/en-US/intro.xml
===================================================================
--- trunk/seam/docs/reference/en-US/intro.xml 2012-05-30 22:39:57 UTC (rev 41556)
+++ trunk/seam/docs/reference/en-US/intro.xml 2012-05-30 23:06:22 UTC (rev 41557)
@@ -114,34 +114,5 @@
</tgroup>
</table>
-
-
-
-
-
-
-
-
</section>
-
- <section>
- <title>Installation into Eclipse</title>
-
- <para>Here, we are going to explain how to install Seam plugin into Eclipse.</para>
-
- <para>Seam is a one module of JBoss Tools project. Since Seam has a dependence on other JBoss Tools modules we recommend you to install
- a bundle of all <ulink url="http://labs.jboss.com/tools/download.html">JBoss Tools plug-ins</ulink>. Installation instruction you can find on JBoss Wiki in <ulink url="http://labs.jboss.com/wiki/InstallingJBossTools">InstallingJBossTools</ulink> section.</para>
-
- </section>
-
- <section>
- <title>Other relevant resources on the topic</title>
-
- <para>The <ulink url="http://seamframework.org/">Seam Framework</ulink> - Next generation enterprise Java development.</para>
- <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>There is some extra information on <ulink url="http://www.jboss.org/community/wiki/JBossSeam">JBoss Wiki. </ulink></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>
- <para>You can find a set of screencasts on how to search/find references and use Seam refactoring tools in the following Max Andersen's
- <ulink url="http://in.relation.to/12524.lace">blog post</ulink>.</para>
- </section>
</chapter>
12 years, 7 months
JBoss Tools SVN: r41556 - trunk/common/plugins/org.jboss.tools.common.text.xml/src/org/jboss/tools/common/text/xml.
by jbosstools-commits@lists.jboss.org
Author: dazarov
Date: 2012-05-30 18:39:57 -0400 (Wed, 30 May 2012)
New Revision: 41556
Removed:
trunk/common/plugins/org.jboss.tools.common.text.xml/src/org/jboss/tools/common/text/xml/MarkerAnnotationInfo.java
trunk/common/plugins/org.jboss.tools.common.text.xml/src/org/jboss/tools/common/text/xml/QuickFixProposal.java
Log:
Make Quick fix for problem markers "Unknown tag" work on temporary WTP annotations https://issues.jboss.org/browse/JBIDE-10958
Deleted: trunk/common/plugins/org.jboss.tools.common.text.xml/src/org/jboss/tools/common/text/xml/MarkerAnnotationInfo.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.text.xml/src/org/jboss/tools/common/text/xml/MarkerAnnotationInfo.java 2012-05-30 22:38:55 UTC (rev 41555)
+++ trunk/common/plugins/org.jboss.tools.common.text.xml/src/org/jboss/tools/common/text/xml/MarkerAnnotationInfo.java 2012-05-30 22:39:57 UTC (rev 41556)
@@ -1,134 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2011 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.common.text.xml;
-
-import java.util.ArrayList;
-import java.util.Arrays;
-import java.util.List;
-import java.util.Map;
-
-import org.eclipse.core.resources.IMarker;
-import org.eclipse.jface.text.Position;
-import org.eclipse.jface.text.contentassist.ICompletionProposal;
-import org.eclipse.jface.text.quickassist.IQuickAssistInvocationContext;
-import org.eclipse.jface.text.quickassist.IQuickAssistProcessor;
-import org.eclipse.jface.text.quickassist.IQuickFixableAnnotation;
-import org.eclipse.jface.text.source.Annotation;
-import org.eclipse.jface.text.source.ISourceViewer;
-import org.eclipse.ui.IMarkerResolution;
-import org.eclipse.ui.ide.IDE;
-import org.eclipse.ui.texteditor.SimpleMarkerAnnotation;
-import org.eclipse.wst.sse.ui.StructuredTextInvocationContext;
-import org.eclipse.wst.sse.ui.internal.correction.QuickFixRegistry;
-import org.eclipse.wst.sse.ui.internal.reconcile.TemporaryAnnotation;
-
-public class MarkerAnnotationInfo {
- public final List<AnnotationInfo> infos;
- public final ISourceViewer viewer;
-
- public MarkerAnnotationInfo(List<AnnotationInfo> infos, ISourceViewer textViewer) {
- this.infos = infos;
- this.viewer = textViewer;
- }
-
- public List<ICompletionProposal> getCompletionProposals(AnnotationInfo info) {
-
- if(info.isTop())
- return getMarkerProposals(info);
- else
- return getProposals(info);
-
- }
-
- public List<ICompletionProposal> getMarkerProposals(AnnotationInfo info) {
- SimpleMarkerAnnotation annotation = (SimpleMarkerAnnotation)info.annotation;
-
- ArrayList<ICompletionProposal> proposals = new ArrayList<ICompletionProposal>();
-
- IMarker marker = annotation.getMarker();
- IMarkerResolution[] resolutions = IDE.getMarkerHelpRegistry().getResolutions(marker);
- for (IMarkerResolution resolution : resolutions) {
- proposals.add(new QuickFixProposal(resolution, marker));
- }
-
- return proposals;
- }
-
- public List<ICompletionProposal> getProposals(AnnotationInfo info) {
- TemporaryAnnotation annotation = (TemporaryAnnotation)info.annotation;
-
- List<ICompletionProposal> allProposals = new ArrayList<ICompletionProposal>();
- List<IQuickAssistProcessor> processors = new ArrayList<IQuickAssistProcessor>();
- if (canFix(annotation)) {
- Object o = annotation.getAdditionalFixInfo();
- if (o instanceof IQuickAssistProcessor) {
- processors.add((IQuickAssistProcessor)o);
- }
-
- // get all relevant quick fixes for this annotation
- QuickFixRegistry registry = QuickFixRegistry.getInstance();
- processors.addAll(Arrays.asList(registry.getQuickFixProcessors(annotation)));
-
- // set up context
- Map attributes = null;
- attributes = annotation.getAttributes();
- StructuredTextInvocationContext sseContext = new StructuredTextInvocationContext(viewer, info.position.getOffset(), info.position.getLength(), attributes);
-
- // call each processor
- for (int i = 0; i < processors.size(); ++i) {
- List<ICompletionProposal> proposals = new ArrayList<ICompletionProposal>();
- collectProposals((IQuickAssistProcessor) processors.get(i), annotation, sseContext, proposals);
-
- if (proposals.size() > 0) {
- allProposals.addAll(proposals);
- }
- }
-
- }
-
- return allProposals;
- }
-
- private void collectProposals(IQuickAssistProcessor processor, Annotation annotation, IQuickAssistInvocationContext invocationContext, List<ICompletionProposal> proposalsList) {
- ICompletionProposal[] proposals = processor.computeQuickAssistProposals(invocationContext);
- if (proposals != null && proposals.length > 0) {
- proposalsList.addAll(Arrays.asList(proposals));
- }
- }
-
- public boolean canFix(Annotation annotation) {
- if (annotation instanceof IQuickFixableAnnotation) {
- if (((IQuickFixableAnnotation) annotation).isQuickFixableStateSet()) {
- return ((IQuickFixableAnnotation) annotation).isQuickFixable();
- }
- }
- return false;
- }
-
- public static class AnnotationInfo {
- public Annotation annotation;
- public Position position;
-
- public AnnotationInfo(Annotation annotation, Position position){
- this.annotation = annotation;
- this.position = position;
- }
-
- public boolean isTop(){
- return annotation instanceof SimpleMarkerAnnotation;
- }
- }
-
- @Override
- public String toString() {
- return null;
- }
-}
\ No newline at end of file
Deleted: trunk/common/plugins/org.jboss.tools.common.text.xml/src/org/jboss/tools/common/text/xml/QuickFixProposal.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.text.xml/src/org/jboss/tools/common/text/xml/QuickFixProposal.java 2012-05-30 22:38:55 UTC (rev 41555)
+++ trunk/common/plugins/org.jboss.tools.common.text.xml/src/org/jboss/tools/common/text/xml/QuickFixProposal.java 2012-05-30 22:39:57 UTC (rev 41556)
@@ -1,59 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2011 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.common.text.xml;
-
-import org.eclipse.core.resources.IMarker;
-import org.eclipse.jface.text.IDocument;
-import org.eclipse.jface.text.contentassist.ICompletionProposal;
-import org.eclipse.jface.text.contentassist.IContextInformation;
-import org.eclipse.ui.IMarkerResolution;
-import org.eclipse.ui.IMarkerResolution2;
-import org.eclipse.swt.graphics.Image;
-import org.eclipse.swt.graphics.Point;
-
-public class QuickFixProposal implements ICompletionProposal{
- private IMarkerResolution resolution;
- private IMarker marker;
-
- public QuickFixProposal(IMarkerResolution resolution, IMarker marker){
- this.resolution = resolution;
- this.marker = marker;
- }
-
- public void apply(IDocument document) {
- resolution.run(marker);
- }
-
- public Point getSelection(IDocument document) {
- return null;
- }
-
- public String getAdditionalProposalInfo() {
- if (resolution instanceof IMarkerResolution2)
- return ((IMarkerResolution2) resolution).getDescription();
-
- return (String)marker.getAttribute(IMarker.MESSAGE, ""); //$NON-NLS-1$
- }
-
- public String getDisplayString() {
- return resolution.getLabel();
- }
-
- public Image getImage() {
- if (resolution instanceof IMarkerResolution2)
- return ((IMarkerResolution2)resolution).getImage();
- return null;
- }
-
- public IContextInformation getContextInformation() {
- return null;
- }
-}
12 years, 7 months