JBoss Tools SVN: r23672 - workspace/dgolovin/build.
by jbosstools-commits@lists.jboss.org
Author: dgolovin
Date: 2010-07-22 14:57:22 -0400 (Thu, 22 Jul 2010)
New Revision: 23672
Modified:
workspace/dgolovin/build/pom.xml
Log:
parent artefact fixed
Modified: workspace/dgolovin/build/pom.xml
===================================================================
--- workspace/dgolovin/build/pom.xml 2010-07-22 18:45:04 UTC (rev 23671)
+++ workspace/dgolovin/build/pom.xml 2010-07-22 18:57:22 UTC (rev 23672)
@@ -12,8 +12,8 @@
<parent>
<relativePath>../build/bootstrap/pom.xml</relativePath>
- <groupId>org.jboss.build.component</groupId>
- <artifactId>jmx</artifactId>
+ <groupId>org.jboss.build.bootstrap</groupId>
+ <artifactId>bootstrap-build</artifactId>
<version>0.0.1-SNAPSHOT</version>
</parent>
15 years, 9 months
JBoss Tools SVN: r23671 - workspace/dgolovin/build/bootstrap.
by jbosstools-commits@lists.jboss.org
Author: dgolovin
Date: 2010-07-22 14:45:04 -0400 (Thu, 22 Jul 2010)
New Revision: 23671
Modified:
workspace/dgolovin/build/bootstrap/pom.xml
Log:
bootstrapping test error fixed
Modified: workspace/dgolovin/build/bootstrap/pom.xml
===================================================================
--- workspace/dgolovin/build/bootstrap/pom.xml 2010-07-22 18:43:43 UTC (rev 23670)
+++ workspace/dgolovin/build/bootstrap/pom.xml 2010-07-22 18:45:04 UTC (rev 23671)
@@ -5,10 +5,10 @@
<artifactId>bootstrap-build</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>pom</packaging>
- <profiles>
<properties>
<workspace>.</workspace>
</properties>
+ <profiles>
<profile>
<id>tests</id>
<activation>
15 years, 9 months
JBoss Tools SVN: r23670 - in workspace/dgolovin/build: bootstrap and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: dgolovin
Date: 2010-07-22 14:43:43 -0400 (Thu, 22 Jul 2010)
New Revision: 23670
Modified:
workspace/dgolovin/build/bootstrap/pom.xml
workspace/dgolovin/build/pom.xml
Log:
bootstrapping test
Modified: workspace/dgolovin/build/bootstrap/pom.xml
===================================================================
--- workspace/dgolovin/build/bootstrap/pom.xml 2010-07-22 16:44:51 UTC (rev 23669)
+++ workspace/dgolovin/build/bootstrap/pom.xml 2010-07-22 18:43:43 UTC (rev 23670)
@@ -6,14 +6,16 @@
<version>0.0.1-SNAPSHOT</version>
<packaging>pom</packaging>
<profiles>
-
+ <properties>
+ <workspace>.</workspace>
+ </properties>
<profile>
<id>tests</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<modules>
- <module>tests</module>
+ <module>${workspace}/tests</module>
</modules>
</profile>
@@ -23,7 +25,7 @@
<activeByDefault>true</activeByDefault>
</activation>
<modules>
- <module>jmx</module>
+ <module>${workspace}/jmx</module>
</modules>
</profile>
Modified: workspace/dgolovin/build/pom.xml
===================================================================
--- workspace/dgolovin/build/pom.xml 2010-07-22 16:44:51 UTC (rev 23669)
+++ workspace/dgolovin/build/pom.xml 2010-07-22 18:43:43 UTC (rev 23670)
@@ -7,9 +7,18 @@
<packaging>pom</packaging>
<properties>
<workspace.root.path>..</workspace.root.path>
+ <workspace>../../..</workspace>
</properties>
-<profiles>
-
+
+ <parent>
+ <relativePath>../build/bootstrap/pom.xml</relativePath>
+ <groupId>org.jboss.build.component</groupId>
+ <artifactId>jmx</artifactId>
+ <version>0.0.1-SNAPSHOT</version>
+ </parent>
+
+<!--profiles>
+
<profile>
<id>libs</id>
<activation>
@@ -100,7 +109,7 @@
</modules>
</profile>
-</profiles>
+</profiles-->
</project>
15 years, 9 months
JBoss Tools SVN: r23669 - trunk/jsf/tests/org.jboss.tools.jsf.ui.test/src/org/jboss/tools/jsf/ui/test.
by jbosstools-commits@lists.jboss.org
Author: dgolovin
Date: 2010-07-22 12:44:51 -0400 (Thu, 22 Jul 2010)
New Revision: 23669
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.ui.test/src/org/jboss/tools/jsf/ui/test/JsfUiAllTests.java
Log:
20 commented tests for jsf.ui.tests are restored
Modified: trunk/jsf/tests/org.jboss.tools.jsf.ui.test/src/org/jboss/tools/jsf/ui/test/JsfUiAllTests.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.ui.test/src/org/jboss/tools/jsf/ui/test/JsfUiAllTests.java 2010-07-22 14:21:58 UTC (rev 23668)
+++ trunk/jsf/tests/org.jboss.tools.jsf.ui.test/src/org/jboss/tools/jsf/ui/test/JsfUiAllTests.java 2010-07-22 16:44:51 UTC (rev 23669)
@@ -33,34 +33,34 @@
public static Test suite() {
TestSuite suite = new TestSuite("JSF UI tests"); //$NON-NLS-1$
-// suite.addTestSuite(CAForUnclosedELTest.class);
-// suite.addTestSuite(CAForCompositeComponentTest.class);
-//// suite.addTestSuite(MissingKBBuilderTest.class);
-// suite.addTestSuite(CAForInputTagSrcAttributeSuggestsFilePathsJBIDE1807Test.class);
-// suite.addTestSuite(CAForIDTest.class);
-// suite.addTestSuite(CAForELinStyleTest.class);
-// suite.addTestSuite(CANotEmptyWhenThereIsNoSpaceBetweenInvertedCommandsInAttributeJBIDE1759Test.class);
-// suite.addTestSuite(CASuggestsNotOnlyELProposalsJBIDE2437Test.class);
-// suite.addTestSuite(CAUnnecessaryElementsForDirAttributeInXHTMLPageJBIDE1813Test.class);
-// suite.addTestSuite(CAVarAttributeForDataTableTagJBIDE2016.class);
-// suite.addTestSuite(CssClassNewWizardTest.class);
-// suite.addTestSuite(CSSStyleDialogTest.class);
-// suite.addTestSuite(FacesConfigNewWizardTest.class);
-// suite.addTestSuite(FasesConfigEditorTest.class);
-// suite.addTestSuite(PropertiesNewWizardTest.class);
-// suite.addTestSuite(JsfUiPreferencesPagesTest.class);
-// suite.addTest(new ProjectImportTestSetup(new TestSuite(
-// ELReferencesRenameTest.class), "org.jboss.tools.jsf.ui.test", //$NON-NLS-1$
-// new String[] { "projects/testJSFProject", }, //$NON-NLS-1$
-// new String[] { "testJSFProject" })); //$NON-NLS-1$
-// suite.addTest(new ProjectImportTestSetup(new TestSuite(
-// JSFNaturesInfoDialog_JBIDE5701.class),
-// "org.jboss.tools.jsf.ui.test", "projects/naturesCheckTest", //$NON-NLS-1$ //$NON-NLS-2$
-// "naturesCheckTest")); //$NON-NLS-1$
-// suite.addTest(new ProjectImportTestSetup(new TestSuite(
-// KbNaturesInfoDialog_JBIDE6125.class),
-// "org.jboss.tools.jsf.ui.test", "projects/naturesCheckKBTest", //$NON-NLS-1$ //$NON-NLS-2$
-// "naturesCheckKBTest")); //$NON-NLS-1$
+ suite.addTestSuite(CAForUnclosedELTest.class);
+ suite.addTestSuite(CAForCompositeComponentTest.class);
+// suite.addTestSuite(MissingKBBuilderTest.class);
+ suite.addTestSuite(CAForInputTagSrcAttributeSuggestsFilePathsJBIDE1807Test.class);
+ suite.addTestSuite(CAForIDTest.class);
+ suite.addTestSuite(CAForELinStyleTest.class);
+ suite.addTestSuite(CANotEmptyWhenThereIsNoSpaceBetweenInvertedCommandsInAttributeJBIDE1759Test.class);
+ suite.addTestSuite(CASuggestsNotOnlyELProposalsJBIDE2437Test.class);
+ suite.addTestSuite(CAUnnecessaryElementsForDirAttributeInXHTMLPageJBIDE1813Test.class);
+ suite.addTestSuite(CAVarAttributeForDataTableTagJBIDE2016.class);
+ suite.addTestSuite(CssClassNewWizardTest.class);
+ suite.addTestSuite(CSSStyleDialogTest.class);
+ suite.addTestSuite(FacesConfigNewWizardTest.class);
+ suite.addTestSuite(FasesConfigEditorTest.class);
+ suite.addTestSuite(PropertiesNewWizardTest.class);
+ suite.addTestSuite(JsfUiPreferencesPagesTest.class);
+ suite.addTest(new ProjectImportTestSetup(new TestSuite(
+ ELReferencesRenameTest.class), "org.jboss.tools.jsf.ui.test", //$NON-NLS-1$
+ new String[] { "projects/testJSFProject", }, //$NON-NLS-1$
+ new String[] { "testJSFProject" })); //$NON-NLS-1$
+ suite.addTest(new ProjectImportTestSetup(new TestSuite(
+ JSFNaturesInfoDialog_JBIDE5701.class),
+ "org.jboss.tools.jsf.ui.test", "projects/naturesCheckTest", //$NON-NLS-1$ //$NON-NLS-2$
+ "naturesCheckTest")); //$NON-NLS-1$
+ suite.addTest(new ProjectImportTestSetup(new TestSuite(
+ KbNaturesInfoDialog_JBIDE6125.class),
+ "org.jboss.tools.jsf.ui.test", "projects/naturesCheckKBTest", //$NON-NLS-1$ //$NON-NLS-2$
+ "naturesCheckKBTest")); //$NON-NLS-1$
suite.addTest(new ProjectImportTestSetup(new TestSuite(AddJSFCapabilitiesTest.class),
"org.jboss.tools.jsf.ui.test",
new String[]{"projects/test_add_jsf_capabilities"},
15 years, 9 months
JBoss Tools SVN: r23668 - trunk/documentation/whatsnew/jst.
by jbosstools-commits@lists.jboss.org
Author: vpakan(a)redhat.com
Date: 2010-07-22 10:21:58 -0400 (Thu, 22 Jul 2010)
New Revision: 23668
Modified:
trunk/documentation/whatsnew/jst/jst-news-3.2.0.M1.html
Log:
Move wrongly placed picture from section "Refactor JSF Component" to section "Rename action for Composite Attribute". Fix interface inconsistency and small mistyping error.
Modified: trunk/documentation/whatsnew/jst/jst-news-3.2.0.M1.html
===================================================================
--- trunk/documentation/whatsnew/jst/jst-news-3.2.0.M1.html 2010-07-22 14:07:44 UTC (rev 23667)
+++ trunk/documentation/whatsnew/jst/jst-news-3.2.0.M1.html 2010-07-22 14:21:58 UTC (rev 23668)
@@ -64,6 +64,13 @@
all resources that has references renamed attribute.</p>
<p>Rename action is available from context menu on a Composite Attribute in JSP/XHTML editor.</p>
+ <p><img src="images/jsf2preview1.png"
+ alt="Refactor JSF 2" /></p>
+ <p>
+ <p><img src="images/jsf2preview2.png"
+ alt="Refactor JSF 2 Preview" /></p>
+ <p>
+
<p><small><a
href="https://jira.jboss.org/jira/browse/JBIDE-5943">Related Jira</a></small></p>
<p><small><a
@@ -98,16 +105,9 @@
<p><b>Refactor JSF Component</b></p>
</td>
<td valign="top">
- <p>If user changes name of component file, refactoring changes names this component in project.</p>
+ <p>If user changes name of component file, refactoring changes names of this component in project.
+ </p>
- <p><img src="images/jsf2preview1.png"
- alt="Refactor JSF 2" /></p>
- <p>
- <p><img src="images/jsf2preview2.png"
- alt="Refactor JSF 2 Preview" /></p>
- <p>
-
-
<p><small><a
href="https://jira.jboss.org/jira/browse/JBIDE-5942">Related Jira</a></small></p>
</td>
@@ -142,23 +142,14 @@
<p><b>Quick fix for tags with no corresponding tag library definition in header</b></p>
</td>
<td valign="top">
- <p>Qick fix offers to add corresponding tag library definition in JSP/XHTML header. </p>
+ <p>Quick fix offers to add corresponding tag library definition in JSP/XHTML header. </p>
<p><small><a
href="https://jira.jboss.org/jira/browse/JBIDE-4876">Related Jira</a></small></p>
</td>
</tr>
- <tr>
- <td colspan="2">
- <hr />
- </td>
+
</tr>
- <tr>
- <td colspan="2">
- <hr />
- </td>
- </tr>
- </tr>
</tr>
<td colspan="2">
<hr />
15 years, 9 months
JBoss Tools SVN: r23667 - in trunk/ws/tests/org.jboss.tools.ws.ui.test: src/org/jboss/tools/ws/ui/test/utils and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: jlukas(a)redhat.com
Date: 2010-07-22 10:07:44 -0400 (Thu, 22 Jul 2010)
New Revision: 23667
Added:
trunk/ws/tests/org.jboss.tools.ws.ui.test/resources/jbide6694.wsdl
Modified:
trunk/ws/tests/org.jboss.tools.ws.ui.test/src/org/jboss/tools/ws/ui/test/utils/TesterWSDLUtilsTest.java
Log:
test for JBIDE-6694
Added: trunk/ws/tests/org.jboss.tools.ws.ui.test/resources/jbide6694.wsdl
===================================================================
--- trunk/ws/tests/org.jboss.tools.ws.ui.test/resources/jbide6694.wsdl (rev 0)
+++ trunk/ws/tests/org.jboss.tools.ws.ui.test/resources/jbide6694.wsdl 2010-07-22 14:07:44 UTC (rev 23667)
@@ -0,0 +1,59 @@
+<?xml version="1.0" encoding="utf-8"?>
+<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://test.jboss.org/ns" xmlns:s="http://www.w3.org/2001/XMLSchema" targetNamespace="http://test.jboss.org/ns" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+ <wsdl:types>
+ <s:schema elementFormDefault="qualified" targetNamespace="http://test.jboss.org/ns">
+ <s:element name="ChangeUnit">
+ <s:complexType>
+ <s:sequence>
+ <s:element minOccurs="1" maxOccurs="1" name="value" type="s:double" />
+ <s:element minOccurs="1" maxOccurs="1" name="fromUnit" type="tns:Units" />
+ <s:element minOccurs="1" maxOccurs="1" name="toUnit" type="tns:Units" />
+ </s:sequence>
+ </s:complexType>
+ </s:element>
+ <s:simpleType name="Units">
+ <s:restriction base="s:string">
+ <s:enumeration value="kilometer" />
+ <s:enumeration value="meter" />
+ </s:restriction>
+ </s:simpleType>
+ <s:element name="ChangeUnitResponse">
+ <s:complexType>
+ <s:sequence>
+ <s:element minOccurs="1" maxOccurs="1" name="ChangeUnitResult" type="s:double" />
+ </s:sequence>
+ </s:complexType>
+ </s:element>
+ <s:element name="double" type="s:double" />
+ </s:schema>
+ </wsdl:types>
+ <wsdl:message name="ChangeUnitIn">
+ <wsdl:part name="parameters" element="tns:ChangeUnit" />
+ </wsdl:message>
+ <wsdl:message name="ChangeUnitOut">
+ <wsdl:part name="parameters" element="tns:ChangeUnitResponse" />
+ </wsdl:message>
+ <wsdl:portType name="ConverterPortType">
+ <wsdl:operation name="convert">
+ <wsdl:input message="tns:ChangeUnitIn" />
+ <wsdl:output message="tns:ChangeUnitOut" />
+ </wsdl:operation>
+ </wsdl:portType>
+ <wsdl:binding name="ConverterBinding" type="tns:ConverterPortType">
+ <soap:binding transport="http://schemas.xmlsoap.org/soap/http" />
+ <wsdl:operation name="convert">
+ <soap:operation soapAction="" style="document" />
+ <wsdl:input>
+ <soap:body use="literal" />
+ </wsdl:input>
+ <wsdl:output>
+ <soap:body use="literal" />
+ </wsdl:output>
+ </wsdl:operation>
+ </wsdl:binding>
+ <wsdl:service name="Converter">
+ <wsdl:port name="ConverterPort" binding="tns:ConverterBinding">
+ <soap:address location="" />
+ </wsdl:port>
+ </wsdl:service>
+</wsdl:definitions>
\ No newline at end of file
Modified: trunk/ws/tests/org.jboss.tools.ws.ui.test/src/org/jboss/tools/ws/ui/test/utils/TesterWSDLUtilsTest.java
===================================================================
--- trunk/ws/tests/org.jboss.tools.ws.ui.test/src/org/jboss/tools/ws/ui/test/utils/TesterWSDLUtilsTest.java 2010-07-22 13:53:14 UTC (rev 23666)
+++ trunk/ws/tests/org.jboss.tools.ws.ui.test/src/org/jboss/tools/ws/ui/test/utils/TesterWSDLUtilsTest.java 2010-07-22 14:07:44 UTC (rev 23667)
@@ -1,12 +1,12 @@
-/*******************************************************************************
- * Copyright (c) 2010 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:
- * Red Hat, Inc. - initial API and implementation
+/*******************************************************************************
+ * Copyright (c) 2010 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:
+ * Red Hat, Inc. - initial API and implementation
******************************************************************************/
package org.jboss.tools.ws.ui.test.utils;
@@ -28,7 +28,7 @@
Definition def = readWSDL("/jbide6558/x.wsdl");
String[] r = TesterWSDLUtils.getNSServiceNameAndMessageNameArray(def, "HelloWorldService", "HelloWorldPort", "HelloWorldBinding", "sayHello");
Assert.assertArrayEquals(new String[] {"http://webservices.samples.jboss.org/", "HelloWorldService", "HelloWorldPort"}, r);
-
+
def = readWSDL("/jbide6593/original.wsdl");
r = TesterWSDLUtils.getNSServiceNameAndMessageNameArray(def, "gsearch_rss", "gsearch_rssSoap", "gsearch_rssSoap", "GetSearchResults");
Assert.assertArrayEquals(new String[] {"http://www.ecubicle.net/webservices", "gsearch_rss", "gsearch_rssSoap"}, r);
@@ -46,7 +46,7 @@
def = readWSDL("/jbide6593/original.wsdl");
r = TesterWSDLUtils.getEndpointURL(def, "gsearch_rss", "gsearch_rssSoap", "gsearch_rssSoap", "GetSearchResults");
Assert.assertEquals("http://www.ecubicle.net/gsearch_rss.asmx", r);
-
+
r = TesterWSDLUtils.getEndpointURL(def, "EchoService", "EchoPort", "EchoPortBinding", "echo");
Assert.assertEquals("http://localhost:8080/webws/EchoPortType", r);
}
@@ -75,9 +75,9 @@
Assert.assertTrue("was: '" + s1, s1.contains("<p><age>?</age>"));
Assert.assertTrue("was: '" + s1, s1.contains("<male>?</male>"));
Assert.assertTrue("was: '" + s1, s1.contains("<tax>?</tax>"));
- Assert.assertTrue("was: '" + s1, s1.contains("<echo xmlns = \"http://test.jboss.org/ns\">"));
- }
-
+ Assert.assertTrue("was: '" + s1, s1.contains("<echo xmlns = \"http://test.jboss.org/ns\">"));
+ }
+
@Test
public void testJBIDE6558() {
String s1 = getSampleMessage("/jbide6558/x.wsdl", "HelloWorldService", "HelloWorldPort", "HelloWorldBinding", "sayHello");
@@ -86,7 +86,7 @@
String s2 = getSampleMessage("/jbide6558/y.wsdl", "HelloWorldService", "HelloWorldPort", "HelloWorldBinding", "sayHello");
Assert.assertEquals(s1, s2);
}
-
+
@Test
public void testJBIDE6593() {
String s1 = getSampleMessage("/jbide6497/original.wsdl", "gsearch_rss", "gsearch_rssSoap", "gsearch_rssSoap", "GetSearchResults");
@@ -97,11 +97,20 @@
Assert.assertEquals(s1, s2);
}
+ @Test
+ public void testJBIDE6694() {
+ String s1 = getSampleMessage("/jbide6694.wsdl", "Converter", "ConverterPort", "ConverterBinding", "convert");
+ Assert.assertTrue(s1.contains("<ChangeUnit xmlns = \"http://test.jboss.org/ns\">"));
+ Assert.assertTrue(s1.contains("<value>?</value>"));
+ Assert.assertTrue(s1.contains("<fromUnit>?</fromUnit>"));
+ Assert.assertTrue(s1.contains("<toUnit>?</toUnit>"));
+ }
+
private String getSampleMessage(String res, String service, String port, String binding, String operation) {
Definition def = readWSDL(res);
return TesterWSDLUtils.getSampleSOAPInputMessage(def, service, port, binding, operation);
}
-
+
private Definition readWSDL(String path) {
try {
URL url = TesterWSDLUtilsTest.class.getResource(path).toURI().toURL();
15 years, 9 months
JBoss Tools SVN: r23666 - in trunk: gwt and 26 other directories.
by jbosstools-commits@lists.jboss.org
Author: adietish
Date: 2010-07-22 09:53:14 -0400 (Thu, 22 Jul 2010)
New Revision: 23666
Added:
trunk/gwt/
trunk/gwt/features/
trunk/gwt/features/org.jboss.tools.gwt.feature/
trunk/gwt/features/org.jboss.tools.gwt.feature/.project
trunk/gwt/features/org.jboss.tools.gwt.feature/build.properties
trunk/gwt/features/org.jboss.tools.gwt.feature/feature.xml
trunk/gwt/features/org.jboss.tools.gwt.feature/pom.xml
trunk/gwt/features/pom.xml
trunk/gwt/plugins/
trunk/gwt/plugins/org.jboss.tools.gwt.core/
trunk/gwt/plugins/org.jboss.tools.gwt.core/.classpath
trunk/gwt/plugins/org.jboss.tools.gwt.core/.project
trunk/gwt/plugins/org.jboss.tools.gwt.core/.settings/
trunk/gwt/plugins/org.jboss.tools.gwt.core/.settings/org.eclipse.jdt.core.prefs
trunk/gwt/plugins/org.jboss.tools.gwt.core/.settings/org.eclipse.jdt.ui.prefs
trunk/gwt/plugins/org.jboss.tools.gwt.core/META-INF/
trunk/gwt/plugins/org.jboss.tools.gwt.core/META-INF/MANIFEST.MF
trunk/gwt/plugins/org.jboss.tools.gwt.core/build.properties
trunk/gwt/plugins/org.jboss.tools.gwt.core/plugin.xml
trunk/gwt/plugins/org.jboss.tools.gwt.core/pom.xml
trunk/gwt/plugins/org.jboss.tools.gwt.core/sample-hello-src.zip
trunk/gwt/plugins/org.jboss.tools.gwt.core/sample-hello-webContent.zip
trunk/gwt/plugins/org.jboss.tools.gwt.core/src/
trunk/gwt/plugins/org.jboss.tools.gwt.core/src/org/
trunk/gwt/plugins/org.jboss.tools.gwt.core/src/org/jboss/
trunk/gwt/plugins/org.jboss.tools.gwt.core/src/org/jboss/tools/
trunk/gwt/plugins/org.jboss.tools.gwt.core/src/org/jboss/tools/gwt/
trunk/gwt/plugins/org.jboss.tools.gwt.core/src/org/jboss/tools/gwt/core/
trunk/gwt/plugins/org.jboss.tools.gwt.core/src/org/jboss/tools/gwt/core/GWTInstallDataModelProvider.java
trunk/gwt/plugins/org.jboss.tools.gwt.core/src/org/jboss/tools/gwt/core/GWTInstallFacetDelegate.java
trunk/gwt/plugins/org.jboss.tools.gwt.core/src/org/jboss/tools/gwt/core/IGoogleEclipsePluginConstants.java
trunk/gwt/plugins/org.jboss.tools.gwt.core/src/org/jboss/tools/gwt/core/IJBossToolsGWTPluginConstants.java
trunk/gwt/plugins/org.jboss.tools.gwt.core/src/org/jboss/tools/gwt/core/internal/
trunk/gwt/plugins/org.jboss.tools.gwt.core/src/org/jboss/tools/gwt/core/internal/GWTCoreActivator.java
trunk/gwt/plugins/org.jboss.tools.gwt.core/src/org/jboss/tools/gwt/core/util/
trunk/gwt/plugins/org.jboss.tools.gwt.core/src/org/jboss/tools/gwt/core/util/ProjectUtils.java
trunk/gwt/plugins/org.jboss.tools.gwt.ui/
trunk/gwt/plugins/org.jboss.tools.gwt.ui/.classpath
trunk/gwt/plugins/org.jboss.tools.gwt.ui/.project
trunk/gwt/plugins/org.jboss.tools.gwt.ui/.settings/
trunk/gwt/plugins/org.jboss.tools.gwt.ui/.settings/org.eclipse.jdt.core.prefs
trunk/gwt/plugins/org.jboss.tools.gwt.ui/.settings/org.eclipse.jdt.ui.prefs
trunk/gwt/plugins/org.jboss.tools.gwt.ui/META-INF/
trunk/gwt/plugins/org.jboss.tools.gwt.ui/META-INF/MANIFEST.MF
trunk/gwt/plugins/org.jboss.tools.gwt.ui/build.properties
trunk/gwt/plugins/org.jboss.tools.gwt.ui/plugin.xml
trunk/gwt/plugins/org.jboss.tools.gwt.ui/pom.xml
trunk/gwt/plugins/org.jboss.tools.gwt.ui/src/
trunk/gwt/plugins/org.jboss.tools.gwt.ui/src/org/
trunk/gwt/plugins/org.jboss.tools.gwt.ui/src/org/jboss/
trunk/gwt/plugins/org.jboss.tools.gwt.ui/src/org/jboss/tools/
trunk/gwt/plugins/org.jboss.tools.gwt.ui/src/org/jboss/tools/gwt/
trunk/gwt/plugins/org.jboss.tools.gwt.ui/src/org/jboss/tools/gwt/ui/
trunk/gwt/plugins/org.jboss.tools.gwt.ui/src/org/jboss/tools/gwt/ui/GWTInstallFacetWizardPage.java
trunk/gwt/plugins/org.jboss.tools.gwt.ui/src/org/jboss/tools/gwt/ui/internal/
trunk/gwt/plugins/org.jboss.tools.gwt.ui/src/org/jboss/tools/gwt/ui/internal/GWTUIActivator.java
trunk/gwt/plugins/pom.xml
trunk/gwt/pom.xml
trunk/gwt/site/
trunk/gwt/site/pom.xml
trunk/gwt/tests/
trunk/gwt/tests/pom.xml
Modified:
trunk/parent-pom.xml
trunk/pom.xml
Log:
https://jira.jboss.org/browse/JBIDE-6695 create wtp support for gwt
Added: trunk/gwt/features/org.jboss.tools.gwt.feature/.project
===================================================================
--- trunk/gwt/features/org.jboss.tools.gwt.feature/.project (rev 0)
+++ trunk/gwt/features/org.jboss.tools.gwt.feature/.project 2010-07-22 13:53:14 UTC (rev 23666)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.jboss.tools.gwt.feature</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.pde.FeatureBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.pde.FeatureNature</nature>
+ </natures>
+</projectDescription>
Added: trunk/gwt/features/org.jboss.tools.gwt.feature/build.properties
===================================================================
--- trunk/gwt/features/org.jboss.tools.gwt.feature/build.properties (rev 0)
+++ trunk/gwt/features/org.jboss.tools.gwt.feature/build.properties 2010-07-22 13:53:14 UTC (rev 23666)
@@ -0,0 +1 @@
+bin.includes = feature.xml
Added: trunk/gwt/features/org.jboss.tools.gwt.feature/feature.xml
===================================================================
--- trunk/gwt/features/org.jboss.tools.gwt.feature/feature.xml (rev 0)
+++ trunk/gwt/features/org.jboss.tools.gwt.feature/feature.xml 2010-07-22 13:53:14 UTC (rev 23666)
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<feature
+ id="org.jboss.tools.gwt.feature"
+ label="Feature"
+ version="1.0.0.qualifier"
+ provider-name="JBoss by Red Hat">
+
+ <description url="http://www.example.com/description">
+ [Enter Feature Description here.]
+ </description>
+
+ <copyright url="http://www.example.com/copyright">
+ [Enter Copyright Description here.]
+ </copyright>
+
+ <license url="http://www.example.com/license">
+ [Enter License Description here.]
+ </license>
+
+ <plugin
+ id="org.jboss.tools.gwt.core"
+ download-size="0"
+ install-size="0"
+ version="0.0.0"
+ unpack="false"/>
+
+ <plugin
+ id="org.jboss.tools.gwt.ui"
+ download-size="0"
+ install-size="0"
+ version="0.0.0"
+ unpack="false"/>
+
+</feature>
Added: trunk/gwt/features/org.jboss.tools.gwt.feature/pom.xml
===================================================================
--- trunk/gwt/features/org.jboss.tools.gwt.feature/pom.xml (rev 0)
+++ trunk/gwt/features/org.jboss.tools.gwt.feature/pom.xml 2010-07-22 13:53:14 UTC (rev 23666)
@@ -0,0 +1,14 @@
+<project
+xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <relativePath>../../../parent-pom.xml</relativePath>
+ <groupId>org.jboss.tools</groupId>
+ <artifactId>org.jboss.tools.parent.pom</artifactId>
+ <version>0.0.1-SNAPSHOT</version>
+ </parent>
+ <groupId>org.jboss.tools.gwt.features</groupId>
+ <artifactId>org.jboss.tools.gwt.feature</artifactId>
+ <version>1.1.0-SNAPSHOT</version>
+ <packaging>eclipse-feature</packaging>
+</project>
Added: trunk/gwt/features/pom.xml
===================================================================
--- trunk/gwt/features/pom.xml (rev 0)
+++ trunk/gwt/features/pom.xml 2010-07-22 13:53:14 UTC (rev 23666)
@@ -0,0 +1,13 @@
+<project
+xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.jboss.tools.gwt</groupId>
+ <artifactId>features</artifactId>
+ <name>gwt.features</name>
+ <version>0.0.1-SNAPSHOT</version>
+ <packaging>pom</packaging>
+ <modules>
+ <module>org.jboss.tools.gwt.feature</module>
+ </modules>
+</project>
+
Added: trunk/gwt/plugins/org.jboss.tools.gwt.core/.classpath
===================================================================
--- trunk/gwt/plugins/org.jboss.tools.gwt.core/.classpath (rev 0)
+++ trunk/gwt/plugins/org.jboss.tools.gwt.core/.classpath 2010-07-22 13:53:14 UTC (rev 23666)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
+ <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
Added: trunk/gwt/plugins/org.jboss.tools.gwt.core/.project
===================================================================
--- trunk/gwt/plugins/org.jboss.tools.gwt.core/.project (rev 0)
+++ trunk/gwt/plugins/org.jboss.tools.gwt.core/.project 2010-07-22 13:53:14 UTC (rev 23666)
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.jboss.tools.gwt.core</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.ManifestBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.SchemaBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.pde.PluginNature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
Added: trunk/gwt/plugins/org.jboss.tools.gwt.core/.settings/org.eclipse.jdt.core.prefs
===================================================================
--- trunk/gwt/plugins/org.jboss.tools.gwt.core/.settings/org.eclipse.jdt.core.prefs (rev 0)
+++ trunk/gwt/plugins/org.jboss.tools.gwt.core/.settings/org.eclipse.jdt.core.prefs 2010-07-22 13:53:14 UTC (rev 23666)
@@ -0,0 +1,266 @@
+#Tue Jul 20 23:38:13 CEST 2010
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
+org.eclipse.jdt.core.compiler.compliance=1.5
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.source=1.5
+org.eclipse.jdt.core.formatter.align_type_members_on_columns=false
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant=16
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call=16
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation=16
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression=16
+org.eclipse.jdt.core.formatter.alignment_for_assignment=0
+org.eclipse.jdt.core.formatter.alignment_for_binary_expression=16
+org.eclipse.jdt.core.formatter.alignment_for_compact_if=16
+org.eclipse.jdt.core.formatter.alignment_for_conditional_expression=80
+org.eclipse.jdt.core.formatter.alignment_for_enum_constants=0
+org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer=16
+org.eclipse.jdt.core.formatter.alignment_for_multiple_fields=16
+org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation=16
+org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration=16
+org.eclipse.jdt.core.formatter.blank_lines_after_imports=1
+org.eclipse.jdt.core.formatter.blank_lines_after_package=1
+org.eclipse.jdt.core.formatter.blank_lines_before_field=0
+org.eclipse.jdt.core.formatter.blank_lines_before_first_class_body_declaration=0
+org.eclipse.jdt.core.formatter.blank_lines_before_imports=1
+org.eclipse.jdt.core.formatter.blank_lines_before_member_type=1
+org.eclipse.jdt.core.formatter.blank_lines_before_method=1
+org.eclipse.jdt.core.formatter.blank_lines_before_new_chunk=1
+org.eclipse.jdt.core.formatter.blank_lines_before_package=0
+org.eclipse.jdt.core.formatter.blank_lines_between_import_groups=1
+org.eclipse.jdt.core.formatter.blank_lines_between_type_declarations=1
+org.eclipse.jdt.core.formatter.brace_position_for_annotation_type_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_array_initializer=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_block=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_block_in_case=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_constructor_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_enum_constant=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_enum_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_method_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_switch=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_type_declaration=end_of_line
+org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_block_comment=false
+org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_javadoc_comment=false
+org.eclipse.jdt.core.formatter.comment.format_block_comments=true
+org.eclipse.jdt.core.formatter.comment.format_header=false
+org.eclipse.jdt.core.formatter.comment.format_html=true
+org.eclipse.jdt.core.formatter.comment.format_javadoc_comments=true
+org.eclipse.jdt.core.formatter.comment.format_line_comments=true
+org.eclipse.jdt.core.formatter.comment.format_source_code=true
+org.eclipse.jdt.core.formatter.comment.indent_parameter_description=true
+org.eclipse.jdt.core.formatter.comment.indent_root_tags=true
+org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags=insert
+org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter=insert
+org.eclipse.jdt.core.formatter.comment.line_length=80
+org.eclipse.jdt.core.formatter.compact_else_if=true
+org.eclipse.jdt.core.formatter.continuation_indentation=2
+org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer=2
+org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line=false
+org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_annotation_declaration_header=true
+org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_constant_header=true
+org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_declaration_header=true
+org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_type_header=true
+org.eclipse.jdt.core.formatter.indent_breaks_compare_to_cases=true
+org.eclipse.jdt.core.formatter.indent_empty_lines=false
+org.eclipse.jdt.core.formatter.indent_statements_compare_to_block=true
+org.eclipse.jdt.core.formatter.indent_statements_compare_to_body=true
+org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_cases=true
+org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_switch=false
+org.eclipse.jdt.core.formatter.indentation.size=4
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_local_variable=insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_member=insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_parameter=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_opening_brace_in_array_initializer=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_catch_in_try_statement=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_closing_brace_in_array_initializer=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_else_in_if_statement=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_finally_in_try_statement=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_while_in_do_statement=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_annotation_declaration=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_anonymous_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_block=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_constant=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_declaration=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_method_body=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_after_and_in_type_parameter=insert
+org.eclipse.jdt.core.formatter.insert_space_after_assignment_operator=insert
+org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation_type_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_binary_operator=insert
+org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_parameters=insert
+org.eclipse.jdt.core.formatter.insert_space_after_closing_brace_in_block=insert
+org.eclipse.jdt.core.formatter.insert_space_after_closing_paren_in_cast=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_assert=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_case=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_conditional=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_for=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_labeled_statement=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_allocation_expression=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_annotation=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_array_initializer=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_parameters=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_throws=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_constant_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_explicitconstructorcall_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_increments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_inits=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_parameters=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_throws=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_invocation_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_field_declarations=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_local_declarations=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_parameterized_type_reference=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_superinterfaces=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_parameters=insert
+org.eclipse.jdt.core.formatter.insert_space_after_ellipsis=insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_parameterized_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_brace_in_array_initializer=insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_cast=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_catch=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_constructor_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_enum_constant=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_for=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_if=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invocation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_while=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_postfix_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional=insert
+org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_for=insert
+org.eclipse.jdt.core.formatter.insert_space_after_unary_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_and_in_type_parameter=insert
+org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator=insert
+org.eclipse.jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_binary_operator=insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_parameterized_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_brace_in_array_initializer=insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_cast=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_catch=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_constructor_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_enum_constant=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_for=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_if=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invocation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_switch=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_while=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert=insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_conditional=insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_default=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_for=insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_labeled_statement=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_array_initializer=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_throws=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_constant_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_declarations=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_explicitconstructorcall_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_increments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_inits=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_throws=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_field_declarations=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_local_declarations=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_parameterized_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_superinterfaces=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_ellipsis=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_parameterized_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_annotation_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_anonymous_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_array_initializer=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_block=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_constructor_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_constant=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_method_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_switch=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation_type_member_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_catch=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_constructor_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_enum_constant=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_for=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_if=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invocation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_while=insert
+org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_return=insert
+org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_throw=insert
+org.eclipse.jdt.core.formatter.insert_space_before_postfix_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_prefix_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_question_in_conditional=insert
+org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_semicolon=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_for=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_unary_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_brackets_in_array_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_braces_in_array_initializer=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_brackets_in_array_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_annotation_type_member_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_constructor_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_enum_constant=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_invocation=do not insert
+org.eclipse.jdt.core.formatter.join_lines_in_comments=true
+org.eclipse.jdt.core.formatter.join_wrapped_lines=false
+org.eclipse.jdt.core.formatter.keep_else_statement_on_same_line=false
+org.eclipse.jdt.core.formatter.keep_empty_array_initializer_on_one_line=false
+org.eclipse.jdt.core.formatter.keep_imple_if_on_one_line=false
+org.eclipse.jdt.core.formatter.keep_then_statement_on_same_line=false
+org.eclipse.jdt.core.formatter.lineSplit=120
+org.eclipse.jdt.core.formatter.never_indent_block_comments_on_first_column=false
+org.eclipse.jdt.core.formatter.never_indent_line_comments_on_first_column=false
+org.eclipse.jdt.core.formatter.number_of_blank_lines_at_beginning_of_method_body=0
+org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve=1
+org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line=true
+org.eclipse.jdt.core.formatter.tabulation.char=tab
+org.eclipse.jdt.core.formatter.tabulation.size=4
+org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=false
+org.eclipse.jdt.core.formatter.wrap_before_binary_operator=true
Added: trunk/gwt/plugins/org.jboss.tools.gwt.core/.settings/org.eclipse.jdt.ui.prefs
===================================================================
--- trunk/gwt/plugins/org.jboss.tools.gwt.core/.settings/org.eclipse.jdt.ui.prefs (rev 0)
+++ trunk/gwt/plugins/org.jboss.tools.gwt.core/.settings/org.eclipse.jdt.ui.prefs 2010-07-22 13:53:14 UTC (rev 23666)
@@ -0,0 +1,4 @@
+#Tue Jul 20 16:20:52 CEST 2010
+eclipse.preferences.version=1
+formatter_profile=_Eclipse [built-in] extended
+formatter_settings_version=11
Added: trunk/gwt/plugins/org.jboss.tools.gwt.core/META-INF/MANIFEST.MF
===================================================================
--- trunk/gwt/plugins/org.jboss.tools.gwt.core/META-INF/MANIFEST.MF (rev 0)
+++ trunk/gwt/plugins/org.jboss.tools.gwt.core/META-INF/MANIFEST.MF 2010-07-22 13:53:14 UTC (rev 23666)
@@ -0,0 +1,28 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: JBoss Tools GWT (experimental)
+Bundle-SymbolicName: org.jboss.tools.gwt.core;singleton:=true
+Bundle-Version: 1.0.0.qualifier
+Bundle-Activator: org.jboss.tools.gwt.core.internal.GWTCoreActivator
+Bundle-Vendor: JBoss by Red Hat
+Require-Bundle:
+ org.jboss.tools.common;bundle-version="[3.2.0,4.0.0)",
+ com.google.gwt.eclipse.core;bundle-version="[1.3.3,2.0.0)",
+ com.google.gwt.eclipse.sdkbundle.2.0.4;bundle-version="[2.0.4,3.0.0)",
+ org.eclipse.core.runtime;bundle-version="[3.5.0,4.0.0)",
+ org.eclipse.wst.common.project.facet.core;bundle-version="[1.4.0,2.0.0)",
+ org.eclipse.core.resources;bundle-version="[3.5.0,4.0.0)",
+ org.eclipse.jdt.core;bundle-version="[3.5.0,4.0.0)",
+ org.eclipse.wst.common.modulecore;bundle-version="[1.1.301,2.0.0)",
+ org.eclipse.wst.common.emfworkbench.integration;bundle-version="[1.1.301,2.0.0)",
+ org.eclipse.jem.util;bundle-version="[2.0.201,3.0.0)",
+ org.eclipse.jst.j2ee.core;bundle-version="[1.1.301,2.0.0)",
+ org.eclipse.jst.j2ee;bundle-version="[1.1.302,2.0.0)",
+ org.eclipse.emf.ecore;bundle-version="[2.5.0,3.0.0)",
+ org.eclipse.wst.common.modulecore;bundle-version="[1.1.301,2.0.0)",
+ org.eclipse.wst.common.frameworks;bundle-version="[1.1.300,2.0.0)"
+Bundle-RequiredExecutionEnvironment: J2SE-1.5
+Export-Package: org.jboss.tools.gwt.core,
+ org.jboss.tools.gwt.core.util
+Bundle-ActivationPolicy: lazy
+
Added: trunk/gwt/plugins/org.jboss.tools.gwt.core/build.properties
===================================================================
--- trunk/gwt/plugins/org.jboss.tools.gwt.core/build.properties (rev 0)
+++ trunk/gwt/plugins/org.jboss.tools.gwt.core/build.properties 2010-07-22 13:53:14 UTC (rev 23666)
@@ -0,0 +1,14 @@
+source.. = src/
+output.. = bin/
+bin.includes = META-INF/,\
+ .,\
+ plugin.xml,\
+ bin/
+src.includes = .classpath,\
+ .project,\
+ .settings/,\
+ META-INF/,\
+ bin/,\
+ build.properties,\
+ plugin.xml,\
+ src/
Added: trunk/gwt/plugins/org.jboss.tools.gwt.core/plugin.xml
===================================================================
--- trunk/gwt/plugins/org.jboss.tools.gwt.core/plugin.xml (rev 0)
+++ trunk/gwt/plugins/org.jboss.tools.gwt.core/plugin.xml 2010-07-22 13:53:14 UTC (rev 23666)
@@ -0,0 +1,61 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?eclipse version="3.4"?>
+<plugin>
+ <extension
+ point="org.eclipse.wst.common.project.facet.core.facets">
+ <project-facet
+ id="jboss.gwt">
+ <label>
+ Google Web Toolkit (GWT) [Experimental]
+ </label>
+ <description>
+ Enables the project to work with Google Web Toolkit
+ </description>
+ </project-facet>
+ <project-facet-version
+ facet="jboss.gwt"
+ version="1.3.3">
+ <constraint>
+ <or>
+ <requires
+ facet="jst.web"
+ version="[2.4">
+ </requires>
+ <requires
+ facet="jst.java"
+ version="5.0">
+ </requires>
+ </or>
+ </constraint>
+ </project-facet-version>
+ <project-facet-version
+ facet="jboss.gwt"
+ version="1.4.0">
+ <constraint>
+ <or>
+ <requires
+ facet="jst.web"
+ version="[2.4">
+ </requires>
+ <requires
+ facet="jst.java"
+ version="5.0">
+ </requires>
+ </or>
+ </constraint>
+ </project-facet-version>
+ <action
+ facet="jboss.gwt"
+ id="jboss.gwt.install"
+ type="INSTALL"
+ version="[1.3.3">
+ <delegate
+ class="org.jboss.tools.gwt.core.GWTInstallFacetDelegate">
+ </delegate>
+ <config-factory
+ class="org.jboss.tools.gwt.core.GWTInstallDataModelProvider$Factory">
+ </config-factory>
+ </action>
+ </extension>
+
+</plugin>
Added: trunk/gwt/plugins/org.jboss.tools.gwt.core/pom.xml
===================================================================
--- trunk/gwt/plugins/org.jboss.tools.gwt.core/pom.xml (rev 0)
+++ trunk/gwt/plugins/org.jboss.tools.gwt.core/pom.xml 2010-07-22 13:53:14 UTC (rev 23666)
@@ -0,0 +1,14 @@
+<project
+xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <relativePath>../../../parent-pom.xml</relativePath>
+ <groupId>org.jboss.tools</groupId>
+ <artifactId>org.jboss.tools.parent.pom</artifactId>
+ <version>0.0.1-SNAPSHOT</version>
+ </parent>
+ <groupId>org.jboss.tools.gwt.plugins</groupId>
+ <artifactId>org.jboss.tools.gwt.core</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+ <packaging>eclipse-plugin</packaging>
+</project>
Added: trunk/gwt/plugins/org.jboss.tools.gwt.core/sample-hello-src.zip
===================================================================
(Binary files differ)
Property changes on: trunk/gwt/plugins/org.jboss.tools.gwt.core/sample-hello-src.zip
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/gwt/plugins/org.jboss.tools.gwt.core/sample-hello-webContent.zip
===================================================================
(Binary files differ)
Property changes on: trunk/gwt/plugins/org.jboss.tools.gwt.core/sample-hello-webContent.zip
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/gwt/plugins/org.jboss.tools.gwt.core/src/org/jboss/tools/gwt/core/GWTInstallDataModelProvider.java
===================================================================
--- trunk/gwt/plugins/org.jboss.tools.gwt.core/src/org/jboss/tools/gwt/core/GWTInstallDataModelProvider.java (rev 0)
+++ trunk/gwt/plugins/org.jboss.tools.gwt.core/src/org/jboss/tools/gwt/core/GWTInstallDataModelProvider.java 2010-07-22 13:53:14 UTC (rev 23666)
@@ -0,0 +1,50 @@
+/*******************************************************************************
+ * Copyright (c) 2007 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:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.gwt.core;
+
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.wst.common.componentcore.datamodel.FacetInstallDataModelProvider;
+import org.eclipse.wst.common.project.facet.core.IActionConfigFactory;
+
+/**
+ * @author adietish
+ */
+public class GWTInstallDataModelProvider extends FacetInstallDataModelProvider {
+
+ private boolean generateSampleCode;
+
+ @Override
+ public void init() {
+ super.init();
+
+ model.setProperty(FACET_ID, IJBossToolsGWTPluginConstants.FACET_ID);
+ }
+
+ public static class Factory implements IActionConfigFactory {
+ public Object create() throws CoreException {
+ return new GWTInstallDataModelProvider();
+ }
+ }
+
+ public void setGenerateSampleCode(boolean generateSampleCode) {
+ this.generateSampleCode = generateSampleCode;
+ }
+
+ /**
+ * Returns whether the sample code shall be generated.
+ *
+ * @return <tt>true</tt>, if the sample code shall be generated
+ */
+ public boolean isGenerateSampleCode() {
+ return generateSampleCode;
+ }
+
+}
Added: trunk/gwt/plugins/org.jboss.tools.gwt.core/src/org/jboss/tools/gwt/core/GWTInstallFacetDelegate.java
===================================================================
--- trunk/gwt/plugins/org.jboss.tools.gwt.core/src/org/jboss/tools/gwt/core/GWTInstallFacetDelegate.java (rev 0)
+++ trunk/gwt/plugins/org.jboss.tools.gwt.core/src/org/jboss/tools/gwt/core/GWTInstallFacetDelegate.java 2010-07-22 13:53:14 UTC (rev 23666)
@@ -0,0 +1,266 @@
+/*******************************************************************************
+ * Copyright (c) 2007 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:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.gwt.core;
+
+import java.io.BufferedInputStream;
+import java.io.IOException;
+import java.text.MessageFormat;
+import java.util.List;
+import java.util.zip.ZipInputStream;
+
+import org.eclipse.core.resources.IFolder;
+import org.eclipse.core.resources.IProject;
+import org.eclipse.core.resources.IResource;
+import org.eclipse.core.resources.IWorkspaceRunnable;
+import org.eclipse.core.resources.ProjectScope;
+import org.eclipse.core.runtime.Assert;
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.IPath;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.core.runtime.NullProgressMonitor;
+import org.eclipse.core.runtime.Path;
+import org.eclipse.core.runtime.preferences.IEclipsePreferences;
+import org.eclipse.core.runtime.preferences.IScopeContext;
+import org.eclipse.jdt.core.IClasspathEntry;
+import org.eclipse.jdt.core.IJavaProject;
+import org.eclipse.jdt.core.JavaCore;
+import org.eclipse.jdt.core.JavaModelException;
+import org.eclipse.jst.j2ee.model.IModelProvider;
+import org.eclipse.jst.j2ee.model.ModelProviderManager;
+import org.eclipse.jst.j2ee.webapplication.WebapplicationFactory;
+import org.eclipse.jst.j2ee.webapplication.WelcomeFile;
+import org.eclipse.jst.javaee.core.JavaeeFactory;
+import org.eclipse.jst.javaee.core.UrlPatternType;
+import org.eclipse.jst.javaee.web.Servlet;
+import org.eclipse.jst.javaee.web.ServletMapping;
+import org.eclipse.jst.javaee.web.WebApp;
+import org.eclipse.jst.javaee.web.WebFactory;
+import org.eclipse.jst.javaee.web.WelcomeFileList;
+import org.eclipse.wst.common.project.facet.core.IDelegate;
+import org.eclipse.wst.common.project.facet.core.IProjectFacetVersion;
+import org.jboss.tools.common.EclipseUtil;
+import org.jboss.tools.common.log.LogHelper;
+import org.jboss.tools.gwt.core.internal.GWTCoreActivator;
+import org.jboss.tools.gwt.core.util.ProjectUtils;
+import org.osgi.service.prefs.BackingStoreException;
+
+/**
+ * @author adietish
+ */
+public class GWTInstallFacetDelegate implements IDelegate {
+
+ public void execute(IProject project, IProjectFacetVersion projectFacetVersion, Object config,
+ IProgressMonitor monitor) throws CoreException {
+ try {
+
+ GWTInstallDataModelProvider dataModel = (GWTInstallDataModelProvider) config;
+ IJavaProject javaProject = JavaCore.create(project);
+
+ addNature(javaProject, monitor);
+
+ addClasspathContainer(javaProject, monitor);
+
+ IPath webContentPath = ProjectUtils.getWebContentRootPath(javaProject.getProject());
+ Assert.isTrue(webContentPath != null && !webContentPath.isEmpty(),
+ MessageFormat
+ .format("no web content folder was found in project {0}", javaProject.getElementName()));
+
+ IScopeContext projectScope = new ProjectScope(project);
+ createWebApplicationPreferences(
+ projectScope.getNode(IGoogleEclipsePluginConstants.GDT_PLUGIN_ID),
+ webContentPath, javaProject, monitor);
+
+ configureOutputFolder(webContentPath, javaProject, monitor);
+
+ List<IPath> srcFolderPaths = ProjectUtils.getSourceFolders(javaProject);
+ Assert.isTrue(srcFolderPaths.size() > 0,
+ MessageFormat.format("no source folders were found in project {0}", javaProject.getElementName()));
+ createSample(srcFolderPaths, webContentPath, dataModel, javaProject, monitor);
+
+ configureWebXml(project, monitor);
+
+ } catch (BackingStoreException e) {
+ LogHelper.logError(GWTCoreActivator.getDefault(), "Could not store preferences.", e);
+ } catch (Exception e) {
+
+ LogHelper.logError(GWTCoreActivator.getDefault(), "Could not create gwt facet.", e);
+ }
+ }
+
+ private void addNature(IJavaProject javaProject, IProgressMonitor monitor) throws CoreException {
+ monitor.subTask("adding gwt nature");
+
+ EclipseUtil.addNatureToProject(javaProject.getProject(), IGoogleEclipsePluginConstants.GWT_NATURE);
+ }
+
+ private void addClasspathContainer(IJavaProject javaProject, IProgressMonitor monitor) throws CoreException {
+ monitor.subTask("adding gwt container to classpath");
+
+ IClasspathEntry entry = JavaCore.newContainerEntry(new Path(IGoogleEclipsePluginConstants.GWT_CONTAINER_ID),
+ false);
+ ProjectUtils.addClasspathEntry(javaProject, entry, monitor);
+ }
+
+ private void createWebApplicationPreferences(IEclipsePreferences preferences, IPath webContentPath,
+ IJavaProject javaProject, IProgressMonitor monitor) throws BackingStoreException, CoreException {
+ monitor.subTask("creating web application preferences");
+
+ preferences.put(IGoogleEclipsePluginConstants.WAR_SRCDIR_KEY, webContentPath.makeRelativeTo(
+ javaProject.getPath()).toString());
+ preferences.put(IGoogleEclipsePluginConstants.WAR_SRCDIR_ISOUTPUT_KEY,
+ IGoogleEclipsePluginConstants.WAR_SRCDIR_ISOUTPUT_DEFAULTVALUE);
+ preferences.flush();
+ }
+
+ private void configureOutputFolder(IPath webContentProjectPath, IJavaProject javaProject, IProgressMonitor monitor)
+ throws CoreException, JavaModelException {
+ monitor.subTask("configuring output folder");
+ IPath outputFolderProjectPath = webContentProjectPath.append(new Path(
+ IGoogleEclipsePluginConstants.OUTPUT_FOLDER_DEFAULTVALUE));
+ IFolder outputWorkspaceFolder = javaProject.getProject().getWorkspace().getRoot().getFolder(
+ outputFolderProjectPath);
+ if (!outputWorkspaceFolder.exists()) {
+ outputWorkspaceFolder.create(false, true, monitor);
+ }
+ javaProject.setOutputLocation(outputWorkspaceFolder.getFullPath(), new NullProgressMonitor());
+ }
+
+ private void createSample(final List<IPath> srcPaths, final IPath webContentPath,
+ GWTInstallDataModelProvider dataModel, final IJavaProject javaProject, IProgressMonitor monitor)
+ throws IOException, CoreException {
+
+ if (dataModel.isGenerateSampleCode()) {
+
+ monitor.subTask("creating sample code");
+
+ javaProject.getProject().getWorkspace().run(new IWorkspaceRunnable() {
+ public void run(IProgressMonitor monitor) throws CoreException {
+ try {
+ /**
+ * TODO: it is not secure to take the first
+ * source-folder that was found (there might be several
+ * of them).
+ */
+ unzipSrc(srcPaths.get(0), javaProject);
+ unzipWebContent(webContentPath, javaProject);
+
+ } catch (IOException e) {
+ LogHelper.logError(GWTCoreActivator.getDefault(), "Could not create gwt facet", e);
+ }
+ }
+
+ }, monitor);
+
+ javaProject.getProject().refreshLocal(IResource.DEPTH_INFINITE, monitor);
+ }
+ }
+
+ private void unzipSrc(final IPath srcFolderPath, final IJavaProject javaProject) throws IOException {
+ ZipInputStream inputStream = new ZipInputStream(new BufferedInputStream(
+ ProjectUtils.checkedGetResourceStream(IGoogleEclipsePluginConstants.SAMPLE_HELLO_SRC_ZIP_FILENAME,
+ getClass())));
+ ProjectUtils.unzipToFolder(inputStream, ProjectUtils.getFile(srcFolderPath, javaProject.getProject()));
+ }
+
+ private void unzipWebContent(IPath webContentPath, IJavaProject javaProject) throws IOException {
+ ZipInputStream zipInputStream = new ZipInputStream(new BufferedInputStream(
+ ProjectUtils.checkedGetResourceStream(
+ IGoogleEclipsePluginConstants.SAMPLE_HELLO_WEBCONTENT_ZIP_FILENAME, getClass())));
+ ProjectUtils.unzipToFolder(zipInputStream, ProjectUtils.getFile(webContentPath, javaProject.getProject()));
+ }
+
+ /**
+ * Configures the web xml. Adds the gwt servlet, servlet mapping and welcome
+ * page.
+ *
+ * @param project
+ * the project to configure the web xml of.
+ * @param monitor
+ * the monitor to inform on progress
+ */
+ protected void configureWebXml(final IProject project, IProgressMonitor monitor) {
+ IModelProvider modelProvider = ModelProviderManager.getModelProvider(project);
+ Object modelObject = modelProvider.getModelObject();
+ if (!(modelObject instanceof WebApp)) {
+ // TODO log
+ return;
+ }
+
+ monitor.subTask("configuring web.xml");
+
+ IPath webXmlPath = ProjectUtils.getWebXmlPath();
+ boolean exists = project.getProjectRelativePath().append(webXmlPath).toFile().exists();
+ if (!exists) {
+ webXmlPath = IModelProvider.FORCESAVE;
+ }
+ modelProvider.modify(new Runnable() {
+
+ public void run() {
+ IModelProvider modelProvider = ModelProviderManager.getModelProvider(project);
+ Object modelObject = modelProvider.getModelObject();
+ if (!(modelObject instanceof WebApp)) {
+ // TODO log
+ return;
+ }
+ WebApp webApp = (WebApp) modelObject;
+
+ Servlet servlet = createServlet(
+ IGoogleEclipsePluginConstants.SERVLET_NAME,
+ IGoogleEclipsePluginConstants.SERVLET_CLASS,
+ webApp);
+ createServletMapping(
+ IGoogleEclipsePluginConstants.SERVLET_MAPPING,
+ servlet,
+ webApp);
+ addWelcomePage(
+ IGoogleEclipsePluginConstants.WELCOME_FILE,
+ webApp);
+ }
+
+ }, webXmlPath);
+ }
+
+ @SuppressWarnings("unchecked")
+ private void createServletMapping(String urlPattern, Servlet servlet, WebApp webApp) {
+ ServletMapping mapping = WebFactory.eINSTANCE.createServletMapping();
+ mapping.setServletName(servlet.getServletName());
+ UrlPatternType urlPatternType = JavaeeFactory.eINSTANCE.createUrlPatternType();
+ urlPatternType.setValue(urlPattern);
+ mapping.getUrlPatterns().add(urlPatternType);
+ webApp.getServletMappings().add(mapping);
+ }
+
+ @SuppressWarnings("unchecked")
+ private Servlet createServlet(String servletName, String servletClass, WebApp webApp) {
+ Servlet servlet = WebFactory.eINSTANCE.createServlet();
+ servlet.setServletName(servletName);
+ servlet.setServletClass(servletClass);
+ webApp.getServlets().add(servlet);
+ return servlet;
+ }
+
+ @SuppressWarnings("unchecked")
+ private void addWelcomePage(String welcomeFileUrl, WebApp webApp) {
+ List<WelcomeFileList> welcomeList = webApp.getWelcomeFileLists();
+ WelcomeFileList welcomeFileList = null;
+ if (welcomeList.isEmpty()) {
+ welcomeFileList = WebFactory.eINSTANCE.createWelcomeFileList();
+ webApp.getWelcomeFileLists().add(welcomeFileList);
+ } else {
+ welcomeFileList = (WelcomeFileList) welcomeList.get(0);
+ }
+
+ WelcomeFile welcomeFile = WebapplicationFactory.eINSTANCE.createWelcomeFile();
+ welcomeFile.setWelcomeFile(welcomeFileUrl);
+ welcomeFileList.getWelcomeFiles().add(welcomeFileUrl);
+
+ }
+}
Added: trunk/gwt/plugins/org.jboss.tools.gwt.core/src/org/jboss/tools/gwt/core/IGoogleEclipsePluginConstants.java
===================================================================
--- trunk/gwt/plugins/org.jboss.tools.gwt.core/src/org/jboss/tools/gwt/core/IGoogleEclipsePluginConstants.java (rev 0)
+++ trunk/gwt/plugins/org.jboss.tools.gwt.core/src/org/jboss/tools/gwt/core/IGoogleEclipsePluginConstants.java 2010-07-22 13:53:14 UTC (rev 23666)
@@ -0,0 +1,58 @@
+/*******************************************************************************
+ * Copyright (c) 2007 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:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.gwt.core;
+
+/**
+ * A class that holds various constants that are used to handle google eclipse
+ * plugin specific functionalities.
+ *
+ * @author adietish
+ */
+public class IGoogleEclipsePluginConstants {
+
+ public static final String GWT_NATURE = "com.google.gwt.eclipse.core.gwtNature";
+
+ /** The gwt class path container id. */
+ public static final String GWT_CONTAINER_ID = "com.google.gwt.eclipse.core.GWT_CONTAINER"; //$NON-NLS-1$
+
+ /** The gwt compiler settings key. */
+ public static final String COMPILESETTINGS_KEY = "gwtCompileSettings"; //$NON-NLS-1$
+
+
+ /** The if of the gdt plugin. */
+ public static final String GDT_PLUGIN_ID = "com.google.gdt.eclipse.core"; //$NON-NLS-1$
+
+ /** The war source directory key. */
+ public static final String WAR_SRCDIR_KEY = "warSrcDir"; //$NON-NLS-1$
+
+ /** the path to the war directory. */
+ public static final String WAR_SRCDIR_ISOUTPUT_KEY = "warSrcDirIsOutput"; //$NON-NLS-1$
+
+ /** flag that tells the google plugin to compile to/run from the war directory. @see #WAR_SRCDIR_ISOUTPUT_KEY */
+ public static final String WAR_SRCDIR_ISOUTPUT_DEFAULTVALUE = "true"; //$NON-NLS-1$
+
+ /** the folder to compile to. Should be a sub-folder of the WAR_SRCDIR, otherwise google proj. validator complains. */
+ public static final String OUTPUT_FOLDER_DEFAULTVALUE = "/WEB-INF/classes"; //$NON-NLS-1$
+
+ /** the zip-file that holds the samples source that's shipped with the plugin */
+ public static final String SAMPLE_HELLO_SRC_ZIP_FILENAME = "/sample-hello-src.zip"; //$NON-NLS-1$
+
+ /** the zip-file that holds the samples web-content that's shipped with the plugin */
+ public static final String SAMPLE_HELLO_WEBCONTENT_ZIP_FILENAME = "/sample-hello-webContent.zip"; //$NON-NLS-1$
+
+ public static final String SERVLET_NAME = "greetServlet"; //$NON-NLS-1$
+
+ public static final String SERVLET_CLASS = "org.jboss.tools.gwt.server.GreetingServiceImpl"; //$NON-NLS-1$
+
+ public static final String SERVLET_MAPPING = "/gwt_jboss/greet"; //$NON-NLS-1$
+
+ public static final String WELCOME_FILE = "Gwt_jboss.html"; //$NON-NLS-1$
+}
Added: trunk/gwt/plugins/org.jboss.tools.gwt.core/src/org/jboss/tools/gwt/core/IJBossToolsGWTPluginConstants.java
===================================================================
--- trunk/gwt/plugins/org.jboss.tools.gwt.core/src/org/jboss/tools/gwt/core/IJBossToolsGWTPluginConstants.java (rev 0)
+++ trunk/gwt/plugins/org.jboss.tools.gwt.core/src/org/jboss/tools/gwt/core/IJBossToolsGWTPluginConstants.java 2010-07-22 13:53:14 UTC (rev 23666)
@@ -0,0 +1,20 @@
+/*******************************************************************************
+ * Copyright (c) 2007 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:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.gwt.core;
+
+/**
+ * @author adietish
+ */
+public class IJBossToolsGWTPluginConstants {
+
+ /** The id of the jboss tools facet */
+ public static final String FACET_ID = "jboss.gwt"; //$NON-NLS-1$
+}
Added: trunk/gwt/plugins/org.jboss.tools.gwt.core/src/org/jboss/tools/gwt/core/internal/GWTCoreActivator.java
===================================================================
--- trunk/gwt/plugins/org.jboss.tools.gwt.core/src/org/jboss/tools/gwt/core/internal/GWTCoreActivator.java (rev 0)
+++ trunk/gwt/plugins/org.jboss.tools.gwt.core/src/org/jboss/tools/gwt/core/internal/GWTCoreActivator.java 2010-07-22 13:53:14 UTC (rev 23666)
@@ -0,0 +1,59 @@
+/*******************************************************************************
+ * Copyright (c) 2007 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:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.gwt.core.internal;
+
+import org.eclipse.core.runtime.Plugin;
+import org.osgi.framework.BundleContext;
+
+/**
+ * The activator class controls the plug-in life cycle
+ */
+public class GWTCoreActivator extends Plugin {
+
+ // The plug-in ID
+ public static final String PLUGIN_ID = "org.jboss.tools.gwt.core";
+
+ // The shared instance
+ private static GWTCoreActivator plugin;
+
+ /**
+ * The constructor
+ */
+ public GWTCoreActivator() {
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.eclipse.core.runtime.Plugins#start(org.osgi.framework.BundleContext)
+ */
+ public void start(BundleContext context) throws Exception {
+ super.start(context);
+ plugin = this;
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.eclipse.core.runtime.Plugin#stop(org.osgi.framework.BundleContext)
+ */
+ public void stop(BundleContext context) throws Exception {
+ plugin = null;
+ super.stop(context);
+ }
+
+ /**
+ * Returns the shared instance
+ *
+ * @return the shared instance
+ */
+ public static GWTCoreActivator getDefault() {
+ return plugin;
+ }
+}
Added: trunk/gwt/plugins/org.jboss.tools.gwt.core/src/org/jboss/tools/gwt/core/util/ProjectUtils.java
===================================================================
--- trunk/gwt/plugins/org.jboss.tools.gwt.core/src/org/jboss/tools/gwt/core/util/ProjectUtils.java (rev 0)
+++ trunk/gwt/plugins/org.jboss.tools.gwt.core/src/org/jboss/tools/gwt/core/util/ProjectUtils.java 2010-07-22 13:53:14 UTC (rev 23666)
@@ -0,0 +1,206 @@
+/*******************************************************************************
+ * Copyright (c) 2007 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:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+
+package org.jboss.tools.gwt.core.util;
+
+import java.io.BufferedOutputStream;
+import java.io.File;
+import java.io.FileOutputStream;
+import java.io.IOException;
+import java.io.InputStream;
+import java.text.MessageFormat;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.zip.ZipEntry;
+import java.util.zip.ZipInputStream;
+
+import org.eclipse.core.resources.IFolder;
+import org.eclipse.core.resources.IProject;
+import org.eclipse.core.runtime.Assert;
+import org.eclipse.core.runtime.AssertionFailedException;
+import org.eclipse.core.runtime.IPath;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.core.runtime.Path;
+import org.eclipse.jdt.core.IClasspathEntry;
+import org.eclipse.jdt.core.IJavaProject;
+import org.eclipse.jdt.core.JavaModelException;
+import org.eclipse.wst.common.componentcore.ComponentCore;
+import org.eclipse.wst.common.componentcore.ModuleCoreNature;
+import org.eclipse.wst.common.componentcore.resources.IVirtualComponent;
+
+/**
+ * A class that holds various utility methods that help to deal with projects.
+ *
+ * @author adietish.
+ *
+ * @see IProject
+ */
+public class ProjectUtils {
+
+ /** The name of the web xml file */
+ public static final String WEB_XML_FILE = "web.xml";
+
+ /** the folder that holds the web configurations and deployed classes */
+ public static final String WEB_INF_FOLDER = "WEB-INF";
+
+ /** Signals the end of a stream. */
+ private static final int EOS = -1;
+
+ public static IPath getWebXmlPath() {
+ return new Path(WEB_INF_FOLDER).append(WEB_XML_FILE);
+ }
+
+ /**
+ * Adds a classpath entry to the given java project.
+ *
+ * @param javaProject
+ * the java project
+ * @param entry
+ * the classpath entry to add
+ * @param monitor
+ * @throws JavaModelException
+ * signals that an error occurred when adding the given entry
+ *
+ * @see IJavaProject
+ * @see IClasspathEntry
+ */
+ public static void addClasspathEntry(IJavaProject javaProject, IClasspathEntry entry, IProgressMonitor monitor)
+ throws JavaModelException {
+ IClasspathEntry[] rawClasspath = javaProject.getRawClasspath();
+ IClasspathEntry[] newClasspath = new IClasspathEntry[rawClasspath.length + 1];
+ System.arraycopy(rawClasspath, 0, newClasspath, 0, rawClasspath.length);
+ newClasspath[rawClasspath.length] = entry;
+ javaProject.setRawClasspath(newClasspath, monitor);
+ }
+
+ /**
+ * Returns the path of the web content folder in the given project. The path
+ * returned is relative to the workspace.
+ *
+ * @param project
+ * the project to return the web content folder for
+ * @return the path of the web content folder (relative to the workspace)
+ */
+ public static IPath getWebContentRootPath(IProject project) {
+ if (!ModuleCoreNature.isFlexibleProject(project))
+ return project.getFullPath();
+ IPath path = null;
+ IVirtualComponent component = ComponentCore.createComponent(project);
+ if (component != null && component.exists()) {
+ path = component.getRootFolder().getWorkspaceRelativePath();
+ } else {
+ path = project.getFullPath();
+ }
+ return path;
+ }
+
+ /**
+ * Unzips the given ZipInputStream to the given folder.
+ *
+ * @param zipInputStream
+ * the zip input stream
+ * @param dirToExtractTo
+ * the dir to extract to
+ * @throws IOException
+ * Signals that an I/O exception has occurred.
+ *
+ * @see ZipInputStream
+ * @see File
+ */
+ public static final void unzipToFolder(ZipInputStream zipInputStream, File dirToExtractTo) throws IOException {
+ Assert.isLegal(zipInputStream != null);
+ Assert.isLegal(!dirToExtractTo.exists() || dirToExtractTo.isDirectory());
+ try {
+ for (ZipEntry zipEntry = null; (zipEntry = zipInputStream.getNextEntry()) != null;) {
+ File file = new File(dirToExtractTo, zipEntry.getName());
+ if (zipEntry.isDirectory()) {
+ if (!file.exists()) {
+ file.mkdirs();
+ }
+ } else {
+ if (!file.getParentFile().exists()) {
+ file.getParentFile().mkdirs();
+ }
+ writeTo(zipInputStream, file);
+ }
+ }
+ } finally {
+ zipInputStream.close();
+ }
+ }
+
+ private static void writeTo(InputStream inputStream, File file) throws IOException {
+ BufferedOutputStream outputStream = new BufferedOutputStream(new FileOutputStream(file));
+ byte[] buffer = new byte[8192];
+ try {
+ for (int read = 0; (read = inputStream.read(buffer)) != EOS;) {
+ outputStream.write(buffer, 0, read);
+ }
+ } finally {
+ outputStream.close();
+ }
+ }
+
+ /**
+ * Returns the (paths of) the source folders for the given java project. The
+ * paths returned are relative to the workspace.
+ *
+ * @param javaProject
+ * the java project
+ * @return the source folders (relative to the workspace)
+ * @throws JavaModelException
+ * the java model exception
+ *
+ * @see IPath
+ * @see IJavaProject
+ * @see IClasspathEntry
+ * @see IClasspathEntry#CPE_SOURCE
+ */
+ public static List<IPath> getSourceFolders(IJavaProject javaProject) throws JavaModelException {
+ List<IPath> srcFolderList = new ArrayList<IPath>();
+ for (IClasspathEntry classpathEntry : javaProject.getRawClasspath()) {
+ if (IClasspathEntry.CPE_SOURCE == classpathEntry.getEntryKind()) {
+ srcFolderList.add(classpathEntry.getPath());
+ }
+ }
+ return srcFolderList;
+ }
+
+ /**
+ * Returns a file for the given path in the given project.
+ *
+ * @param path
+ * the path to return the file for
+ * @param project
+ * the project the path's located in
+ * @return the file that represents the given path in the given project
+ */
+ public static File getFile(IPath path, IProject project) {
+ IFolder folder = project.getWorkspace().getRoot().getFolder(path);
+ return folder.getLocation().toFile();
+ }
+
+ /**
+ * Returns a resource as stream while checking whether the resource exists.
+ *
+ * @param resourceName the resource name
+ * @return the input stream
+ *
+ * @throws AssertionFailedException if the resource's not found
+ */
+ public static InputStream checkedGetResourceStream(String resourceName, Class<?> clazz) {
+ InputStream inputStream = clazz.getResourceAsStream(resourceName);
+ Assert.isTrue(inputStream != null, MessageFormat.format("Could not find the zip file {0}", resourceName));
+ return inputStream;
+ }
+
+
+}
Added: trunk/gwt/plugins/org.jboss.tools.gwt.ui/.classpath
===================================================================
--- trunk/gwt/plugins/org.jboss.tools.gwt.ui/.classpath (rev 0)
+++ trunk/gwt/plugins/org.jboss.tools.gwt.ui/.classpath 2010-07-22 13:53:14 UTC (rev 23666)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
+ <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
Added: trunk/gwt/plugins/org.jboss.tools.gwt.ui/.project
===================================================================
--- trunk/gwt/plugins/org.jboss.tools.gwt.ui/.project (rev 0)
+++ trunk/gwt/plugins/org.jboss.tools.gwt.ui/.project 2010-07-22 13:53:14 UTC (rev 23666)
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.jboss.tools.gwt.ui</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.ManifestBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.SchemaBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.pde.PluginNature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
Added: trunk/gwt/plugins/org.jboss.tools.gwt.ui/.settings/org.eclipse.jdt.core.prefs
===================================================================
--- trunk/gwt/plugins/org.jboss.tools.gwt.ui/.settings/org.eclipse.jdt.core.prefs (rev 0)
+++ trunk/gwt/plugins/org.jboss.tools.gwt.ui/.settings/org.eclipse.jdt.core.prefs 2010-07-22 13:53:14 UTC (rev 23666)
@@ -0,0 +1,266 @@
+#Wed Jul 21 14:58:45 CEST 2010
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
+org.eclipse.jdt.core.compiler.compliance=1.5
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.source=1.5
+org.eclipse.jdt.core.formatter.align_type_members_on_columns=false
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant=16
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call=16
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation=16
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression=16
+org.eclipse.jdt.core.formatter.alignment_for_assignment=0
+org.eclipse.jdt.core.formatter.alignment_for_binary_expression=16
+org.eclipse.jdt.core.formatter.alignment_for_compact_if=16
+org.eclipse.jdt.core.formatter.alignment_for_conditional_expression=80
+org.eclipse.jdt.core.formatter.alignment_for_enum_constants=0
+org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer=16
+org.eclipse.jdt.core.formatter.alignment_for_multiple_fields=16
+org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation=16
+org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration=16
+org.eclipse.jdt.core.formatter.blank_lines_after_imports=1
+org.eclipse.jdt.core.formatter.blank_lines_after_package=1
+org.eclipse.jdt.core.formatter.blank_lines_before_field=0
+org.eclipse.jdt.core.formatter.blank_lines_before_first_class_body_declaration=0
+org.eclipse.jdt.core.formatter.blank_lines_before_imports=1
+org.eclipse.jdt.core.formatter.blank_lines_before_member_type=1
+org.eclipse.jdt.core.formatter.blank_lines_before_method=1
+org.eclipse.jdt.core.formatter.blank_lines_before_new_chunk=1
+org.eclipse.jdt.core.formatter.blank_lines_before_package=0
+org.eclipse.jdt.core.formatter.blank_lines_between_import_groups=1
+org.eclipse.jdt.core.formatter.blank_lines_between_type_declarations=1
+org.eclipse.jdt.core.formatter.brace_position_for_annotation_type_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_array_initializer=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_block=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_block_in_case=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_constructor_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_enum_constant=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_enum_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_method_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_switch=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_type_declaration=end_of_line
+org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_block_comment=false
+org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_javadoc_comment=false
+org.eclipse.jdt.core.formatter.comment.format_block_comments=true
+org.eclipse.jdt.core.formatter.comment.format_header=false
+org.eclipse.jdt.core.formatter.comment.format_html=true
+org.eclipse.jdt.core.formatter.comment.format_javadoc_comments=true
+org.eclipse.jdt.core.formatter.comment.format_line_comments=true
+org.eclipse.jdt.core.formatter.comment.format_source_code=true
+org.eclipse.jdt.core.formatter.comment.indent_parameter_description=true
+org.eclipse.jdt.core.formatter.comment.indent_root_tags=true
+org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags=insert
+org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter=insert
+org.eclipse.jdt.core.formatter.comment.line_length=80
+org.eclipse.jdt.core.formatter.compact_else_if=true
+org.eclipse.jdt.core.formatter.continuation_indentation=2
+org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer=2
+org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line=false
+org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_annotation_declaration_header=true
+org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_constant_header=true
+org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_declaration_header=true
+org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_type_header=true
+org.eclipse.jdt.core.formatter.indent_breaks_compare_to_cases=true
+org.eclipse.jdt.core.formatter.indent_empty_lines=false
+org.eclipse.jdt.core.formatter.indent_statements_compare_to_block=true
+org.eclipse.jdt.core.formatter.indent_statements_compare_to_body=true
+org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_cases=true
+org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_switch=false
+org.eclipse.jdt.core.formatter.indentation.size=4
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_local_variable=insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_member=insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_parameter=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_opening_brace_in_array_initializer=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_catch_in_try_statement=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_closing_brace_in_array_initializer=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_else_in_if_statement=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_finally_in_try_statement=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_while_in_do_statement=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_annotation_declaration=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_anonymous_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_block=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_constant=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_declaration=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_method_body=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_after_and_in_type_parameter=insert
+org.eclipse.jdt.core.formatter.insert_space_after_assignment_operator=insert
+org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation_type_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_binary_operator=insert
+org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_parameters=insert
+org.eclipse.jdt.core.formatter.insert_space_after_closing_brace_in_block=insert
+org.eclipse.jdt.core.formatter.insert_space_after_closing_paren_in_cast=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_assert=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_case=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_conditional=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_for=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_labeled_statement=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_allocation_expression=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_annotation=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_array_initializer=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_parameters=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_throws=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_constant_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_explicitconstructorcall_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_increments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_inits=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_parameters=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_throws=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_invocation_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_field_declarations=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_local_declarations=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_parameterized_type_reference=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_superinterfaces=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_parameters=insert
+org.eclipse.jdt.core.formatter.insert_space_after_ellipsis=insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_parameterized_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_brace_in_array_initializer=insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_cast=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_catch=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_constructor_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_enum_constant=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_for=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_if=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invocation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_while=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_postfix_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional=insert
+org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_for=insert
+org.eclipse.jdt.core.formatter.insert_space_after_unary_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_and_in_type_parameter=insert
+org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator=insert
+org.eclipse.jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_binary_operator=insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_parameterized_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_brace_in_array_initializer=insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_cast=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_catch=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_constructor_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_enum_constant=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_for=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_if=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invocation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_switch=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_while=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert=insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_conditional=insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_default=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_for=insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_labeled_statement=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_array_initializer=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_throws=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_constant_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_declarations=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_explicitconstructorcall_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_increments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_inits=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_throws=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_field_declarations=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_local_declarations=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_parameterized_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_superinterfaces=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_ellipsis=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_parameterized_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_annotation_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_anonymous_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_array_initializer=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_block=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_constructor_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_constant=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_method_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_switch=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation_type_member_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_catch=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_constructor_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_enum_constant=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_for=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_if=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invocation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_while=insert
+org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_return=insert
+org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_throw=insert
+org.eclipse.jdt.core.formatter.insert_space_before_postfix_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_prefix_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_question_in_conditional=insert
+org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_semicolon=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_for=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_unary_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_brackets_in_array_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_braces_in_array_initializer=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_brackets_in_array_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_annotation_type_member_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_constructor_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_enum_constant=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_invocation=do not insert
+org.eclipse.jdt.core.formatter.join_lines_in_comments=true
+org.eclipse.jdt.core.formatter.join_wrapped_lines=false
+org.eclipse.jdt.core.formatter.keep_else_statement_on_same_line=false
+org.eclipse.jdt.core.formatter.keep_empty_array_initializer_on_one_line=false
+org.eclipse.jdt.core.formatter.keep_imple_if_on_one_line=false
+org.eclipse.jdt.core.formatter.keep_then_statement_on_same_line=false
+org.eclipse.jdt.core.formatter.lineSplit=120
+org.eclipse.jdt.core.formatter.never_indent_block_comments_on_first_column=false
+org.eclipse.jdt.core.formatter.never_indent_line_comments_on_first_column=false
+org.eclipse.jdt.core.formatter.number_of_blank_lines_at_beginning_of_method_body=0
+org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve=1
+org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line=true
+org.eclipse.jdt.core.formatter.tabulation.char=tab
+org.eclipse.jdt.core.formatter.tabulation.size=4
+org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=false
+org.eclipse.jdt.core.formatter.wrap_before_binary_operator=true
Added: trunk/gwt/plugins/org.jboss.tools.gwt.ui/.settings/org.eclipse.jdt.ui.prefs
===================================================================
--- trunk/gwt/plugins/org.jboss.tools.gwt.ui/.settings/org.eclipse.jdt.ui.prefs (rev 0)
+++ trunk/gwt/plugins/org.jboss.tools.gwt.ui/.settings/org.eclipse.jdt.ui.prefs 2010-07-22 13:53:14 UTC (rev 23666)
@@ -0,0 +1,4 @@
+#Wed Jul 21 14:58:45 CEST 2010
+eclipse.preferences.version=1
+formatter_profile=_Eclipse [built-in] extended
+formatter_settings_version=11
Added: trunk/gwt/plugins/org.jboss.tools.gwt.ui/META-INF/MANIFEST.MF
===================================================================
--- trunk/gwt/plugins/org.jboss.tools.gwt.ui/META-INF/MANIFEST.MF (rev 0)
+++ trunk/gwt/plugins/org.jboss.tools.gwt.ui/META-INF/MANIFEST.MF 2010-07-22 13:53:14 UTC (rev 23666)
@@ -0,0 +1,16 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: JBoss Tools GWT UI (Experimental)
+Bundle-SymbolicName: org.jboss.tools.gwt.ui;singleton:=true
+Bundle-Version: 1.0.0.qualifier
+Bundle-Activator: org.jboss.tools.gwt.ui.internal.GWTUIActivator
+Bundle-Vendor: JBoss by Red Hat
+Require-Bundle: org.eclipse.ui;bundle-version="[3.5.0,4.0.0)",
+ org.eclipse.core.runtime;bundle-version="[3.5.0,4.0.0)",
+ org.eclipse.wst.common.project.facet.ui;bundle-version="1.4.1",
+ org.jboss.tools.gwt.core;bundle-version="1.0.0",
+ org.eclipse.wst.common.modulecore;bundle-version="[1.1.301,2.0.0)",
+ org.eclipse.wst.common.frameworks;bundle-version="[1.1.300,2.0.0)"
+Bundle-RequiredExecutionEnvironment: J2SE-1.5
+Export-Package: org.jboss.tools.gwt.ui
+Bundle-ActivationPolicy: lazy
Added: trunk/gwt/plugins/org.jboss.tools.gwt.ui/build.properties
===================================================================
--- trunk/gwt/plugins/org.jboss.tools.gwt.ui/build.properties (rev 0)
+++ trunk/gwt/plugins/org.jboss.tools.gwt.ui/build.properties 2010-07-22 13:53:14 UTC (rev 23666)
@@ -0,0 +1,5 @@
+source.. = src/
+output.. = bin/
+bin.includes = META-INF/,\
+ .,\
+ plugin.xml
Added: trunk/gwt/plugins/org.jboss.tools.gwt.ui/plugin.xml
===================================================================
--- trunk/gwt/plugins/org.jboss.tools.gwt.ui/plugin.xml (rev 0)
+++ trunk/gwt/plugins/org.jboss.tools.gwt.ui/plugin.xml 2010-07-22 13:53:14 UTC (rev 23666)
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?eclipse version="3.4"?>
+<plugin>
+ <extension
+ point="org.eclipse.wst.common.project.facet.ui.wizardPages">
+ <wizard-pages
+ action="jboss.gwt.install">
+ <page
+ class="org.jboss.tools.gwt.ui.GWTInstallFacetWizardPage">
+ </page>
+ </wizard-pages>
+ </extension>
+
+</plugin>
Added: trunk/gwt/plugins/org.jboss.tools.gwt.ui/pom.xml
===================================================================
--- trunk/gwt/plugins/org.jboss.tools.gwt.ui/pom.xml (rev 0)
+++ trunk/gwt/plugins/org.jboss.tools.gwt.ui/pom.xml 2010-07-22 13:53:14 UTC (rev 23666)
@@ -0,0 +1,14 @@
+<project
+xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <relativePath>../../../parent-pom.xml</relativePath>
+ <groupId>org.jboss.tools</groupId>
+ <artifactId>org.jboss.tools.parent.pom</artifactId>
+ <version>0.0.1-SNAPSHOT</version>
+ </parent>
+ <groupId>org.jboss.tools.gwt.plugins</groupId>
+ <artifactId>org.jboss.tools.gwt.ui</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+ <packaging>eclipse-plugin</packaging>
+</project>
Added: trunk/gwt/plugins/org.jboss.tools.gwt.ui/src/org/jboss/tools/gwt/ui/GWTInstallFacetWizardPage.java
===================================================================
--- trunk/gwt/plugins/org.jboss.tools.gwt.ui/src/org/jboss/tools/gwt/ui/GWTInstallFacetWizardPage.java (rev 0)
+++ trunk/gwt/plugins/org.jboss.tools.gwt.ui/src/org/jboss/tools/gwt/ui/GWTInstallFacetWizardPage.java 2010-07-22 13:53:14 UTC (rev 23666)
@@ -0,0 +1,73 @@
+/*******************************************************************************
+ * Copyright (c) 2007 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:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.gwt.ui;
+
+import org.eclipse.jface.layout.GridDataFactory;
+import org.eclipse.jface.layout.GridLayoutFactory;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.events.SelectionAdapter;
+import org.eclipse.swt.events.SelectionEvent;
+import org.eclipse.swt.widgets.Button;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Label;
+import org.eclipse.wst.common.project.facet.ui.AbstractFacetWizardPage;
+import org.eclipse.wst.common.project.facet.ui.IFacetWizardPage;
+import org.jboss.tools.gwt.core.GWTInstallDataModelProvider;
+
+/**
+ * @author adietish
+ */
+public class GWTInstallFacetWizardPage extends AbstractFacetWizardPage implements IFacetWizardPage {
+
+ private static final String WIZARD_PAGE_ID = "jboss.gwt.install.page"; //$NON-NLS-1$
+
+ GWTInstallDataModelProvider gwtInstallDataModel;
+
+ private boolean generateSampleCode;
+
+ public GWTInstallFacetWizardPage() {
+ super(WIZARD_PAGE_ID);
+ setTitle("Google Web Toolkit");
+ setDescription("Configure project for using Google Web Toolkit.");
+ }
+
+ public void setConfig(Object gwtInstallDataModel) {
+ this.gwtInstallDataModel = (GWTInstallDataModelProvider) gwtInstallDataModel;
+ }
+
+ public void createControl(Composite parent) {
+
+ Composite composite = new Composite(parent, SWT.NONE);
+
+ Label label = new Label(composite, SWT.NONE);
+ label.setText("Generate sample code:");
+ Button checkBox = new Button(composite, SWT.CHECK);
+ checkBox.addSelectionListener(onCheckboxSelected(checkBox));
+ GridDataFactory.fillDefaults().align(SWT.BEGINNING, SWT.CENTER).applyTo(checkBox);
+ GridLayoutFactory.fillDefaults().numColumns(2).margins(6, 6).applyTo(composite);
+
+ setControl(composite);
+ }
+
+ private SelectionAdapter onCheckboxSelected(final Button checkBox) {
+ return new SelectionAdapter() {
+ @Override
+ public void widgetSelected(SelectionEvent e) {
+ GWTInstallFacetWizardPage.this.generateSampleCode = checkBox.getSelection();
+ }
+ };
+ }
+
+ @Override
+ public void transferStateToConfig() {
+ gwtInstallDataModel.setGenerateSampleCode(generateSampleCode);
+ }
+}
Added: trunk/gwt/plugins/org.jboss.tools.gwt.ui/src/org/jboss/tools/gwt/ui/internal/GWTUIActivator.java
===================================================================
--- trunk/gwt/plugins/org.jboss.tools.gwt.ui/src/org/jboss/tools/gwt/ui/internal/GWTUIActivator.java (rev 0)
+++ trunk/gwt/plugins/org.jboss.tools.gwt.ui/src/org/jboss/tools/gwt/ui/internal/GWTUIActivator.java 2010-07-22 13:53:14 UTC (rev 23666)
@@ -0,0 +1,59 @@
+/*******************************************************************************
+ * Copyright (c) 2007 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:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.gwt.ui.internal;
+
+import org.eclipse.ui.plugin.AbstractUIPlugin;
+import org.osgi.framework.BundleContext;
+
+/**
+ * The activator class controls the plug-in life cycle
+ */
+public class GWTUIActivator extends AbstractUIPlugin {
+
+ // The plug-in ID
+ public static final String PLUGIN_ID = "org.jboss.tools.gwt.ui";
+
+ // The shared instance
+ private static GWTUIActivator plugin;
+
+ /**
+ * The constructor
+ */
+ public GWTUIActivator() {
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
+ */
+ public void start(BundleContext context) throws Exception {
+ super.start(context);
+ plugin = this;
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
+ */
+ public void stop(BundleContext context) throws Exception {
+ plugin = null;
+ super.stop(context);
+ }
+
+ /**
+ * Returns the shared instance
+ *
+ * @return the shared instance
+ */
+ public static GWTUIActivator getDefault() {
+ return plugin;
+ }
+}
Added: trunk/gwt/plugins/pom.xml
===================================================================
--- trunk/gwt/plugins/pom.xml (rev 0)
+++ trunk/gwt/plugins/pom.xml 2010-07-22 13:53:14 UTC (rev 23666)
@@ -0,0 +1,14 @@
+<project
+xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.jboss.tools.gwt</groupId>
+ <artifactId>plugins</artifactId>
+ <name>gwt.plugins</name>
+ <version>0.0.1-SNAPSHOT</version>
+ <packaging>pom</packaging>
+ <modules>
+ <module>org.jboss.tools.gwt.core</module>
+ <module>org.jboss.tools.gwt.ui</module>
+ </modules>
+</project>
+
Added: trunk/gwt/pom.xml
===================================================================
--- trunk/gwt/pom.xml (rev 0)
+++ trunk/gwt/pom.xml 2010-07-22 13:53:14 UTC (rev 23666)
@@ -0,0 +1,16 @@
+<project
+xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.jboss.tools</groupId>
+ <artifactId>gwt</artifactId>
+ <name>gwt.all</name>
+ <version>0.0.1-SNAPSHOT</version>
+ <packaging>pom</packaging>
+ <modules>
+ <module>features</module>
+ <module>plugins</module>
+ <module>tests</module>
+ <module>site</module>
+ </modules>
+</project>
+
Added: trunk/gwt/site/pom.xml
===================================================================
--- trunk/gwt/site/pom.xml (rev 0)
+++ trunk/gwt/site/pom.xml 2010-07-22 13:53:14 UTC (rev 23666)
@@ -0,0 +1,14 @@
+<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <relativePath>../../parent-pom.xml</relativePath>
+ <groupId>org.jboss.tools</groupId>
+ <artifactId>org.jboss.tools.parent.pom</artifactId>
+ <version>0.0.1-SNAPSHOT</version>
+ </parent>
+ <groupId>org.jboss.tools.gwt</groupId>
+ <artifactId>site</artifactId>
+ <name>gwt.site</name>
+ <version>0.0.1-SNAPSHOT</version>
+ <packaging>eclipse-update-site</packaging>
+</project>
Added: trunk/gwt/tests/pom.xml
===================================================================
--- trunk/gwt/tests/pom.xml (rev 0)
+++ trunk/gwt/tests/pom.xml 2010-07-22 13:53:14 UTC (rev 23666)
@@ -0,0 +1,12 @@
+<project
+xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.jboss.tools.gwt</groupId>
+ <artifactId>tests</artifactId>
+ <name>gwt.tests</name>
+ <version>0.0.1-SNAPSHOT</version>
+ <packaging>pom</packaging>
+ <modules>
+ </modules>
+</project>
+
Modified: trunk/parent-pom.xml
===================================================================
--- trunk/parent-pom.xml 2010-07-22 13:25:28 UTC (rev 23665)
+++ trunk/parent-pom.xml 2010-07-22 13:53:14 UTC (rev 23666)
@@ -272,6 +272,17 @@
<enabled>true</enabled>
</releases>
</repository>
+ <repository>
+ <id>google eclipse plugins</id>
+ <url>http://dl.google.com/eclipse/plugin/3.6</url>
+ <layout>p2</layout>
+ <snapshots>
+ <enabled>true</enabled>
+ </snapshots>
+ <releases>
+ <enabled>true</enabled>
+ </releases>
+ </repository>
</repositories>
</profile>
<profile>
Modified: trunk/pom.xml
===================================================================
--- trunk/pom.xml 2010-07-22 13:25:28 UTC (rev 23665)
+++ trunk/pom.xml 2010-07-22 13:53:14 UTC (rev 23666)
@@ -46,7 +46,7 @@
ant -q -->
<!-- IF YOU REMOVE A MODULE, be sure to also remove it from site/site.xml and build/aggregate/site/site.xml
or the build will break! -->
- <module>drools</module>
+ <!-- <module>drools</module> -->
<module>site</module>
</modules>
15 years, 9 months
JBoss Tools SVN: r23665 - in trunk/jsf/tests/org.jboss.tools.jsf.test: src/org/jboss/tools/jsf/test/refactoring and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: dazarov
Date: 2010-07-22 09:25:28 -0400 (Thu, 22 Jul 2010)
New Revision: 23665
Added:
trunk/jsf/tests/org.jboss.tools.jsf.test/projects/JSFKickStartOldFormat/JavaSource/demo/Messages.properties
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.test/src/org/jboss/tools/jsf/test/refactoring/MessagePropertyRefactoringTest.java
Log:
https://jira.jboss.org/browse/JBIDE-4858
Added: trunk/jsf/tests/org.jboss.tools.jsf.test/projects/JSFKickStartOldFormat/JavaSource/demo/Messages.properties
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.test/projects/JSFKickStartOldFormat/JavaSource/demo/Messages.properties (rev 0)
+++ trunk/jsf/tests/org.jboss.tools.jsf.test/projects/JSFKickStartOldFormat/JavaSource/demo/Messages.properties 2010-07-22 13:25:28 UTC (rev 23665)
@@ -0,0 +1 @@
+hello_message=Hello
Property changes on: trunk/jsf/tests/org.jboss.tools.jsf.test/projects/JSFKickStartOldFormat/JavaSource/demo/Messages.properties
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Modified: trunk/jsf/tests/org.jboss.tools.jsf.test/src/org/jboss/tools/jsf/test/refactoring/MessagePropertyRefactoringTest.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.test/src/org/jboss/tools/jsf/test/refactoring/MessagePropertyRefactoringTest.java 2010-07-22 12:47:21 UTC (rev 23664)
+++ trunk/jsf/tests/org.jboss.tools.jsf.test/src/org/jboss/tools/jsf/test/refactoring/MessagePropertyRefactoringTest.java 2010-07-22 13:25:28 UTC (rev 23665)
@@ -27,27 +27,24 @@
project.build(IncrementalProjectBuilder.FULL_BUILD, new NullProgressMonitor());
}
- public void testELVariableRename() throws CoreException {
+ public void testMessagePropertyRename() throws CoreException {
ArrayList<TestChangeStructure> list = new ArrayList<TestChangeStructure>();
IFile sourceFile = project.getProject().getFile("/WebContent/pages/hello.jsp");
String sourceFileContent = FileUtil.getContentFromEditorOrFile(sourceFile);
- int position = sourceFileContent.indexOf("Messages.hello_message");
+ int position = sourceFileContent.indexOf("Message.hello_message");
TestChangeStructure structure = new TestChangeStructure(project.getProject(), "/WebContent/pages/hello.jsp");
- TestTextChange change = new TestTextChange(position+9, 8, "good_bye");
+ TestTextChange change = new TestTextChange(position+8, 8, "good_bye");
structure.addTextChange(change);
list.add(structure);
- IFile propertyFile = project.getProject().getFile("/JavaSource/demo/bundle/Messages.properties");
- String propertyFileContent = FileUtil.getContentFromEditorOrFile(propertyFile);
+ IFile propertyFile = project.getProject().getFile("/JavaSource/demo/Messages.properties");
- position = propertyFileContent.indexOf("hello_message");
-
- structure = new TestChangeStructure(project.getProject(), "/JavaSource/demo/bundle/Messages.properties");
- change = new TestTextChange(position, 8, "good_bye");
+ structure = new TestChangeStructure(project.getProject(), "/JavaSource/demo/Messages.properties");
+ change = new TestTextChange(0, 8, "good_bye");
structure.addTextChange(change);
list.add(structure);
15 years, 9 months
JBoss Tools SVN: r23664 - trunk/jst/tests/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/parts.
by jbosstools-commits@lists.jboss.org
Author: lzoubek(a)redhat.com
Date: 2010-07-22 08:47:21 -0400 (Thu, 22 Jul 2010)
New Revision: 23664
Modified:
trunk/jst/tests/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/parts/ObjectMultiPageEditorBot.java
Log:
SWTBot ext: redo ObjectMultiPageEditorBot to use reflection
Modified: trunk/jst/tests/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/parts/ObjectMultiPageEditorBot.java
===================================================================
--- trunk/jst/tests/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/parts/ObjectMultiPageEditorBot.java 2010-07-22 12:26:52 UTC (rev 23663)
+++ trunk/jst/tests/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/parts/ObjectMultiPageEditorBot.java 2010-07-22 12:47:21 UTC (rev 23664)
@@ -4,14 +4,16 @@
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
+import java.lang.reflect.InvocationTargetException;
+import java.lang.reflect.Method;
import org.eclipse.swt.widgets.Display;
+import org.eclipse.swtbot.eclipse.finder.widgets.SWTBotEditor;
import org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable;
import org.eclipse.swtbot.swt.finder.results.Result;
import org.eclipse.ui.IEditorInput;
import org.eclipse.ui.IEditorReference;
import org.eclipse.ui.PartInitException;
import org.eclipse.ui.PlatformUI;
-import org.jboss.tools.common.editor.ObjectMultiPageEditor;
/**
*
@@ -20,12 +22,14 @@
*/
public class ObjectMultiPageEditorBot {
- String partName;
- IEditorReference ref;
+ private final IEditorReference ref;
public ObjectMultiPageEditorBot(String title) {
ref = getEditorReference(title);
}
+ public ObjectMultiPageEditorBot(SWTBotEditor editor) {
+ ref = editor.getReference();
+ }
private IEditorReference getEditorReference(final String title) {
// Search for editor
@@ -54,21 +58,45 @@
return ref;
}
- public void selectPage(final String pageName) {
-
- //assertTrue(ref.getPart(true) instanceof Hibernate3CompoundEditor);
- assertTrue(ref.getPart(true) instanceof ObjectMultiPageEditor);
+ public void selectPage(final String pageName) {
- //final Hibernate3CompoundEditor editor = (Hibernate3CompoundEditor)ref.getPart(true);
- final ObjectMultiPageEditor editor = (ObjectMultiPageEditor)ref.getPart(true);
+ final Object editor = ref.getPart(true);
+ boolean found = false;
+ for (Class<?> cl : editor.getClass().getDeclaredClasses()) {
+ System.out.println(cl.getName());
+ if (cl.getName().equals("org.jboss.tools.common.editor.ObjectMultiPageEditor")) {
+ found=true;break;
+ }
+ }
+ assertTrue("Editor is not instance of ObjectMultiPageEditor",found);
+ try {
+ final Method m = editor.getClass().getMethod("selectPageByName", String.class);
+ // Select page
+ Display.getDefault().syncExec(new Runnable() {
+
+ public void run() {
+ try {
+ m.invoke(editor, pageName);
+ } catch (IllegalArgumentException e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ } catch (IllegalAccessException e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ } catch (InvocationTargetException e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ }
+ }
+ });
+ } catch (SecurityException e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ } catch (NoSuchMethodException e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ }
- // Select page
- Display.getDefault().syncExec(new Runnable() {
-
- public void run() {
- editor.selectPageByName(pageName);
- }
- });
}
}
15 years, 9 months
JBoss Tools SVN: r23663 - trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core.
by jbosstools-commits@lists.jboss.org
Author: dgeraskov
Date: 2010-07-22 08:26:52 -0400 (Thu, 22 Jul 2010)
New Revision: 23663
Modified:
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/plugin.xml
Log:
https://jira.jboss.org/browse/JBIDE-6686
Rename platforms.
Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/plugin.xml
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/plugin.xml 2010-07-22 12:08:09 UTC (rev 23662)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/plugin.xml 2010-07-22 12:26:52 UTC (rev 23663)
@@ -8,14 +8,14 @@
factoryClass="org.jboss.tools.hibernate.jpt.core.internal.HibernateJpaPlatformFactory"
id="hibernate"
jpaFacetVersion="1.0"
- label="Hibernate JPA 1.0">
+ label="Hibernate (JPA 1.x)">
</jpaPlatform>
<jpaPlatform
default="false"
factoryClass="org.jboss.tools.hibernate.jpt.core.internal.jpa2.HibernateJpa2_0PlatformFactory"
id="hibernate2_0"
jpaFacetVersion="2.0"
- label="Hibernate JPA2.0">
+ label="Hibernate (JPA 2.x)">
</jpaPlatform>
</extension>
<extension
15 years, 9 months