JBoss Tools SVN: r38439 - trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal.
by jbosstools-commits@lists.jboss.org
Author: rob.stryker(a)jboss.com
Date: 2012-02-06 03:14:42 -0500 (Mon, 06 Feb 2012)
New Revision: 38439
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/JBossServer.java
Log:
JBIDE-10513 - incomplete patch now completed
Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/JBossServer.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/JBossServer.java 2012-02-05 15:30:51 UTC (rev 38438)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/JBossServer.java 2012-02-06 08:14:42 UTC (rev 38439)
@@ -53,6 +53,7 @@
import org.jboss.ide.eclipse.as.core.server.IDeployableServer;
import org.jboss.ide.eclipse.as.core.server.IJBossServerRuntime;
import org.jboss.ide.eclipse.as.core.util.DeploymentPreferenceLoader;
+import org.jboss.ide.eclipse.as.core.util.ExpressionResolverUtil;
import org.jboss.ide.eclipse.as.core.util.IJBossToolingConstants;
import org.jboss.ide.eclipse.as.core.util.RuntimeUtils;
import org.jboss.ide.eclipse.as.core.util.ServerUtil;
@@ -210,7 +211,7 @@
}
protected String resolveXPathResult(String result) {
- return result;
+ return ExpressionResolverUtil.safeReplaceProperties(result);
}
public URL getModuleRootURL(IModule module) {
13 years, 8 months
JBoss Tools SVN: r38438 - trunk/central/plugins/org.jboss.tools.central/src/org/jboss/tools/central/editors/xpl.
by jbosstools-commits@lists.jboss.org
Author: snjeza
Date: 2012-02-05 10:30:51 -0500 (Sun, 05 Feb 2012)
New Revision: 38438
Modified:
trunk/central/plugins/org.jboss.tools.central/src/org/jboss/tools/central/editors/xpl/DiscoveryViewer.java
Log:
JBIDE-10348 change wording of "sorry, there are no available connectors. please try again later"
Modified: trunk/central/plugins/org.jboss.tools.central/src/org/jboss/tools/central/editors/xpl/DiscoveryViewer.java
===================================================================
--- trunk/central/plugins/org.jboss.tools.central/src/org/jboss/tools/central/editors/xpl/DiscoveryViewer.java 2012-02-05 02:38:07 UTC (rev 38437)
+++ trunk/central/plugins/org.jboss.tools.central/src/org/jboss/tools/central/editors/xpl/DiscoveryViewer.java 2012-02-05 15:30:51 UTC (rev 38438)
@@ -876,7 +876,7 @@
Link link = new Link(container, SWT.WRAP);
link.setFont(container.getFont());
- link.setText(Messages.ConnectorDiscoveryWizardMainPage_noMatchingItems_withFilterText);
+ link.setText("There are no matching plugins. Please <a>clear the filter text</a> or try again later");
link.addListener(SWT.Selection, new Listener() {
public void handleEvent(Event event) {
clearFilterText();
@@ -888,9 +888,9 @@
Label helpText = new Label(container, SWT.WRAP);
helpText.setFont(container.getFont());
if (atLeastOneKindFiltered) {
- helpText.setText(Messages.ConnectorDiscoveryWizardMainPage_noMatchingItems_filteredType);
+ helpText.setText("There are no available plugins of the selected type. Please select another plugin type or try again later.");
} else {
- helpText.setText(Messages.ConnectorDiscoveryWizardMainPage_noMatchingItems_noFilter);
+ helpText.setText("Sorry, all available plugins from JBoss Central are already installed. More gets added over time, try again later.");
}
helpTextControl = helpText;
}
13 years, 8 months
JBoss Tools SVN: r38437 - trunk/central/tests/org.jboss.tools.central.test/src/org/jboss/tools/central/test.
by jbosstools-commits@lists.jboss.org
Author: snjeza
Date: 2012-02-04 21:38:07 -0500 (Sat, 04 Feb 2012)
New Revision: 38437
Modified:
trunk/central/tests/org.jboss.tools.central.test/src/org/jboss/tools/central/test/CentralTest.java
Log:
JBIDE-10658 find place where description for category should live
Modified: trunk/central/tests/org.jboss.tools.central.test/src/org/jboss/tools/central/test/CentralTest.java
===================================================================
--- trunk/central/tests/org.jboss.tools.central.test/src/org/jboss/tools/central/test/CentralTest.java 2012-02-05 02:29:38 UTC (rev 38436)
+++ trunk/central/tests/org.jboss.tools.central.test/src/org/jboss/tools/central/test/CentralTest.java 2012-02-05 02:38:07 UTC (rev 38437)
@@ -87,7 +87,7 @@
Job.getJobManager().join(JBossCentralActivator.JBOSS_CENTRAL_FAMILY,
new NullProgressMonitor());
List<FeedsEntry> news = RefreshNewsJob.INSTANCE.getEntries();
- assertTrue("No one news is found", news.size() >= 0);
+ assertTrue("No one news is found", news.size() > 0);
}
@Test
13 years, 8 months
JBoss Tools SVN: r38436 - trunk/central/tests/org.jboss.tools.central.test/src/org/jboss/tools/central/test.
by jbosstools-commits@lists.jboss.org
Author: snjeza
Date: 2012-02-04 21:29:38 -0500 (Sat, 04 Feb 2012)
New Revision: 38436
Modified:
trunk/central/tests/org.jboss.tools.central.test/src/org/jboss/tools/central/test/CentralTest.java
Log:
JBIDE-10658 find place where description for category should live
Modified: trunk/central/tests/org.jboss.tools.central.test/src/org/jboss/tools/central/test/CentralTest.java
===================================================================
--- trunk/central/tests/org.jboss.tools.central.test/src/org/jboss/tools/central/test/CentralTest.java 2012-02-05 01:49:08 UTC (rev 38435)
+++ trunk/central/tests/org.jboss.tools.central.test/src/org/jboss/tools/central/test/CentralTest.java 2012-02-05 02:29:38 UTC (rev 38436)
@@ -87,7 +87,7 @@
Job.getJobManager().join(JBossCentralActivator.JBOSS_CENTRAL_FAMILY,
new NullProgressMonitor());
List<FeedsEntry> news = RefreshNewsJob.INSTANCE.getEntries();
- assertTrue("No one news is found", news.size() > 0);
+ assertTrue("No one news is found", news.size() >= 0);
}
@Test
13 years, 8 months
JBoss Tools SVN: r38435 - trunk/build/target-platform.
by jbosstools-commits@lists.jboss.org
Author: nickboldt
Date: 2012-02-04 20:49:08 -0500 (Sat, 04 Feb 2012)
New Revision: 38435
Modified:
trunk/build/target-platform/jbds.target
trunk/build/target-platform/multiple.target
trunk/build/target-platform/multiple.target.p2mirror.xml
trunk/build/target-platform/unified.target
trunk/build/target-platform/unified.target.p2mirror.xml
Log:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=370643 remove org.eclipse.pde.api.tools.ee.fragments.feature.group, as it no longer exists in Eclipse 3.7.2
Modified: trunk/build/target-platform/jbds.target
===================================================================
--- trunk/build/target-platform/jbds.target 2012-02-05 00:37:32 UTC (rev 38434)
+++ trunk/build/target-platform/jbds.target 2012-02-05 01:49:08 UTC (rev 38435)
@@ -24,7 +24,7 @@
<unit id="ch.qos.logback.core" version="0.9.27.v20110224-1110"/>
<unit id="ch.qos.logback.slf4j" version="0.9.27.v20110224-1110"/>
<unit id="org.slf4j.api" version="1.6.1.v20100831-0715"/>
- <unit id="com.ning.async-http-client" version="1.6.3.201108040830"/>
+ <unit id="com.ning.async-http-client" version="1.6.3.201112281337"/>
<unit id="org.jboss.netty" version="3.2.4.Final-201108040830"/>
<unit id="org.eclipse.equinox.p2.discovery.compatibility" version="1.0.1.v20110502-1955"/>
<unit id="org.eclipse.equinox.p2.discovery" version="1.0.100.v20110502-1955"/>
@@ -54,7 +54,7 @@
<!-- Eclipse BPEL -->
<unit id="org.eclipse.bpel.jboss.riftsaw.runtime.feature.feature.group" version="0.8.0.v20111120-0746-H98-CI"/>
- <unit id="org.eclipse.bpel.apache.ode.runtime.feature.feature.group" version="0.8.0.v20111120-0746-H98-CI"/>
+ <unit id="org.eclipse.bpel.apache.ode.runtime.feature.feature.group" version="0.8.0.v20120202-0453-H135-CI"/>
<unit id="org.eclipse.bpel.feature.feature.group" version="0.8.0.v20111120-0746-H98-CI"/>
<!-- EMF, XSD -->
@@ -63,67 +63,67 @@
<unit id="org.eclipse.emf.validation.feature.group" version="1.5.0.v20110502-1600-479-9oB56N5BBR6LCA6"/>
<unit id="org.eclipse.emf.transaction.feature.group" version="1.5.0.v20110502-1600-377-8s734C3E7D15D6B"/>
<unit id="org.eclipse.xsd.ecore.converter.feature.group" version="2.7.0.v20111031-1121"/>
- <unit id="org.eclipse.xsd.edit.feature.group" version="2.7.0.v20111031-1121"/>
+ <unit id="org.eclipse.xsd.edit.feature.group" version="2.7.0.v20120130-0943"/>
<unit id="org.eclipse.xsd.editor.feature.group" version="2.7.0.v20111031-1121"/>
- <unit id="org.eclipse.xsd.mapping.editor.feature.group" version="2.7.0.v20111031-1121"/>
+ <unit id="org.eclipse.xsd.mapping.editor.feature.group" version="2.7.0.v20120130-0943"/>
<unit id="org.eclipse.xsd.mapping.feature.group" version="2.7.0.v20111031-1121"/>
<unit id="org.eclipse.xsd.feature.group" version="2.7.0.v20111031-1121"/>
<!-- GEF, Draw2D, Graphiti, Zest -->
<unit id="org.eclipse.graphiti.feature.feature.group" version="0.8.1.v20110907-0857"/>
<unit id="org.eclipse.draw2d.feature.group" version="3.7.1.v20110830-1143-4607w3122194102254"/>
- <unit id="org.eclipse.gef.feature.group" version="3.7.1.v20110830-1143-777D181B3Bz06C853D8863365"/>
- <unit id="org.eclipse.zest.feature.group" version="1.3.0.v20110425-2050-67A08yF5F18CBD4I9G53365"/>
+ <unit id="org.eclipse.gef.feature.group" version="3.7.2.v20110927-2020-777D381B4Bz0755B465D34242"/>
+ <unit id="org.eclipse.zest.feature.group" version="1.3.0.v20110425-2050-67A18yF6F18CBD5A7N54242"/>
<!-- UML2 -->
<unit id="org.eclipse.uml2.feature.group" version="3.2.1.v201109082252"/>
<unit id="org.eclipse.uml2.doc.feature.group" version="3.2.0.v201103291514"/>
<!-- Platform: CVS, JDT, RCP, PDE, Equinox, Help -->
- <unit id="org.eclipse.platform.feature.group" version="3.7.1.r37x_v20110729-9gF7UHP9FxGjd-Kt0u7FUjXrkGBRlAGhUKWvcC"/>
+ <unit id="org.eclipse.platform.feature.group" version="3.7.2.v20120120-1424-9gF7UHPDFxGjd-PqDqxkScAyKauZmeNeSebuwq"/>
<unit id="org.eclipse.cvs.feature.group" version="1.3.100.v20110520-0800-7B78FHl90GF5k1LAD7CODE01911"/>
<unit id="org.eclipse.jdt.feature.group" version="3.7.1.r371_v20110810-0800-7z8gFcrFML8IX_Scz0ZMIXuTADB7"/>
- <unit id="org.eclipse.equinox.executable.feature.group" version="3.5.1.R37x_v20111117-1330-7P7NFUFFIbaUcR7JrhHHBBe5HZTZ"/>
- <unit id="org.eclipse.equinox.p2.user.ui.feature.group" version="2.1.2.R37x_v20110815-1155-6-Bk8pYWZz0pz-UdWr1z0jQHRlY7"/>
- <unit id="org.eclipse.rcp.feature.group" version="3.7.1.r37x_v20110729-9DB5FmQFpbKK_SJR0vPkGu102722"/>
- <unit id="org.eclipse.pde.feature.group" version="3.7.1.r37x_v20110810-0800-7b7qFVvFEt3dpKXiolsY319"/>
- <unit id="org.eclipse.help.feature.group" version="1.3.0.v20110327-7i7uFFmFFl8nvpcDqArPw1"/>
+ <unit id="org.eclipse.equinox.executable.feature.group" version="3.5.1.v20111216-1653-7P7NFUIFIbaUcU77s0KQWHw5HZTZ"/>
+ <unit id="org.eclipse.equinox.p2.user.ui.feature.group" version="2.1.2.R37x_v20110815-1155-6-Bk8pYWZz0qUTX5I15GZWwbXkrl"/>
+ <unit id="org.eclipse.rcp.feature.group" version="3.7.2.v20120120-1424-9DB5FmnFq5JCf1UA31Rwo4S02722"/>
+ <unit id="org.eclipse.pde.feature.group" version="3.7.2.v20120120-1420-7b7rFUOFEx2Xnqafnj-9250"/>
+ <unit id="org.eclipse.help.feature.group" version="1.3.0.v20110530-0844-7i7uFFmFFl8nvqbDp7rOz-1"/>
<!-- DTP -->
<unit id="org.eclipse.datatools.modelbase.feature.feature.group" version="1.9.1.v201108301820-77078CcNBHCBYKYEbNV"/>
- <unit id="org.eclipse.datatools.connectivity.feature.feature.group" version="1.9.1.v201108301820-7C7e8mEt1_wmuQjYnXQ6Zj5dM17"/>
- <unit id="org.eclipse.datatools.connectivity.oda.feature.feature.group" version="1.9.1.v201108301820-7H7C7ICcNBHHBnJWDjSd"/>
+ <unit id="org.eclipse.datatools.connectivity.feature.feature.group" version="1.9.2.v201109161655-7C7e92Et1axl2NmdlT_M5hLfDuD"/>
+ <unit id="org.eclipse.datatools.connectivity.oda.feature.feature.group" version="1.9.2.v201109161655-7H7C7OCcNBHIEYJgEcQU"/>
<unit id="org.eclipse.datatools.connectivity.oda.designer.feature.feature.group" version="1.9.1.v201108301820-4117w312219371456"/>
- <unit id="org.eclipse.datatools.connectivity.oda.designer.core.feature.feature.group" version="1.9.1.v201108301820-7B7C7DCcNBGNChHSFaYT"/>
+ <unit id="org.eclipse.datatools.connectivity.oda.designer.core.feature.feature.group" version="1.9.2.v201109161655-7B7C7HCcNBGRDTHWF_Ri"/>
<unit id="org.eclipse.datatools.enablement.feature.feature.group" version="1.9.1.v201108301820-7J9B7FBWwVN7-2z-kZU_tJy1aR1t"/>
- <unit id="org.eclipse.datatools.enablement.apache.derby.feature.feature.group" version="1.9.1.v201108301820-77788gBmKDOGMhKwJ4Rn7QBR"/>
- <unit id="org.eclipse.datatools.enablement.hsqldb.feature.feature.group" version="1.9.1.v201108301820-67D1AqGBKNKdIlGz0GU7QBR"/>
- <unit id="org.eclipse.datatools.enablement.ibm.feature.feature.group" version="1.9.1.v201108301820-7F47SFC7sRbvSkkxaPvW"/>
+ <unit id="org.eclipse.datatools.enablement.apache.derby.feature.feature.group" version="1.9.2.v201109161655-77788hBmKDQ2MoTTLwdv9ILX"/>
+ <unit id="org.eclipse.datatools.enablement.hsqldb.feature.feature.group" version="1.9.2.v201109161655-67D2AqGBM7KfNTHwKO9ILX"/>
+ <unit id="org.eclipse.datatools.enablement.ibm.feature.feature.group" version="1.9.2.v201109161655-7F47SFC7sRdmSz0nz0bcci"/>
<unit id="org.eclipse.datatools.enablement.jdbc.feature.feature.group" version="1.9.1.v201108301820-4-29oB56N5N7L6PAQ"/>
<unit id="org.eclipse.datatools.enablement.jdt.feature.feature.group" version="1.9.1.v201108301820-2-07w31211518181A"/>
<unit id="org.eclipse.datatools.enablement.msft.feature.feature.group" version="1.9.1.v201108301820-542AkF79P7QCP9SDB"/>
- <unit id="org.eclipse.datatools.enablement.mysql.feature.feature.group" version="1.9.1.v201108301820-546AkF78Z7Y9NBZ9A"/>
+ <unit id="org.eclipse.datatools.enablement.mysql.feature.feature.group" version="1.9.2.v201109161655-546AkF7AJ7d8JEOFC"/>
<unit id="org.eclipse.datatools.enablement.oda.feature.feature.group" version="1.9.1.v201108301820-7A7T78DZRDKGEeHnGlLP"/>
<unit id="org.eclipse.datatools.enablement.oda.designer.feature.feature.group" version="1.9.1.v201108301820-3328s73553C655B63"/>
<unit id="org.eclipse.datatools.enablement.oracle.feature.feature.group" version="1.9.1.v201108301820-548dAkF79Q7RAN9UFJ"/>
- <unit id="org.eclipse.datatools.enablement.postgresql.feature.feature.group" version="1.9.1.v201108301820-542AkF77g7V9N9e77"/>
- <unit id="org.eclipse.datatools.enablement.sap.feature.feature.group" version="1.9.1.v201108301820-540AkF77g7V9N9e77"/>
+ <unit id="org.eclipse.datatools.enablement.postgresql.feature.feature.group" version="1.9.2.v201109161655-552AkF7AJ9KAT9SFN"/>
+ <unit id="org.eclipse.datatools.enablement.sap.feature.feature.group" version="1.9.2.v201109161655-540AkF7AJ7YEJBU7S"/>
<unit id="org.eclipse.datatools.enablement.sybase.feature.feature.group" version="1.9.1.v201108301820-7E45F9NiNZVR6a1PMVn"/>
- <unit id="org.eclipse.datatools.enablement.ingres.feature.feature.group" version="1.9.1.v201108301820-540AkF78Z7UCRAQDB"/>
+ <unit id="org.eclipse.datatools.enablement.ingres.feature.feature.group" version="1.9.2.v201109161655-540AkF78Z7UCRAQDB"/>
<unit id="org.eclipse.datatools.enablement.sqlite.feature.feature.group" version="1.9.1.v201108301820-541AkF79P7N8NAQ77"/>
- <unit id="org.eclipse.datatools.sqldevtools.feature.feature.group" version="1.9.1.v201108301820-7N847CFDsn0VdrPUJvPUshDWIPJ0"/>
+ <unit id="org.eclipse.datatools.sqldevtools.feature.feature.group" version="1.9.2.v201109161655-7N847OFDsn3ivl-o7D-4sg2hoC1Q"/>
<unit id="org.eclipse.datatools.sqldevtools.results.feature.feature.group" version="1.9.1.v201108301820-57B4AkF7AJ7NCBBMBL"/>
<unit id="org.eclipse.datatools.sqldevtools.ddlgen.feature.feature.group" version="1.9.1.v201108301820-7A-3F7RZHLz-Hz-OlPz0Qf"/>
- <unit id="org.eclipse.datatools.sqldevtools.ddl.feature.feature.group" version="1.9.1.v201108301820-278078B04G8S_IMz00Iz00PmQz01"/>
- <unit id="org.eclipse.datatools.sqldevtools.data.feature.feature.group" version="1.9.1.v201108301820-642BgJ9DJAQGVCaIQ"/>
- <unit id="org.eclipse.datatools.sqldevtools.parsers.feature.feature.group" version="1.9.1.v201108301820-622BgJ9CR9XFcEWLP"/>
+ <unit id="org.eclipse.datatools.sqldevtools.ddl.feature.feature.group" version="1.9.2.v201109161655-278178B088G8S_IRTJnVmOwcv"/>
+ <unit id="org.eclipse.datatools.sqldevtools.data.feature.feature.group" version="1.9.2.v201109161655-644BgJ9ECCLFTAfMO"/>
+ <unit id="org.eclipse.datatools.sqldevtools.parsers.feature.feature.group" version="1.9.2.v201109161655-623BgJ9EE9ZJRDZKE"/>
<unit id="org.eclipse.datatools.sqldevtools.sqlbuilder.feature.feature.group" version="1.9.1.v201108301820-79-4EVVFJoFwKcN-L_"/>
<unit id="org.eclipse.datatools.sqldevtools.schemaobjecteditor.feature.feature.group" version="1.9.1.v201108301820-4208375LG5BJ93413"/>
- <unit id="org.eclipse.datatools.intro.feature.group" version="1.9.1.v201108301820-26-7w312116392911"/>
- <unit id="org.eclipse.datatools.doc.user.feature.group" version="1.9.1.v201108301820-47C08w95ENAK6AFDFK7"/>
- <unit id="org.eclipse.datatools.common.doc.user.feature.group" version="1.9.1.v201108301820-26-311A16321A3557"/>
- <unit id="org.eclipse.datatools.connectivity.doc.user.feature.group" version="1.9.1.v201108301820-37D-7733L3D753L7BBF"/>
- <unit id="org.eclipse.datatools.sqltools.doc.user.feature.group" version="1.9.1.v201108301820-37D-7733L3D753L7BBF"/>
+ <unit id="org.eclipse.datatools.intro.feature.group" version="1.9.2.v201109161655-26-7w312116392911"/>
+ <unit id="org.eclipse.datatools.doc.user.feature.group" version="1.9.2.v201109161655-47C08w95FFAK89FHEC7"/>
+ <unit id="org.eclipse.datatools.common.doc.user.feature.group" version="1.9.2.v201109161655-26-311A16321A3557"/>
+ <unit id="org.eclipse.datatools.connectivity.doc.user.feature.group" version="1.9.2.v201109161655-37D-7733L3D753L7BBF"/>
+ <unit id="org.eclipse.datatools.sqltools.doc.user.feature.group" version="1.9.2.v201109161655-37D-7733L3D753L7BBF"/>
<!-- RSE, TM -->
<unit id="org.eclipse.rse.feature.group" version="3.3.2.R33x_v201110030150-7L7CFGH8wqio8s-qYtkPgn8qWd4T"/>
@@ -136,13 +136,13 @@
<!-- WTP -->
<unit id="org.eclipse.jpt.common.feature.feature.group" version="1.0.2.v201111103010-6-2AkF7BB9HAED797"/>
<unit id="org.eclipse.jpt.common.eclipselink.feature.feature.group" version="1.0.1.v201108080010-3-08s73553F3G3343"/>
- <unit id="org.eclipse.jpt.jpa.eclipselink.feature.feature.group" version="3.0.2.v201111103010-7J7F79F7RZHQPNXOyKbSRFJV"/>
+ <unit id="org.eclipse.jpt.jpa.eclipselink.feature.feature.group" version="3.0.2.v201111103010-7J7F7AF7RZHQQNUPvKbSRFJV"/>
<unit id="org.eclipse.jpt.jpa.feature.feature.group" version="3.0.2.v201110193010-7S7B7GFC7sRdiX8afbQZR79F"/>
- <unit id="org.eclipse.persistence.jpa.feature.group" version="2.3.1.v20110908-r10021"/>
+ <unit id="org.eclipse.persistence.jpa.feature.group" version="2.3.2.v20111125-r10461"/>
<unit id="org.eclipse.jsf.feature.feature.group" version="3.3.1.v201109030441-7E7IDUF9JgLWUM6WBSgXp"/>
<unit id="org.eclipse.jst.common.fproj.enablement.jdt.feature.group" version="3.3.0.v201102200555-377DF8s73543E5I5768"/>
<unit id="org.eclipse.jst.enterprise_core.feature.feature.group" version="3.3.2.v201111030500-52FPfAkF7B99L8P7U98"/>
- <unit id="org.eclipse.jst.enterprise_ui.feature.feature.group" version="3.3.2.v201111030500-7b7II1TFSK2WIoRmHKjP-IV4RxTn"/>
+ <unit id="org.eclipse.jst.enterprise_ui.feature.feature.group" version="3.3.2.v201111030500-7b7II1TFSK2WIpQlIFkRz0HVz0RvTn"/>
<unit id="org.eclipse.jst.enterprise_userdoc.feature.feature.group" version="3.3.100.v201105122000-62FUGBgJ9EA9aEeHRHc"/>
<unit id="org.eclipse.jst.jsf.apache.trinidad.tagsupport.feature.feature.group" version="2.2.200.v201105111126-20A77w312215172822"/>
<unit id="org.eclipse.jst.server_adapters.ext.feature.feature.group" version="3.3.2.v20111010_1242-777HFHzCcNBDjCbIUfEEE3"/>
@@ -150,31 +150,31 @@
<unit id="org.eclipse.jst.server_core.feature.feature.group" version="3.3.0.v201102200555-31FD58s7354495L"/>
<unit id="org.eclipse.jst.server_ui.feature.feature.group" version="3.3.0.v201102200555-7A6FHr9xFcAVCFLZBBJLIR43A"/>
<unit id="org.eclipse.jst.server_userdoc.feature.feature.group" version="3.3.100.v20110303-2-Eo7w3121162A3329"/>
- <unit id="org.eclipse.jst.web_core.feature.feature.group" version="3.3.2.v201112072049-7Q7DGL7FE9LeAEG_yf_vMmuitz01z01sRxi3877"/>
+ <unit id="org.eclipse.jst.web_core.feature.feature.group" version="3.3.2.v201112072049-7Q7DGL8FE9LeAFGXz0lasMmuitz01z01sRxi3877"/>
<unit id="org.eclipse.jst.webpageeditor.feature.feature.group" version="2.3.5.v201109051528-46AA9oB5885D5M5G66"/>
- <unit id="org.eclipse.jst.web_ui.feature.feature.group" version="3.3.1.v201108102009-7F7AFO4C25TohIbnlgy_0z-Hn73eiw4W7mpuYjlq"/>
+ <unit id="org.eclipse.jst.web_ui.feature.feature.group" version="3.3.2.v201112072049-7F7AFO7C25ToiI_poiuW10G_9C5fcIWcxu-xz-Wf"/>
<unit id="org.eclipse.jst.web_userdoc.feature.feature.group" version="3.3.1.v201108102009-2107w31211938"/>
<unit id="org.eclipse.jst.ws.axis2tools.feature.feature.group" version="1.1.200.v201103022333-78-FF0DZRDKDDePSKwHj"/>
<unit id="org.eclipse.jst.ws.cxf.feature.feature.group" version="1.0.100.v201105171845-7H77DRFAKlZgjHCaHg65uE6I6I"/>
<unit id="org.eclipse.jst.ws.jaxws.dom.feature.feature.group" version="1.0.100.v201102200555-5-A7AkF7B97HDVDRJZ"/>
<unit id="org.eclipse.jst.ws.jaxws.feature.feature.group" version="1.1.0.v201105171845-7E78BsF8NcJSWKvN1Rjcv"/>
<unit id="org.eclipse.jst.ws.jaxws_userdoc.feature.feature.group" version="1.0.100.v201102200555-3-A78s73533L3D5H5H"/>
- <unit id="org.eclipse.wst.common_core.feature.feature.group" version="3.3.2.v201111030500-7B7DFO8F7RZHOeKpPz0Oz-NJ"/>
- <unit id="org.eclipse.wst.common.fproj.feature.group" version="3.3.2.v201201121600-377DH8s735735535DD9"/>
+ <unit id="org.eclipse.wst.common_core.feature.feature.group" version="3.3.2.v201111030500-7B7DFO9F7RZHOhIiRz0MyNJ"/>
+ <unit id="org.eclipse.wst.common.fproj.feature.group" version="3.3.0.v201102150115-377DF8s7355533F3C7C"/>
<unit id="org.eclipse.wst.common_ui.feature.feature.group" version="3.3.2.v201111030500-7C79FVrEdhO_rfug6nUekgKqRz-PxOK"/>
<unit id="org.eclipse.wst.jsdt.feature.feature.group" version="1.3.2.v201111090634-7F78FXSFBBoPbXSIbLewwz0"/>
<unit id="org.eclipse.wst.server_adapters.feature.feature.group" version="3.2.100.v20110303-51EoAkF77g8HBSc"/>
- <unit id="org.eclipse.wst.server_core.feature.feature.group" version="3.3.2.v20111026_1748-30FBd8s7355476Ia2859"/>
- <unit id="org.eclipse.wst.server_ui.feature.feature.group" version="3.3.2.v20111026_1748-7B77FGRAtJcez-FNOnPIXRONjBF6A"/>
+ <unit id="org.eclipse.wst.server_core.feature.feature.group" version="3.3.2.v20111026_1748-30FBd8s7356386Ha256A"/>
+ <unit id="org.eclipse.wst.server_ui.feature.feature.group" version="3.3.2.v20111026_1748-7B79FBdAtJcez0ENNePJROIPmEH6A"/>
<unit id="org.eclipse.wst.server_userdoc.feature.feature.group" version="3.3.0.v20110512-20DF7w312215222664"/>
- <unit id="org.eclipse.wst.web_core.feature.feature.group" version="3.3.2.v201111030500-7E7EFMaAJun8av44z-PFIqjTeVfDSLfQK"/>
- <unit id="org.eclipse.wst.web_ui.feature.feature.group" version="3.3.2.v201111030500-7O7IFj4EMiB5wRKYse0-f8Yl5tgfNIObauH0Gi5L"/>
+ <unit id="org.eclipse.wst.web_core.feature.feature.group" version="3.3.2.v201111030500-7E7EFMcAJvn8cwU41JNIuz-RBwweMVrJ1"/>
+ <unit id="org.eclipse.wst.web_ui.feature.feature.group" version="3.3.2.v201111030500-7O7IFj6EMjB7yO-Xo_9z0nKsPbQwc0GVTFNMXCtE"/>
<unit id="org.eclipse.wst.web_userdoc.feature.feature.group" version="3.3.0.v201102200555-31Eo8s734B3E4H7799"/>
<unit id="org.eclipse.wst.ws_core.feature.feature.group" version="3.3.1.v201108230355-7L7RFi8FGtGd-thsz0z0rQwh2766"/>
<unit id="org.eclipse.wst.ws_ui.feature.feature.group" version="3.3.2.v201112142348-7I7AFg1EtEoVFjz-98J1iuhgBz-uuWblmZqMOnEL"/>
<unit id="org.eclipse.wst.ws_userdoc.feature.feature.group" version="3.1.300.v201102200555-44FR79oB5855Q8IBD7G"/>
<unit id="org.eclipse.wst.ws_wsdl15.feature.feature.group" version="1.5.301.v201102200555-2407w312123151655"/>
- <unit id="org.eclipse.wst.xml_core.feature.feature.group" version="3.3.2.v201112072049-7C7OFeMF7RZHQOIsNANyRc"/>
+ <unit id="org.eclipse.wst.xml_core.feature.feature.group" version="3.3.1.v201108102009-7C7OFeMF7RZHQNJtN8NuOe"/>
<unit id="org.eclipse.wst.xml_ui.feature.feature.group" version="3.3.1.v201108102009-7H7EFZ6DxumTlde4nhcRmIprjAHaALMrRz012Qz0"/>
<unit id="org.eclipse.wst.xml_userdoc.feature.feature.group" version="3.3.0.v201102071641-50FYwAkF7B77UBZFDBL"/>
<unit id="org.eclipse.wst.xml.xpath2.processor.feature.feature.group" version="2.0.0.v201103310043-7A7J-CcNBGOCUIWFYMf"/>
@@ -203,16 +203,16 @@
<unit id="org.eclipse.mylyn_feature.feature.group" version="3.6.4.v20111118-0100"/>
<unit id="org.eclipse.mylyn.ide_feature.feature.group" version="3.6.4.v20111118-0100"/>
<unit id="org.eclipse.mylyn.commons.feature.group" version="3.6.4.v20111118-0100"/>
- <unit id="org.eclipse.mylyn.context_feature.feature.group" version="3.6.4.v20111118-0100"/>
+ <unit id="org.eclipse.mylyn.context_feature.feature.group" version="3.6.5.I20120201-0822"/>
<unit id="org.eclipse.mylyn.bugzilla_feature.feature.group" version="3.6.4.v20111118-0100"/>
- <unit id="org.eclipse.mylyn.java_feature.feature.group" version="3.6.4.v20111118-0100"/>
- <unit id="org.eclipse.mylyn.pde_feature.feature.group" version="3.6.4.v20111118-0100"/>
- <unit id="org.eclipse.mylyn.team_feature.feature.group" version="3.6.4.v20111118-0100"/>
- <unit id="org.eclipse.mylyn.wikitext_feature.feature.group" version="1.5.4.v20111118-0100"/>
- <unit id="org.eclipse.mylyn.cvs.feature.group" version="0.8.4.v20111118-0100"/>
- <unit id="org.eclipse.mylyn.git.feature.group" version="0.8.4.v20111118-0100"/>
- <unit id="org.eclipse.mylyn.versions.feature.group" version="0.8.4.v20111118-0100"/>
- <unit id="org.eclipse.mylyn.tasks.ui" version="3.6.4.v20111117-0100"/>
+ <unit id="org.eclipse.mylyn.java_feature.feature.group" version="3.6.5.I20120201-0822"/>
+ <unit id="org.eclipse.mylyn.pde_feature.feature.group" version="3.6.5.I20120201-0822"/>
+ <unit id="org.eclipse.mylyn.team_feature.feature.group" version="3.6.5.I20120201-0822"/>
+ <unit id="org.eclipse.mylyn.wikitext_feature.feature.group" version="1.5.5.I20120201-0822"/>
+ <unit id="org.eclipse.mylyn.cvs.feature.group" version="0.8.5.I20120201-0822"/>
+ <unit id="org.eclipse.mylyn.git.feature.group" version="0.8.5.I20120201-0822"/>
+ <unit id="org.eclipse.mylyn.versions.feature.group" version="0.8.5.I20120201-0822"/>
+ <unit id="org.eclipse.mylyn.tasks.ui" version="3.6.5.v20111214-0100"/>
<unit id="org.eclipse.mylyn.tasks.core" version="3.6.0.v20110608-1400"/>
<unit id="org.eclipse.mylyn.tasks.bugs" version="3.6.1.v20110825-0100"/>
<unit id="com.atlassian.connector.commons" version="4.0.0.v20111010"/>
@@ -240,11 +240,11 @@
<unit id="com.thoughtworks.xstream" version="1.3.0.v20100826-1640"/>
<unit id="org.eclipse.ui" version="3.7.0.v20110928-1505"/>
<unit id="org.eclipse.core.runtime" version="3.7.0.v20110110"/>
- <unit id="org.eclipse.core.resources" version="3.7.101.v20111129-1555"/>
+ <unit id="org.eclipse.core.resources" version="3.7.101.v20120125-1505"/>
<unit id="org.eclipse.ui.ide" version="3.7.0.v20110928-1505"/>
<unit id="org.eclipse.ui.workbench.texteditor" version="3.7.0.v20110928-1504"/>
<unit id="org.eclipse.jface.text" version="3.7.2.v20111213-1208"/>
- <unit id="org.eclipse.osgi" version="3.7.2.v20111205-1537"/>
+ <unit id="org.eclipse.osgi" version="3.7.2.v20120110-1415"/>
<unit id="org.eclipse.core.filesystem" version="1.3.100.v20110423-0524"/>
<unit id="org.eclipse.ui.forms" version="3.5.101.v20111011-1919"/>
<unit id="org.eclipse.ui.editors" version="3.7.0.v20110928-1504"/>
@@ -263,8 +263,8 @@
<unit id="org.mortbay.jetty.util" version="6.1.23.v201012071420"/>
<unit id="org.apache.jasper" version="5.5.17.v201101211617"/>
<unit id="org.joda.time" version="1.6.0.v20081202-0100"/>
- <unit id="javax.servlet" version="2.5.0.v201103041518"/>
- <unit id="javax.servlet.jsp" version="2.2.0.v201103241009"/>
+ <unit id="javax.servlet" version="3.0.0.v201103241727"/>
+ <unit id="javax.servlet.jsp" version="2.0.0.v201101211617"/>
<unit id="javax.xml.rpc" version="1.1.0.v201005080400"/>
<unit id="javax.el" version="2.2.0.v201105051105"/>
@@ -273,4 +273,4 @@
<unit id="com.google.gwt.eclipse.sdkbundle.e37.feature.feature.group" version="2.4.0.v201201120043-rel-r37"/>
</location>
</locations>
-</target>
\ No newline at end of file
+</target>
Modified: trunk/build/target-platform/multiple.target
===================================================================
--- trunk/build/target-platform/multiple.target 2012-02-05 00:37:32 UTC (rev 38434)
+++ trunk/build/target-platform/multiple.target 2012-02-05 01:49:08 UTC (rev 38435)
@@ -26,7 +26,7 @@
<unit id="ch.qos.logback.core" version="0.9.27.v20110224-1110"/>
<unit id="ch.qos.logback.slf4j" version="0.9.27.v20110224-1110"/>
<unit id="org.slf4j.api" version="1.6.1.v20100831-0715"/>
- <unit id="com.ning.async-http-client" version="1.6.3.201108040830"/>
+ <unit id="com.ning.async-http-client" version="1.6.3.201112281337"/>
<unit id="org.jboss.netty" version="3.2.4.Final-201108040830"/>
<unit id="org.eclipse.equinox.p2.discovery.compatibility" version="1.0.1.v20110502-1955"/>
<unit id="org.eclipse.equinox.p2.discovery" version="1.0.100.v20110502-1955"/>
@@ -35,7 +35,7 @@
<!-- Orbit bundles -->
<unit id="javax.wsdl" version="1.6.2.v201012040545"/>
- <unit id="org.jdom" version="1.0.0.v201005080400"/>
+ <unit id="org.jdom" version="1.1.1.v201101151400"/>
<unit id="org.apache.oro" version="2.0.8.v201005080400"/>
<unit id="org.apache.commons.io" version="2.0.1.v201105210651"/>
<unit id="org.apache.commons.codec" version="1.3.0.v201101211617"/>
@@ -63,22 +63,22 @@
<unit id="org.eclipse.emf.workspace.feature.group" version="1.5.1.v20110823-1800-37708s734D3C7D3CCC1"/>
<unit id="org.eclipse.emf.validation.feature.group" version="1.5.0.v20110502-1600-479-9oB56N5BBR6LCA6"/>
<unit id="org.eclipse.emf.transaction.feature.group" version="1.5.0.v20110502-1600-377-8s734C3E7D15D6B"/>
- <unit id="org.eclipse.emf.ecore.feature.group" version="2.7.1.v20111028-1033"/>
+ <unit id="org.eclipse.emf.ecore.feature.group" version="2.7.1.v20120127-1122"/>
<unit id="org.eclipse.emf.feature.group" version="2.7.2.v20111031-1121"/>
<unit id="org.eclipse.emf.codegen.feature.group" version="2.7.0.v20111031-1121"/>
- <unit id="org.eclipse.emf.common.feature.group" version="2.7.0.v20111028-1033"/>
+ <unit id="org.eclipse.emf.common.feature.group" version="2.7.0.v20120127-1122"/>
<unit id="org.eclipse.emf.databinding.feature.group" version="1.2.0.v20111031-1121"/>
- <unit id="org.eclipse.emf.codegen.ecore.feature.group" version="2.7.0.v20111031-1121"/>
- <unit id="org.eclipse.emf.ecore.edit.feature.group" version="2.7.0.v20111031-1121"/>
+ <unit id="org.eclipse.emf.codegen.ecore.feature.group" version="2.7.0.v20120130-0943"/>
+ <unit id="org.eclipse.emf.ecore.edit.feature.group" version="2.7.1.v20120130-0943"/>
<unit id="org.eclipse.emf.ecore.editor.feature.group" version="2.7.0.v20111031-1121"/>
- <unit id="org.eclipse.emf.ecore.feature.group" version="2.7.1.v20111028-1033"/>
+ <unit id="org.eclipse.emf.ecore.feature.group" version="2.7.1.v20120127-1122"/>
<unit id="org.eclipse.emf.edit.feature.group" version="2.7.2.v20111025-0655"/>
- <unit id="org.eclipse.xsd.edit.feature.group" version="2.7.0.v20111031-1121"/>
+ <unit id="org.eclipse.xsd.edit.feature.group" version="2.7.0.v20120130-0943"/>
<unit id="org.eclipse.xsd.feature.group" version="2.7.0.v20111031-1121"/>
<!-- GEF, Draw2D, Graphiti, Zest -->
<unit id="org.eclipse.graphiti.feature.feature.group" version="0.8.1.v20110907-0857"/>
- <unit id="org.eclipse.draw2d.feature.group" version="3.7.1.v20110830-1143-4607w3122194102254"/>
+ <unit id="org.eclipse.draw2d.feature.group" version="3.7.2.v20110927-2020-4617w3122212803131"/>
<unit id="org.eclipse.gef.feature.group" version="3.7.1.v20110830-1143-777D181B3Bz06C853D8863365"/>
<unit id="org.eclipse.zest.feature.group" version="1.3.0.v20110425-2050-67A08yF5F18CBD4I9G53365"/>
@@ -87,68 +87,68 @@
<!-- Platform: CVS, JDT, RCP, PDE, Equinox, Help -->
<unit id="com.ibm.icu.base.feature.group" version="1.2.0.v20110302-797738s73553J95"/>
- <unit id="org.eclipse.platform.feature.group" version="3.7.1.r37x_v20110729-9gF7UHP9FxGjd-Kt0u7FUjXrkGBRlAGhUKWvcC"/>
+ <unit id="org.eclipse.platform.feature.group" version="3.7.2.v20120120-1424-9gF7UHPDFxGjd-PqDqxkScAyKauZmeNeSebuwq"/>
<unit id="org.eclipse.platform.ide" version="3.7.1.M20111214-1406"/>
<unit id="org.eclipse.platform.sdk" version="3.7.1.M20111214-1406"/>
<unit id="org.eclipse.sdk.feature.group" version="3.7.2.r37x_v20111213-7Q7xAEDDePtVwCPcUL0B0hMwoKb8FG5XWyjL_Z-weE2Rc"/>
<unit id="org.eclipse.releng.tools.feature.group" version="3.4.101.r37x_v20111117-4507s482aw31221929"/>
<unit id="org.eclipse.sdk.ide" version="3.7.1.M20111214-1406"/>
- <unit id="org.eclipse.sdk.examples.feature.group" version="3.5.0.r37x_v20111117-817nFcfFE_dkPZMZfNRFqhh"/>
+ <unit id="org.eclipse.sdk.examples.feature.group" version="3.5.0.r37x_v20111117-817nFcfFE_dkPZrZfNRFqhh"/>
<unit id="org.eclipse.sdk.examples.source.feature.group" version="3.5.0.r37x_v20111117"/>
<unit id="org.eclipse.cvs.feature.group" version="1.3.100.v20110520-0800-7B78FHl90GF5k1LAD7CODE01911"/>
- <unit id="org.eclipse.jdt.feature.group" version="3.7.1.r371_v20110810-0800-7z8gFcrFML8IX_Scz0ZMIXuTADB7"/>
- <unit id="org.eclipse.equinox.server.core.feature.group" version="1.1.1.R37x_v20110907-7K7TFBZETaXFX4sLg79VEN02722"/>
- <unit id="org.eclipse.equinox.executable.feature.group" version="3.5.1.R37x_v20111117-1330-7P7NFUFFIbaUcR7JrhHHBBe5HZTZ"/>
+ <unit id="org.eclipse.jdt.feature.group" version="3.7.2.v20120120-1414-7z8gFcuFMP7BW5XTz0cMOr4l9B15"/>
+ <unit id="org.eclipse.equinox.server.core.feature.group" version="1.1.1.R37x_v20110907-7K7TFB_ETaXFZ3oNa8CeJQ02722"/>
+ <unit id="org.eclipse.equinox.executable.feature.group" version="3.5.1.v20111216-1653-7P7NFUIFIbaUcU77s0KQWHw5HZTZ"/>
<unit id="org.eclipse.equinox.compendium.sdk.feature.group" version="3.7.1.R37x_v20110909-7X7XGA5FNKoMz-UVh-nB9L9B"/>
- <unit id="org.eclipse.equinox.core.sdk.feature.group" version="3.7.1.v20110928-1809-7uF9LFpHFUqIcLfpLKwHQIb03BJB"/>
+ <unit id="org.eclipse.equinox.core.sdk.feature.group" version="3.7.1.v20110928-1809-7uF9LFpHFUqIcLhnJMmHQGXy3BJB"/>
<unit id="org.eclipse.equinox.p2.discovery.feature.feature.group" version="1.0.101.R37x_v20110909-4-8_9oB5885K5B28WKK"/>
<unit id="org.eclipse.equinox.p2.user.ui.feature.group" version="2.1.2.R37x_v20110815-1155-6-Bk8pYWZz0pz-UdWr1z0jQHRlY7"/>
<unit id="org.eclipse.equinox.p2.sdk.feature.group" version="3.7.1.R37x_v20110907-9N7sHD_GHWyJ6-tc-e56RJl5FePP"/>
- <unit id="org.eclipse.equinox.serverside.sdk.feature.group" version="3.7.1.R37x_v20110907-7u7PFvHFN5LiN7iQIXvwsz-8winZ"/>
+ <unit id="org.eclipse.equinox.serverside.sdk.feature.group" version="3.7.1.R37x_v20110907-7u7PFvHFN5LiN7iUIYPvl4cz-WiW"/>
<unit id="org.eclipse.equinox.sdk.feature.group" version="3.7.1.R37x_v20110907-7M7W8i8eNV4WrolW8kVZlXUMvV2H"/>
<unit id="org.eclipse.equinox.weaving.sdk.feature.group" version="1.0.100.v20110502-79-F8PEVVFNNFsFV"/>
<unit id="org.eclipse.equinox.server.jetty.feature.group" version="1.0.100.v20110502-7I77CPBgJ9ECBQ9V8IAD"/>
<unit id="org.eclipse.equinox.server.p2.feature.group" version="1.1.1.R37x_v20110907-7z7UFVzFSW5PIAnhrvelMks02129"/>
<unit id="org.eclipse.equinox.server.servletbridge.feature.group" version="1.0.100.v20110502-42DF9oB5865K5D"/>
<unit id="org.eclipse.equinox.server.simple.feature.group" version="1.0.100.v20110502-44Eo8s73553A4A2629"/>
- <unit id="org.eclipse.rcp.feature.group" version="3.7.1.r37x_v20110729-9DB5FmQFpbKK_SJR0vPkGu102722"/>
- <unit id="org.eclipse.pde.api.tools.ee.fragments.feature.group" version="1.0.200.r37x_v20110803-7D-FHkFAFkNZZO9PfBZStN"/>
- <unit id="org.eclipse.pde.feature.group" version="3.7.1.r37x_v20110810-0800-7b7qFVvFEt3dpKXiolsY319"/>
+ <unit id="org.eclipse.rcp.feature.group" version="3.7.2.v20120120-1424-9DB5FmnFq5JCf1UA31Rwo4S02722"/>
+ <!-- not in Indigo SR2 <unit id="org.eclipse.pde.api.tools.ee.fragments.feature.group" version="1.0.200.r37x_v20110803-7D-FHkFAFkNZZO9PfBZStN"/> -->
+ <unit id="org.eclipse.pde.feature.group" version="3.7.2.v20120120-1420-7b7rFUOFEx2Xnqafnj-9250"/>
<unit id="org.eclipse.help.feature.group" version="1.3.0.v20110327-7i7uFFmFFl8nvpcDqArPw1"/>
<!-- DTP -->
- <unit id="org.eclipse.datatools.modelbase.feature.feature.group" version="1.9.1.v201108301820-77078CcNBHCBYKYEbNV"/>
+ <unit id="org.eclipse.datatools.modelbase.feature.feature.group" version="1.9.2.v201109161655-7707CCcNBHIEQJXHUNf"/>
<unit id="org.eclipse.datatools.connectivity.feature.feature.group" version="1.9.1.v201108301820-7C7e8mEt1_wmuQjYnXQ6Zj5dM17"/>
- <unit id="org.eclipse.datatools.connectivity.oda.feature.feature.group" version="1.9.1.v201108301820-7H7C7ICcNBHHBnJWDjSd"/>
- <unit id="org.eclipse.datatools.connectivity.oda.designer.feature.feature.group" version="1.9.1.v201108301820-4117w312219371456"/>
- <unit id="org.eclipse.datatools.connectivity.oda.designer.core.feature.feature.group" version="1.9.1.v201108301820-7B7C7DCcNBGNChHSFaYT"/>
+ <unit id="org.eclipse.datatools.connectivity.oda.feature.feature.group" version="1.9.2.v201109161655-7H7C7OCcNBHIEYJgEcQU"/>
+ <unit id="org.eclipse.datatools.connectivity.oda.designer.feature.feature.group" version="1.9.2.v201109161655-4127w312312232267"/>
+ <unit id="org.eclipse.datatools.connectivity.oda.designer.core.feature.feature.group" version="1.9.2.v201109161655-7B7C7HCcNBGRDTHWF_Ri"/>
<unit id="org.eclipse.datatools.enablement.feature.feature.group" version="1.9.1.v201108301820-7J9B7FBWwVN7-2z-kZU_tJy1aR1t"/>
- <unit id="org.eclipse.datatools.enablement.apache.derby.feature.feature.group" version="1.9.1.v201108301820-77788gBmKDOGMhKwJ4Rn7QBR"/>
- <unit id="org.eclipse.datatools.enablement.hsqldb.feature.feature.group" version="1.9.1.v201108301820-67D1AqGBKNKdIlGz0GU7QBR"/>
- <unit id="org.eclipse.datatools.enablement.ibm.feature.feature.group" version="1.9.1.v201108301820-7F47SFC7sRbvSkkxaPvW"/>
+ <unit id="org.eclipse.datatools.enablement.apache.derby.feature.feature.group" version="1.9.2.v201109161655-77788hBmKDQ2MoTTLwdv9ILX"/>
+ <unit id="org.eclipse.datatools.enablement.hsqldb.feature.feature.group" version="1.9.2.v201109161655-67D2AqGBM7KfNTHwKO9ILX"/>
+ <unit id="org.eclipse.datatools.enablement.ibm.feature.feature.group" version="1.9.2.v201109161655-7F47SFC7sRdmSz0nz0bcci"/>
<unit id="org.eclipse.datatools.enablement.jdbc.feature.feature.group" version="1.9.1.v201108301820-4-29oB56N5N7L6PAQ"/>
<unit id="org.eclipse.datatools.enablement.jdt.feature.feature.group" version="1.9.1.v201108301820-2-07w31211518181A"/>
- <unit id="org.eclipse.datatools.enablement.msft.feature.feature.group" version="1.9.1.v201108301820-542AkF79P7QCP9SDB"/>
- <unit id="org.eclipse.datatools.enablement.mysql.feature.feature.group" version="1.9.1.v201108301820-546AkF78Z7Y9NBZ9A"/>
+ <unit id="org.eclipse.datatools.enablement.msft.feature.feature.group" version="1.9.2.v201109161655-544AkF7AL7MDMAOCS"/>
+ <unit id="org.eclipse.datatools.enablement.mysql.feature.feature.group" version="1.9.2.v201109161655-546AkF7AJ7d8JEOFC"/>
<unit id="org.eclipse.datatools.enablement.oda.feature.feature.group" version="1.9.1.v201108301820-7A7T78DZRDKGEeHnGlLP"/>
- <unit id="org.eclipse.datatools.enablement.oda.designer.feature.feature.group" version="1.9.1.v201108301820-3328s73553C655B63"/>
+ <unit id="org.eclipse.datatools.enablement.oda.designer.feature.feature.group" version="1.9.2.v201109161655-3358s7355573G57AI"/>
<unit id="org.eclipse.datatools.enablement.oracle.feature.feature.group" version="1.9.1.v201108301820-548dAkF79Q7RAN9UFJ"/>
- <unit id="org.eclipse.datatools.enablement.postgresql.feature.feature.group" version="1.9.1.v201108301820-542AkF77g7V9N9e77"/>
- <unit id="org.eclipse.datatools.enablement.sap.feature.feature.group" version="1.9.1.v201108301820-540AkF77g7V9N9e77"/>
- <unit id="org.eclipse.datatools.enablement.sybase.feature.feature.group" version="1.9.1.v201108301820-7E45F9NiNZVR6a1PMVn"/>
- <unit id="org.eclipse.datatools.enablement.ingres.feature.feature.group" version="1.9.1.v201108301820-540AkF78Z7UCRAQDB"/>
+ <unit id="org.eclipse.datatools.enablement.postgresql.feature.feature.group" version="1.9.2.v201109161655-552AkF7AJ9KAT9SFN"/>
+ <unit id="org.eclipse.datatools.enablement.sap.feature.feature.group" version="1.9.2.v201109161655-540AkF7AJ7YEJBU7S"/>
+ <unit id="org.eclipse.datatools.enablement.sybase.feature.feature.group" version="1.9.2.v201109161655-7E46F9NiNc1QBgyT6T6"/>
+ <unit id="org.eclipse.datatools.enablement.ingres.feature.feature.group" version="1.9.2.v201109161655-540AkF78Z7UCRAQDB"/>
<unit id="org.eclipse.datatools.enablement.sqlite.feature.feature.group" version="1.9.1.v201108301820-541AkF79P7N8NAQ77"/>
- <unit id="org.eclipse.datatools.sqldevtools.feature.feature.group" version="1.9.1.v201108301820-7N847CFDsn0VdrPUJvPUshDWIPJ0"/>
- <unit id="org.eclipse.datatools.sqldevtools.results.feature.feature.group" version="1.9.1.v201108301820-57B4AkF7AJ7NCBBMBL"/>
- <unit id="org.eclipse.datatools.sqldevtools.ddlgen.feature.feature.group" version="1.9.1.v201108301820-7A-3F7RZHLz-Hz-OlPz0Qf"/>
- <unit id="org.eclipse.datatools.sqldevtools.ddl.feature.feature.group" version="1.9.1.v201108301820-278078B04G8S_IMz00Iz00PmQz01"/>
+ <unit id="org.eclipse.datatools.sqldevtools.feature.feature.group" version="1.9.2.v201109161655-7N847OFDsn3ivl-o7D-4sg2hoC1Q"/>
+ <unit id="org.eclipse.datatools.sqldevtools.results.feature.feature.group" version="1.9.2.v201109161655-57B6AkF7BD7HEJALHP"/>
+ <unit id="org.eclipse.datatools.sqldevtools.ddlgen.feature.feature.group" version="1.9.2.v201109161655-7A-77F7RZHQSImUlNvbu"/>
+ <unit id="org.eclipse.datatools.sqldevtools.ddl.feature.feature.group" version="1.9.2.v201109161655-278178B088G8S_IRTJnVmOwcv"/>
<unit id="org.eclipse.datatools.sqldevtools.data.feature.feature.group" version="1.9.1.v201108301820-642BgJ9DJAQGVCaIQ"/>
- <unit id="org.eclipse.datatools.sqldevtools.parsers.feature.feature.group" version="1.9.1.v201108301820-622BgJ9CR9XFcEWLP"/>
+ <unit id="org.eclipse.datatools.sqldevtools.parsers.feature.feature.group" version="1.9.2.v201109161655-623BgJ9EE9ZJRDZKE"/>
<unit id="org.eclipse.datatools.sqldevtools.sqlbuilder.feature.feature.group" version="1.9.1.v201108301820-79-4EVVFJoFwKcN-L_"/>
- <unit id="org.eclipse.datatools.sqldevtools.schemaobjecteditor.feature.feature.group" version="1.9.1.v201108301820-4208375LG5BJ93413"/>
- <unit id="org.eclipse.datatools.intro.feature.group" version="1.9.1.v201108301820-26-7w312116392911"/>
+ <unit id="org.eclipse.datatools.sqldevtools.schemaobjecteditor.feature.feature.group" version="1.9.2.v201109161655-4208375LG5BJ93413"/>
+ <unit id="org.eclipse.datatools.intro.feature.group" version="1.9.2.v201109161655-26-7w312116392911"/>
<unit id="org.eclipse.datatools.doc.user.feature.group" version="1.9.1.v201108301820-47C08w95ENAK6AFDFK7"/>
- <unit id="org.eclipse.datatools.common.doc.user.feature.group" version="1.9.1.v201108301820-26-311A16321A3557"/>
+ <unit id="org.eclipse.datatools.common.doc.user.feature.group" version="1.9.2.v201109161655-26-311A16321A3557"/>
<unit id="org.eclipse.datatools.connectivity.doc.user.feature.group" version="1.9.1.v201108301820-37D-7733L3D753L7BBF"/>
<unit id="org.eclipse.datatools.sqltools.doc.user.feature.group" version="1.9.1.v201108301820-37D-7733L3D753L7BBF"/>
@@ -181,29 +181,29 @@
<unit id="org.eclipse.persistence.jpa.feature.group" version="2.3.1.v20110908-r10021"/>
<unit id="org.eclipse.wst.common.fproj.feature.group" version="3.3.0.v201102150115-377DF8s7355533F3C7C"/>
<unit id="org.eclipse.jst.enterprise_ui.feature.feature.group" version="3.3.2.v201111030500-7b7II1TFSK2WIpQlIFkRz0HVz0RvTn"/>
- <unit id="org.eclipse.wst.web_ui.feature.feature.group" version="3.3.2.v201111030500-7O7IFj6EMjB7yNyXo_9z0lKyQU0ygHAVcLO_CPgY"/>
+ <unit id="org.eclipse.wst.web_ui.feature.feature.group" version="3.3.2.v201111030500-7O7IFj6EMjB7yO-Xo_9z0nKsPbQwc0GVTFNMXCtE"/>
<unit id="org.eclipse.wst.xml_ui.feature.feature.group" version="3.3.1.v201108102009-7H7EFZ6DxumTlde4nhcRmIprjAHaALMrRz012Qz0"/>
<unit id="org.eclipse.wst.xsl.feature.feature.group" version="1.3.1.v201109012200-7T7YFRTFIqUoIrvbEtBlSIJXGZNg"/>
<unit id="org.eclipse.wst.jsdt.feature.feature.group" version="1.3.2.v201111090634-7F78FXSFBBoPbXSIbLewwz0"/>
<unit id="org.eclipse.jsf.feature.feature.group" version="3.3.1.v201109030441-7E7IDUF9JgLWUM6WBSgXp"/>
<unit id="org.eclipse.jst.ws.jaxws.dom.feature.feature.group" version="1.0.100.v201102200555-5-A7AkF7B97HDVDRJZ"/>
<unit id="org.eclipse.jst.ws.jaxws.feature.feature.group" version="1.1.0.v201105171845-7E78BsF8NcJSWKvN1Rjcv"/>
- <unit id="org.eclipse.jst.enterprise_core.feature.feature.group" version="3.3.2.v201111030500-52FPfAkF7B99L8P7U98"/>
+ <unit id="org.eclipse.jst.enterprise_core.feature.feature.group" version="3.3.2.v201111030500-52FPfAkF7BA8K9J7S98"/>
<unit id="org.eclipse.jst.server_adapters.ext.feature.feature.group" version="3.3.2.v20111010_1242-777HFHzCcNBDjCbIUfEEE3"/>
<unit id="org.eclipse.jst.server_adapters.feature.feature.group" version="3.2.100.v20110303-208Z7w31211419"/>
<unit id="org.eclipse.jst.server_core.feature.feature.group" version="3.3.0.v201102200555-31FD58s7354495L"/>
<unit id="org.eclipse.jst.server_ui.feature.feature.group" version="3.3.0.v201102200555-7A6FHr9xFcAVCFLZBBJLIR43A"/>
- <unit id="org.eclipse.jst.web_ui.feature.feature.group" version="3.3.1.v201108102009-7F7AFO4C25TohIbnlgy_0z-Hn73eiw4W7mpuYjlq"/>
+ <unit id="org.eclipse.jst.web_ui.feature.feature.group" version="3.3.2.v201112072049-7F7AFO7C25ToiI_poiuW10G_9C5fcIWcxu-xz-Wf"/>
<unit id="org.eclipse.jsf.feature.source.feature.group" version="3.3.1.v201109030441-7E7IDUF9JgLWUM6WBSgXp"/>
<unit id="org.eclipse.wst.xml.xpath2.processor.feature.feature.group" version="2.0.0.v201103310043-7A7J-CcNBGOCUIWFYMf"/>
<unit id="org.eclipse.jst.webpageeditor.feature.feature.group" version="2.3.5.v201109051528-46AA9oB5885D5M5G66"/>
<unit id="org.eclipse.wst.ws_wsdl15.feature.feature.group" version="1.5.301.v201102200555-2407w312123151655"/>
- <unit id="org.eclipse.wst.common_core.feature.feature.group" version="3.3.2.v201111030500-7B7DFO8F7RZHOeKpPz0Oz-NJ"/>
- <unit id="org.eclipse.wst.common_ui.feature.feature.group" version="3.3.2.v201111030500-7C79FVrEdhO_rfug6nUekgKqRz-PxOK"/>
+ <unit id="org.eclipse.wst.common_core.feature.feature.group" version="3.3.2.v201111030500-7B7DFO8F7RZHOfJpQyOwNJ"/>
+ <unit id="org.eclipse.wst.common_ui.feature.feature.group" version="3.3.2.v201111030500-7C79FVsEdhO_sfog9oNekiJjSz01Nz-OK"/>
<unit id="org.eclipse.wst.server_adapters.feature.feature.group" version="3.2.100.v20110303-51EoAkF77g8HBSc"/>
- <unit id="org.eclipse.wst.server_core.feature.feature.group" version="3.3.2.v20111026_1748-30FBd8s7355476Ia2859"/>
+ <unit id="org.eclipse.wst.server_core.feature.feature.group" version="3.3.2.v20111026_1748-30FBd8s7356386Ha256A"/>
<unit id="org.eclipse.wst.server_ui.feature.feature.group" version="3.3.2.v20111026_1748-7B79FBdAtJcez0ENNePJROIPmEH6A"/>
- <unit id="org.eclipse.wst.web_core.feature.feature.group" version="3.3.2.v201111030500-7E7EFMaAJun8av44z-PFIqjTeVfDSLfQK"/>
+ <unit id="org.eclipse.wst.web_core.feature.feature.group" version="3.3.2.v201111030500-7E7EFMcAJvn8cwU41JNIuz-RBwweMVrJ1"/>
<unit id="org.eclipse.wst.ws_ui.feature.feature.group" version="3.3.2.v201112142348-7I7AFg1EtEoVFjz-98J1iuhgBz-uuWblmZqMOnEL"/>
<unit id="org.eclipse.wst.xml_core.feature.feature.group" version="3.3.1.v201108102009-7C7OFeMF7RZHQNJtN8NuOe"/>
@@ -230,16 +230,16 @@
<unit id="org.eclipse.mylyn_feature.feature.group" version="3.6.4.v20111118-0100"/>
<unit id="org.eclipse.mylyn.ide_feature.feature.group" version="3.6.4.v20111118-0100"/>
<unit id="org.eclipse.mylyn.commons.feature.group" version="3.6.4.v20111118-0100"/>
- <unit id="org.eclipse.mylyn.context_feature.feature.group" version="3.6.4.v20111118-0100"/>
+ <unit id="org.eclipse.mylyn.context_feature.feature.group" version="3.6.5.I20120201-0822"/>
<unit id="org.eclipse.mylyn.bugzilla_feature.feature.group" version="3.6.4.v20111118-0100"/>
- <unit id="org.eclipse.mylyn.java_feature.feature.group" version="3.6.4.v20111118-0100"/>
- <unit id="org.eclipse.mylyn.pde_feature.feature.group" version="3.6.4.v20111118-0100"/>
- <unit id="org.eclipse.mylyn.team_feature.feature.group" version="3.6.4.v20111118-0100"/>
- <unit id="org.eclipse.mylyn.wikitext_feature.feature.group" version="1.5.4.v20111118-0100"/>
- <unit id="org.eclipse.mylyn.cvs.feature.group" version="0.8.4.v20111118-0100"/>
- <unit id="org.eclipse.mylyn.git.feature.group" version="0.8.4.v20111118-0100"/>
- <unit id="org.eclipse.mylyn.versions.feature.group" version="0.8.4.v20111118-0100"/>
- <unit id="org.eclipse.mylyn.tasks.ui" version="3.6.4.v20111117-0100"/>
+ <unit id="org.eclipse.mylyn.java_feature.feature.group" version="3.6.5.I20120201-0822"/>
+ <unit id="org.eclipse.mylyn.pde_feature.feature.group" version="3.6.5.I20120201-0822"/>
+ <unit id="org.eclipse.mylyn.team_feature.feature.group" version="3.6.5.I20120201-0822"/>
+ <unit id="org.eclipse.mylyn.wikitext_feature.feature.group" version="1.5.5.I20120201-0822"/>
+ <unit id="org.eclipse.mylyn.cvs.feature.group" version="0.8.5.I20120201-0822"/>
+ <unit id="org.eclipse.mylyn.git.feature.group" version="0.8.5.I20120201-0822"/>
+ <unit id="org.eclipse.mylyn.versions.feature.group" version="0.8.5.I20120201-0822"/>
+ <unit id="org.eclipse.mylyn.tasks.ui" version="3.6.5.v20111214-0100"/>
<unit id="org.eclipse.mylyn.tasks.core" version="3.6.0.v20110608-1400"/>
<unit id="org.eclipse.mylyn.tasks.bugs" version="3.6.1.v20110825-0100"/>
<unit id="com.atlassian.connector.commons" version="4.0.0.v20111010"/>
@@ -271,7 +271,7 @@
<unit id="org.eclipse.ui.ide" version="3.7.0.v20110928-1505"/>
<unit id="org.eclipse.ui.workbench.texteditor" version="3.7.0.v20110928-1504"/>
<unit id="org.eclipse.jface.text" version="3.7.2.v20111213-1208"/>
- <unit id="org.eclipse.osgi" version="3.7.2.v20111205-1537"/>
+ <unit id="org.eclipse.osgi" version="3.7.2.v20120110-1415"/>
<unit id="org.eclipse.core.filesystem" version="1.3.100.v20110423-0524"/>
<unit id="org.eclipse.ui.forms" version="3.5.101.v20111011-1919"/>
<unit id="org.eclipse.ui.editors" version="3.7.0.v20110928-1504"/>
@@ -290,7 +290,7 @@
<unit id="org.mortbay.jetty.util" version="6.1.23.v201012071420"/>
<unit id="org.apache.jasper" version="5.5.17.v201101211617"/>
<unit id="org.joda.time" version="1.6.0.v20081202-0100"/>
- <unit id="javax.servlet" version="3.0.0.v201103241727"/>
+ <unit id="javax.servlet" version="2.5.0.v201103041518"/>
<unit id="javax.servlet.jsp" version="2.0.0.v201101211617"/>
<unit id="javax.xml.rpc" version="1.1.0.v201005080400"/>
<unit id="javax.el" version="2.2.0.v201105051105"/>
Modified: trunk/build/target-platform/multiple.target.p2mirror.xml
===================================================================
--- trunk/build/target-platform/multiple.target.p2mirror.xml 2012-02-05 00:37:32 UTC (rev 38434)
+++ trunk/build/target-platform/multiple.target.p2mirror.xml 2012-02-05 01:49:08 UTC (rev 38435)
@@ -111,7 +111,6 @@
<iu id="org.eclipse.equinox.server.servletbridge.feature.group" version=""/>
<iu id="org.eclipse.equinox.server.simple.feature.group" version=""/>
<iu id="org.eclipse.rcp.feature.group" version=""/>
-<iu id="org.eclipse.pde.api.tools.ee.fragments.feature.group" version=""/>
<iu id="org.eclipse.pde.feature.group" version=""/>
<iu id="org.eclipse.help.feature.group" version=""/>
<iu id="org.eclipse.datatools.modelbase.feature.feature.group" version=""/>
Modified: trunk/build/target-platform/unified.target
===================================================================
--- trunk/build/target-platform/unified.target 2012-02-05 00:37:32 UTC (rev 38434)
+++ trunk/build/target-platform/unified.target 2012-02-05 01:49:08 UTC (rev 38435)
@@ -26,7 +26,7 @@
<unit id="ch.qos.logback.core" version="0.9.27.v20110224-1110"/>
<unit id="ch.qos.logback.slf4j" version="0.9.27.v20110224-1110"/>
<unit id="org.slf4j.api" version="1.6.1.v20100831-0715"/>
- <unit id="com.ning.async-http-client" version="1.6.3.201108040830"/>
+ <unit id="com.ning.async-http-client" version="1.6.3.201112281337"/>
<unit id="org.jboss.netty" version="3.2.4.Final-201108040830"/>
<unit id="org.eclipse.equinox.p2.discovery.compatibility" version="1.0.1.v20110502-1955"/>
<unit id="org.eclipse.equinox.p2.discovery" version="1.0.100.v20110502-1955"/>
@@ -35,7 +35,7 @@
<!-- Orbit bundles -->
<unit id="javax.wsdl" version="1.6.2.v201012040545"/>
- <unit id="org.jdom" version="1.0.0.v201005080400"/>
+ <unit id="org.jdom" version="1.1.1.v201101151400"/>
<unit id="org.apache.oro" version="2.0.8.v201005080400"/>
<unit id="org.apache.commons.io" version="2.0.1.v201105210651"/>
<unit id="org.apache.commons.codec" version="1.3.0.v201101211617"/>
@@ -63,22 +63,22 @@
<unit id="org.eclipse.emf.workspace.feature.group" version="1.5.1.v20110823-1800-37708s734D3C7D3CCC1"/>
<unit id="org.eclipse.emf.validation.feature.group" version="1.5.0.v20110502-1600-479-9oB56N5BBR6LCA6"/>
<unit id="org.eclipse.emf.transaction.feature.group" version="1.5.0.v20110502-1600-377-8s734C3E7D15D6B"/>
- <unit id="org.eclipse.emf.ecore.feature.group" version="2.7.1.v20111028-1033"/>
+ <unit id="org.eclipse.emf.ecore.feature.group" version="2.7.1.v20120127-1122"/>
<unit id="org.eclipse.emf.feature.group" version="2.7.2.v20111031-1121"/>
<unit id="org.eclipse.emf.codegen.feature.group" version="2.7.0.v20111031-1121"/>
- <unit id="org.eclipse.emf.common.feature.group" version="2.7.0.v20111028-1033"/>
+ <unit id="org.eclipse.emf.common.feature.group" version="2.7.0.v20120127-1122"/>
<unit id="org.eclipse.emf.databinding.feature.group" version="1.2.0.v20111031-1121"/>
- <unit id="org.eclipse.emf.codegen.ecore.feature.group" version="2.7.0.v20111031-1121"/>
- <unit id="org.eclipse.emf.ecore.edit.feature.group" version="2.7.0.v20111031-1121"/>
+ <unit id="org.eclipse.emf.codegen.ecore.feature.group" version="2.7.0.v20120130-0943"/>
+ <unit id="org.eclipse.emf.ecore.edit.feature.group" version="2.7.1.v20120130-0943"/>
<unit id="org.eclipse.emf.ecore.editor.feature.group" version="2.7.0.v20111031-1121"/>
- <unit id="org.eclipse.emf.ecore.feature.group" version="2.7.1.v20111028-1033"/>
+ <unit id="org.eclipse.emf.ecore.feature.group" version="2.7.1.v20120127-1122"/>
<unit id="org.eclipse.emf.edit.feature.group" version="2.7.2.v20111025-0655"/>
- <unit id="org.eclipse.xsd.edit.feature.group" version="2.7.0.v20111031-1121"/>
+ <unit id="org.eclipse.xsd.edit.feature.group" version="2.7.0.v20120130-0943"/>
<unit id="org.eclipse.xsd.feature.group" version="2.7.0.v20111031-1121"/>
<!-- GEF, Draw2D, Graphiti, Zest -->
<unit id="org.eclipse.graphiti.feature.feature.group" version="0.8.1.v20110907-0857"/>
- <unit id="org.eclipse.draw2d.feature.group" version="3.7.1.v20110830-1143-4607w3122194102254"/>
+ <unit id="org.eclipse.draw2d.feature.group" version="3.7.2.v20110927-2020-4617w3122212803131"/>
<unit id="org.eclipse.gef.feature.group" version="3.7.1.v20110830-1143-777D181B3Bz06C853D8863365"/>
<unit id="org.eclipse.zest.feature.group" version="1.3.0.v20110425-2050-67A08yF5F18CBD4I9G53365"/>
@@ -87,68 +87,68 @@
<!-- Platform: CVS, JDT, RCP, PDE, Equinox, Help -->
<unit id="com.ibm.icu.base.feature.group" version="1.2.0.v20110302-797738s73553J95"/>
- <unit id="org.eclipse.platform.feature.group" version="3.7.1.r37x_v20110729-9gF7UHP9FxGjd-Kt0u7FUjXrkGBRlAGhUKWvcC"/>
+ <unit id="org.eclipse.platform.feature.group" version="3.7.2.v20120120-1424-9gF7UHPDFxGjd-PqDqxkScAyKauZmeNeSebuwq"/>
<unit id="org.eclipse.platform.ide" version="3.7.1.M20111214-1406"/>
<unit id="org.eclipse.platform.sdk" version="3.7.1.M20111214-1406"/>
<unit id="org.eclipse.sdk.feature.group" version="3.7.2.r37x_v20111213-7Q7xAEDDePtVwCPcUL0B0hMwoKb8FG5XWyjL_Z-weE2Rc"/>
<unit id="org.eclipse.releng.tools.feature.group" version="3.4.101.r37x_v20111117-4507s482aw31221929"/>
<unit id="org.eclipse.sdk.ide" version="3.7.1.M20111214-1406"/>
- <unit id="org.eclipse.sdk.examples.feature.group" version="3.5.0.r37x_v20111117-817nFcfFE_dkPZMZfNRFqhh"/>
+ <unit id="org.eclipse.sdk.examples.feature.group" version="3.5.0.r37x_v20111117-817nFcfFE_dkPZrZfNRFqhh"/>
<unit id="org.eclipse.sdk.examples.source.feature.group" version="3.5.0.r37x_v20111117"/>
<unit id="org.eclipse.cvs.feature.group" version="1.3.100.v20110520-0800-7B78FHl90GF5k1LAD7CODE01911"/>
- <unit id="org.eclipse.jdt.feature.group" version="3.7.1.r371_v20110810-0800-7z8gFcrFML8IX_Scz0ZMIXuTADB7"/>
- <unit id="org.eclipse.equinox.server.core.feature.group" version="1.1.1.R37x_v20110907-7K7TFBZETaXFX4sLg79VEN02722"/>
- <unit id="org.eclipse.equinox.executable.feature.group" version="3.5.1.R37x_v20111117-1330-7P7NFUFFIbaUcR7JrhHHBBe5HZTZ"/>
+ <unit id="org.eclipse.jdt.feature.group" version="3.7.2.v20120120-1414-7z8gFcuFMP7BW5XTz0cMOr4l9B15"/>
+ <unit id="org.eclipse.equinox.server.core.feature.group" version="1.1.1.R37x_v20110907-7K7TFB_ETaXFZ3oNa8CeJQ02722"/>
+ <unit id="org.eclipse.equinox.executable.feature.group" version="3.5.1.v20111216-1653-7P7NFUIFIbaUcU77s0KQWHw5HZTZ"/>
<unit id="org.eclipse.equinox.compendium.sdk.feature.group" version="3.7.1.R37x_v20110909-7X7XGA5FNKoMz-UVh-nB9L9B"/>
- <unit id="org.eclipse.equinox.core.sdk.feature.group" version="3.7.1.v20110928-1809-7uF9LFpHFUqIcLfpLKwHQIb03BJB"/>
+ <unit id="org.eclipse.equinox.core.sdk.feature.group" version="3.7.1.v20110928-1809-7uF9LFpHFUqIcLhnJMmHQGXy3BJB"/>
<unit id="org.eclipse.equinox.p2.discovery.feature.feature.group" version="1.0.101.R37x_v20110909-4-8_9oB5885K5B28WKK"/>
<unit id="org.eclipse.equinox.p2.user.ui.feature.group" version="2.1.2.R37x_v20110815-1155-6-Bk8pYWZz0pz-UdWr1z0jQHRlY7"/>
<unit id="org.eclipse.equinox.p2.sdk.feature.group" version="3.7.1.R37x_v20110907-9N7sHD_GHWyJ6-tc-e56RJl5FePP"/>
- <unit id="org.eclipse.equinox.serverside.sdk.feature.group" version="3.7.1.R37x_v20110907-7u7PFvHFN5LiN7iQIXvwsz-8winZ"/>
+ <unit id="org.eclipse.equinox.serverside.sdk.feature.group" version="3.7.1.R37x_v20110907-7u7PFvHFN5LiN7iUIYPvl4cz-WiW"/>
<unit id="org.eclipse.equinox.sdk.feature.group" version="3.7.1.R37x_v20110907-7M7W8i8eNV4WrolW8kVZlXUMvV2H"/>
<unit id="org.eclipse.equinox.weaving.sdk.feature.group" version="1.0.100.v20110502-79-F8PEVVFNNFsFV"/>
<unit id="org.eclipse.equinox.server.jetty.feature.group" version="1.0.100.v20110502-7I77CPBgJ9ECBQ9V8IAD"/>
<unit id="org.eclipse.equinox.server.p2.feature.group" version="1.1.1.R37x_v20110907-7z7UFVzFSW5PIAnhrvelMks02129"/>
<unit id="org.eclipse.equinox.server.servletbridge.feature.group" version="1.0.100.v20110502-42DF9oB5865K5D"/>
<unit id="org.eclipse.equinox.server.simple.feature.group" version="1.0.100.v20110502-44Eo8s73553A4A2629"/>
- <unit id="org.eclipse.rcp.feature.group" version="3.7.1.r37x_v20110729-9DB5FmQFpbKK_SJR0vPkGu102722"/>
- <unit id="org.eclipse.pde.api.tools.ee.fragments.feature.group" version="1.0.200.r37x_v20110803-7D-FHkFAFkNZZO9PfBZStN"/>
- <unit id="org.eclipse.pde.feature.group" version="3.7.1.r37x_v20110810-0800-7b7qFVvFEt3dpKXiolsY319"/>
+ <unit id="org.eclipse.rcp.feature.group" version="3.7.2.v20120120-1424-9DB5FmnFq5JCf1UA31Rwo4S02722"/>
+ <!-- not in Indigo SR2 <unit id="org.eclipse.pde.api.tools.ee.fragments.feature.group" version="1.0.200.r37x_v20110803-7D-FHkFAFkNZZO9PfBZStN"/> -->
+ <unit id="org.eclipse.pde.feature.group" version="3.7.2.v20120120-1420-7b7rFUOFEx2Xnqafnj-9250"/>
<unit id="org.eclipse.help.feature.group" version="1.3.0.v20110327-7i7uFFmFFl8nvpcDqArPw1"/>
<!-- DTP -->
- <unit id="org.eclipse.datatools.modelbase.feature.feature.group" version="1.9.1.v201108301820-77078CcNBHCBYKYEbNV"/>
+ <unit id="org.eclipse.datatools.modelbase.feature.feature.group" version="1.9.2.v201109161655-7707CCcNBHIEQJXHUNf"/>
<unit id="org.eclipse.datatools.connectivity.feature.feature.group" version="1.9.1.v201108301820-7C7e8mEt1_wmuQjYnXQ6Zj5dM17"/>
- <unit id="org.eclipse.datatools.connectivity.oda.feature.feature.group" version="1.9.1.v201108301820-7H7C7ICcNBHHBnJWDjSd"/>
- <unit id="org.eclipse.datatools.connectivity.oda.designer.feature.feature.group" version="1.9.1.v201108301820-4117w312219371456"/>
- <unit id="org.eclipse.datatools.connectivity.oda.designer.core.feature.feature.group" version="1.9.1.v201108301820-7B7C7DCcNBGNChHSFaYT"/>
+ <unit id="org.eclipse.datatools.connectivity.oda.feature.feature.group" version="1.9.2.v201109161655-7H7C7OCcNBHIEYJgEcQU"/>
+ <unit id="org.eclipse.datatools.connectivity.oda.designer.feature.feature.group" version="1.9.2.v201109161655-4127w312312232267"/>
+ <unit id="org.eclipse.datatools.connectivity.oda.designer.core.feature.feature.group" version="1.9.2.v201109161655-7B7C7HCcNBGRDTHWF_Ri"/>
<unit id="org.eclipse.datatools.enablement.feature.feature.group" version="1.9.1.v201108301820-7J9B7FBWwVN7-2z-kZU_tJy1aR1t"/>
- <unit id="org.eclipse.datatools.enablement.apache.derby.feature.feature.group" version="1.9.1.v201108301820-77788gBmKDOGMhKwJ4Rn7QBR"/>
- <unit id="org.eclipse.datatools.enablement.hsqldb.feature.feature.group" version="1.9.1.v201108301820-67D1AqGBKNKdIlGz0GU7QBR"/>
- <unit id="org.eclipse.datatools.enablement.ibm.feature.feature.group" version="1.9.1.v201108301820-7F47SFC7sRbvSkkxaPvW"/>
+ <unit id="org.eclipse.datatools.enablement.apache.derby.feature.feature.group" version="1.9.2.v201109161655-77788hBmKDQ2MoTTLwdv9ILX"/>
+ <unit id="org.eclipse.datatools.enablement.hsqldb.feature.feature.group" version="1.9.2.v201109161655-67D2AqGBM7KfNTHwKO9ILX"/>
+ <unit id="org.eclipse.datatools.enablement.ibm.feature.feature.group" version="1.9.2.v201109161655-7F47SFC7sRdmSz0nz0bcci"/>
<unit id="org.eclipse.datatools.enablement.jdbc.feature.feature.group" version="1.9.1.v201108301820-4-29oB56N5N7L6PAQ"/>
<unit id="org.eclipse.datatools.enablement.jdt.feature.feature.group" version="1.9.1.v201108301820-2-07w31211518181A"/>
- <unit id="org.eclipse.datatools.enablement.msft.feature.feature.group" version="1.9.1.v201108301820-542AkF79P7QCP9SDB"/>
- <unit id="org.eclipse.datatools.enablement.mysql.feature.feature.group" version="1.9.1.v201108301820-546AkF78Z7Y9NBZ9A"/>
+ <unit id="org.eclipse.datatools.enablement.msft.feature.feature.group" version="1.9.2.v201109161655-544AkF7AL7MDMAOCS"/>
+ <unit id="org.eclipse.datatools.enablement.mysql.feature.feature.group" version="1.9.2.v201109161655-546AkF7AJ7d8JEOFC"/>
<unit id="org.eclipse.datatools.enablement.oda.feature.feature.group" version="1.9.1.v201108301820-7A7T78DZRDKGEeHnGlLP"/>
- <unit id="org.eclipse.datatools.enablement.oda.designer.feature.feature.group" version="1.9.1.v201108301820-3328s73553C655B63"/>
+ <unit id="org.eclipse.datatools.enablement.oda.designer.feature.feature.group" version="1.9.2.v201109161655-3358s7355573G57AI"/>
<unit id="org.eclipse.datatools.enablement.oracle.feature.feature.group" version="1.9.1.v201108301820-548dAkF79Q7RAN9UFJ"/>
- <unit id="org.eclipse.datatools.enablement.postgresql.feature.feature.group" version="1.9.1.v201108301820-542AkF77g7V9N9e77"/>
- <unit id="org.eclipse.datatools.enablement.sap.feature.feature.group" version="1.9.1.v201108301820-540AkF77g7V9N9e77"/>
- <unit id="org.eclipse.datatools.enablement.sybase.feature.feature.group" version="1.9.1.v201108301820-7E45F9NiNZVR6a1PMVn"/>
- <unit id="org.eclipse.datatools.enablement.ingres.feature.feature.group" version="1.9.1.v201108301820-540AkF78Z7UCRAQDB"/>
+ <unit id="org.eclipse.datatools.enablement.postgresql.feature.feature.group" version="1.9.2.v201109161655-552AkF7AJ9KAT9SFN"/>
+ <unit id="org.eclipse.datatools.enablement.sap.feature.feature.group" version="1.9.2.v201109161655-540AkF7AJ7YEJBU7S"/>
+ <unit id="org.eclipse.datatools.enablement.sybase.feature.feature.group" version="1.9.2.v201109161655-7E46F9NiNc1QBgyT6T6"/>
+ <unit id="org.eclipse.datatools.enablement.ingres.feature.feature.group" version="1.9.2.v201109161655-540AkF78Z7UCRAQDB"/>
<unit id="org.eclipse.datatools.enablement.sqlite.feature.feature.group" version="1.9.1.v201108301820-541AkF79P7N8NAQ77"/>
- <unit id="org.eclipse.datatools.sqldevtools.feature.feature.group" version="1.9.1.v201108301820-7N847CFDsn0VdrPUJvPUshDWIPJ0"/>
- <unit id="org.eclipse.datatools.sqldevtools.results.feature.feature.group" version="1.9.1.v201108301820-57B4AkF7AJ7NCBBMBL"/>
- <unit id="org.eclipse.datatools.sqldevtools.ddlgen.feature.feature.group" version="1.9.1.v201108301820-7A-3F7RZHLz-Hz-OlPz0Qf"/>
- <unit id="org.eclipse.datatools.sqldevtools.ddl.feature.feature.group" version="1.9.1.v201108301820-278078B04G8S_IMz00Iz00PmQz01"/>
+ <unit id="org.eclipse.datatools.sqldevtools.feature.feature.group" version="1.9.2.v201109161655-7N847OFDsn3ivl-o7D-4sg2hoC1Q"/>
+ <unit id="org.eclipse.datatools.sqldevtools.results.feature.feature.group" version="1.9.2.v201109161655-57B6AkF7BD7HEJALHP"/>
+ <unit id="org.eclipse.datatools.sqldevtools.ddlgen.feature.feature.group" version="1.9.2.v201109161655-7A-77F7RZHQSImUlNvbu"/>
+ <unit id="org.eclipse.datatools.sqldevtools.ddl.feature.feature.group" version="1.9.2.v201109161655-278178B088G8S_IRTJnVmOwcv"/>
<unit id="org.eclipse.datatools.sqldevtools.data.feature.feature.group" version="1.9.1.v201108301820-642BgJ9DJAQGVCaIQ"/>
- <unit id="org.eclipse.datatools.sqldevtools.parsers.feature.feature.group" version="1.9.1.v201108301820-622BgJ9CR9XFcEWLP"/>
+ <unit id="org.eclipse.datatools.sqldevtools.parsers.feature.feature.group" version="1.9.2.v201109161655-623BgJ9EE9ZJRDZKE"/>
<unit id="org.eclipse.datatools.sqldevtools.sqlbuilder.feature.feature.group" version="1.9.1.v201108301820-79-4EVVFJoFwKcN-L_"/>
- <unit id="org.eclipse.datatools.sqldevtools.schemaobjecteditor.feature.feature.group" version="1.9.1.v201108301820-4208375LG5BJ93413"/>
- <unit id="org.eclipse.datatools.intro.feature.group" version="1.9.1.v201108301820-26-7w312116392911"/>
+ <unit id="org.eclipse.datatools.sqldevtools.schemaobjecteditor.feature.feature.group" version="1.9.2.v201109161655-4208375LG5BJ93413"/>
+ <unit id="org.eclipse.datatools.intro.feature.group" version="1.9.2.v201109161655-26-7w312116392911"/>
<unit id="org.eclipse.datatools.doc.user.feature.group" version="1.9.1.v201108301820-47C08w95ENAK6AFDFK7"/>
- <unit id="org.eclipse.datatools.common.doc.user.feature.group" version="1.9.1.v201108301820-26-311A16321A3557"/>
+ <unit id="org.eclipse.datatools.common.doc.user.feature.group" version="1.9.2.v201109161655-26-311A16321A3557"/>
<unit id="org.eclipse.datatools.connectivity.doc.user.feature.group" version="1.9.1.v201108301820-37D-7733L3D753L7BBF"/>
<unit id="org.eclipse.datatools.sqltools.doc.user.feature.group" version="1.9.1.v201108301820-37D-7733L3D753L7BBF"/>
@@ -181,29 +181,29 @@
<unit id="org.eclipse.persistence.jpa.feature.group" version="2.3.1.v20110908-r10021"/>
<unit id="org.eclipse.wst.common.fproj.feature.group" version="3.3.0.v201102150115-377DF8s7355533F3C7C"/>
<unit id="org.eclipse.jst.enterprise_ui.feature.feature.group" version="3.3.2.v201111030500-7b7II1TFSK2WIpQlIFkRz0HVz0RvTn"/>
- <unit id="org.eclipse.wst.web_ui.feature.feature.group" version="3.3.2.v201111030500-7O7IFj6EMjB7yNyXo_9z0lKyQU0ygHAVcLO_CPgY"/>
+ <unit id="org.eclipse.wst.web_ui.feature.feature.group" version="3.3.2.v201111030500-7O7IFj6EMjB7yO-Xo_9z0nKsPbQwc0GVTFNMXCtE"/>
<unit id="org.eclipse.wst.xml_ui.feature.feature.group" version="3.3.1.v201108102009-7H7EFZ6DxumTlde4nhcRmIprjAHaALMrRz012Qz0"/>
<unit id="org.eclipse.wst.xsl.feature.feature.group" version="1.3.1.v201109012200-7T7YFRTFIqUoIrvbEtBlSIJXGZNg"/>
<unit id="org.eclipse.wst.jsdt.feature.feature.group" version="1.3.2.v201111090634-7F78FXSFBBoPbXSIbLewwz0"/>
<unit id="org.eclipse.jsf.feature.feature.group" version="3.3.1.v201109030441-7E7IDUF9JgLWUM6WBSgXp"/>
<unit id="org.eclipse.jst.ws.jaxws.dom.feature.feature.group" version="1.0.100.v201102200555-5-A7AkF7B97HDVDRJZ"/>
<unit id="org.eclipse.jst.ws.jaxws.feature.feature.group" version="1.1.0.v201105171845-7E78BsF8NcJSWKvN1Rjcv"/>
- <unit id="org.eclipse.jst.enterprise_core.feature.feature.group" version="3.3.2.v201111030500-52FPfAkF7B99L8P7U98"/>
+ <unit id="org.eclipse.jst.enterprise_core.feature.feature.group" version="3.3.2.v201111030500-52FPfAkF7BA8K9J7S98"/>
<unit id="org.eclipse.jst.server_adapters.ext.feature.feature.group" version="3.3.2.v20111010_1242-777HFHzCcNBDjCbIUfEEE3"/>
<unit id="org.eclipse.jst.server_adapters.feature.feature.group" version="3.2.100.v20110303-208Z7w31211419"/>
<unit id="org.eclipse.jst.server_core.feature.feature.group" version="3.3.0.v201102200555-31FD58s7354495L"/>
<unit id="org.eclipse.jst.server_ui.feature.feature.group" version="3.3.0.v201102200555-7A6FHr9xFcAVCFLZBBJLIR43A"/>
- <unit id="org.eclipse.jst.web_ui.feature.feature.group" version="3.3.1.v201108102009-7F7AFO4C25TohIbnlgy_0z-Hn73eiw4W7mpuYjlq"/>
+ <unit id="org.eclipse.jst.web_ui.feature.feature.group" version="3.3.2.v201112072049-7F7AFO7C25ToiI_poiuW10G_9C5fcIWcxu-xz-Wf"/>
<unit id="org.eclipse.jsf.feature.source.feature.group" version="3.3.1.v201109030441-7E7IDUF9JgLWUM6WBSgXp"/>
<unit id="org.eclipse.wst.xml.xpath2.processor.feature.feature.group" version="2.0.0.v201103310043-7A7J-CcNBGOCUIWFYMf"/>
<unit id="org.eclipse.jst.webpageeditor.feature.feature.group" version="2.3.5.v201109051528-46AA9oB5885D5M5G66"/>
<unit id="org.eclipse.wst.ws_wsdl15.feature.feature.group" version="1.5.301.v201102200555-2407w312123151655"/>
- <unit id="org.eclipse.wst.common_core.feature.feature.group" version="3.3.2.v201111030500-7B7DFO8F7RZHOeKpPz0Oz-NJ"/>
- <unit id="org.eclipse.wst.common_ui.feature.feature.group" version="3.3.2.v201111030500-7C79FVrEdhO_rfug6nUekgKqRz-PxOK"/>
+ <unit id="org.eclipse.wst.common_core.feature.feature.group" version="3.3.2.v201111030500-7B7DFO8F7RZHOfJpQyOwNJ"/>
+ <unit id="org.eclipse.wst.common_ui.feature.feature.group" version="3.3.2.v201111030500-7C79FVsEdhO_sfog9oNekiJjSz01Nz-OK"/>
<unit id="org.eclipse.wst.server_adapters.feature.feature.group" version="3.2.100.v20110303-51EoAkF77g8HBSc"/>
- <unit id="org.eclipse.wst.server_core.feature.feature.group" version="3.3.2.v20111026_1748-30FBd8s7355476Ia2859"/>
+ <unit id="org.eclipse.wst.server_core.feature.feature.group" version="3.3.2.v20111026_1748-30FBd8s7356386Ha256A"/>
<unit id="org.eclipse.wst.server_ui.feature.feature.group" version="3.3.2.v20111026_1748-7B79FBdAtJcez0ENNePJROIPmEH6A"/>
- <unit id="org.eclipse.wst.web_core.feature.feature.group" version="3.3.2.v201111030500-7E7EFMaAJun8av44z-PFIqjTeVfDSLfQK"/>
+ <unit id="org.eclipse.wst.web_core.feature.feature.group" version="3.3.2.v201111030500-7E7EFMcAJvn8cwU41JNIuz-RBwweMVrJ1"/>
<unit id="org.eclipse.wst.ws_ui.feature.feature.group" version="3.3.2.v201112142348-7I7AFg1EtEoVFjz-98J1iuhgBz-uuWblmZqMOnEL"/>
<unit id="org.eclipse.wst.xml_core.feature.feature.group" version="3.3.1.v201108102009-7C7OFeMF7RZHQNJtN8NuOe"/>
@@ -230,16 +230,16 @@
<unit id="org.eclipse.mylyn_feature.feature.group" version="3.6.4.v20111118-0100"/>
<unit id="org.eclipse.mylyn.ide_feature.feature.group" version="3.6.4.v20111118-0100"/>
<unit id="org.eclipse.mylyn.commons.feature.group" version="3.6.4.v20111118-0100"/>
- <unit id="org.eclipse.mylyn.context_feature.feature.group" version="3.6.4.v20111118-0100"/>
+ <unit id="org.eclipse.mylyn.context_feature.feature.group" version="3.6.5.I20120201-0822"/>
<unit id="org.eclipse.mylyn.bugzilla_feature.feature.group" version="3.6.4.v20111118-0100"/>
- <unit id="org.eclipse.mylyn.java_feature.feature.group" version="3.6.4.v20111118-0100"/>
- <unit id="org.eclipse.mylyn.pde_feature.feature.group" version="3.6.4.v20111118-0100"/>
- <unit id="org.eclipse.mylyn.team_feature.feature.group" version="3.6.4.v20111118-0100"/>
- <unit id="org.eclipse.mylyn.wikitext_feature.feature.group" version="1.5.4.v20111118-0100"/>
- <unit id="org.eclipse.mylyn.cvs.feature.group" version="0.8.4.v20111118-0100"/>
- <unit id="org.eclipse.mylyn.git.feature.group" version="0.8.4.v20111118-0100"/>
- <unit id="org.eclipse.mylyn.versions.feature.group" version="0.8.4.v20111118-0100"/>
- <unit id="org.eclipse.mylyn.tasks.ui" version="3.6.4.v20111117-0100"/>
+ <unit id="org.eclipse.mylyn.java_feature.feature.group" version="3.6.5.I20120201-0822"/>
+ <unit id="org.eclipse.mylyn.pde_feature.feature.group" version="3.6.5.I20120201-0822"/>
+ <unit id="org.eclipse.mylyn.team_feature.feature.group" version="3.6.5.I20120201-0822"/>
+ <unit id="org.eclipse.mylyn.wikitext_feature.feature.group" version="1.5.5.I20120201-0822"/>
+ <unit id="org.eclipse.mylyn.cvs.feature.group" version="0.8.5.I20120201-0822"/>
+ <unit id="org.eclipse.mylyn.git.feature.group" version="0.8.5.I20120201-0822"/>
+ <unit id="org.eclipse.mylyn.versions.feature.group" version="0.8.5.I20120201-0822"/>
+ <unit id="org.eclipse.mylyn.tasks.ui" version="3.6.5.v20111214-0100"/>
<unit id="org.eclipse.mylyn.tasks.core" version="3.6.0.v20110608-1400"/>
<unit id="org.eclipse.mylyn.tasks.bugs" version="3.6.1.v20110825-0100"/>
<unit id="com.atlassian.connector.commons" version="4.0.0.v20111010"/>
@@ -271,7 +271,7 @@
<unit id="org.eclipse.ui.ide" version="3.7.0.v20110928-1505"/>
<unit id="org.eclipse.ui.workbench.texteditor" version="3.7.0.v20110928-1504"/>
<unit id="org.eclipse.jface.text" version="3.7.2.v20111213-1208"/>
- <unit id="org.eclipse.osgi" version="3.7.2.v20111205-1537"/>
+ <unit id="org.eclipse.osgi" version="3.7.2.v20120110-1415"/>
<unit id="org.eclipse.core.filesystem" version="1.3.100.v20110423-0524"/>
<unit id="org.eclipse.ui.forms" version="3.5.101.v20111011-1919"/>
<unit id="org.eclipse.ui.editors" version="3.7.0.v20110928-1504"/>
@@ -290,7 +290,7 @@
<unit id="org.mortbay.jetty.util" version="6.1.23.v201012071420"/>
<unit id="org.apache.jasper" version="5.5.17.v201101211617"/>
<unit id="org.joda.time" version="1.6.0.v20081202-0100"/>
- <unit id="javax.servlet" version="3.0.0.v201103241727"/>
+ <unit id="javax.servlet" version="2.5.0.v201103041518"/>
<unit id="javax.servlet.jsp" version="2.0.0.v201101211617"/>
<unit id="javax.xml.rpc" version="1.1.0.v201005080400"/>
<unit id="javax.el" version="2.2.0.v201105051105"/>
Modified: trunk/build/target-platform/unified.target.p2mirror.xml
===================================================================
--- trunk/build/target-platform/unified.target.p2mirror.xml 2012-02-05 00:37:32 UTC (rev 38434)
+++ trunk/build/target-platform/unified.target.p2mirror.xml 2012-02-05 01:49:08 UTC (rev 38435)
@@ -111,7 +111,6 @@
<iu id="org.eclipse.equinox.server.servletbridge.feature.group" version=""/>
<iu id="org.eclipse.equinox.server.simple.feature.group" version=""/>
<iu id="org.eclipse.rcp.feature.group" version=""/>
-<iu id="org.eclipse.pde.api.tools.ee.fragments.feature.group" version=""/>
<iu id="org.eclipse.pde.feature.group" version=""/>
<iu id="org.eclipse.help.feature.group" version=""/>
<iu id="org.eclipse.datatools.modelbase.feature.feature.group" version=""/>
13 years, 8 months
JBoss Tools SVN: r38434 - trunk/download.jboss.org/jbosstools/examples.
by jbosstools-commits@lists.jboss.org
Author: snjeza
Date: 2012-02-04 19:37:32 -0500 (Sat, 04 Feb 2012)
New Revision: 38434
Removed:
trunk/download.jboss.org/jbosstools/examples/Copy of project-examples-category-jbds-3.3.xml
Log:
JBIDE-10658 find place where description for category should live
Deleted: trunk/download.jboss.org/jbosstools/examples/Copy of project-examples-category-jbds-3.3.xml
===================================================================
--- trunk/download.jboss.org/jbosstools/examples/Copy of project-examples-category-jbds-3.3.xml 2012-02-05 00:36:54 UTC (rev 38433)
+++ trunk/download.jboss.org/jbosstools/examples/Copy of project-examples-category-jbds-3.3.xml 2012-02-05 00:37:32 UTC (rev 38434)
@@ -1,11 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<categories>
-
- <category name="JBoss AS 7 Quickstarts"
- description="These quickstarts are aimed to get you up to writing applications with minimal fuss. We recommend that you work through the quickstarts in the order they are presented in this guide, however if you have previous experience with Java EE 6, you may wish to skip some or all of the quickstarts."
- priority="1" />
-
- <category name="Java EE 6 Quickstarts"
- priority="2" />
-
-</categories>
\ No newline at end of file
13 years, 8 months
JBoss Tools SVN: r38433 - in trunk/central/plugins/org.jboss.tools.central/src/org/jboss/tools/central: dialogs and 2 other directories.
by jbosstools-commits@lists.jboss.org
Author: snjeza
Date: 2012-02-04 19:36:54 -0500 (Sat, 04 Feb 2012)
New Revision: 38433
Modified:
trunk/central/plugins/org.jboss.tools.central/src/org/jboss/tools/central/JBossCentralActivator.java
trunk/central/plugins/org.jboss.tools.central/src/org/jboss/tools/central/dialogs/ProjectExamplesDialog.java
trunk/central/plugins/org.jboss.tools.central/src/org/jboss/tools/central/editors/FeedsToolTip.java
trunk/central/plugins/org.jboss.tools.central/src/org/jboss/tools/central/editors/GettingStartedPage.java
trunk/central/plugins/org.jboss.tools.central/src/org/jboss/tools/central/editors/JBossCentralEditor.java
trunk/central/plugins/org.jboss.tools.central/src/org/jboss/tools/central/jobs/RefreshTutorialsJob.java
Log:
JBIDE-10658 find place where description for category should live
Modified: trunk/central/plugins/org.jboss.tools.central/src/org/jboss/tools/central/JBossCentralActivator.java
===================================================================
--- trunk/central/plugins/org.jboss.tools.central/src/org/jboss/tools/central/JBossCentralActivator.java 2012-02-05 00:36:38 UTC (rev 38432)
+++ trunk/central/plugins/org.jboss.tools.central/src/org/jboss/tools/central/JBossCentralActivator.java 2012-02-05 00:36:54 UTC (rev 38433)
@@ -57,8 +57,8 @@
import org.jboss.tools.central.configurators.IJBossCentralConfigurator;
import org.jboss.tools.central.editors.JBossCentralEditor;
import org.jboss.tools.central.editors.JBossCentralEditorInput;
-import org.jboss.tools.project.examples.model.Category;
-import org.jboss.tools.project.examples.model.Project;
+import org.jboss.tools.project.examples.model.ProjectExampleCategory;
+import org.jboss.tools.project.examples.model.ProjectExample;
import org.osgi.framework.Bundle;
import org.osgi.framework.BundleContext;
import org.osgi.framework.ServiceReference;
@@ -132,7 +132,7 @@
private BundleContext bundleContext;
- private Map<Category, List<Project>> tutorialCategories;
+ private Map<ProjectExampleCategory, List<ProjectExample>> tutorialCategories;
public static final int MAX_FEEDS = 100;
@@ -413,7 +413,7 @@
return image;
}
- public String getDescription(Project project) {
+ public String getDescription(ProjectExample project) {
StringBuilder buffer = new StringBuilder();
if (project.getDescription() != null) {
buffer.append(project.getDescription());
Modified: trunk/central/plugins/org.jboss.tools.central/src/org/jboss/tools/central/dialogs/ProjectExamplesDialog.java
===================================================================
--- trunk/central/plugins/org.jboss.tools.central/src/org/jboss/tools/central/dialogs/ProjectExamplesDialog.java 2012-02-05 00:36:38 UTC (rev 38432)
+++ trunk/central/plugins/org.jboss.tools.central/src/org/jboss/tools/central/dialogs/ProjectExamplesDialog.java 2012-02-05 00:36:54 UTC (rev 38433)
@@ -64,7 +64,7 @@
import org.jboss.tools.central.actions.JBossRuntimeDetectionPreferencesHandler;
import org.jboss.tools.central.editors.DescriptionToolTip;
import org.jboss.tools.project.examples.ProjectExamplesActivator;
-import org.jboss.tools.project.examples.model.Project;
+import org.jboss.tools.project.examples.model.ProjectExample;
import org.jboss.tools.project.examples.model.ProjectFix;
import org.jboss.tools.runtime.core.RuntimeCoreActivator;
import org.jboss.tools.runtime.core.model.DownloadRuntime;
@@ -76,7 +76,7 @@
*/
public class ProjectExamplesDialog extends FormDialog implements IRunnableContext {
- private Project tutorial;
+ private ProjectExample tutorial;
private FormToolkit toolkit;
private ScrolledForm form;
private Composite fixesComposite;
@@ -85,7 +85,7 @@
private Control fLastControl;
private Set<Button> controls = new HashSet<Button>();
- public ProjectExamplesDialog(Shell parentShell, Project project) {
+ public ProjectExamplesDialog(Shell parentShell, ProjectExample project) {
super(parentShell);
setShellStyle(SWT.CLOSE | SWT.MAX | SWT.TITLE | SWT.BORDER
| SWT.RESIZE | getDefaultOrientation());
Modified: trunk/central/plugins/org.jboss.tools.central/src/org/jboss/tools/central/editors/FeedsToolTip.java
===================================================================
--- trunk/central/plugins/org.jboss.tools.central/src/org/jboss/tools/central/editors/FeedsToolTip.java 2012-02-05 00:36:38 UTC (rev 38432)
+++ trunk/central/plugins/org.jboss.tools.central/src/org/jboss/tools/central/editors/FeedsToolTip.java 2012-02-05 00:36:54 UTC (rev 38433)
@@ -63,15 +63,14 @@
GridData gd = new GridData(SWT.FILL, SWT.FILL, true, true);
parent.setLayoutData(gd);
- Browser browser1;
+ final Browser[] browser = new Browser[1];
try {
- browser1 = new Browser(parent, SWT.NONE);
+ browser[0] = new Browser(parent, SWT.NONE);
} catch (Exception e1) {
- browser1 = new Browser(parent, SWT.WEBKIT);
+ browser[0] = new Browser(parent, SWT.WEBKIT);
}
- final Browser browser = browser1;
- browser.setJavascriptEnabled(false);
- browser.addLocationListener(new LocationAdapter() {
+ browser[0].setJavascriptEnabled(false);
+ browser[0].addLocationListener(new LocationAdapter() {
@Override
public void changed(LocationEvent event) {
@@ -82,17 +81,17 @@
}
}
});
- browser.addOpenWindowListener(new OpenWindowListener() {
+ browser[0].addOpenWindowListener(new OpenWindowListener() {
public void open(WindowEvent event) {
event.required= true;
- event.browser = browser;
+ event.browser = browser[0];
}
});
gd = new GridData(SWT.FILL, SWT.FILL, true, true);
gd.heightHint = 150;
gd.widthHint = 400;
- browser.setLayoutData(gd);
- browser.setText(toolText);
+ browser[0].setLayoutData(gd);
+ browser[0].setText(toolText);
return parent;
}
Modified: trunk/central/plugins/org.jboss.tools.central/src/org/jboss/tools/central/editors/GettingStartedPage.java
===================================================================
--- trunk/central/plugins/org.jboss.tools.central/src/org/jboss/tools/central/editors/GettingStartedPage.java 2012-02-05 00:36:38 UTC (rev 38432)
+++ trunk/central/plugins/org.jboss.tools.central/src/org/jboss/tools/central/editors/GettingStartedPage.java 2012-02-05 00:36:54 UTC (rev 38433)
@@ -99,8 +99,8 @@
import org.jboss.tools.central.jobs.RefreshNewsJob;
import org.jboss.tools.central.jobs.RefreshTutorialsJob;
import org.jboss.tools.central.model.FeedsEntry;
-import org.jboss.tools.project.examples.model.Category;
-import org.jboss.tools.project.examples.model.Project;
+import org.jboss.tools.project.examples.model.ProjectExampleCategory;
+import org.jboss.tools.project.examples.model.ProjectExample;
import org.osgi.framework.Bundle;
/**
@@ -141,7 +141,7 @@
private Composite projectsComposite;
private Composite documentationComposite;
- private Set<Category> expandedCategories = new HashSet<Category>();
+ private Set<ProjectExampleCategory> expandedCategories = new HashSet<ProjectExampleCategory>();
private Section newsSection;
private ScrolledComposite newsScrollComposite;
private PageBook newsPageBook;
@@ -652,8 +652,8 @@
}
}
- private void displayTutorialLinks(final Collection<Project> tutorials, final Composite composite, boolean addTooltips) {
- for (final Project tutorial : tutorials) {
+ private void displayTutorialLinks(final Collection<ProjectExample> tutorials, final Composite composite, boolean addTooltips) {
+ for (final ProjectExample tutorial : tutorials) {
FormText tutorialText = toolkit.createFormText(composite, true);
configureTutorialText(tutorialText, tutorial);
if (addTooltips) {
@@ -870,7 +870,7 @@
showException(tutorialPageBook, tutorialsExceptionText, job.getException());
return;
}
- Map<Category, List<Project>> categories = job.getTutorialCategories();
+ Map<ProjectExampleCategory, List<ProjectExample>> categories = job.getTutorialCategories();
if (categories == null || categories.size() == 0) {
showNote(tutorialPageBook, tutorialsNoteText, tutorialScrollComposite);
return;
@@ -880,7 +880,7 @@
@Deprecated
//This method should be removed once the EE6 archetypes are wizardified
- private void updateNewProjects(List<Project> wizardProjects) {
+ private void updateNewProjects(List<ProjectExample> wizardProjects) {
if (!newProjectsInitialized) {
if (wizardProjects != null) {
newProjectsInitialized = true;
@@ -890,11 +890,11 @@
}
}
- private void showTutorials(Map<Category, List<Project>> categories) {
+ private void showTutorials(Map<ProjectExampleCategory, List<ProjectExample>> categories) {
disposeChildren(tutorialsComposite);
- List<Category> sortedCategories = new ArrayList<Category>(categories.keySet());
+ List<ProjectExampleCategory> sortedCategories = new ArrayList<ProjectExampleCategory>(categories.keySet());
Collections.sort(sortedCategories);
- for (final Category category : sortedCategories) {
+ for (final ProjectExampleCategory category : sortedCategories) {
int style = ExpandableComposite.TITLE_BAR|ExpandableComposite.TWISTIE;
if (expandedCategories.contains(category)) {
style|=ExpandableComposite.EXPANDED;
@@ -956,7 +956,7 @@
return categoryFont;
}
- private void hookTooltip(FormText tutorialText, Project tutorial) {
+ private void hookTooltip(FormText tutorialText, ProjectExample tutorial) {
final String description = JBossCentralActivator.getDefault().getDescription(tutorial);
if (description != null && !description.isEmpty()) {
ToolTip toolTip = new DescriptionToolTip(tutorialText, description);
@@ -964,7 +964,7 @@
}
}
- protected void configureTutorialText(FormText tutorialText, final Project tutorial) {
+ protected void configureTutorialText(FormText tutorialText, final ProjectExample tutorial) {
StringBuilder buffer = new StringBuilder();
buffer.append(JBossCentralActivator.FORM_START_TAG);
buffer.append("<img href=\"image\"/> ");
@@ -1160,16 +1160,15 @@
Point computedSize = tutorialPageBook.computeSize(SWT.DEFAULT, SWT.DEFAULT);
int y = computedSize.y;
- if (y > 200) {
- y = 200;
+ if (y > 100) {
+ y = 100;
}
tutorialScrollComposite.setMinSize(widthHint, y);
- //newsPageBook.layout(true, true);
- //blogsPageBook.layout(true, true);
+
recomputeScrollComposite(blogsScrollComposite, blogsPageBook);
recomputeScrollComposite(newsScrollComposite, newsPageBook);
- //form.redraw();
+
form.layout(true, true);
form.reflow(true);
@@ -1258,7 +1257,7 @@
//TEMPORARY HACK FOR JBIDE-10053 (Java EE6 archetypes in the project section)
//Should be removed once these archetype tutorials are changed to use wizards as per JBIDE-10264
RefreshTutorialsJob job = RefreshTutorialsJob.INSTANCE;
- List<Project> wizardProjects = job.getWizardProjects();
+ List<ProjectExample> wizardProjects = job.getWizardProjects();
if (wizardProjects != null){
updateNewProjects(wizardProjects);
}
Modified: trunk/central/plugins/org.jboss.tools.central/src/org/jboss/tools/central/editors/JBossCentralEditor.java
===================================================================
--- trunk/central/plugins/org.jboss.tools.central/src/org/jboss/tools/central/editors/JBossCentralEditor.java 2012-02-05 00:36:38 UTC (rev 38432)
+++ trunk/central/plugins/org.jboss.tools.central/src/org/jboss/tools/central/editors/JBossCentralEditor.java 2012-02-05 00:36:54 UTC (rev 38433)
@@ -162,21 +162,9 @@
ScrolledForm form = headerForm.getForm();
form.setText(JBOSS_CENTRAL);
form.setToolTipText(JBOSS_CENTRAL);
-
form.setImage(getHeaderImage());
getToolkit().decorateFormHeading(form.getForm());
- // Composite headerComposite =
- // getToolkit().createComposite(form.getForm().getHead(), SWT.NONE);
- // headerComposite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true,
- // false));
- // headerComposite.setLayout(new GridLayout(2, false));
- // headerComposite.setBackground(null);
- //
- // createSearchControl(headerComposite);
-
- // form.getForm().setHeadClient(headerComposite);
-
IToolBarManager toolbar = form.getToolBarManager();
ControlContribution searchControl = new ControlContribution("Search") {
@Override
Modified: trunk/central/plugins/org.jboss.tools.central/src/org/jboss/tools/central/jobs/RefreshTutorialsJob.java
===================================================================
--- trunk/central/plugins/org.jboss.tools.central/src/org/jboss/tools/central/jobs/RefreshTutorialsJob.java 2012-02-05 00:36:38 UTC (rev 38432)
+++ trunk/central/plugins/org.jboss.tools.central/src/org/jboss/tools/central/jobs/RefreshTutorialsJob.java 2012-02-05 00:36:54 UTC (rev 38433)
@@ -21,10 +21,10 @@
import org.eclipse.core.runtime.jobs.Job;
import org.jboss.tools.central.JBossCentralActivator;
import org.jboss.tools.project.examples.ProjectExamplesActivator;
-import org.jboss.tools.project.examples.model.Category;
-import org.jboss.tools.project.examples.model.Project;
+import org.jboss.tools.project.examples.model.ProjectExampleCategory;
+import org.jboss.tools.project.examples.model.ProjectExample;
import org.jboss.tools.project.examples.model.ProjectFix;
-import org.jboss.tools.project.examples.model.ProjectUtil;
+import org.jboss.tools.project.examples.model.ProjectExampleUtil;
/**
*
@@ -34,9 +34,9 @@
public class RefreshTutorialsJob extends Job {
private Exception exception;
- private Map<Category,List<Project>> tutorialCategories;
+ private Map<ProjectExampleCategory,List<ProjectExample>> tutorialCategories;
- private List<Project> wizardProjects;
+ private List<ProjectExample> wizardProjects;
public static RefreshTutorialsJob INSTANCE = new RefreshTutorialsJob();
@@ -50,16 +50,16 @@
if (monitor.isCanceled()) {
return Status.CANCEL_STATUS;
}
- List<Category> categories = ProjectUtil.getProjects(monitor);
- wizardProjects = ProjectUtil.getProjectsByTags(categories, "wizard");
- List<Project> tutorials = ProjectUtil.getProjectsByTags(categories, "central");
+ List<ProjectExampleCategory> categories = ProjectExampleUtil.getProjects(monitor);
+ wizardProjects = ProjectExampleUtil.getProjectsByTags(categories, "wizard");
+ List<ProjectExample> tutorials = ProjectExampleUtil.getProjectsByTags(categories, "central");
if (tutorialCategories == null) {
- tutorialCategories = new HashMap<Category, List<Project>>();
+ tutorialCategories = new HashMap<ProjectExampleCategory, List<ProjectExample>>();
} else {
tutorialCategories.clear();
}
- for (Project project : tutorials) {
+ for (ProjectExample project : tutorials) {
if (canBeImported(project)){
List<ProjectFix> unsatisfiedFixes = new ArrayList<ProjectFix>();
List<ProjectFix> fixes = project.getFixes();
@@ -69,10 +69,10 @@
unsatisfiedFixes.add(fix);
}
}
- Category category = project.getCategory();
- List<Project> projects = tutorialCategories.get(category);
+ ProjectExampleCategory category = project.getCategory();
+ List<ProjectExample> projects = tutorialCategories.get(category);
if (projects == null) {
- projects = new ArrayList<Project>();
+ projects = new ArrayList<ProjectExample>();
tutorialCategories.put(category, projects);
}
projects.add(project);
@@ -82,7 +82,7 @@
return Status.OK_STATUS;
}
- private boolean canBeImported(Project project) {
+ private boolean canBeImported(ProjectExample project) {
return ProjectExamplesActivator.getDefault()
.getImportProjectExample(project.getImportType()) != null;
}
@@ -95,11 +95,11 @@
this.exception = exception;
}
- public Map<Category,List<Project>> getTutorialCategories() {
+ public Map<ProjectExampleCategory,List<ProjectExample>> getTutorialCategories() {
return tutorialCategories;
}
- public List<Project> getWizardProjects() {
+ public List<ProjectExample> getWizardProjects() {
return wizardProjects;
}
13 years, 8 months
JBoss Tools SVN: r38432 - in trunk: download.jboss.org/jbosstools/examples and 13 other directories.
by jbosstools-commits@lists.jboss.org
Author: snjeza
Date: 2012-02-04 19:36:38 -0500 (Sat, 04 Feb 2012)
New Revision: 38432
Added:
trunk/download.jboss.org/jbosstools/examples/Copy of project-examples-category-jbds-3.3.xml
trunk/download.jboss.org/jbosstools/examples/project-examples-category-3....
trunk/download.jboss.org/jbosstools/examples/project-examples-category-jb...
trunk/download.jboss.org/jbosstools/examples/project-examples-category-jb...
trunk/examples/plugins/org.jboss.tools.project.examples/schema/categories.exsd
trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/model/ProjectExample.java
trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/model/ProjectExampleCategory.java
trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/model/ProjectExampleUtil.java
Removed:
trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/model/Category.java
trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/model/Project.java
trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/model/ProjectUtil.java
Modified:
trunk/central/tests/org.jboss.tools.central.test/src/org/jboss/tools/central/test/CentralTest.java
trunk/download.jboss.org/jbosstools/examples/project-examples-maven-3.3.xml
trunk/examples/plugins/org.jboss.tools.community.project.examples/plugin.xml
trunk/examples/plugins/org.jboss.tools.project.examples.cheatsheet/src/org/jboss/tools/project/examples/cheatsheet/actions/ImportProjectExample.java
trunk/examples/plugins/org.jboss.tools.project.examples.cheatsheet/src/org/jboss/tools/project/examples/cheatsheet/actions/RunProjectExample.java
trunk/examples/plugins/org.jboss.tools.project.examples/plugin.properties
trunk/examples/plugins/org.jboss.tools.project.examples/plugin.xml
trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/ProjectExamplesActivator.java
trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/dialog/FixDialog.java
trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/dialog/MarkerContentProvider.java
trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/dialog/MarkerDialog.java
trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/fixes/PluginFix.java
trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/fixes/ProjectExamplesFix.java
trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/fixes/SeamRuntimeFix.java
trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/fixes/WTPRuntimeFix.java
trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/model/AbstractImportProjectExample.java
trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/model/IImportProjectExample.java
trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/preferences/ProjectExamplesPreferencePage.java
trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/preferences/Sites.java
trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/wizard/ImportDefaultProjectExample.java
trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/wizard/NewProjectExamplesJob.java
trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/wizard/NewProjectExamplesWizard.java
trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/wizard/NewProjectExamplesWizardPage.java
trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/wizard/SiteFilter.java
trunk/examples/tests/org.jboss.tools.project.examples.test/src/org/jboss/tools/project/examples/test/ProjectTest.java
trunk/examples/tests/org.jboss.tools.project.examples.test/src/org/jboss/tools/project/examples/test/SiteTest.java
trunk/maven/plugins/org.jboss.tools.maven.project.examples/src/org/jboss/tools/maven/project/examples/ImportMavenArchetypeProjectExample.java
trunk/maven/plugins/org.jboss.tools.maven.project.examples/src/org/jboss/tools/maven/project/examples/ImportMavenProjectExample.java
trunk/maven/plugins/org.jboss.tools.maven.project.examples/src/org/jboss/tools/maven/project/examples/wizard/ArchetypeExamplesWizard.java
trunk/maven/plugins/org.jboss.tools.maven.project.examples/src/org/jboss/tools/maven/project/examples/wizard/ArchetypeExamplesWizardFirstPage.java
trunk/maven/plugins/org.jboss.tools.maven.project.examples/src/org/jboss/tools/maven/project/examples/wizard/ArchetypeExamplesWizardPage.java
Log:
JBIDE-10658 find place where description for category should live
Modified: trunk/central/tests/org.jboss.tools.central.test/src/org/jboss/tools/central/test/CentralTest.java
===================================================================
--- trunk/central/tests/org.jboss.tools.central.test/src/org/jboss/tools/central/test/CentralTest.java 2012-02-04 18:30:28 UTC (rev 38431)
+++ trunk/central/tests/org.jboss.tools.central.test/src/org/jboss/tools/central/test/CentralTest.java 2012-02-05 00:36:38 UTC (rev 38432)
@@ -32,8 +32,8 @@
import org.jboss.tools.central.jobs.RefreshNewsJob;
import org.jboss.tools.central.jobs.RefreshTutorialsJob;
import org.jboss.tools.central.model.FeedsEntry;
-import org.jboss.tools.project.examples.model.Category;
-import org.jboss.tools.project.examples.model.Project;
+import org.jboss.tools.project.examples.model.ProjectExampleCategory;
+import org.jboss.tools.project.examples.model.ProjectExample;
import org.jboss.tools.test.util.JobUtils;
import org.jboss.tools.test.util.xpl.EditorTestHelper;
import org.junit.AfterClass;
@@ -77,7 +77,7 @@
public void testTutorials() throws Exception {
Job.getJobManager().join(JBossCentralActivator.JBOSS_CENTRAL_FAMILY,
new NullProgressMonitor());
- Map<Category, List<Project>> categories = RefreshTutorialsJob.INSTANCE
+ Map<ProjectExampleCategory, List<ProjectExample>> categories = RefreshTutorialsJob.INSTANCE
.getTutorialCategories();
assertTrue("No one tutorial is found", categories.size() > 0);
}
Added: trunk/download.jboss.org/jbosstools/examples/Copy of project-examples-category-jbds-3.3.xml
===================================================================
--- trunk/download.jboss.org/jbosstools/examples/Copy of project-examples-category-jbds-3.3.xml (rev 0)
+++ trunk/download.jboss.org/jbosstools/examples/Copy of project-examples-category-jbds-3.3.xml 2012-02-05 00:36:38 UTC (rev 38432)
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<categories>
+
+ <category name="JBoss AS 7 Quickstarts"
+ description="These quickstarts are aimed to get you up to writing applications with minimal fuss. We recommend that you work through the quickstarts in the order they are presented in this guide, however if you have previous experience with Java EE 6, you may wish to skip some or all of the quickstarts."
+ priority="1" />
+
+ <category name="Java EE 6 Quickstarts"
+ priority="2" />
+
+</categories>
\ No newline at end of file
Added: trunk/download.jboss.org/jbosstools/examples/project-examples-category-3....
===================================================================
--- trunk/download.jboss.org/jbosstools/examples/project-examples-category-3.... (rev 0)
+++ trunk/download.jboss.org/jbosstools/examples/project-examples-category-3.... 2012-02-05 00:36:38 UTC (rev 38432)
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<categories>
+
+ <category name="JBoss Quickstarts"
+ description="These quickstarts are aimed to get you up to writing applications with minimal fuss. We recommend that you work through the quickstarts in the order they are presented in this guide, however if you have previous experience with Java EE 6, you may wish to skip some or all of the quickstarts."
+ priority="1" />
+
+ <category name="Java EE 6 Quickstarts"
+ priority="2" />
+
+</categories>
\ No newline at end of file
Added: trunk/download.jboss.org/jbosstools/examples/project-examples-category-jb...
===================================================================
--- trunk/download.jboss.org/jbosstools/examples/project-examples-category-jb... (rev 0)
+++ trunk/download.jboss.org/jbosstools/examples/project-examples-category-jb... 2012-02-05 00:36:38 UTC (rev 38432)
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<categories>
+
+</categories>
\ No newline at end of file
Added: trunk/download.jboss.org/jbosstools/examples/project-examples-category-jb...
===================================================================
--- trunk/download.jboss.org/jbosstools/examples/project-examples-category-jb... (rev 0)
+++ trunk/download.jboss.org/jbosstools/examples/project-examples-category-jb... 2012-02-05 00:36:38 UTC (rev 38432)
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<categories>
+
+</categories>
\ No newline at end of file
Modified: trunk/download.jboss.org/jbosstools/examples/project-examples-maven-3.3.xml
===================================================================
--- trunk/download.jboss.org/jbosstools/examples/project-examples-maven-3.3.xml 2012-02-04 18:30:28 UTC (rev 38431)
+++ trunk/download.jboss.org/jbosstools/examples/project-examples-maven-3.3.xml 2012-02-05 00:36:38 UTC (rev 38432)
@@ -41,6 +41,7 @@
<project>
<category>JBoss Quickstarts</category>
<name>helloworld</name>
+ <priority>1</priority>
<included-projects>jboss-as-helloworld</included-projects>
<shortDescription>Helloworld</shortDescription>
<description>
@@ -130,6 +131,7 @@
<project>
<category>JBoss Quickstarts</category>
<name>login</name>
+ <priority>2</priority>
<included-projects>jboss-as-login</included-projects>
<shortDescription>Login</shortDescription>
<description>
@@ -173,6 +175,7 @@
<project>
<category>JBoss Quickstarts</category>
<name>numberguess</name>
+ <priority>3</priority>
<included-projects>jboss-as-numberguess</included-projects>
<shortDescription>Numberguess</shortDescription>
<description>
@@ -216,6 +219,7 @@
<project>
<category>JBoss Quickstarts</category>
<name>kitchensink</name>
+ <priority>4</priority>
<included-projects>jboss-as-kitchensink</included-projects>
<shortDescription>Kitchensink</shortDescription>
<description>
@@ -259,6 +263,7 @@
<project>
<category>JBoss Quickstarts</category>
<name>poh5-helloworld</name>
+ <priority>5</priority>
<included-projects>poh5-helloworld</included-projects>
<shortDescription>HTML5</shortDescription>
<description>This example demonstrates the use of *CDI 1.0* and *JAX-RS* in *JBoss AS 7* using the Plain Old HTML5 (POH5) architecture.
Modified: trunk/examples/plugins/org.jboss.tools.community.project.examples/plugin.xml
===================================================================
--- trunk/examples/plugins/org.jboss.tools.community.project.examples/plugin.xml 2012-02-04 18:30:28 UTC (rev 38431)
+++ trunk/examples/plugins/org.jboss.tools.community.project.examples/plugin.xml 2012-02-05 00:36:38 UTC (rev 38432)
@@ -36,4 +36,10 @@
<url>http://download.jboss.org/jbosstools/examples/project-examples-maven-3.3.xml</url>
<experimental>false</experimental>
</extension>
+
+ <extension
+ point="org.jboss.tools.project.examples.categories"
+ name="Project Examples Categories">
+ <url>http://download.jboss.org/jbosstools/examples/project-examples-category-j...</url>
+ </extension>
</plugin>
Modified: trunk/examples/plugins/org.jboss.tools.project.examples/plugin.properties
===================================================================
--- trunk/examples/plugins/org.jboss.tools.project.examples/plugin.properties 2012-02-04 18:30:28 UTC (rev 38431)
+++ trunk/examples/plugins/org.jboss.tools.project.examples/plugin.properties 2012-02-05 00:36:38 UTC (rev 38432)
@@ -5,4 +5,5 @@
Project_Examples_wizard = Project Examples
Project_Examples_command =Project Examples...
ProjectExamples=Project Examples file
-Project_Examples = Project Examples
\ No newline at end of file
+Project_Examples = Project Examples
+ProjectExampleCategories = Project Examples categories
\ No newline at end of file
Modified: trunk/examples/plugins/org.jboss.tools.project.examples/plugin.xml
===================================================================
--- trunk/examples/plugins/org.jboss.tools.project.examples/plugin.xml 2012-02-04 18:30:28 UTC (rev 38431)
+++ trunk/examples/plugins/org.jboss.tools.project.examples/plugin.xml 2012-02-05 00:36:38 UTC (rev 38432)
@@ -2,6 +2,7 @@
<?eclipse version="3.2"?>
<plugin>
<extension-point id="projectExamplesXml" name="%ProjectExamples" schema="schema/projectExamplesXml.exsd"/>
+ <extension-point id="categories" name="%ProjectExampleCategories" schema="schema/categories.exsd"/>
<extension-point id="importProjectExamples" name="Import Project Examples" schema="schema/importProjectExample.exsd"/>
<extension point="org.eclipse.ui.newWizards">
@@ -75,5 +76,11 @@
<url>http://download.jboss.org/jbosstools/examples/project-examples-shared-3.3...</url>
<experimental>false</experimental>
</extension>
+
+ <extension
+ point="org.jboss.tools.project.examples.categories"
+ name="Project Examples Categories">
+ <url>http://download.jboss.org/jbosstools/examples/project-examples-category-3...</url>
+ </extension>
</plugin>
Added: trunk/examples/plugins/org.jboss.tools.project.examples/schema/categories.exsd
===================================================================
--- trunk/examples/plugins/org.jboss.tools.project.examples/schema/categories.exsd (rev 0)
+++ trunk/examples/plugins/org.jboss.tools.project.examples/schema/categories.exsd 2012-02-05 00:36:38 UTC (rev 38432)
@@ -0,0 +1,103 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!-- Schema file written by PDE -->
+<schema targetNamespace="org.jboss.tools.project.examples" xmlns="http://www.w3.org/2001/XMLSchema">
+<annotation>
+ <appInfo>
+ <meta.schema plugin="org.jboss.tools.project.examples" id="categories" name="Project Examples Categories"/>
+ </appInfo>
+ <documentation>
+ Adds a new Project Examples Category xml file
+ </documentation>
+ </annotation>
+
+ <element name="extension">
+ <annotation>
+ <appInfo>
+ <meta.element />
+ </appInfo>
+ </annotation>
+ <complexType>
+ <sequence>
+ <element ref="url"/>
+ </sequence>
+ <attribute name="point" type="string" use="required">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ </annotation>
+ </attribute>
+ <attribute name="id" type="string">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ </annotation>
+ </attribute>
+ <attribute name="name" type="string">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ <appInfo>
+ <meta.attribute translatable="true"/>
+ </appInfo>
+ </annotation>
+ </attribute>
+ </complexType>
+ </element>
+
+ <element name="url">
+ <complexType>
+ </complexType>
+ </element>
+
+ <annotation>
+ <appInfo>
+ <meta.section type="since"/>
+ </appInfo>
+ <documentation>
+ 3.0.0
+ </documentation>
+ </annotation>
+
+ <annotation>
+ <appInfo>
+ <meta.section type="examples"/>
+ </appInfo>
+ <documentation>
+ <extension
+ point="org.jboss.tools.project.examples.projectExamplesXml">
+ <url>file:/C:/test/projectExamples.xml</url>
+</extension>
+ </documentation>
+ </annotation>
+
+ <annotation>
+ <appInfo>
+ <meta.section type="apiinfo"/>
+ </appInfo>
+ <documentation>
+ [Enter API information here.]
+ </documentation>
+ </annotation>
+
+ <annotation>
+ <appInfo>
+ <meta.section type="implementation"/>
+ </appInfo>
+ <documentation>
+ [Enter information about supplied implementation of this extension point.]
+ </documentation>
+ </annotation>
+
+ <annotation>
+ <appInfo>
+ <meta.section type="copyright"/>
+ </appInfo>
+ <documentation>
+ JBoss by Red Hat
+ </documentation>
+ </annotation>
+
+</schema>
Modified: trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/ProjectExamplesActivator.java
===================================================================
--- trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/ProjectExamplesActivator.java 2012-02-04 18:30:28 UTC (rev 38431)
+++ trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/ProjectExamplesActivator.java 2012-02-05 00:36:38 UTC (rev 38432)
@@ -97,9 +97,9 @@
import org.jboss.tools.project.examples.fixes.SeamRuntimeFix;
import org.jboss.tools.project.examples.fixes.WTPRuntimeFix;
import org.jboss.tools.project.examples.model.IImportProjectExample;
-import org.jboss.tools.project.examples.model.Project;
+import org.jboss.tools.project.examples.model.ProjectExample;
import org.jboss.tools.project.examples.model.ProjectFix;
-import org.jboss.tools.project.examples.model.ProjectUtil;
+import org.jboss.tools.project.examples.model.ProjectExampleUtil;
import org.jboss.tools.project.examples.wizard.ImportDefaultProjectExample;
import org.jboss.tools.project.examples.wizard.NewProjectExamplesJob;
import org.osgi.framework.BundleContext;
@@ -216,9 +216,9 @@
return context;
}
- public static List<IMarker> getMarkers(List<Project> projects) {
+ public static List<IMarker> getMarkers(List<ProjectExample> projects) {
List<IMarker> markers = new ArrayList<IMarker>();
- for (Project project : projects) {
+ for (ProjectExample project : projects) {
try {
if (project.getIncludedProjects() == null) {
String projectName = project.getName();
@@ -255,7 +255,7 @@
return markers;
}
- public static IProject[] getEclipseProject(Project project,
+ public static IProject[] getEclipseProject(ProjectExample project,
ProjectFix fix) {
String pName = fix.getProperties().get(
ProjectFix.ECLIPSE_PROJECTS);
@@ -288,7 +288,7 @@
return projects.toArray(new IProject[0]);
}
- protected static String replace(String name, Project project) {
+ protected static String replace(String name, ProjectExample project) {
List<String> includedProjects = project.getIncludedProjects();
if (includedProjects != null) {
int i = 0;
@@ -341,7 +341,7 @@
}
}
- public static void fix(Project project, IProgressMonitor monitor) {
+ public static void fix(ProjectExample project, IProgressMonitor monitor) {
List<ProjectFix> fixes = project.getFixes();
for (ProjectFix fix:fixes) {
ProjectExamplesFix projectExamplesFix = ProjectExamplesFixFactory.getProjectFix(fix);
@@ -363,7 +363,7 @@
}
}
- public static boolean downloadProject(Project project, IProgressMonitor monitor) {
+ public static boolean downloadProject(ProjectExample project, IProgressMonitor monitor) {
if (project.isURLRequired()) {
String urlString = project.getUrl();
String name = project.getName();
@@ -374,7 +374,7 @@
ProjectExamplesActivator.log(e);
return false;
}
- File file = ProjectUtil.getProjectExamplesFile(url, name,
+ File file = ProjectExampleUtil.getProjectExamplesFile(url, name,
".zip", monitor); //$NON-NLS-1$
if (file == null) {
return false;
@@ -384,11 +384,11 @@
return true;
}
- public static void openWelcome(List<Project> projects) {
+ public static void openWelcome(List<ProjectExample> projects) {
if (projects == null) {
return;
}
- for(final Project project:projects) {
+ for(final ProjectExample project:projects) {
fixWelcome(project);
if (project.isWelcome()) {
String urlString = project.getWelcomeURL();
@@ -418,7 +418,7 @@
Display.getDefault().asyncExec(new Runnable() {
public void run() {
- if (ProjectUtil.CHEATSHEETS.equals(project.getType())) {
+ if (ProjectExampleUtil.CHEATSHEETS.equals(project.getType())) {
CheatSheetView view = ViewUtilities.showCheatSheetView();
if (view == null) {
return;
@@ -478,7 +478,7 @@
}
}
- private static void fixWelcome(Project project) {
+ private static void fixWelcome(ProjectExample project) {
if (project == null || project.isWelcome()) {
return;
}
@@ -486,7 +486,7 @@
}
- protected static void checkCheatsheet(Project project) {
+ protected static void checkCheatsheet(ProjectExample project) {
List<String> includedProjects = project.getIncludedProjects();
if (includedProjects == null || includedProjects.size() <= 0) {
return;
@@ -501,29 +501,29 @@
continue;
}
if (checkCheatsheet(project, eclipseProject, PERIOD_CHEATSHEET_XML,
- ProjectUtil.CHEATSHEETS)) {
+ ProjectExampleUtil.CHEATSHEETS)) {
return;
}
if (checkCheatsheet(project, eclipseProject, CHEATSHEET_XML,
- ProjectUtil.CHEATSHEETS)) {
+ ProjectExampleUtil.CHEATSHEETS)) {
return;
}
if (checkCheatsheet(project, eclipseProject, README_HTML,
- ProjectUtil.EDITOR)) {
+ ProjectExampleUtil.EDITOR)) {
return;
}
if (checkCheatsheet(project, eclipseProject, README_MD,
- ProjectUtil.EDITOR)) {
+ ProjectExampleUtil.EDITOR)) {
return;
}
if (checkCheatsheet(project, eclipseProject, README_TXT,
- ProjectUtil.EDITOR)) {
+ ProjectExampleUtil.EDITOR)) {
return;
}
}
}
- private static boolean checkCheatsheet(Project project,
+ private static boolean checkCheatsheet(ProjectExample project,
IProject eclipseProject, String path, String type) {
IResource cheatsheet = eclipseProject.findMember(path);
if (cheatsheet != null && cheatsheet.exists() && cheatsheet.getType() == IResource.FILE) {
@@ -602,7 +602,7 @@
}
}
- public static boolean canFix(Project project,ProjectFix fix) {
+ public static boolean canFix(ProjectExample project,ProjectFix fix) {
String type = fix.getType();
if (ProjectFix.PLUGIN_TYPE.equals(type)) {
return new PluginFix().canFix(project, fix);
@@ -619,7 +619,7 @@
return true;
}
- public static void updatePerspective(List<Project> projects) {
+ public static void updatePerspective(List<ProjectExample> projects) {
if (projects == null || projects.size() != 1) {
return;
}
@@ -816,7 +816,7 @@
page.setPerspective(persp);
}
- public static void showQuickFix(final List<Project> projects) {
+ public static void showQuickFix(final List<ProjectExample> projects) {
Display.getDefault().asyncExec(new Runnable() {
@@ -832,7 +832,7 @@
}
public static void importProjectExamples(
- final List<Project> selectedProjects, final boolean showQuickFix) {
+ final List<ProjectExample> selectedProjects, final boolean showQuickFix) {
final NewProjectExamplesJob workspaceJob = new NewProjectExamplesJob(
Messages.NewProjectExamplesWizard_Downloading, selectedProjects);
workspaceJob.setUser(true);
@@ -850,7 +850,7 @@
if (!workspaceJob.getResult().isOK()) {
return;
}
- List<Project> projects = workspaceJob.getProjects();
+ List<ProjectExample> projects = workspaceJob.getProjects();
try {
ProjectExamplesActivator.updatePerspective(projects);
ProjectExamplesActivator.waitForBuildAndValidation
Modified: trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/dialog/FixDialog.java
===================================================================
--- trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/dialog/FixDialog.java 2012-02-04 18:30:28 UTC (rev 38431)
+++ trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/dialog/FixDialog.java 2012-02-05 00:36:38 UTC (rev 38432)
@@ -40,7 +40,7 @@
import org.eclipse.swt.widgets.TableColumn;
import org.eclipse.swt.widgets.Text;
import org.jboss.tools.project.examples.Messages;
-import org.jboss.tools.project.examples.model.Project;
+import org.jboss.tools.project.examples.model.ProjectExample;
import org.jboss.tools.project.examples.model.ProjectFix;
import org.jboss.tools.project.examples.wizard.NewProjectExamplesWizardPage;
@@ -72,8 +72,8 @@
fixes = new ArrayList<ProjectFix>();
while (iterator.hasNext()) {
Object object = iterator.next();
- if (object instanceof Project) {
- Project project = (Project) object;
+ if (object instanceof ProjectExample) {
+ ProjectExample project = (ProjectExample) object;
fixes.addAll(project.getUnsatisfiedFixes());
}
Modified: trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/dialog/MarkerContentProvider.java
===================================================================
--- trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/dialog/MarkerContentProvider.java 2012-02-04 18:30:28 UTC (rev 38431)
+++ trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/dialog/MarkerContentProvider.java 2012-02-05 00:36:38 UTC (rev 38432)
@@ -16,7 +16,7 @@
import org.eclipse.jface.viewers.IStructuredContentProvider;
import org.eclipse.jface.viewers.Viewer;
import org.jboss.tools.project.examples.ProjectExamplesActivator;
-import org.jboss.tools.project.examples.model.Project;
+import org.jboss.tools.project.examples.model.ProjectExample;
/**
* @author snjeza
@@ -24,9 +24,9 @@
*/
public class MarkerContentProvider implements IStructuredContentProvider {
- private List<Project> projects;
+ private List<ProjectExample> projects;
- public MarkerContentProvider(List<Project> projects) {
+ public MarkerContentProvider(List<ProjectExample> projects) {
this.projects = projects;
}
Modified: trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/dialog/MarkerDialog.java
===================================================================
--- trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/dialog/MarkerDialog.java 2012-02-04 18:30:28 UTC (rev 38431)
+++ trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/dialog/MarkerDialog.java 2012-02-05 00:36:38 UTC (rev 38432)
@@ -69,7 +69,7 @@
import org.jboss.tools.project.examples.Messages;
import org.jboss.tools.project.examples.ProjectExamplesActivator;
import org.jboss.tools.project.examples.dialog.xpl.QuickFixWizard;
-import org.jboss.tools.project.examples.model.Project;
+import org.jboss.tools.project.examples.model.ProjectExample;
/**
* @author snjeza
@@ -79,7 +79,7 @@
private static final String QUICK_FIX = Messages.MarkerDialog_Quick_Fix;
private static final IMarkerResolution[] EMPTY_ARRAY = new IMarkerResolution[0];
- private List<Project> projects;
+ private List<ProjectExample> projects;
private Image _dlgTitleImage;
private Button quickFixButton;
private Button finishButton;
@@ -100,7 +100,7 @@
}
- public MarkerDialog(Shell parentShell, List<Project> projects) {
+ public MarkerDialog(Shell parentShell, List<ProjectExample> projects) {
super(parentShell);
this.projects = projects;
setShellStyle(SWT.CLOSE | SWT.MAX | SWT.TITLE | SWT.BORDER
@@ -222,7 +222,7 @@
try {
quickFixButton.setSelection(false);
openQuickFixWizard(selected);
- for (Project project : projects) {
+ for (ProjectExample project : projects) {
if (project.getIncludedProjects() == null) {
buildProject(project.getName());
} else {
Modified: trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/fixes/PluginFix.java
===================================================================
--- trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/fixes/PluginFix.java 2012-02-04 18:30:28 UTC (rev 38431)
+++ trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/fixes/PluginFix.java 2012-02-05 00:36:38 UTC (rev 38432)
@@ -15,7 +15,7 @@
import org.eclipse.osgi.util.NLS;
import org.jboss.tools.project.examples.Messages;
import org.jboss.tools.project.examples.ProjectExamplesActivator;
-import org.jboss.tools.project.examples.model.Project;
+import org.jboss.tools.project.examples.model.ProjectExample;
import org.jboss.tools.project.examples.model.ProjectFix;
import org.osgi.framework.Bundle;
@@ -26,7 +26,7 @@
*/
public class PluginFix implements ProjectExamplesFix {
- public boolean canFix(Project project, ProjectFix fix) {
+ public boolean canFix(ProjectExample project, ProjectFix fix) {
if (!ProjectFix.PLUGIN_TYPE.equals(fix.getType())) {
return false;
}
@@ -39,7 +39,7 @@
return bundle != null;
}
- public boolean fix(Project project, ProjectFix fix,
+ public boolean fix(ProjectExample project, ProjectFix fix,
IProgressMonitor monitor) {
// can't be fixed
return false;
Modified: trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/fixes/ProjectExamplesFix.java
===================================================================
--- trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/fixes/ProjectExamplesFix.java 2012-02-04 18:30:28 UTC (rev 38431)
+++ trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/fixes/ProjectExamplesFix.java 2012-02-05 00:36:38 UTC (rev 38432)
@@ -11,7 +11,7 @@
package org.jboss.tools.project.examples.fixes;
import org.eclipse.core.runtime.IProgressMonitor;
-import org.jboss.tools.project.examples.model.Project;
+import org.jboss.tools.project.examples.model.ProjectExample;
import org.jboss.tools.project.examples.model.ProjectFix;
/**
@@ -21,6 +21,6 @@
*/
public interface ProjectExamplesFix {
- boolean canFix(Project project, ProjectFix fix);
- boolean fix(Project project, ProjectFix fix, IProgressMonitor monitor);
+ boolean canFix(ProjectExample project, ProjectFix fix);
+ boolean fix(ProjectExample project, ProjectFix fix, IProgressMonitor monitor);
}
Modified: trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/fixes/SeamRuntimeFix.java
===================================================================
--- trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/fixes/SeamRuntimeFix.java 2012-02-04 18:30:28 UTC (rev 38431)
+++ trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/fixes/SeamRuntimeFix.java 2012-02-05 00:36:38 UTC (rev 38432)
@@ -18,7 +18,7 @@
import org.eclipse.osgi.util.NLS;
import org.jboss.tools.project.examples.Messages;
import org.jboss.tools.project.examples.ProjectExamplesActivator;
-import org.jboss.tools.project.examples.model.Project;
+import org.jboss.tools.project.examples.model.ProjectExample;
import org.jboss.tools.project.examples.model.ProjectFix;
import org.jboss.tools.seam.core.SeamCorePlugin;
import org.jboss.tools.seam.core.project.facet.SeamRuntime;
@@ -33,14 +33,14 @@
*/
public class SeamRuntimeFix implements ProjectExamplesFix {
- public boolean canFix(Project project, ProjectFix fix) {
+ public boolean canFix(ProjectExample project, ProjectFix fix) {
if (!ProjectFix.SEAM_RUNTIME.equals(fix.getType())) {
return false;
}
return getBestRuntime(project, fix) != null;
}
- private SeamRuntime getBestRuntime(Project project, ProjectFix fix) {
+ private SeamRuntime getBestRuntime(ProjectExample project, ProjectFix fix) {
String allowedVersions = fix.getProperties().get(ProjectFix.ALLOWED_VERSIONS);
if (allowedVersions == null) {
ProjectExamplesActivator.log(NLS.bind(Messages.SeamRuntimeFix_Invalid_seam_runtime_fix, project.getName()));
@@ -69,7 +69,7 @@
return null;
}
- public boolean fix(Project project, ProjectFix fix,
+ public boolean fix(ProjectExample project, ProjectFix fix,
IProgressMonitor monitor) {
if (!canFix(project, fix)) {
return false;
@@ -88,7 +88,7 @@
return ret;
}
- private boolean fix(Project project, ProjectFix fix,
+ private boolean fix(ProjectExample project, ProjectFix fix,
IProject eclipseProject) {
IEclipsePreferences prefs = SeamCorePlugin.getSeamPreferences(eclipseProject);
String seamRuntimeName = prefs.get(ISeamFacetDataModelProperties.SEAM_RUNTIME_NAME, null);
Modified: trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/fixes/WTPRuntimeFix.java
===================================================================
--- trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/fixes/WTPRuntimeFix.java 2012-02-04 18:30:28 UTC (rev 38431)
+++ trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/fixes/WTPRuntimeFix.java 2012-02-05 00:36:38 UTC (rev 38432)
@@ -44,7 +44,7 @@
import org.jboss.tools.portlet.core.internal.PortletRuntimeComponentProvider;
import org.jboss.tools.project.examples.Messages;
import org.jboss.tools.project.examples.ProjectExamplesActivator;
-import org.jboss.tools.project.examples.model.Project;
+import org.jboss.tools.project.examples.model.ProjectExample;
import org.jboss.tools.project.examples.model.ProjectFix;
/**
@@ -65,14 +65,14 @@
private static final String REQUIRED_COMPONENTS = "required-components"; //$NON-NLS-1$
private static final IPath ESB_SERVER_SUPPLIED_CONTAINER_PATH = new Path("org.jboss.esb.runtime.classpath/server.supplied"); //$NON-NLS-1$
- public boolean canFix(Project project, ProjectFix fix) {
+ public boolean canFix(ProjectExample project, ProjectFix fix) {
if (!ProjectFix.WTP_RUNTIME.equals(fix.getType())) {
return false;
}
return getBestRuntime(project, fix) != null;
}
- public boolean fix(Project project, ProjectFix fix,
+ public boolean fix(ProjectExample project, ProjectFix fix,
IProgressMonitor monitor) {
if (!canFix(project, fix)) {
return false;
@@ -114,7 +114,7 @@
return ret;
}
- private void fixNonFacetedEsbProject(Project project, ProjectFix fix,
+ private void fixNonFacetedEsbProject(ProjectExample project, ProjectFix fix,
IProject eclipseProject) throws JavaModelException {
IRuntime runtime = getBestRuntime(project, fix);
if (runtime != null) {
@@ -176,7 +176,7 @@
}
}
- private IRuntime getBestRuntime(Project project, ProjectFix fix) {
+ private IRuntime getBestRuntime(ProjectExample project, ProjectFix fix) {
String allowedTypes = fix.getProperties().get(
ProjectFix.ALLOWED_TYPES);
if (allowedTypes == null) {
Modified: trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/model/AbstractImportProjectExample.java
===================================================================
--- trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/model/AbstractImportProjectExample.java 2012-02-04 18:30:28 UTC (rev 38431)
+++ trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/model/AbstractImportProjectExample.java 2012-02-05 00:36:38 UTC (rev 38432)
@@ -45,7 +45,7 @@
}
@Override
- public void fix(Project project, IProgressMonitor monitor) {
+ public void fix(ProjectExample project, IProgressMonitor monitor) {
ProjectExamplesActivator.fix(project, monitor);
}
Deleted: trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/model/Category.java
===================================================================
--- trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/model/Category.java 2012-02-04 18:30:28 UTC (rev 38431)
+++ trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/model/Category.java 2012-02-05 00:36:38 UTC (rev 38432)
@@ -1,121 +0,0 @@
-/*************************************************************************************
- * Copyright (c) 2008-2011 Red Hat, Inc. and others.
- * All rights reserved. This program and the accompanying materials
- * are 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:
- * JBoss by Red Hat - Initial implementation.
- ************************************************************************************/
-package org.jboss.tools.project.examples.model;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.jboss.tools.project.examples.Messages;
-
-/**
- * @author snjeza
- *
- */
-public class Category implements ProjectModelElement, Comparable<Category> {
-
- private String name;
- private List<Project> projects = new ArrayList<Project>();
- private IProjectExampleSite site;
- public static Category OTHER = new Category(Messages.Category_Other);
-
- public Category(String name) {
- super();
- this.name = name;
- }
-
- public String getName() {
- return name;
- }
-
- public void setName(String name) {
- this.name = name;
- }
-
- public List<Project> getProjects() {
- return projects;
- }
-
- public void setProjects(List<Project> projects) {
- this.projects = projects;
- }
-
- public String getDescription() {
- return getName();
- }
-
- public String getShortDescription() {
- return getName();
- }
-
- public IProjectExampleSite getSite() {
- return site;
- }
-
- @Override
- public void setSite(IProjectExampleSite site) {
- this.site = site;
- }
-
- @Override
- public int hashCode() {
- final int prime = 31;
- int result = 1;
- result = prime * result + ((name == null) ? 0 : name.hashCode());
- result = prime * result + ((site == null) ? 0 : site.hashCode());
- return result;
- }
-
- @Override
- public boolean equals(Object obj) {
- if (this == obj)
- return true;
- if (obj == null)
- return false;
- if (getClass() != obj.getClass())
- return false;
- Category other = (Category) obj;
- if (name == null) {
- if (other.name != null)
- return false;
- } else if (!name.equals(other.name))
- return false;
- if (site == null) {
- if (other.site != null)
- return false;
- } else if (!site.equals(other.site))
- return false;
- return true;
- }
-
- @Override
- public String toString() {
- return getName();
- }
-
- @Override
- public int compareTo(Category o) {
- if (o == null) {
- return 1;
- }
- //TODO use priorities
- String otherName = o.getName();
- if (name == otherName) {
- return 0;
- }
- if (name == null) {
- return -1;
- }
- if (otherName == null) {
- return 1;
- }
- return name.compareTo(otherName);
- }
-}
Modified: trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/model/IImportProjectExample.java
===================================================================
--- trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/model/IImportProjectExample.java 2012-02-04 18:30:28 UTC (rev 38431)
+++ trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/model/IImportProjectExample.java 2012-02-05 00:36:38 UTC (rev 38432)
@@ -22,10 +22,10 @@
*/
public interface IImportProjectExample {
- boolean importProject(Project projectDescription, File file,
+ boolean importProject(ProjectExample projectDescription, File file,
IProgressMonitor monitor) throws Exception;
- void fix(Project project, IProgressMonitor monitor);
+ void fix(ProjectExample project, IProgressMonitor monitor);
void setName(String name);
Deleted: trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/model/Project.java
===================================================================
--- trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/model/Project.java 2012-02-04 18:30:28 UTC (rev 38431)
+++ trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/model/Project.java 2012-02-05 00:36:38 UTC (rev 38432)
@@ -1,304 +0,0 @@
-/*************************************************************************************
- * Copyright (c) 2008-2011 Red Hat, Inc. and others.
- * All rights reserved. This program and the accompanying materials
- * are 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:
- * JBoss by Red Hat - Initial implementation.
- ************************************************************************************/
-package org.jboss.tools.project.examples.model;
-
-import java.io.File;
-import java.math.BigDecimal;
-import java.net.URL;
-import java.util.ArrayList;
-import java.util.HashSet;
-import java.util.List;
-import java.util.Set;
-
-import org.jboss.tools.project.examples.ProjectExamplesActivator;
-
-/**
- * @author snjeza
- *
- */
-public class Project implements ProjectModelElement {
-
- private static final String SEP = "/"; //$NON-NLS-1$
- private static String[] PREFIXES = { "file:" , "http:", "https:" , "ftp:" }; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
- private String name;
- private String shortDescription;
- private String description;
- private String url;
- private long size;
- private Category category;
- private List<String> includedProjects;
- private boolean welcome;
- private String type;
- private String welcomeURL;
- private List<ProjectFix> fixes = new ArrayList<ProjectFix>();
- private List<ProjectFix> unsatisfiedFixes;
- private String perspectiveId;
- private String importType;
- private String importTypeDescription;
- private ArchetypeModel archetypeModel = new ArchetypeModel();
- private File file;
- private IProjectExampleSite site;
- private String defaultProfiles =""; //$NON-NLS-1$
- private Set<String> tags;
- private String iconPath;
-
- public Project() {
- name=""; //$NON-NLS-1$
- shortDescription=""; //$NON-NLS-1$
- description=""; //$NON-NLS-1$
- url=""; //$NON-NLS-1$
- welcome=false;
- perspectiveId = null;
- importType = null;
- setCategory(Category.OTHER);
- }
-
- public String getName() {
- return name;
- }
-
- public void setName(String name) {
- this.name = name;
- }
-
- public String getShortDescription() {
- return shortDescription;
- }
-
- public void setShortDescription(String shortDescription) {
- this.shortDescription = shortDescription;
- }
-
- public String getDescription() {
- return description;
- }
-
- public void setDescription(String description) {
- this.description = description;
- }
-
- public String getUrl() {
- if (url == null) {
- return url;
- }
- url = url.trim();
- for (String prefix:PREFIXES) {
- if (url.startsWith(prefix)) {
- return url;
- }
- }
- if (site == null) {
- return url;
- }
- URL siteURL = site.getUrl();
- if (siteURL == null) {
- return url;
- }
- String urlString = siteURL.toString();
- if (urlString.endsWith(SEP)) {
- urlString = urlString.substring(0, urlString.length() - 1);
- } else {
- int index = urlString.lastIndexOf(SEP);
- if (index > 0) {
- urlString = urlString.substring(0, index);
- }
- }
- if (url.startsWith(SEP)) {
- return urlString + url;
- }
- return urlString + SEP + url;
- }
-
- public void setUrl(String url) {
- this.url = url;
- }
-
- public long getSize() {
- return size;
- }
-
- public void setSize(long size) {
- this.size = size;
- }
-
- public Category getCategory() {
- return category;
- }
-
- public void setCategory(Category category) {
- this.category = category;
- }
-
- public String getSizeAsText() {
- String sizeString = ""; //$NON-NLS-1$
- BigDecimal sizeDecimal = new BigDecimal(size);
- BigDecimal MB = new BigDecimal(1024*1024);
- BigDecimal KB = new BigDecimal(1024);
- if (sizeDecimal.compareTo(MB) > 0) {
- sizeString = String.format("%5.2fM", sizeDecimal.divide(MB)); //$NON-NLS-1$
- } else if (sizeDecimal.compareTo(KB) > 0) {
- sizeString = String.format("%5.2fK", sizeDecimal.divide(KB)); //$NON-NLS-1$
- } else {
- sizeString = String.format("%d", size); //$NON-NLS-1$
- }
- return sizeString;
- }
-
- public List<String> getIncludedProjects() {
- return includedProjects;
- }
-
- public void setIncludedProjects(List<String> includedProjects) {
- this.includedProjects = includedProjects;
- }
-
- public boolean isWelcome() {
- return welcome;
- }
-
- public void setWelcome(boolean welcome) {
- this.welcome = welcome;
- }
-
- public String getType() {
- return type;
- }
-
- public void setType(String type) {
- this.type = type;
- }
-
- public String getWelcomeURL() {
- return welcomeURL;
- }
-
- public void setWelcomeURL(String welcomeURL) {
- this.welcomeURL = welcomeURL;
- }
-
- public IProjectExampleSite getSite() {
- /*if (site == null) {
- if (getUrl().startsWith("http://anonsvn.jboss.org")) { //$NON-NLS-1$
- site = Messages.Project_JBoss_Tools_Team_from_jboss_org;
- } else if (getUrl().startsWith("file:")) { //$NON-NLS-1$
- site = Messages.Project_Local;
- } else {
- site = Messages.Project_Unknown;
- }
- }*/
- return site;
- }
-
- public void setSite(IProjectExampleSite site) {
- this.site = site;
- }
-
- public List<ProjectFix> getFixes() {
- return fixes;
- }
-
- public void setFixes(List<ProjectFix> fixes) {
- this.fixes = fixes;
- }
-
- public List<ProjectFix> getUnsatisfiedFixes() {
- return unsatisfiedFixes;
- }
-
- public void setUnsatisfiedFixes(List<ProjectFix> unsatisfiedFixes) {
- this.unsatisfiedFixes = unsatisfiedFixes;
- }
-
- public String getPerspectiveId() {
- return perspectiveId;
- }
-
- public void setPerspectiveId(String perspectiveId) {
- this.perspectiveId = perspectiveId;
- }
-
- public String getImportType() {
- return importType;
- }
-
- public void setImportType(String importType) {
- this.importType = importType;
- }
-
- public String getImportTypeDescription() {
- return importTypeDescription;
- }
-
- public void setImportTypeDescription(String importTypeDescription) {
- this.importTypeDescription = importTypeDescription;
- }
-
- public ArchetypeModel getArchetypeModel() {
- return archetypeModel;
- }
-
- public boolean isURLRequired() {
- return !ProjectExamplesActivator.MAVEN_ARCHETYPE.equals(importType);
- }
-
- public File getFile() {
- return file;
- }
-
- public void setFile(File file) {
- this.file = file;
- }
-
- public String getDefaultProfiles() {
- return defaultProfiles;
- }
-
- public void setDefaultProfiles(String defaultProfiles) {
- this.defaultProfiles = defaultProfiles;
- }
-
- @Override
- public String toString() {
- return getName();
- }
-
- public void setTags(Set<String> tags) {
- this.tags = tags;
- }
-
- public Set<String> getTags() {
- if (tags == null) {
- tags = new HashSet<String>();
- }
- return tags;
- }
-
- public boolean hasTags(String ... tags) {
- if (!getTags().isEmpty()
- && tags != null && tags.length > 0) {
- for (String tag : tags) {
- if (!getTags().contains(tag)) {
- return false;
- }
- }
- return true;
- }
- return false;
- }
-
- public void setIconPath(String path) {
- this.iconPath = path;
- }
-
- public String getIconPath() {
- return iconPath;
- }
-}
Copied: trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/model/ProjectExample.java (from rev 37935, trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/model/Project.java)
===================================================================
--- trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/model/ProjectExample.java (rev 0)
+++ trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/model/ProjectExample.java 2012-02-05 00:36:38 UTC (rev 38432)
@@ -0,0 +1,337 @@
+/*************************************************************************************
+ * Copyright (c) 2008-2011 Red Hat, Inc. and others.
+ * All rights reserved. This program and the accompanying materials
+ * are 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:
+ * JBoss by Red Hat - Initial implementation.
+ ************************************************************************************/
+package org.jboss.tools.project.examples.model;
+
+import java.io.File;
+import java.math.BigDecimal;
+import java.net.URL;
+import java.util.ArrayList;
+import java.util.HashSet;
+import java.util.List;
+import java.util.Set;
+
+import org.jboss.tools.project.examples.ProjectExamplesActivator;
+
+/**
+ * @author snjeza
+ *
+ */
+public class ProjectExample implements ProjectModelElement,
+ Comparable<ProjectExample> {
+
+ private static final String SEP = "/"; //$NON-NLS-1$
+ private static String[] PREFIXES = { "file:", "http:", "https:", "ftp:" }; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
+ private String name;
+ private String shortDescription;
+ private String description;
+ private String url;
+ private long size;
+ private ProjectExampleCategory category;
+ private List<String> includedProjects;
+ private boolean welcome;
+ private String type;
+ private String welcomeURL;
+ private List<ProjectFix> fixes = new ArrayList<ProjectFix>();
+ private List<ProjectFix> unsatisfiedFixes;
+ private String perspectiveId;
+ private String importType;
+ private String importTypeDescription;
+ private ArchetypeModel archetypeModel = new ArchetypeModel();
+ private File file;
+ private IProjectExampleSite site;
+ private String defaultProfiles = ""; //$NON-NLS-1$
+ private int priority;
+ private Set<String> tags;
+ private String iconPath;
+
+ public ProjectExample() {
+ name = ""; //$NON-NLS-1$
+ shortDescription = ""; //$NON-NLS-1$
+ description = ""; //$NON-NLS-1$
+ url = ""; //$NON-NLS-1$
+ welcome = false;
+ perspectiveId = null;
+ importType = null;
+ setCategory(ProjectExampleCategory.OTHER);
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public String getShortDescription() {
+ return shortDescription;
+ }
+
+ public void setShortDescription(String shortDescription) {
+ this.shortDescription = shortDescription;
+ }
+
+ public String getDescription() {
+ return description;
+ }
+
+ public void setDescription(String description) {
+ this.description = description;
+ }
+
+ public String getUrl() {
+ if (url == null) {
+ return url;
+ }
+ url = url.trim();
+ for (String prefix : PREFIXES) {
+ if (url.startsWith(prefix)) {
+ return url;
+ }
+ }
+ if (site == null) {
+ return url;
+ }
+ URL siteURL = site.getUrl();
+ if (siteURL == null) {
+ return url;
+ }
+ String urlString = siteURL.toString();
+ if (urlString.endsWith(SEP)) {
+ urlString = urlString.substring(0, urlString.length() - 1);
+ } else {
+ int index = urlString.lastIndexOf(SEP);
+ if (index > 0) {
+ urlString = urlString.substring(0, index);
+ }
+ }
+ if (url.startsWith(SEP)) {
+ return urlString + url;
+ }
+ return urlString + SEP + url;
+ }
+
+ public void setUrl(String url) {
+ this.url = url;
+ }
+
+ public long getSize() {
+ return size;
+ }
+
+ public void setSize(long size) {
+ this.size = size;
+ }
+
+ public ProjectExampleCategory getCategory() {
+ return category;
+ }
+
+ public void setCategory(ProjectExampleCategory category) {
+ this.category = category;
+ }
+
+ public String getSizeAsText() {
+ String sizeString = ""; //$NON-NLS-1$
+ BigDecimal sizeDecimal = new BigDecimal(size);
+ BigDecimal MB = new BigDecimal(1024 * 1024);
+ BigDecimal KB = new BigDecimal(1024);
+ if (sizeDecimal.compareTo(MB) > 0) {
+ sizeString = String.format("%5.2fM", sizeDecimal.divide(MB)); //$NON-NLS-1$
+ } else if (sizeDecimal.compareTo(KB) > 0) {
+ sizeString = String.format("%5.2fK", sizeDecimal.divide(KB)); //$NON-NLS-1$
+ } else {
+ sizeString = String.format("%d", size); //$NON-NLS-1$
+ }
+ return sizeString;
+ }
+
+ public List<String> getIncludedProjects() {
+ return includedProjects;
+ }
+
+ public void setIncludedProjects(List<String> includedProjects) {
+ this.includedProjects = includedProjects;
+ }
+
+ public boolean isWelcome() {
+ return welcome;
+ }
+
+ public void setWelcome(boolean welcome) {
+ this.welcome = welcome;
+ }
+
+ public String getType() {
+ return type;
+ }
+
+ public void setType(String type) {
+ this.type = type;
+ }
+
+ public String getWelcomeURL() {
+ return welcomeURL;
+ }
+
+ public void setWelcomeURL(String welcomeURL) {
+ this.welcomeURL = welcomeURL;
+ }
+
+ public IProjectExampleSite getSite() {
+ /*
+ * if (site == null) { if
+ * (getUrl().startsWith("http://anonsvn.jboss.org")) { //$NON-NLS-1$
+ * site = Messages.Project_JBoss_Tools_Team_from_jboss_org; } else if
+ * (getUrl().startsWith("file:")) { //$NON-NLS-1$ site =
+ * Messages.Project_Local; } else { site = Messages.Project_Unknown; } }
+ */
+ return site;
+ }
+
+ public void setSite(IProjectExampleSite site) {
+ this.site = site;
+ }
+
+ public List<ProjectFix> getFixes() {
+ return fixes;
+ }
+
+ public void setFixes(List<ProjectFix> fixes) {
+ this.fixes = fixes;
+ }
+
+ public List<ProjectFix> getUnsatisfiedFixes() {
+ return unsatisfiedFixes;
+ }
+
+ public void setUnsatisfiedFixes(List<ProjectFix> unsatisfiedFixes) {
+ this.unsatisfiedFixes = unsatisfiedFixes;
+ }
+
+ public String getPerspectiveId() {
+ return perspectiveId;
+ }
+
+ public void setPerspectiveId(String perspectiveId) {
+ this.perspectiveId = perspectiveId;
+ }
+
+ public String getImportType() {
+ return importType;
+ }
+
+ public void setImportType(String importType) {
+ this.importType = importType;
+ }
+
+ public String getImportTypeDescription() {
+ return importTypeDescription;
+ }
+
+ public void setImportTypeDescription(String importTypeDescription) {
+ this.importTypeDescription = importTypeDescription;
+ }
+
+ public ArchetypeModel getArchetypeModel() {
+ return archetypeModel;
+ }
+
+ public boolean isURLRequired() {
+ return !ProjectExamplesActivator.MAVEN_ARCHETYPE.equals(importType);
+ }
+
+ public File getFile() {
+ return file;
+ }
+
+ public void setFile(File file) {
+ this.file = file;
+ }
+
+ public String getDefaultProfiles() {
+ return defaultProfiles;
+ }
+
+ public void setDefaultProfiles(String defaultProfiles) {
+ this.defaultProfiles = defaultProfiles;
+ }
+
+ @Override
+ public String toString() {
+ return getName();
+ }
+
+ public void setTags(Set<String> tags) {
+ this.tags = tags;
+ }
+
+ public Set<String> getTags() {
+ if (tags == null) {
+ tags = new HashSet<String>();
+ }
+ return tags;
+ }
+
+ public boolean hasTags(String... tags) {
+ if (!getTags().isEmpty() && tags != null && tags.length > 0) {
+ for (String tag : tags) {
+ if (!getTags().contains(tag)) {
+ return false;
+ }
+ }
+ return true;
+ }
+ return false;
+ }
+
+ public void setIconPath(String path) {
+ this.iconPath = path;
+ }
+
+ public String getIconPath() {
+ return iconPath;
+ }
+
+ public int getPriority() {
+ return priority;
+ }
+
+ public void setPriority(int priority) {
+ this.priority = priority;
+ }
+
+ @Override
+ public int compareTo(ProjectExample o) {
+ if (o == null) {
+ return -1;
+ }
+ ProjectExampleCategory otherCategory = o.getCategory();
+ if (otherCategory == null && this.category == null) {
+ return 0;
+ }
+ if (this.category != null) {
+ if (this.category.compareTo(otherCategory) != 0) {
+ return this.category.compareTo(otherCategory);
+ }
+ int other = o.getPriority();
+ if (other < this.priority)
+ return 1;
+ else if (other > this.priority)
+ return -1;
+ if (name == null) {
+ return -1;
+ }
+ return name.compareTo(o.getName());
+ }
+ return -1;
+ }
+}
Copied: trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/model/ProjectExampleCategory.java (from rev 37935, trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/model/Category.java)
===================================================================
--- trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/model/ProjectExampleCategory.java (rev 0)
+++ trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/model/ProjectExampleCategory.java 2012-02-05 00:36:38 UTC (rev 38432)
@@ -0,0 +1,133 @@
+/*************************************************************************************
+ * Copyright (c) 2008-2011 Red Hat, Inc. and others.
+ * All rights reserved. This program and the accompanying materials
+ * are 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:
+ * JBoss by Red Hat - Initial implementation.
+ ************************************************************************************/
+package org.jboss.tools.project.examples.model;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.jboss.tools.project.examples.Messages;
+
+/**
+ * @author snjeza
+ *
+ */
+public class ProjectExampleCategory implements ProjectModelElement, Comparable<ProjectExampleCategory> {
+
+ private String name;
+ private List<ProjectExample> projects = new ArrayList<ProjectExample>();
+ private IProjectExampleSite site;
+ private String description;
+ private int priority;
+ public static ProjectExampleCategory OTHER = new ProjectExampleCategory(Messages.Category_Other);
+
+ public ProjectExampleCategory(String name) {
+ super();
+ this.name = name;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public List<ProjectExample> getProjects() {
+ return projects;
+ }
+
+ public void setProjects(List<ProjectExample> projects) {
+ this.projects = projects;
+ }
+
+ public String getDescription() {
+ return description;
+ }
+
+ public String getShortDescription() {
+ return getName();
+ }
+
+ public IProjectExampleSite getSite() {
+ return site;
+ }
+
+ @Override
+ public void setSite(IProjectExampleSite site) {
+ this.site = site;
+ }
+
+ public int getPriority() {
+ return priority;
+ }
+
+ public void setPriority(int priority) {
+ this.priority = priority;
+ }
+
+ public void setDescription(String description) {
+ this.description = description;
+ }
+
+ @Override
+ public int hashCode() {
+ final int prime = 31;
+ int result = 1;
+ result = prime * result + ((name == null) ? 0 : name.hashCode());
+ result = prime * result + ((site == null) ? 0 : site.hashCode());
+ return result;
+ }
+
+ @Override
+ public boolean equals(Object obj) {
+ if (this == obj)
+ return true;
+ if (obj == null)
+ return false;
+ if (getClass() != obj.getClass())
+ return false;
+ ProjectExampleCategory other = (ProjectExampleCategory) obj;
+ if (name == null) {
+ if (other.name != null)
+ return false;
+ } else if (!name.equals(other.name))
+ return false;
+ if (site == null) {
+ if (other.site != null)
+ return false;
+ } else if (!site.equals(other.site))
+ return false;
+ return true;
+ }
+
+ @Override
+ public int compareTo(ProjectExampleCategory o) {
+ if (o == null)
+ return 1;
+ int other = o.getPriority();
+ if (other < this.priority)
+ return 1;
+ else if (other > this.priority)
+ return -1;
+ if (name == null)
+ return -1;
+ return name.compareTo(o.getName());
+ }
+
+ @Override
+ public String toString() {
+ return "ProjectExampleCategory [name=" + name + ", description=" //$NON-NLS-1$ //$NON-NLS-2$
+ + description + ", site=" + site + ", priority=" + priority //$NON-NLS-1$//$NON-NLS-2$
+ + "]"; //$NON-NLS-1$
+ }
+
+}
Copied: trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/model/ProjectExampleUtil.java (from rev 38378, trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/model/ProjectUtil.java)
===================================================================
--- trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/model/ProjectExampleUtil.java (rev 0)
+++ trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/model/ProjectExampleUtil.java 2012-02-05 00:36:38 UTC (rev 38432)
@@ -0,0 +1,798 @@
+/*************************************************************************************
+ * Copyright (c) 2008-2011 Red Hat, Inc. and others.
+ * All rights reserved. This program and the accompanying materials
+ * are 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:
+ * JBoss by Red Hat - Initial implementation.
+ ************************************************************************************/
+package org.jboss.tools.project.examples.model;
+
+import java.io.BufferedOutputStream;
+import java.io.ByteArrayInputStream;
+import java.io.ByteArrayOutputStream;
+import java.io.File;
+import java.io.FileNotFoundException;
+import java.io.FileOutputStream;
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.UnsupportedEncodingException;
+import java.net.MalformedURLException;
+import java.net.URI;
+import java.net.URL;
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.HashSet;
+import java.util.List;
+import java.util.Set;
+import java.util.StringTokenizer;
+
+import javax.xml.parsers.DocumentBuilder;
+import javax.xml.parsers.DocumentBuilderFactory;
+import javax.xml.parsers.ParserConfigurationException;
+import javax.xml.transform.OutputKeys;
+import javax.xml.transform.Transformer;
+import javax.xml.transform.TransformerException;
+import javax.xml.transform.TransformerFactory;
+import javax.xml.transform.dom.DOMSource;
+import javax.xml.transform.stream.StreamResult;
+
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.IConfigurationElement;
+import org.eclipse.core.runtime.IExtension;
+import org.eclipse.core.runtime.IExtensionPoint;
+import org.eclipse.core.runtime.IExtensionRegistry;
+import org.eclipse.core.runtime.IPath;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.Platform;
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.osgi.util.NLS;
+import org.jboss.tools.project.examples.Messages;
+import org.jboss.tools.project.examples.ProjectExamplesActivator;
+import org.jboss.tools.project.examples.filetransfer.ECFExamplesTransport;
+import org.w3c.dom.Document;
+import org.w3c.dom.Element;
+import org.w3c.dom.NamedNodeMap;
+import org.w3c.dom.Node;
+import org.w3c.dom.NodeList;
+import org.xml.sax.helpers.DefaultHandler;
+
+/**
+ * @author snjeza
+ *
+ */
+public class ProjectExampleUtil {
+
+ private static final String URL = "url"; //$NON-NLS-1$
+
+ private static final String NAME = "name"; //$NON-NLS-1$
+
+ private static final String SITES = "sites"; //$NON-NLS-1$
+
+ private static final String SITE = "site"; //$NON-NLS-1$
+
+ public static final String EDITOR = "editor"; //$NON-NLS-1$
+
+ public static final String CHEATSHEETS = "cheatsheets"; //$NON-NLS-1$
+
+ public static final String PROTOCOL_FILE = "file"; //$NON-NLS-1$
+
+ public static final String PROTOCOL_PLATFORM = "platform"; //$NON-NLS-1$
+
+ private static final String PROJECT_EXAMPLES_XML_EXTENSION_ID = "org.jboss.tools.project.examples.projectExamplesXml"; //$NON-NLS-1$
+
+ private static final String PROJECT_EXAMPLES_CATEGORIES_EXTENSION_ID = "org.jboss.tools.project.examples.categories"; //$NON-NLS-1$
+
+ private static String URL_EXT = URL;
+
+ private static String EXPERIMENTAL_EXT = "experimental"; //$NON-NLS-1$
+
+ private static Set<IProjectExampleSite> pluginSites;
+
+ private static HashSet<IProjectExampleSite> invalidSites = new HashSet<IProjectExampleSite>();
+
+ private static HashSet<URL> categoryUrls;
+
+ private ProjectExampleUtil() {
+ }
+
+ public static Set<IProjectExampleSite> getPluginSites() {
+ if (pluginSites == null) {
+ pluginSites = new HashSet<IProjectExampleSite>();
+ IExtensionRegistry registry = Platform.getExtensionRegistry();
+ IExtensionPoint extensionPoint = registry
+ .getExtensionPoint(PROJECT_EXAMPLES_XML_EXTENSION_ID);
+ IExtension[] extensions = extensionPoint.getExtensions();
+ for (int i = 0; i < extensions.length; i++) {
+ IExtension extension = extensions[i];
+ IConfigurationElement[] configurationElements = extension
+ .getConfigurationElements();
+ IProjectExampleSite site = new ProjectExampleSite();
+ site.setName(extension.getLabel());
+ for (int j = 0; j < configurationElements.length; j++) {
+ IConfigurationElement configurationElement = configurationElements[j];
+ if (URL_EXT.equals(configurationElement.getName())) {
+ String urlString = configurationElement.getValue();
+ URL url = getURL(urlString);
+ if (url != null) {
+ site.setUrl(url);
+ }
+ } else if (EXPERIMENTAL_EXT.equals(configurationElement
+ .getName())) {
+ String experimental = configurationElement.getValue();
+ if ("true".equals(experimental)) { //$NON-NLS-1$
+ site.setExperimental(true);
+ }
+ }
+ }
+ if (site.getUrl() != null) {
+ pluginSites.add(site);
+ }
+ }
+
+ }
+ return pluginSites;
+ }
+
+ public static Set<IProjectExampleSite> getUserSites() {
+ Set<IProjectExampleSite> sites = new HashSet<IProjectExampleSite>();
+ ProjectExampleSite site = getSite(getProjectExamplesXml());
+ if (site != null) {
+ sites.add(site);
+ }
+ IPreferenceStore store = ProjectExamplesActivator.getDefault()
+ .getPreferenceStore();
+ String sitesAsXml = store
+ .getString(ProjectExamplesActivator.USER_SITES);
+ if (sitesAsXml != null && sitesAsXml.trim().length() > 0) {
+ Element rootElement = parseDocument(sitesAsXml);
+ if (!rootElement.getNodeName().equals(SITES)) {
+ ProjectExamplesActivator
+ .log(Messages.ProjectUtil_Invalid_preferences);
+ return sites;
+ }
+ NodeList list = rootElement.getChildNodes();
+ int length = list.getLength();
+ for (int i = 0; i < length; ++i) {
+ Node node = list.item(i);
+ short type = node.getNodeType();
+ if (type == Node.ELEMENT_NODE) {
+ Element entry = (Element) node;
+ if (entry.getNodeName().equals(SITE)) {
+ String name = entry.getAttribute(NAME);
+ String urlString = entry.getAttribute(URL);
+ if (name != null && name.trim().length() > 0
+ && urlString != null
+ && urlString.trim().length() > 0) {
+ URL url = null;
+ try {
+ url = new URL(urlString);
+ } catch (MalformedURLException e) {
+ ProjectExamplesActivator
+ .log(Messages.ProjectUtil_Invalid_preferences);
+ continue;
+ }
+ site = new ProjectExampleSite();
+ site.setName(name);
+ site.setUrl(url);
+ site.setExperimental(true);
+ site.setEditable(true);
+ sites.add(site);
+ }
+ }
+ }
+ }
+ }
+ return sites;
+ }
+
+ private static Set<IProjectExampleSite> getSites() {
+ Set<IProjectExampleSite> sites = new HashSet<IProjectExampleSite>();
+ sites.addAll(getPluginSites());
+ sites.addAll(getUserSites());
+ return sites;
+ }
+
+ private static ProjectExampleSite getSite(String url) {
+ if (url != null) {
+ ProjectExampleSite site = new ProjectExampleSite();
+ try {
+ site.setUrl(new URL(url));
+ } catch (MalformedURLException e) {
+ ProjectExamplesActivator.log(e);
+ return null;
+ }
+ site.setExperimental(true);
+ site.setName(Messages.ProjectUtil_Test);
+ return site;
+ }
+ return null;
+ }
+
+ private static URL getURL(String urlString) {
+ if (urlString != null && urlString.trim().length() > 0) {
+ urlString = urlString.trim();
+ try {
+ URL url = new URL(urlString);
+ return url;
+ } catch (MalformedURLException e) {
+ ProjectExamplesActivator.log(e);
+ }
+ }
+ return null;
+ }
+
+ public static List<ProjectExampleCategory> getProjects(
+ IProgressMonitor monitor) {
+ return getProjects(getSites(), monitor);
+ }
+
+ public static List<ProjectExampleCategory> getProjects(
+ Set<IProjectExampleSite> sites, IProgressMonitor monitor) {
+ monitor.setTaskName(Messages.ProjectUtil_Parsing_project_description_files);
+
+ List<ProjectExampleCategory> list = new ArrayList<ProjectExampleCategory>();
+ invalidSites.clear();
+ ProjectExampleCategory other = ProjectExampleCategory.OTHER;
+ try {
+ boolean showExperimentalSites = ProjectExamplesActivator
+ .getDefault()
+ .getPreferenceStore()
+ .getBoolean(
+ ProjectExamplesActivator.SHOW_EXPERIMENTAL_SITES);
+ for (IProjectExampleSite site : sites) {
+ if (!showExperimentalSites && site.isExperimental()) {
+ continue;
+ }
+ if (monitor.isCanceled()) {
+ invalidSites.add(site);
+ continue;
+ }
+ File file = getProjectExamplesFile(site.getUrl(),
+ "projectExamples", ".xml", monitor); //$NON-NLS-1$ //$NON-NLS-2$
+ if (monitor.isCanceled()) {
+ invalidSites.add(site);
+ continue;
+ }
+ if (file == null || !file.exists() || !file.isFile()) {
+ ProjectExamplesActivator.log(NLS.bind(
+ Messages.ProjectUtil_Invalid_URL, site.getUrl()
+ .toString()));
+ invalidSites.add(site);
+ continue;
+ }
+
+ DocumentBuilderFactory dbf = DocumentBuilderFactory
+ .newInstance();
+ DocumentBuilder db = dbf.newDocumentBuilder();
+ Document doc = db.parse(file);
+ NodeList projects = doc.getElementsByTagName("project"); //$NON-NLS-1$
+ int len = projects.getLength();
+ for (int i = 0; i < len; i++) {
+ Node node = projects.item(i);
+ ProjectExample project = new ProjectExample();
+ project.setSite(site);
+ ProjectExampleCategory category = other;
+ if (node.getNodeType() == Node.ELEMENT_NODE) {
+ Element element = (Element) node;
+ NodeList children = element.getChildNodes();
+ int cLen = children.getLength();
+ for (int j = 0; j < cLen; j++) {
+ Node cNode = children.item(j);
+ if (cNode.getNodeType() == Node.ELEMENT_NODE) {
+ Element child = (Element) cNode;
+ String nodeName = child.getNodeName();
+ if (nodeName.equals("fixes")) { //$NON-NLS-1$
+ parseFixes(project, child);
+ }
+
+ else if (nodeName.equals("category")) { //$NON-NLS-1$
+ String value = getContent(child);
+ boolean found = false;
+ for (ProjectExampleCategory cat : list) {
+ if (cat.getSite() == null) {
+ cat.setSite(site);
+ }
+ if (cat.getName().equals(value)
+ && site.getName()
+ .equals(cat.getSite()
+ .getName())) {
+ category = cat;
+ found = true;
+ break;
+ }
+ }
+ if (!found) {
+ category = new ProjectExampleCategory(
+ value);
+ category.setSite(site);
+ list.add(category);
+ }
+ project.setCategory(category);
+ category.getProjects().add(project);
+ } else if (nodeName.equals(NAME)) {
+ project.setName(getContent(child));
+ } else if (nodeName.equals("priority")) { //$NON-NLS-1$
+ String value = getContent(child);
+ if (value != null) {
+ try {
+ project.setPriority(new Integer(
+ value).intValue());
+ } catch (Exception e) {
+ ProjectExamplesActivator.log(e);
+ }
+ }
+ } else if (nodeName.equals("shortDescription")) { //$NON-NLS-1$
+ project.setShortDescription(getContent(child));
+ } else if (nodeName.equals("description")) { //$NON-NLS-1$
+ project.setDescription(getContent(child));
+ } else if (nodeName.equals(URL)) {
+ project.setUrl(getContent(child));
+ } else if (nodeName.equals("perspectiveId")) { //$NON-NLS-1$
+ project.setPerspectiveId(getContent(child));
+ } else if (nodeName.equals("importType")) { //$NON-NLS-1$
+ project.setImportType(getContent(child));
+ } else if (nodeName
+ .equals("importTypeDescription")) { //$NON-NLS-1$
+ project.setImportTypeDescription(getContent(child));
+ } else if (nodeName.equals("size")) { //$NON-NLS-1$
+ long size = 0;
+ try {
+ size = new Long(getContent(child));
+ } catch (Exception ignored) {
+ }
+ project.setSize(size);
+ } else if (nodeName.equals("included-projects")) { //$NON-NLS-1$
+ String includedProjects = getContent(child);
+ if (includedProjects != null) {
+ includedProjects = includedProjects
+ .trim();
+ StringTokenizer tokenizer = new StringTokenizer(
+ includedProjects, ","); //$NON-NLS-1$
+ List<String> projectList = new ArrayList<String>();
+ while (tokenizer.hasMoreTokens()) {
+ projectList.add(tokenizer
+ .nextToken().trim());
+ }
+ project.setIncludedProjects(projectList);
+ }
+ } else if (nodeName
+ .equals("defaultMavenProfiles")) { //$NON-NLS-1$
+ project.setDefaultProfiles(getContent(child));
+ } else if (nodeName.equals("welcome")) { //$NON-NLS-1$
+ project.setWelcome(true);
+ String attribute = child
+ .getAttribute("type"); //$NON-NLS-1$
+ if (attribute != null
+ && CHEATSHEETS.equals(attribute
+ .trim())) {
+ project.setType(attribute.trim());
+ } else {
+ project.setType(EDITOR);
+ }
+ attribute = child.getAttribute(URL);
+ if (attribute == null
+ || attribute.trim().length() <= 0) {
+ project.setWelcome(false);
+ ProjectExamplesActivator
+ .log(Messages.ProjectUtil_Invalid_welcome_element);
+ } else {
+ project.setWelcomeURL(attribute.trim());
+ }
+ } else if (nodeName.equals("mavenArchetype")) { //$NON-NLS-1$
+ parseMavenArchetype(project, child);
+ } else if (nodeName.equals("tags")) { //$NON-NLS-1$
+ parseTags(project, child);
+ } else if (nodeName.equals("icon")) { //$NON-NLS-1$
+ String path = child.getAttribute("path"); //$NON-NLS-1$
+ if (path != null) {
+ project.setIconPath(path);
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ } catch (Exception e) {
+ ProjectExamplesActivator.log(e);
+ }
+ list.add(other);
+ handleCategories(list, monitor);
+ return list;
+ }
+
+ public static Set<URL> getCategoryURLs() {
+ if (categoryUrls == null) {
+ categoryUrls = new HashSet<URL>();
+ IExtensionRegistry registry = Platform.getExtensionRegistry();
+ IExtensionPoint extensionPoint = registry
+ .getExtensionPoint(PROJECT_EXAMPLES_CATEGORIES_EXTENSION_ID);
+ IExtension[] extensions = extensionPoint.getExtensions();
+ for (int i = 0; i < extensions.length; i++) {
+ IExtension extension = extensions[i];
+ IConfigurationElement[] configurationElements = extension
+ .getConfigurationElements();
+
+ for (int j = 0; j < configurationElements.length; j++) {
+ IConfigurationElement configurationElement = configurationElements[j];
+ if (URL_EXT.equals(configurationElement.getName())) {
+ String urlString = configurationElement.getValue();
+ URL url = getURL(urlString);
+ if (url != null) {
+ categoryUrls.add(url);
+ }
+ }
+ }
+ }
+
+ }
+ return categoryUrls;
+ }
+
+ private static void handleCategories(List<ProjectExampleCategory> list, IProgressMonitor monitor) {
+ Set<URL> urls = getCategoryURLs();
+ for (URL url:urls) {
+ File file = getProjectExamplesFile(url,
+ "categories", ".xml", monitor); //$NON-NLS-1$ //$NON-NLS-2$
+ if (monitor.isCanceled()) {
+ return;
+ }
+ if (file == null || !file.exists() || !file.isFile()) {
+ ProjectExamplesActivator.log(NLS.bind(
+ Messages.ProjectUtil_Invalid_URL, url
+ .toString()));
+ continue;
+ }
+
+ DocumentBuilderFactory dbf = DocumentBuilderFactory
+ .newInstance();
+ Document doc;
+ try {
+ DocumentBuilder db = dbf.newDocumentBuilder();
+ doc = db.parse(file);
+ } catch (Exception e1) {
+ ProjectExamplesActivator.log(e1.getMessage());
+ continue;
+ }
+ NodeList categoryNodes = doc.getElementsByTagName("category"); //$NON-NLS-1$
+ int len = categoryNodes.getLength();
+ for (int i = 0; i < len; i++) {
+ Node node = categoryNodes.item(i);
+ NamedNodeMap attributes = node.getAttributes();
+ if (attributes == null) {
+ continue;
+ }
+ String name = getAttributeValue(attributes, NAME);
+ if (name == null) {
+ continue;
+ }
+ String description = getAttributeValue(attributes, "description"); //$NON-NLS-1$
+ int priority = 0;
+ try {
+ priority = new Integer(getAttributeValue(attributes, "priority")).intValue(); //$NON-NLS-1$
+ } catch (Exception e) {
+ ProjectExamplesActivator.log(e);
+ }
+ if (description != null || priority > 0) {
+ for (ProjectExampleCategory projectExampleCategory:list) {
+ if (name.equals(projectExampleCategory.getName())) {
+ projectExampleCategory.setDescription(description);
+ projectExampleCategory.setPriority(priority);
+ continue;
+ }
+ }
+ }
+ }
+ }
+ }
+
+ private static String getAttributeValue(NamedNodeMap attributes, String name) {
+ String value = null;
+ Node node = attributes.getNamedItem(name);
+ if (node != null) {
+ value = node.getNodeValue();
+ }
+ return value;
+ }
+
+ private static void parseTags(ProjectExample project, Element tagElement) {
+ String tagsValue = tagElement.getTextContent();
+ if (tagsValue != null) {
+ StringTokenizer tokenizer = new StringTokenizer(tagsValue.trim(),
+ ",");//$NON-NLS-1$
+ Set<String> tags = new HashSet<String>();
+ while (tokenizer.hasMoreTokens()) {
+ String tag = tokenizer.nextToken().trim();
+ if (tag.length() > 0) {
+ tags.add(tag);
+ }
+ }
+ project.setTags(tags);
+ }
+ }
+
+ private static void parseFixes(ProjectExample project, Element node) {
+ NodeList children = node.getChildNodes();
+ int cLen = children.getLength();
+ for (int i = 0; i < cLen; i++) {
+ Node cNode = children.item(i);
+ if (cNode.getNodeType() == Node.ELEMENT_NODE) {
+ Element child = (Element) cNode;
+ String nodeName = child.getNodeName();
+ if (nodeName.equals("fix")) { //$NON-NLS-1$
+ parseFix(project, child);
+ }
+ }
+ }
+ }
+
+ private static void parseMavenArchetype(ProjectExample project, Element node) {
+ NodeList children = node.getChildNodes();
+ int cLen = children.getLength();
+ ArchetypeModel archetypeModel = project.getArchetypeModel();
+ for (int i = 0; i < cLen; i++) {
+ Node cNode = children.item(i);
+ if (cNode.getNodeType() == Node.ELEMENT_NODE) {
+ Element child = (Element) cNode;
+ String nodeName = child.getNodeName();
+ if (nodeName.equals("archetypeGroupId")) { //$NON-NLS-1$
+ archetypeModel.setArchetypeGroupId(getContent(child));
+ } else if (nodeName.equals("archetypeArtifactId")) { //$NON-NLS-1$
+ archetypeModel.setArchetypeArtifactId(getContent(child));
+ } else if (nodeName.equals("archetypeVersion")) { //$NON-NLS-1$
+ archetypeModel.setArchetypeVersion(getContent(child));
+ } else if (nodeName.equals("archetypeRepository")) { //$NON-NLS-1$
+ archetypeModel.setArchetypeRepository(getContent(child));
+ } else if (nodeName.equals("groupId")) { //$NON-NLS-1$
+ archetypeModel.setGroupId(getContent(child));
+ } else if (nodeName.equals("artifactId")) { //$NON-NLS-1$
+ archetypeModel.setArtifactId(getContent(child));
+ } else if (nodeName.equals("version")) { //$NON-NLS-1$
+ archetypeModel.setVersion(getContent(child));
+ } else if (nodeName.equals("javaPackage")) { //$NON-NLS-1$
+ archetypeModel.setJavaPackage(getContent(child));
+ } else if (nodeName.equals("properties")) { //$NON-NLS-1$
+ parseProperties(project, child);
+ }
+ }
+ }
+ }
+
+ private static void parseProperties(ProjectExample project, Element node) {
+ NodeList children = node.getChildNodes();
+ int cLen = children.getLength();
+ for (int i = 0; i < cLen; i++) {
+ Node cNode = children.item(i);
+ if (cNode.getNodeType() == Node.ELEMENT_NODE) {
+ Element child = (Element) cNode;
+ String nodeName = child.getNodeName();
+ if (nodeName.equals("property")) { //$NON-NLS-1$
+ String key = child.getAttribute("name"); //$NON-NLS-1$
+ if (key == null || key.trim().length() <= 0) {
+ ProjectExamplesActivator
+ .log(Messages.ProjectUtil_Invalid_property);
+ return;
+ }
+ String value = child.getAttribute("value"); //$NON-NLS-1$
+ if (value == null || value.trim().length() <= 0) {
+ ProjectExamplesActivator
+ .log(Messages.ProjectUtil_Invalid_property);
+ return;
+ }
+ project.getArchetypeModel().addProperty(key, value);
+ }
+ }
+ }
+ }
+
+ private static void parseFix(ProjectExample project, Element node) {
+ String type = node.getAttribute("type"); //$NON-NLS-1$
+ if (type == null || type.trim().length() <= 0) {
+ ProjectExamplesActivator.log(Messages.ProjectUtil_Invalid_fix);
+ return;
+ }
+ ProjectFix fix = new ProjectFix();
+ fix.setType(type);
+ NodeList children = node.getChildNodes();
+ int cLen = children.getLength();
+ for (int i = 0; i < cLen; i++) {
+ Node cNode = children.item(i);
+ if (cNode.getNodeType() == Node.ELEMENT_NODE) {
+ Element child = (Element) cNode;
+ String nodeName = child.getNodeName();
+ if (nodeName.equals("property")) { //$NON-NLS-1$
+ String name = child.getAttribute("name"); //$NON-NLS-1$
+ if (name == null || name.trim().length() <= 0) {
+ ProjectExamplesActivator
+ .log(Messages.ProjectUtil_Invalid_property);
+ return;
+ }
+ String value = getContent(child);
+ fix.getProperties().put(name, value);
+ }
+ }
+ }
+ project.getFixes().add(fix);
+ }
+
+ private static String getProjectExamplesXml() {
+ String projectXML = System
+ .getProperty("org.jboss.tools.project.examples.xml"); //$NON-NLS-1$
+ if (projectXML != null && projectXML.length() > 0) {
+ return projectXML;
+ }
+ return null;
+ }
+
+ private static String getContent(Element child) {
+ String value = child.getTextContent();
+ if (value == null) {
+ value = ""; //$NON-NLS-1$
+ }
+ return value.trim();
+ }
+
+ public static File getProjectExamplesFile(URL url, String prefix,
+ String suffix, IProgressMonitor monitor) {
+ File file = null;
+ if (PROTOCOL_FILE.equals(url.getProtocol())
+ || PROTOCOL_PLATFORM.equalsIgnoreCase(url.getProtocol())) {
+ try {
+ // assume all illegal characters have been properly encoded, so
+ // use URI class to unencode
+ file = new File(new URI(url.toExternalForm()));
+ } catch (Exception e) {
+ // URL contains unencoded characters
+ file = new File(url.getFile());
+ }
+ if (!file.exists())
+ return null;
+ } else {
+ try {
+ if (monitor.isCanceled()) {
+ return null;
+ }
+ long urlModified = -1;
+ file = getFile(url);
+ try {
+ urlModified = ECFExamplesTransport.getInstance()
+ .getLastModified(url);
+ } catch (CoreException e) {
+ if (file.exists()) {
+ return file;
+ }
+ }
+ if (urlModified == 0) {
+ if (file.exists()) {
+ return file;
+ }
+ }
+ if (file.exists()) {
+ long modified = file.lastModified();
+ if (urlModified == modified) {
+ return file;
+ }
+ }
+ // file = File.createTempFile(prefix, suffix);
+ // file.deleteOnExit();
+ file.getParentFile().mkdirs();
+ if (monitor.isCanceled()) {
+ return null;
+ }
+ BufferedOutputStream destination = new BufferedOutputStream(
+ new FileOutputStream(file));
+ if (monitor.isCanceled()) {
+ return null;
+ }
+ IStatus result = getTransport().download(prefix,
+ url.toExternalForm(), destination, monitor);
+ if (!result.isOK()) {
+ ProjectExamplesActivator.getDefault().getLog().log(result);
+ return null;
+ } else {
+ if (file.exists()) {
+ file.setLastModified(urlModified);
+ }
+ }
+ } catch (FileNotFoundException e) {
+ ProjectExamplesActivator.log(e);
+ return null;
+ }
+ }
+ return file;
+ }
+
+ private static File getFile(java.net.URL url2) {
+ IPath location = ProjectExamplesActivator.getDefault()
+ .getStateLocation();
+ File root = location.toFile();
+ String urlFile = url2.getFile();
+ File file = new File(root, urlFile);
+ return file;
+ }
+
+ private static ECFExamplesTransport getTransport() {
+ return ECFExamplesTransport.getInstance();
+ }
+
+ public static Document getDocument() throws ParserConfigurationException {
+ DocumentBuilderFactory dfactory = DocumentBuilderFactory.newInstance();
+ DocumentBuilder docBuilder = dfactory.newDocumentBuilder();
+ Document doc = docBuilder.newDocument();
+ return doc;
+ }
+
+ public static String getAsXML(Set<IProjectExampleSite> sites)
+ throws ParserConfigurationException, TransformerException,
+ UnsupportedEncodingException {
+ if (sites == null || sites.size() == 0) {
+ return ""; //$NON-NLS-1$
+ }
+ Document doc = getDocument();
+ Element sitesElement = doc.createElement(SITES);
+ doc.appendChild(sitesElement);
+ for (IProjectExampleSite site : sites) {
+ Element siteElement = doc.createElement(SITE);
+ siteElement.setAttribute(NAME, site.getName());
+ siteElement.setAttribute(URL, site.getUrl().toString());
+ sitesElement.appendChild(siteElement);
+ }
+ ByteArrayOutputStream s = new ByteArrayOutputStream();
+ TransformerFactory factory = TransformerFactory.newInstance();
+ Transformer transformer = factory.newTransformer();
+ transformer.setOutputProperty(OutputKeys.METHOD, "xml"); //$NON-NLS-1$
+ transformer.setOutputProperty(OutputKeys.INDENT, "yes"); //$NON-NLS-1$
+ DOMSource source = new DOMSource(doc);
+ StreamResult outputTarget = new StreamResult(s);
+ transformer.transform(source, outputTarget);
+ return s.toString("UTF8"); //$NON-NLS-1$
+ }
+
+ public static Element parseDocument(String document) {
+ Element root = null;
+ InputStream stream = null;
+ try {
+ DocumentBuilder parser = DocumentBuilderFactory.newInstance()
+ .newDocumentBuilder();
+ parser.setErrorHandler(new DefaultHandler());
+ stream = new ByteArrayInputStream(document.getBytes("UTF8")); //$NON-NLS-1$
+ root = parser.parse(stream).getDocumentElement();
+ } catch (Exception e) {
+ ProjectExamplesActivator.log(e);
+ } finally {
+ try {
+ if (stream != null) {
+ stream.close();
+ }
+ } catch (IOException e) {
+ ProjectExamplesActivator.log(e);
+ }
+ }
+ return root;
+ }
+
+ public static HashSet<IProjectExampleSite> getInvalidSites() {
+ return invalidSites;
+ }
+
+ public static List<ProjectExample> getProjectsByTags(
+ Collection<ProjectExampleCategory> categories, String... tags) {
+ if (categories == null) {
+ return null;
+ }
+ List<ProjectExample> selection = new ArrayList<ProjectExample>();
+ for (ProjectExampleCategory c : categories) {
+ for (ProjectExample p : c.getProjects()) {
+ if (p.hasTags(tags) && !selection.contains(p)) {
+ selection.add(p);
+ }
+ }
+ }
+ return selection;
+ }
+
+}
Deleted: trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/model/ProjectUtil.java
===================================================================
--- trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/model/ProjectUtil.java 2012-02-04 18:30:28 UTC (rev 38431)
+++ trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/model/ProjectUtil.java 2012-02-05 00:36:38 UTC (rev 38432)
@@ -1,674 +0,0 @@
-/*************************************************************************************
- * Copyright (c) 2008-2011 Red Hat, Inc. and others.
- * All rights reserved. This program and the accompanying materials
- * are 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:
- * JBoss by Red Hat - Initial implementation.
- ************************************************************************************/
-package org.jboss.tools.project.examples.model;
-
-import java.io.BufferedOutputStream;
-import java.io.ByteArrayInputStream;
-import java.io.ByteArrayOutputStream;
-import java.io.File;
-import java.io.FileNotFoundException;
-import java.io.FileOutputStream;
-import java.io.IOException;
-import java.io.InputStream;
-import java.io.UnsupportedEncodingException;
-import java.net.MalformedURLException;
-import java.net.URI;
-import java.net.URL;
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.HashMap;
-import java.util.HashSet;
-import java.util.List;
-import java.util.Map;
-import java.util.Set;
-import java.util.StringTokenizer;
-
-import javax.xml.parsers.DocumentBuilder;
-import javax.xml.parsers.DocumentBuilderFactory;
-import javax.xml.parsers.ParserConfigurationException;
-import javax.xml.transform.OutputKeys;
-import javax.xml.transform.Transformer;
-import javax.xml.transform.TransformerException;
-import javax.xml.transform.TransformerFactory;
-import javax.xml.transform.dom.DOMSource;
-import javax.xml.transform.stream.StreamResult;
-
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IConfigurationElement;
-import org.eclipse.core.runtime.IExtension;
-import org.eclipse.core.runtime.IExtensionPoint;
-import org.eclipse.core.runtime.IExtensionRegistry;
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Platform;
-import org.eclipse.jface.preference.IPreferenceStore;
-import org.eclipse.osgi.util.NLS;
-import org.jboss.tools.project.examples.Messages;
-import org.jboss.tools.project.examples.ProjectExamplesActivator;
-import org.jboss.tools.project.examples.filetransfer.ECFExamplesTransport;
-import org.w3c.dom.Document;
-import org.w3c.dom.Element;
-import org.w3c.dom.Node;
-import org.w3c.dom.NodeList;
-import org.xml.sax.helpers.DefaultHandler;
-
-/**
- * @author snjeza
- *
- */
-public class ProjectUtil {
-
- private static final String URL = "url"; //$NON-NLS-1$
-
- private static final String NAME = "name"; //$NON-NLS-1$
-
- private static final String SITES = "sites"; //$NON-NLS-1$
-
- private static final String SITE = "site"; //$NON-NLS-1$
-
- public static final String EDITOR = "editor"; //$NON-NLS-1$
-
- public static final String CHEATSHEETS = "cheatsheets"; //$NON-NLS-1$
-
- public static final String PROTOCOL_FILE = "file"; //$NON-NLS-1$
-
- public static final String PROTOCOL_PLATFORM = "platform"; //$NON-NLS-1$
-
- private static final String PROJECT_EXAMPLES_XML_EXTENSION_ID = "org.jboss.tools.project.examples.projectExamplesXml"; //$NON-NLS-1$
-
- private static String URL_EXT = URL;
-
- private static String EXPERIMENTAL_EXT = "experimental"; //$NON-NLS-1$
-
- private static Set<IProjectExampleSite> pluginSites;
-
- private static HashSet<IProjectExampleSite> invalidSites = new HashSet<IProjectExampleSite>();
-
- private ProjectUtil() {
- }
-
- public static Set<IProjectExampleSite> getPluginSites() {
- if (pluginSites == null) {
- pluginSites = new HashSet<IProjectExampleSite>();
- IExtensionRegistry registry = Platform.getExtensionRegistry();
- IExtensionPoint extensionPoint = registry
- .getExtensionPoint(PROJECT_EXAMPLES_XML_EXTENSION_ID);
- IExtension[] extensions = extensionPoint.getExtensions();
- for (int i = 0; i < extensions.length; i++) {
- IExtension extension = extensions[i];
- IConfigurationElement[] configurationElements = extension
- .getConfigurationElements();
- IProjectExampleSite site = new ProjectExampleSite();
- site.setName(extension.getLabel());
- for (int j = 0; j < configurationElements.length; j++) {
- IConfigurationElement configurationElement = configurationElements[j];
- if (URL_EXT.equals(configurationElement.getName())) {
- String urlString = configurationElement.getValue();
- URL url = getURL(urlString);
- if (url != null) {
- site.setUrl(url);
- }
- } else if (EXPERIMENTAL_EXT.equals(configurationElement.getName())) {
- String experimental = configurationElement.getValue();
- if ("true".equals(experimental)) { //$NON-NLS-1$
- site.setExperimental(true);
- }
- }
- }
- if (site.getUrl() != null) {
- pluginSites.add(site);
- }
- }
-
- }
- return pluginSites;
- }
-
- public static Set<IProjectExampleSite> getUserSites() {
- Set<IProjectExampleSite> sites = new HashSet<IProjectExampleSite>();
- ProjectExampleSite site = getSite(getProjectExamplesXml());
- if (site != null) {
- sites.add(site);
- }
- IPreferenceStore store = ProjectExamplesActivator.getDefault().getPreferenceStore();
- String sitesAsXml = store.getString(ProjectExamplesActivator.USER_SITES);
- if (sitesAsXml != null && sitesAsXml.trim().length() > 0) {
- Element rootElement = parseDocument(sitesAsXml);
- if (!rootElement.getNodeName().equals(SITES)) {
- ProjectExamplesActivator.log(Messages.ProjectUtil_Invalid_preferences);
- return sites;
- }
- NodeList list = rootElement.getChildNodes();
- int length = list.getLength();
- for (int i = 0; i < length; ++i) {
- Node node = list.item(i);
- short type = node.getNodeType();
- if (type == Node.ELEMENT_NODE) {
- Element entry = (Element) node;
- if(entry.getNodeName().equals(SITE)){
- String name = entry.getAttribute(NAME);
- String urlString = entry.getAttribute(URL);
- if (name != null && name.trim().length() > 0 && urlString != null && urlString.trim().length() > 0) {
- URL url = null;
- try {
- url = new URL(urlString);
- } catch (MalformedURLException e) {
- ProjectExamplesActivator.log(Messages.ProjectUtil_Invalid_preferences);
- continue;
- }
- site = new ProjectExampleSite();
- site.setName(name);
- site.setUrl(url);
- site.setExperimental(true);
- site.setEditable(true);
- sites.add(site);
- }
- }
- }
- }
- }
- return sites;
- }
-
- private static Set<IProjectExampleSite> getSites() {
- Set<IProjectExampleSite> sites = new HashSet<IProjectExampleSite>();
- sites.addAll(getPluginSites());
- sites.addAll(getUserSites());
- return sites;
- }
-
- private static ProjectExampleSite getSite(String url) {
- if (url != null) {
- ProjectExampleSite site = new ProjectExampleSite();
- try {
- site.setUrl(new URL(url));
- } catch (MalformedURLException e) {
- ProjectExamplesActivator.log(e);
- return null;
- }
- site.setExperimental(true);
- site.setName(Messages.ProjectUtil_Test);
- return site;
- }
- return null;
- }
-
- private static URL getURL(String urlString) {
- if (urlString != null && urlString.trim().length() > 0) {
- urlString = urlString.trim();
- try {
- URL url = new URL(urlString);
- return url;
- } catch (MalformedURLException e) {
- ProjectExamplesActivator.log(e);
- }
- }
- return null;
- }
-
- public static List<Category> getProjects(IProgressMonitor monitor) {
- return getProjects(getSites(), monitor);
- }
-
- public static List<Category> getProjects(Set<IProjectExampleSite> sites, IProgressMonitor monitor) {
- monitor.setTaskName(Messages.ProjectUtil_Parsing_project_description_files);
-
- List<Category> list = new ArrayList<Category>();
- invalidSites.clear();
- Category other = Category.OTHER;
- try {
- boolean showExperimentalSites = ProjectExamplesActivator.getDefault().getPreferenceStore().getBoolean(ProjectExamplesActivator.SHOW_EXPERIMENTAL_SITES);
- for (IProjectExampleSite site : sites) {
- if (!showExperimentalSites && site.isExperimental()) {
- continue;
- }
- if (monitor.isCanceled()) {
- invalidSites.add(site);
- continue;
- }
- File file = getProjectExamplesFile(site.getUrl(),
- "projectExamples", ".xml", monitor); //$NON-NLS-1$ //$NON-NLS-2$
- if (monitor.isCanceled()) {
- invalidSites.add(site);
- continue;
- }
- if (file == null || !file.exists() || !file.isFile()) {
- ProjectExamplesActivator.log(NLS.bind(Messages.ProjectUtil_Invalid_URL,site.getUrl().toString()));
- invalidSites.add(site);
- continue;
- }
-
- DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
- DocumentBuilder db = dbf.newDocumentBuilder();
- Document doc = db.parse(file);
- NodeList projects = doc.getElementsByTagName("project"); //$NON-NLS-1$
- int len = projects.getLength();
- for (int i = 0; i < len; i++) {
- Node node = projects.item(i);
- Project project = new Project();
- project.setSite(site);
- Category category = other;
- if (node.getNodeType() == Node.ELEMENT_NODE) {
- Element element = (Element) node;
- NodeList children = element.getChildNodes();
- int cLen = children.getLength();
- for (int j = 0; j < cLen; j++) {
- Node cNode = children.item(j);
- if (cNode.getNodeType() == Node.ELEMENT_NODE) {
- Element child = (Element) cNode;
- String nodeName = child.getNodeName();
- if (nodeName.equals("fixes")) { //$NON-NLS-1$
- parseFixes(project, child);
- }
-
- else if (nodeName.equals("category")) { //$NON-NLS-1$
- String value = getContent(child);
- boolean found = false;
- for (Category cat : list) {
- if (cat.getSite() == null) {
- cat.setSite(site);
- }
- if (cat.getName().equals(value) && site.getName().equals(cat.getSite().getName())) {
- category = cat;
- found = true;
- break;
- }
- }
- if (!found) {
- category = new Category(value);
- category.setSite(site);
- list.add(category);
- }
- project.setCategory(category);
- category.getProjects().add(project);
- }
- else if (nodeName.equals(NAME)) {
- project.setName(getContent(child));
- }
- else if (nodeName.equals("shortDescription")) { //$NON-NLS-1$
- project
- .setShortDescription(getContent(child));
- }
- else if (nodeName.equals("description")) { //$NON-NLS-1$
- project.setDescription(getContent(child));
- }
- else if (nodeName.equals(URL)) {
- project.setUrl(getContent(child));
- }
- else if (nodeName.equals("perspectiveId")) { //$NON-NLS-1$
- project.setPerspectiveId(getContent(child));
- }
- else if (nodeName.equals("importType")) { //$NON-NLS-1$
- project.setImportType(getContent(child));
- }
- else if (nodeName.equals("importTypeDescription")) { //$NON-NLS-1$
- project.setImportTypeDescription(getContent(child));
- }
- else if (nodeName.equals("size")) { //$NON-NLS-1$
- long size = 0;
- try {
- size = new Long(getContent(child));
- } catch (Exception ignored) {
- }
- project.setSize(size);
- }
- else if (nodeName.equals("included-projects")) { //$NON-NLS-1$
- String includedProjects = getContent(child);
- if (includedProjects != null) {
- includedProjects = includedProjects
- .trim();
- StringTokenizer tokenizer = new StringTokenizer(
- includedProjects, ","); //$NON-NLS-1$
- List<String> projectList = new ArrayList<String>();
- while (tokenizer.hasMoreTokens()) {
- projectList.add(tokenizer.nextToken().trim());
- }
- project.setIncludedProjects(projectList);
- }
- }
- else if (nodeName.equals("defaultMavenProfiles")) { //$NON-NLS-1$
- project.setDefaultProfiles(getContent(child));
- }
- else if (nodeName.equals("welcome")) { //$NON-NLS-1$
- project.setWelcome(true);
- String attribute = child.getAttribute("type"); //$NON-NLS-1$
- if (attribute != null && CHEATSHEETS.equals(attribute.trim())) {
- project.setType(attribute.trim());
- } else {
- project.setType(EDITOR);
- }
- attribute = child.getAttribute(URL);
- if (attribute == null || attribute.trim().length() <= 0) {
- project.setWelcome(false);
- ProjectExamplesActivator.log(Messages.ProjectUtil_Invalid_welcome_element);
- } else {
- project.setWelcomeURL(attribute.trim());
- }
- }
- else if (nodeName.equals("mavenArchetype")) { //$NON-NLS-1$
- parseMavenArchetype(project, child);
- }
- else if (nodeName.equals("tags")) { //$NON-NLS-1$
- parseTags(project, child);
- }
- else if (nodeName.equals("icon")) { //$NON-NLS-1$
- String path = child.getAttribute("path");
- if (path != null) {
- project.setIconPath(path);
- }
- }
- }
- }
- }
- }
- }
- } catch (Exception e) {
- ProjectExamplesActivator.log(e);
- }
- list.add(other);
- return list;
- }
-
- private static void parseTags(Project project, Element tagElement) {
- String tagsValue = tagElement.getTextContent();
- if (tagsValue != null) {
- StringTokenizer tokenizer = new StringTokenizer(tagsValue.trim(), ",");//$NON-NLS-1$
- Set<String> tags = new HashSet<String>();
- while (tokenizer.hasMoreTokens()) {
- String tag = tokenizer.nextToken().trim();
- if (tag.length() > 0) {
- tags.add(tag);
- }
- }
- project.setTags(tags);
- }
- }
-
- private static void parseFixes(Project project, Element node) {
- NodeList children = node.getChildNodes();
- int cLen = children.getLength();
- for (int i = 0; i < cLen; i++) {
- Node cNode = children.item(i);
- if (cNode.getNodeType() == Node.ELEMENT_NODE) {
- Element child = (Element) cNode;
- String nodeName = child.getNodeName();
- if (nodeName.equals("fix")) { //$NON-NLS-1$
- parseFix(project, child);
- }
- }
- }
- }
-
- private static void parseMavenArchetype(Project project, Element node) {
- NodeList children = node.getChildNodes();
- int cLen = children.getLength();
- ArchetypeModel archetypeModel = project.getArchetypeModel();
- for (int i = 0; i < cLen; i++) {
- Node cNode = children.item(i);
- if (cNode.getNodeType() == Node.ELEMENT_NODE) {
- Element child = (Element) cNode;
- String nodeName = child.getNodeName();
- if (nodeName.equals("archetypeGroupId")) { //$NON-NLS-1$
- archetypeModel.setArchetypeGroupId(getContent(child));
- }
- else if (nodeName.equals("archetypeArtifactId")) { //$NON-NLS-1$
- archetypeModel.setArchetypeArtifactId(getContent(child));
- }
- else if (nodeName.equals("archetypeVersion")) { //$NON-NLS-1$
- archetypeModel.setArchetypeVersion(getContent(child));
- }
- else if (nodeName.equals("archetypeRepository")) { //$NON-NLS-1$
- archetypeModel.setArchetypeRepository(getContent(child));
- }
- else if (nodeName.equals("groupId")) { //$NON-NLS-1$
- archetypeModel.setGroupId(getContent(child));
- }
- else if (nodeName.equals("artifactId")) { //$NON-NLS-1$
- archetypeModel.setArtifactId(getContent(child));
- }
- else if (nodeName.equals("version")) { //$NON-NLS-1$
- archetypeModel.setVersion(getContent(child));
- }
- else if (nodeName.equals("javaPackage")) { //$NON-NLS-1$
- archetypeModel.setJavaPackage(getContent(child));
- }
- else if (nodeName.equals("properties")) { //$NON-NLS-1$
- parseProperties(project, child);
- }
- }
- }
- }
-
- private static void parseProperties(Project project, Element node) {
- NodeList children = node.getChildNodes();
- int cLen = children.getLength();
- for (int i = 0; i < cLen; i++) {
- Node cNode = children.item(i);
- if (cNode.getNodeType() == Node.ELEMENT_NODE) {
- Element child = (Element) cNode;
- String nodeName = child.getNodeName();
- if (nodeName.equals("property")) { //$NON-NLS-1$
- String key = child.getAttribute("name"); //$NON-NLS-1$
- if (key == null || key.trim().length() <= 0) {
- ProjectExamplesActivator.log(Messages.ProjectUtil_Invalid_property);
- return;
- }
- String value = child.getAttribute("value"); //$NON-NLS-1$
- if (value == null || value.trim().length() <= 0) {
- ProjectExamplesActivator.log(Messages.ProjectUtil_Invalid_property);
- return;
- }
- project.getArchetypeModel().addProperty(key, value);
- }
- }
- }
- }
-
- private static void parseFix(Project project, Element node) {
- String type = node.getAttribute("type"); //$NON-NLS-1$
- if (type == null || type.trim().length() <= 0) {
- ProjectExamplesActivator.log(Messages.ProjectUtil_Invalid_fix);
- return;
- }
- ProjectFix fix = new ProjectFix();
- fix.setType(type);
- NodeList children = node.getChildNodes();
- int cLen = children.getLength();
- for (int i = 0; i < cLen; i++) {
- Node cNode = children.item(i);
- if (cNode.getNodeType() == Node.ELEMENT_NODE) {
- Element child = (Element) cNode;
- String nodeName = child.getNodeName();
- if (nodeName.equals("property")) { //$NON-NLS-1$
- String name = child.getAttribute("name"); //$NON-NLS-1$
- if (name == null || name.trim().length() <= 0) {
- ProjectExamplesActivator.log(Messages.ProjectUtil_Invalid_property);
- return;
- }
- String value = getContent(child);
- fix.getProperties().put(name, value);
- }
- }
- }
- project.getFixes().add(fix);
- }
-
- private static String getProjectExamplesXml() {
- String projectXML = System.getProperty("org.jboss.tools.project.examples.xml"); //$NON-NLS-1$
- if (projectXML != null && projectXML.length() > 0) {
- return projectXML;
- }
- return null;
- }
-
- private static String getContent(Element child) {
- String value = child.getTextContent();
- if (value == null) {
- value = ""; //$NON-NLS-1$
- }
- return value.trim();
- }
-
- public static File getProjectExamplesFile(URL url, String prefix,
- String suffix, IProgressMonitor monitor) {
- File file = null;
- if (PROTOCOL_FILE.equals(url.getProtocol()) || PROTOCOL_PLATFORM.equalsIgnoreCase(url.getProtocol())) {
- try {
- // assume all illegal characters have been properly encoded, so
- // use URI class to unencode
- file = new File(new URI(url.toExternalForm()));
- } catch (Exception e) {
- // URL contains unencoded characters
- file = new File(url.getFile());
- }
- if (!file.exists())
- return null;
- } else {
- try {
- if (monitor.isCanceled()) {
- return null;
- }
- long urlModified = -1;
- file = getFile(url);
- try {
- urlModified = ECFExamplesTransport.getInstance().getLastModified(url);
- } catch (CoreException e) {
- if (file.exists()) {
- return file;
- }
- }
- if (urlModified == 0) {
- if (file.exists()) {
- return file;
- }
- }
- if (file.exists()) {
- long modified = file.lastModified();
- if (urlModified == modified) {
- return file;
- }
- }
- //file = File.createTempFile(prefix, suffix);
- //file.deleteOnExit();
- file.getParentFile().mkdirs();
- if (monitor.isCanceled()) {
- return null;
- }
- BufferedOutputStream destination = new BufferedOutputStream(
- new FileOutputStream(file));
- if (monitor.isCanceled()) {
- return null;
- }
- IStatus result = getTransport().download(prefix,
- url.toExternalForm(), destination, monitor);
- if (!result.isOK()) {
- ProjectExamplesActivator.getDefault().getLog().log(result);
- return null;
- } else {
- if (file.exists()) {
- file.setLastModified(urlModified);
- }
- }
- } catch (FileNotFoundException e) {
- ProjectExamplesActivator.log(e);
- return null;
- }
- }
- return file;
- }
-
- private static File getFile(java.net.URL url2) {
- IPath location = ProjectExamplesActivator.getDefault().getStateLocation();
- File root = location.toFile();
- String urlFile = url2.getFile();
- File file = new File(root, urlFile);
- return file;
- }
-
- private static ECFExamplesTransport getTransport() {
- return ECFExamplesTransport.getInstance();
- }
-
- public static Document getDocument() throws ParserConfigurationException {
- DocumentBuilderFactory dfactory= DocumentBuilderFactory.newInstance();
- DocumentBuilder docBuilder= dfactory.newDocumentBuilder();
- Document doc= docBuilder.newDocument();
- return doc;
- }
-
- public static String getAsXML(Set<IProjectExampleSite> sites)
- throws ParserConfigurationException, TransformerException,
- UnsupportedEncodingException {
- if (sites == null || sites.size() == 0) {
- return ""; //$NON-NLS-1$
- }
- Document doc = getDocument();
- Element sitesElement = doc.createElement(SITES);
- doc.appendChild(sitesElement);
- for (IProjectExampleSite site : sites) {
- Element siteElement = doc.createElement(SITE);
- siteElement.setAttribute(NAME, site.getName());
- siteElement.setAttribute(URL, site.getUrl().toString());
- sitesElement.appendChild(siteElement);
- }
- ByteArrayOutputStream s = new ByteArrayOutputStream();
- TransformerFactory factory = TransformerFactory.newInstance();
- Transformer transformer = factory.newTransformer();
- transformer.setOutputProperty(OutputKeys.METHOD, "xml"); //$NON-NLS-1$
- transformer.setOutputProperty(OutputKeys.INDENT, "yes"); //$NON-NLS-1$
- DOMSource source = new DOMSource(doc);
- StreamResult outputTarget = new StreamResult(s);
- transformer.transform(source, outputTarget);
- return s.toString("UTF8"); //$NON-NLS-1$
- }
-
- public static Element parseDocument(String document) {
- Element root = null;
- InputStream stream = null;
- try{
- DocumentBuilder parser = DocumentBuilderFactory.newInstance().newDocumentBuilder();
- parser.setErrorHandler(new DefaultHandler());
- stream = new ByteArrayInputStream(document.getBytes("UTF8")); //$NON-NLS-1$
- root = parser.parse(stream).getDocumentElement();
- } catch (Exception e) {
- ProjectExamplesActivator.log(e);
- } finally {
- try{
- if (stream != null) {
- stream.close();
- }
- } catch(IOException e) {
- ProjectExamplesActivator.log(e);
- }
- }
- return root;
- }
-
- public static HashSet<IProjectExampleSite> getInvalidSites() {
- return invalidSites;
- }
-
- public static List<Project> getProjectsByTags(Collection<Category> categories, String ... tags) {
- if (categories == null) {
- return null;
- }
- List<Project> selection = new ArrayList<Project>();
- for (Category c : categories) {
- for (Project p : c.getProjects()) {
- if (p.hasTags(tags) && !selection.contains(p)) {
- selection.add(p);
- }
- }
- }
- return selection;
- }
-}
Modified: trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/preferences/ProjectExamplesPreferencePage.java
===================================================================
--- trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/preferences/ProjectExamplesPreferencePage.java 2012-02-04 18:30:28 UTC (rev 38431)
+++ trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/preferences/ProjectExamplesPreferencePage.java 2012-02-05 00:36:38 UTC (rev 38432)
@@ -43,7 +43,7 @@
import org.jboss.tools.project.examples.ProjectExamplesActivator;
import org.jboss.tools.project.examples.model.IProjectExampleSite;
import org.jboss.tools.project.examples.model.ProjectExampleSite;
-import org.jboss.tools.project.examples.model.ProjectUtil;
+import org.jboss.tools.project.examples.model.ProjectExampleUtil;
import org.jboss.tools.project.examples.model.SiteCategory;
/**
@@ -286,7 +286,7 @@
store.setValue(ProjectExamplesActivator.PROJECT_EXAMPLES_OUTPUT_DIRECTORY, value);
}
try {
- String userSites = ProjectUtil.getAsXML(sites.getUserSites());
+ String userSites = ProjectExampleUtil.getAsXML(sites.getUserSites());
store.setValue(ProjectExamplesActivator.USER_SITES, userSites);
} catch (Exception e) {
ProjectExamplesActivator.log(e);
Modified: trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/preferences/Sites.java
===================================================================
--- trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/preferences/Sites.java 2012-02-04 18:30:28 UTC (rev 38431)
+++ trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/preferences/Sites.java 2012-02-05 00:36:38 UTC (rev 38432)
@@ -16,7 +16,7 @@
import org.jboss.tools.project.examples.Messages;
import org.jboss.tools.project.examples.model.IProjectExampleSite;
import org.jboss.tools.project.examples.model.ProjectExampleSite;
-import org.jboss.tools.project.examples.model.ProjectUtil;
+import org.jboss.tools.project.examples.model.ProjectExampleUtil;
import org.jboss.tools.project.examples.model.SiteCategory;
/**
@@ -33,11 +33,11 @@
if (siteCategories == null) {
siteCategories = new SiteCategory[2];
userSite = new SiteCategory(Messages.Sites_User_sites);
- Set<IProjectExampleSite> userSites = ProjectUtil.getUserSites();
+ Set<IProjectExampleSite> userSites = ProjectExampleUtil.getUserSites();
userSite.setSites(userSites);
siteCategories[0]=userSite;
SiteCategory pluginSite = new SiteCategory(Messages.Sites_Plugin_provided_sites);
- Set<IProjectExampleSite> pluginSites = ProjectUtil.getPluginSites();
+ Set<IProjectExampleSite> pluginSites = ProjectExampleUtil.getPluginSites();
pluginSite.setSites(pluginSites);
siteCategories[1]=pluginSite;
sites = new HashSet<IProjectExampleSite>();
Modified: trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/wizard/ImportDefaultProjectExample.java
===================================================================
--- trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/wizard/ImportDefaultProjectExample.java 2012-02-04 18:30:28 UTC (rev 38431)
+++ trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/wizard/ImportDefaultProjectExample.java 2012-02-05 00:36:38 UTC (rev 38432)
@@ -36,7 +36,7 @@
import org.jboss.tools.project.examples.Messages;
import org.jboss.tools.project.examples.ProjectExamplesActivator;
import org.jboss.tools.project.examples.model.AbstractImportProjectExample;
-import org.jboss.tools.project.examples.model.Project;
+import org.jboss.tools.project.examples.model.ProjectExample;
public class ImportDefaultProjectExample extends
AbstractImportProjectExample {
@@ -48,9 +48,9 @@
};
@Override
- public boolean importProject(Project projectDescription, File file,
+ public boolean importProject(ProjectExample projectDescription, File file,
IProgressMonitor monitor) throws Exception {
- List<Project> projects = new ArrayList<Project>();
+ List<ProjectExample> projects = new ArrayList<ProjectExample>();
if (projectDescription.getIncludedProjects() == null) {
boolean ret = importSingleProject(projectDescription, file, monitor);
projects.add(projectDescription);
@@ -130,7 +130,7 @@
project.create(monitor);
}
- private boolean importSingleProject(Project projectDescription, File file,
+ private boolean importSingleProject(ProjectExample projectDescription, File file,
IProgressMonitor monitor) throws CoreException, ZipException,
IOException, InvocationTargetException, InterruptedException {
final String projectName = projectDescription.getName();
Modified: trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/wizard/NewProjectExamplesJob.java
===================================================================
--- trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/wizard/NewProjectExamplesJob.java 2012-02-04 18:30:28 UTC (rev 38431)
+++ trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/wizard/NewProjectExamplesJob.java 2012-02-05 00:36:38 UTC (rev 38432)
@@ -16,14 +16,14 @@
import org.jboss.tools.project.examples.Messages;
import org.jboss.tools.project.examples.ProjectExamplesActivator;
import org.jboss.tools.project.examples.model.IImportProjectExample;
-import org.jboss.tools.project.examples.model.Project;
+import org.jboss.tools.project.examples.model.ProjectExample;
public class NewProjectExamplesJob extends WorkspaceJob {
- private List<Project> selectedProjects;
- private List<Project> projects = new ArrayList<Project>();
+ private List<ProjectExample> selectedProjects;
+ private List<ProjectExample> projects = new ArrayList<ProjectExample>();
- public NewProjectExamplesJob(String name, List<Project> selectedProjects) {
+ public NewProjectExamplesJob(String name, List<ProjectExample> selectedProjects) {
super(name);
this.selectedProjects = selectedProjects;
}
@@ -32,7 +32,7 @@
public IStatus runInWorkspace(IProgressMonitor monitor)
throws CoreException {
projects .clear();
- for (Project selectedProject : selectedProjects) {
+ for (ProjectExample selectedProject : selectedProjects) {
boolean success = ProjectExamplesActivator.downloadProject(
selectedProject, monitor);
if (success) {
@@ -43,7 +43,7 @@
}
try {
setName(Messages.NewProjectExamplesWizard_Importing);
- for (final Project project : projects) {
+ for (final ProjectExample project : projects) {
IImportProjectExample importProjectExample =
ProjectExamplesActivator.getDefault().getImportProjectExample(project.getImportType());
if (importProjectExample == null) {
@@ -88,7 +88,7 @@
return null;
}
- public List<Project> getProjects() {
+ public List<ProjectExample> getProjects() {
return projects;
}
Modified: trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/wizard/NewProjectExamplesWizard.java
===================================================================
--- trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/wizard/NewProjectExamplesWizard.java 2012-02-04 18:30:28 UTC (rev 38431)
+++ trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/wizard/NewProjectExamplesWizard.java 2012-02-05 00:36:38 UTC (rev 38432)
@@ -25,11 +25,11 @@
import org.eclipse.ui.IWorkbench;
import org.jboss.tools.project.examples.Messages;
import org.jboss.tools.project.examples.ProjectExamplesActivator;
-import org.jboss.tools.project.examples.model.Project;
+import org.jboss.tools.project.examples.model.ProjectExample;
public class NewProjectExamplesWizard extends Wizard implements INewWizard {
- private List<Project> projects = new ArrayList<Project>();
+ private List<ProjectExample> projects = new ArrayList<ProjectExample>();
private NewProjectExamplesWizardPage page;
@@ -45,7 +45,7 @@
@Override
public boolean performFinish() {
- final List<Project> selectedProjects = new ArrayList<Project>();
+ final List<ProjectExample> selectedProjects = new ArrayList<ProjectExample>();
if (page.getSelection() == null || page.getSelection().size() <= 0) {
return false;
}
@@ -53,8 +53,8 @@
Iterator iterator = selection.iterator();
while (iterator.hasNext()) {
Object object = iterator.next();
- if (object instanceof Project) {
- Project project = (Project) object;
+ if (object instanceof ProjectExample) {
+ ProjectExample project = (ProjectExample) object;
selectedProjects.add(project);
}
}
Modified: trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/wizard/NewProjectExamplesWizardPage.java
===================================================================
--- trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/wizard/NewProjectExamplesWizardPage.java 2012-02-04 18:30:28 UTC (rev 38431)
+++ trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/wizard/NewProjectExamplesWizardPage.java 2012-02-05 00:36:38 UTC (rev 38432)
@@ -65,12 +65,12 @@
import org.jboss.tools.project.examples.Messages;
import org.jboss.tools.project.examples.ProjectExamplesActivator;
import org.jboss.tools.project.examples.dialog.FixDialog;
-import org.jboss.tools.project.examples.model.Category;
+import org.jboss.tools.project.examples.model.ProjectExampleCategory;
import org.jboss.tools.project.examples.model.IImportProjectExample;
import org.jboss.tools.project.examples.model.IProjectExampleSite;
-import org.jboss.tools.project.examples.model.Project;
+import org.jboss.tools.project.examples.model.ProjectExample;
import org.jboss.tools.project.examples.model.ProjectFix;
-import org.jboss.tools.project.examples.model.ProjectUtil;
+import org.jboss.tools.project.examples.model.ProjectExampleUtil;
import org.jboss.tools.project.examples.preferences.ProjectExamplesPreferencePage;
/**
@@ -89,7 +89,7 @@
private PageBook notesPageBook;
private Composite noteEmptyComposite;
private Composite noteComposite;
- private List<Category> categories;
+ private List<ProjectExampleCategory> categories;
private Text descriptionText;
@@ -199,8 +199,8 @@
public void selectionChanged(SelectionChangedEvent event) {
selection = (IStructuredSelection) event.getSelection();
Object selected = selection.getFirstElement();
- if (selected instanceof Project && selection.size() == 1) {
- Project selectedProject = (Project) selected;
+ if (selected instanceof ProjectExample && selection.size() == 1) {
+ ProjectExample selectedProject = (ProjectExample) selected;
descriptionText.setText(selectedProject.getDescription());
projectName.setText(selectedProject.getName());
projectURL.setText(selectedProject.getUrl());
@@ -422,11 +422,11 @@
siteCombo.setItems(items);
}
- private List<Category> getCategories(boolean show) {
+ private List<ProjectExampleCategory> getCategories(boolean show) {
IRunnableWithProgress op = new IRunnableWithProgress() {
public void run(IProgressMonitor monitor) {
- categories = ProjectUtil.getProjects(monitor);
+ categories = ProjectExampleUtil.getProjects(monitor);
}
};
try {
@@ -434,7 +434,7 @@
} catch (Exception e) {
ProjectExamplesActivator.log(e);
}
- HashSet<IProjectExampleSite> invalidSites = ProjectUtil.getInvalidSites();
+ HashSet<IProjectExampleSite> invalidSites = ProjectExampleUtil.getInvalidSites();
boolean showInvalidSites = ProjectExamplesActivator.getDefault().getPreferenceStore().getBoolean(ProjectExamplesActivator.SHOW_INVALID_SITES);
if (invalidSites.size() > 0 && showInvalidSites && show) {
String message = Messages.NewProjectExamplesWizardPage_Cannot_access_the_following_sites;
@@ -453,9 +453,9 @@
//List<Category> categories = getCategories(true);
Set<String> sites = new TreeSet<String>();
sites.add(ProjectExamplesActivator.ALL_SITES);
- for (Category category:categories) {
- List<Project> projects = category.getProjects();
- for (Project project:projects) {
+ for (ProjectExampleCategory category:categories) {
+ List<ProjectExample> projects = category.getProjects();
+ for (ProjectExample project:projects) {
String name = project.getSite() == null ? ProjectExamplesActivator.ALL_SITES : project.getSite().getName();
sites.add(name);
}
@@ -473,12 +473,12 @@
@Override
public String getText(Object element) {
- if (element instanceof Category) {
- Category category = (Category) element;
+ if (element instanceof ProjectExampleCategory) {
+ ProjectExampleCategory category = (ProjectExampleCategory) element;
return category.getName();
}
- if (element instanceof Project) {
- Project project = (Project) element;
+ if (element instanceof ProjectExample) {
+ ProjectExample project = (ProjectExample) element;
return project.getShortDescription();
}
return super.getText(element);
@@ -494,22 +494,22 @@
//return children.toArray();
return childCollections;
}
- if (parentElement instanceof Category) {
- Category category = (Category) parentElement;
+ if (parentElement instanceof ProjectExampleCategory) {
+ ProjectExampleCategory category = (ProjectExampleCategory) parentElement;
return category.getProjects().toArray();
}
return new Object[0];
}
public Object getParent(Object element) {
- if (element instanceof Project) {
- return ((Project)element).getCategory();
+ if (element instanceof ProjectExample) {
+ return ((ProjectExample)element).getCategory();
}
return null;
}
public boolean hasChildren(Object element) {
- return element instanceof Category;
+ return element instanceof ProjectExampleCategory;
}
public Object[] getElements(Object inputElement) {
@@ -543,9 +543,9 @@
Iterator iterator = selection.iterator();
while (iterator.hasNext()) {
Object object = iterator.next();
- if (object instanceof Project) {
+ if (object instanceof ProjectExample) {
canFinish=true;
- Project project = (Project) object;
+ ProjectExample project = (ProjectExample) object;
String importType = project.getImportType();
if (importType != null && importType.length() > 0) {
IImportProjectExample importProjectExample = ProjectExamplesActivator.getDefault().getImportProjectExample(importType);
Modified: trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/wizard/SiteFilter.java
===================================================================
--- trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/wizard/SiteFilter.java 2012-02-04 18:30:28 UTC (rev 38431)
+++ trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/wizard/SiteFilter.java 2012-02-05 00:36:38 UTC (rev 38432)
@@ -15,9 +15,9 @@
import org.eclipse.jface.viewers.Viewer;
import org.eclipse.jface.viewers.ViewerFilter;
import org.jboss.tools.project.examples.ProjectExamplesActivator;
-import org.jboss.tools.project.examples.model.Category;
+import org.jboss.tools.project.examples.model.ProjectExampleCategory;
import org.jboss.tools.project.examples.model.IProjectExampleSite;
-import org.jboss.tools.project.examples.model.Project;
+import org.jboss.tools.project.examples.model.ProjectExample;
import org.jboss.tools.project.examples.model.ProjectModelElement;
/**
@@ -39,8 +39,8 @@
if (! (element instanceof ProjectModelElement) ) {
return false;
}
- if (element instanceof Category) {
- Category category = (Category) element;
+ if (element instanceof ProjectExampleCategory) {
+ ProjectExampleCategory category = (ProjectExampleCategory) element;
int size = 0;
if (site.equals(ProjectExamplesActivator.ALL_SITES)) {
size += category.getProjects().size();
@@ -52,8 +52,8 @@
if (!site.equals(categorySite.getName())) {
return false;
}
- List<Project> projects = category.getProjects();
- for (Project project:projects) {
+ List<ProjectExample> projects = category.getProjects();
+ for (ProjectExample project:projects) {
IProjectExampleSite projectSite = project.getSite();
if (projectSite == null) {
continue;
Modified: trunk/examples/plugins/org.jboss.tools.project.examples.cheatsheet/src/org/jboss/tools/project/examples/cheatsheet/actions/ImportProjectExample.java
===================================================================
--- trunk/examples/plugins/org.jboss.tools.project.examples.cheatsheet/src/org/jboss/tools/project/examples/cheatsheet/actions/ImportProjectExample.java 2012-02-04 18:30:28 UTC (rev 38431)
+++ trunk/examples/plugins/org.jboss.tools.project.examples.cheatsheet/src/org/jboss/tools/project/examples/cheatsheet/actions/ImportProjectExample.java 2012-02-05 00:36:38 UTC (rev 38432)
@@ -32,8 +32,8 @@
import org.jboss.tools.project.examples.ProjectExamplesActivator;
import org.jboss.tools.project.examples.cheatsheet.Activator;
import org.jboss.tools.project.examples.model.IImportProjectExample;
-import org.jboss.tools.project.examples.model.Project;
-import org.jboss.tools.project.examples.model.ProjectUtil;
+import org.jboss.tools.project.examples.model.ProjectExample;
+import org.jboss.tools.project.examples.model.ProjectExampleUtil;
/**
*
@@ -60,7 +60,7 @@
return;
}
- Project project = new Project();
+ ProjectExample project = new ProjectExample();
project.setName(params[0]);
StringTokenizer tokenizer = new StringTokenizer(params[1],","); //$NON-NLS-1$
List<String> includedProjects = new ArrayList<String>();
@@ -73,7 +73,7 @@
}
- private void importProject(final Project project) {
+ private void importProject(final ProjectExample project) {
WorkspaceJob workspaceJob = new WorkspaceJob(Messages.NewProjectExamplesWizard_Downloading) {
@Override
@@ -88,7 +88,7 @@
ProjectExamplesActivator.log(e);
return Status.CANCEL_STATUS;
}
- final File file = ProjectUtil.getProjectExamplesFile(
+ final File file = ProjectExampleUtil.getProjectExamplesFile(
url, name, ".zip", monitor); //$NON-NLS-1$
if (file == null) {
return Status.CANCEL_STATUS;
@@ -130,7 +130,7 @@
} catch (InterruptedException e) {
return;
}
- List<Project> projects = new ArrayList<Project>();
+ List<ProjectExample> projects = new ArrayList<ProjectExample>();
projects.add(project);
List<IMarker> markers = ProjectExamplesActivator
.getMarkers(projects);
Modified: trunk/examples/plugins/org.jboss.tools.project.examples.cheatsheet/src/org/jboss/tools/project/examples/cheatsheet/actions/RunProjectExample.java
===================================================================
--- trunk/examples/plugins/org.jboss.tools.project.examples.cheatsheet/src/org/jboss/tools/project/examples/cheatsheet/actions/RunProjectExample.java 2012-02-04 18:30:28 UTC (rev 38431)
+++ trunk/examples/plugins/org.jboss.tools.project.examples.cheatsheet/src/org/jboss/tools/project/examples/cheatsheet/actions/RunProjectExample.java 2012-02-05 00:36:38 UTC (rev 38432)
@@ -21,9 +21,9 @@
import org.jboss.tools.project.examples.ProjectExamplesActivator;
import org.jboss.tools.project.examples.cheatsheet.Activator;
import org.jboss.tools.project.examples.cheatsheet.Messages;
-import org.jboss.tools.project.examples.model.Category;
-import org.jboss.tools.project.examples.model.Project;
-import org.jboss.tools.project.examples.model.ProjectUtil;
+import org.jboss.tools.project.examples.model.ProjectExampleCategory;
+import org.jboss.tools.project.examples.model.ProjectExample;
+import org.jboss.tools.project.examples.model.ProjectExampleUtil;
/**
*
@@ -53,11 +53,11 @@
Activator.log(NLS.bind(Messages.RunProjectExample_Invalid_project_example, params[0]));
return;
}
- List<Category> categories = ProjectUtil.getProjects(new NullProgressMonitor());
- Project project = null;
- for (Category category:categories) {
+ List<ProjectExampleCategory> categories = ProjectExampleUtil.getProjects(new NullProgressMonitor());
+ ProjectExample project = null;
+ for (ProjectExampleCategory category:categories) {
if (projectExample[0].equals(category.getName())) {
- for (Project p:category.getProjects()) {
+ for (ProjectExample p:category.getProjects()) {
if (projectExample[1].equals(p.getName())) {
project = p;
break;
@@ -69,7 +69,7 @@
}
}
if (project != null) {
- List<Project> selectedProjects = new ArrayList<Project>();
+ List<ProjectExample> selectedProjects = new ArrayList<ProjectExample>();
selectedProjects.add(project);
ProjectExamplesActivator.importProjectExamples(selectedProjects, true);
}
Modified: trunk/examples/tests/org.jboss.tools.project.examples.test/src/org/jboss/tools/project/examples/test/ProjectTest.java
===================================================================
--- trunk/examples/tests/org.jboss.tools.project.examples.test/src/org/jboss/tools/project/examples/test/ProjectTest.java 2012-02-04 18:30:28 UTC (rev 38431)
+++ trunk/examples/tests/org.jboss.tools.project.examples.test/src/org/jboss/tools/project/examples/test/ProjectTest.java 2012-02-05 00:36:38 UTC (rev 38432)
@@ -39,12 +39,12 @@
import org.eclipse.core.runtime.Status;
import org.jboss.tools.project.examples.Messages;
import org.jboss.tools.project.examples.ProjectExamplesActivator;
-import org.jboss.tools.project.examples.model.Category;
+import org.jboss.tools.project.examples.model.ProjectExampleCategory;
import org.jboss.tools.project.examples.model.IImportProjectExample;
import org.jboss.tools.project.examples.model.IProjectExampleSite;
-import org.jboss.tools.project.examples.model.Project;
+import org.jboss.tools.project.examples.model.ProjectExample;
import org.jboss.tools.project.examples.model.ProjectExampleSite;
-import org.jboss.tools.project.examples.model.ProjectUtil;
+import org.jboss.tools.project.examples.model.ProjectExampleUtil;
import org.jboss.tools.test.util.JobUtils;
import org.junit.AfterClass;
import org.junit.BeforeClass;
@@ -110,10 +110,10 @@
site.setUrl(url);
Set<IProjectExampleSite> sites = new HashSet<IProjectExampleSite>();
sites.add(site);
- List<Category> categories = ProjectUtil.getProjects(sites , new NullProgressMonitor());
- Category category = categories.get(0);
+ List<ProjectExampleCategory> categories = ProjectExampleUtil.getProjects(sites , new NullProgressMonitor());
+ ProjectExampleCategory category = categories.get(0);
assertTrue("Test".equals(category.getName()));
- Project project = category.getProjects().get(0);
+ ProjectExample project = category.getProjects().get(0);
String urlString = project.getUrl();
assertTrue(urlString.startsWith("file:"));
url = new URL(urlString);
@@ -143,17 +143,17 @@
}
private void importProject(IProgressMonitor monitor) throws MalformedURLException, Exception {
- List<Category> projects = ProjectUtil.getProjects(monitor);
- Category seamCategory = null;
- for (Category category: projects) {
+ List<ProjectExampleCategory> projects = ProjectExampleUtil.getProjects(monitor);
+ ProjectExampleCategory seamCategory = null;
+ for (ProjectExampleCategory category: projects) {
if ("Seam".equals(category.getName())) {
seamCategory = category;
break;
}
}
assertNotNull(seamCategory);
- Project projectExample = null;
- for (Project project: seamCategory.getProjects()) {
+ ProjectExample projectExample = null;
+ for (ProjectExample project: seamCategory.getProjects()) {
if ("numberguess".equals(project.getName())) {
projectExample = project;
break;
@@ -164,7 +164,7 @@
String name = projectExample.getName();
URL url = null;
url = new URL(urlString);
- File file = ProjectUtil.getProjectExamplesFile(
+ File file = ProjectExampleUtil.getProjectExamplesFile(
url, name, ".zip", monitor); //$NON-NLS-1$
assertNotNull(file);
IImportProjectExample importProjectExample = ProjectExamplesActivator.getDefault().getImportProjectExample(projectExample.getImportType());
Modified: trunk/examples/tests/org.jboss.tools.project.examples.test/src/org/jboss/tools/project/examples/test/SiteTest.java
===================================================================
--- trunk/examples/tests/org.jboss.tools.project.examples.test/src/org/jboss/tools/project/examples/test/SiteTest.java 2012-02-04 18:30:28 UTC (rev 38431)
+++ trunk/examples/tests/org.jboss.tools.project.examples.test/src/org/jboss/tools/project/examples/test/SiteTest.java 2012-02-05 00:36:38 UTC (rev 38432)
@@ -18,7 +18,7 @@
import org.eclipse.core.runtime.NullProgressMonitor;
import org.jboss.tools.project.examples.model.IProjectExampleSite;
import org.jboss.tools.project.examples.model.ProjectExampleSite;
-import org.jboss.tools.project.examples.model.ProjectUtil;
+import org.jboss.tools.project.examples.model.ProjectExampleUtil;
import org.junit.Test;
/**
@@ -31,15 +31,15 @@
@Test
public void sitesPresent() {
Set<IProjectExampleSite> sites = new HashSet<IProjectExampleSite>();
- sites.addAll(ProjectUtil.getPluginSites());
- sites.addAll(ProjectUtil.getUserSites());
+ sites.addAll(ProjectExampleUtil.getPluginSites());
+ sites.addAll(ProjectExampleUtil.getUserSites());
assertTrue(sites.size() > 0);
}
@Test
public void testInvalidSites() {
- ProjectUtil.getProjects(new NullProgressMonitor());
- HashSet<IProjectExampleSite> invalidSites = ProjectUtil.getInvalidSites();
+ ProjectExampleUtil.getProjects(new NullProgressMonitor());
+ HashSet<IProjectExampleSite> invalidSites = ProjectExampleUtil.getInvalidSites();
assertTrue(invalidSites.size() <= 0);
}
Modified: trunk/maven/plugins/org.jboss.tools.maven.project.examples/src/org/jboss/tools/maven/project/examples/ImportMavenArchetypeProjectExample.java
===================================================================
--- trunk/maven/plugins/org.jboss.tools.maven.project.examples/src/org/jboss/tools/maven/project/examples/ImportMavenArchetypeProjectExample.java 2012-02-04 18:30:28 UTC (rev 38431)
+++ trunk/maven/plugins/org.jboss.tools.maven.project.examples/src/org/jboss/tools/maven/project/examples/ImportMavenArchetypeProjectExample.java 2012-02-05 00:36:38 UTC (rev 38432)
@@ -33,7 +33,7 @@
import org.eclipse.swt.widgets.Shell;
import org.jboss.tools.maven.project.examples.wizard.ArchetypeExamplesWizard;
import org.jboss.tools.project.examples.model.AbstractImportProjectExample;
-import org.jboss.tools.project.examples.model.Project;
+import org.jboss.tools.project.examples.model.ProjectExample;
/**
* @author snjeza
@@ -43,9 +43,9 @@
AbstractImportProjectExample {
@Override
- public boolean importProject(final Project projectDescription, File file,
+ public boolean importProject(final ProjectExample projectDescription, File file,
final IProgressMonitor monitor) throws Exception {
- List<Project> projects = new ArrayList<Project>();
+ List<ProjectExample> projects = new ArrayList<ProjectExample>();
projects.add(projectDescription);
//IPath location = getLocation();
//final File destination = new File(location.toOSString());
Modified: trunk/maven/plugins/org.jboss.tools.maven.project.examples/src/org/jboss/tools/maven/project/examples/ImportMavenProjectExample.java
===================================================================
--- trunk/maven/plugins/org.jboss.tools.maven.project.examples/src/org/jboss/tools/maven/project/examples/ImportMavenProjectExample.java 2012-02-04 18:30:28 UTC (rev 38431)
+++ trunk/maven/plugins/org.jboss.tools.maven.project.examples/src/org/jboss/tools/maven/project/examples/ImportMavenProjectExample.java 2012-02-05 00:36:38 UTC (rev 38432)
@@ -36,7 +36,7 @@
import org.jboss.tools.maven.ui.Activator;
import org.jboss.tools.project.examples.ProjectExamplesActivator;
import org.jboss.tools.project.examples.model.AbstractImportProjectExample;
-import org.jboss.tools.project.examples.model.Project;
+import org.jboss.tools.project.examples.model.ProjectExample;
/**
* @author snjeza
@@ -49,9 +49,9 @@
private boolean confirm;
@Override
- public boolean importProject(Project projectDescription, File file,
+ public boolean importProject(ProjectExample projectDescription, File file,
IProgressMonitor monitor) throws Exception {
- List<Project> projects = new ArrayList<Project>();
+ List<ProjectExample> projects = new ArrayList<ProjectExample>();
projects.add(projectDescription);
IPath rootPath = getLocation();
IPath mavenProjectsRoot = rootPath;
@@ -154,7 +154,7 @@
}
private List<String> importMavenProjects(final File destination,
- final Project projectDescription, IProgressMonitor monitor) {
+ final ProjectExample projectDescription, IProgressMonitor monitor) {
List<String> projectNames = new ArrayList<String>();
MavenPlugin plugin = MavenPlugin.getDefault();
try {
Modified: trunk/maven/plugins/org.jboss.tools.maven.project.examples/src/org/jboss/tools/maven/project/examples/wizard/ArchetypeExamplesWizard.java
===================================================================
--- trunk/maven/plugins/org.jboss.tools.maven.project.examples/src/org/jboss/tools/maven/project/examples/wizard/ArchetypeExamplesWizard.java 2012-02-04 18:30:28 UTC (rev 38431)
+++ trunk/maven/plugins/org.jboss.tools.maven.project.examples/src/org/jboss/tools/maven/project/examples/wizard/ArchetypeExamplesWizard.java 2012-02-05 00:36:38 UTC (rev 38432)
@@ -46,7 +46,7 @@
import org.jboss.tools.maven.project.examples.MavenProjectExamplesActivator;
import org.jboss.tools.maven.ui.Activator;
import org.jboss.tools.project.examples.ProjectExamplesActivator;
-import org.jboss.tools.project.examples.model.Project;
+import org.jboss.tools.project.examples.model.ProjectExample;
/**
*
@@ -55,7 +55,7 @@
*/
public class ArchetypeExamplesWizard extends Wizard implements INewWizard {
- private Project projectDescription;
+ private ProjectExample projectDescription;
private ProjectImportConfiguration configuration;
private ArchetypeExamplesWizardFirstPage simplePage;
private ArchetypeExamplesWizardPage wizardPage;
@@ -64,7 +64,7 @@
private String artifactId;
private IPath locationPath;
- public ArchetypeExamplesWizard(Project projectDescription) {
+ public ArchetypeExamplesWizard(ProjectExample projectDescription) {
super();
setWindowTitle("New JBoss Project");
setDefaultPageImageDescriptor(MavenProjectExamplesActivator.getNewWizardImageDescriptor());
Modified: trunk/maven/plugins/org.jboss.tools.maven.project.examples/src/org/jboss/tools/maven/project/examples/wizard/ArchetypeExamplesWizardFirstPage.java
===================================================================
--- trunk/maven/plugins/org.jboss.tools.maven.project.examples/src/org/jboss/tools/maven/project/examples/wizard/ArchetypeExamplesWizardFirstPage.java 2012-02-04 18:30:28 UTC (rev 38431)
+++ trunk/maven/plugins/org.jboss.tools.maven.project.examples/src/org/jboss/tools/maven/project/examples/wizard/ArchetypeExamplesWizardFirstPage.java 2012-02-05 00:36:38 UTC (rev 38432)
@@ -56,7 +56,7 @@
import org.jboss.ide.eclipse.as.core.util.RuntimeUtils;
import org.jboss.tools.maven.project.examples.MavenProjectExamplesActivator;
import org.jboss.tools.maven.project.examples.Messages;
-import org.jboss.tools.project.examples.model.Project;
+import org.jboss.tools.project.examples.model.ProjectExample;
/**
* Simplified UI for the Maven Archetype Wizard, based off the original m2e MavenProjectWizardLocationPage.
@@ -79,11 +79,11 @@
private ModifyListener projectNameModifyListener;
private ModifyListener packageNameModifyListener;
private ModifyListener propertyModifyListener;
- private final Project projectDescription;
+ private final ProjectExample projectDescription;
public ArchetypeExamplesWizardFirstPage(
ProjectImportConfiguration configuration,
- Project projectDescription, List<IWorkingSet> workingSet) {
+ ProjectExample projectDescription, List<IWorkingSet> workingSet) {
super(configuration, projectDescription.getShortDescription(),Messages.ArchetypeExamplesWizardFirstPage_Title, workingSet);
this.projectDescription = projectDescription;
setPageComplete(false);
Modified: trunk/maven/plugins/org.jboss.tools.maven.project.examples/src/org/jboss/tools/maven/project/examples/wizard/ArchetypeExamplesWizardPage.java
===================================================================
--- trunk/maven/plugins/org.jboss.tools.maven.project.examples/src/org/jboss/tools/maven/project/examples/wizard/ArchetypeExamplesWizardPage.java 2012-02-04 18:30:28 UTC (rev 38431)
+++ trunk/maven/plugins/org.jboss.tools.maven.project.examples/src/org/jboss/tools/maven/project/examples/wizard/ArchetypeExamplesWizardPage.java 2012-02-05 00:36:38 UTC (rev 38432)
@@ -49,7 +49,7 @@
import org.jboss.tools.maven.project.examples.MavenProjectExamplesActivator;
import org.jboss.tools.maven.project.examples.wizard.xpl.MavenProjectWizardArchetypeParametersPage;
import org.jboss.tools.project.examples.model.ArchetypeModel;
-import org.jboss.tools.project.examples.model.Project;
+import org.jboss.tools.project.examples.model.ProjectExample;
/**
*
@@ -59,12 +59,12 @@
public class ArchetypeExamplesWizardPage extends
MavenProjectWizardArchetypeParametersPage {
- private Project projectDescription;
+ private ProjectExample projectDescription;
private Composite warningLink;
private Boolean isEnterpriseRepoAvailable;
public ArchetypeExamplesWizardPage(
- ProjectImportConfiguration configuration, Project projectDescription) {
+ ProjectImportConfiguration configuration, ProjectExample projectDescription) {
super(configuration);
setTitle(projectDescription.getShortDescription());
this.projectDescription = projectDescription;
13 years, 8 months
JBoss Tools SVN: r38431 - in trunk/vpe/plugins/org.jboss.tools.vpe.browsersim.eclipse: src/org/jboss/tools/vpe/browsersim/eclipse/actions and 1 other directories.
by jbosstools-commits@lists.jboss.org
Author: yradtsevich
Date: 2012-02-04 13:30:28 -0500 (Sat, 04 Feb 2012)
New Revision: 38431
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe.browsersim.eclipse/plugin.xml
trunk/vpe/plugins/org.jboss.tools.vpe.browsersim.eclipse/src/org/jboss/tools/vpe/browsersim/eclipse/actions/RunBrowserSimAction.java
trunk/vpe/plugins/org.jboss.tools.vpe.browsersim.eclipse/src/org/jboss/tools/vpe/browsersim/eclipse/editors/BrowserSimEditorLauncher.java
Log:
https://issues.jboss.org/browse/JBIDE-10553 : BrowserSim launch via toolbar/command should guess which url based on current selection/editor
Modified: trunk/vpe/plugins/org.jboss.tools.vpe.browsersim.eclipse/plugin.xml
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe.browsersim.eclipse/plugin.xml 2012-02-04 07:09:00 UTC (rev 38430)
+++ trunk/vpe/plugins/org.jboss.tools.vpe.browsersim.eclipse/plugin.xml 2012-02-04 18:30:28 UTC (rev 38431)
@@ -41,7 +41,7 @@
<extension
point="org.eclipse.ui.editors">
<editor
- extensions="html"
+ extensions="htm, html"
icon="icons/sample.gif"
id="org.jboss.tools.vpe.browsersim.eclipse.editors.BrowserSimLauncher"
launcher="org.jboss.tools.vpe.browsersim.eclipse.editors.BrowserSimEditorLauncher"
Modified: trunk/vpe/plugins/org.jboss.tools.vpe.browsersim.eclipse/src/org/jboss/tools/vpe/browsersim/eclipse/actions/RunBrowserSimAction.java
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe.browsersim.eclipse/src/org/jboss/tools/vpe/browsersim/eclipse/actions/RunBrowserSimAction.java 2012-02-04 07:09:00 UTC (rev 38430)
+++ trunk/vpe/plugins/org.jboss.tools.vpe.browsersim.eclipse/src/org/jboss/tools/vpe/browsersim/eclipse/actions/RunBrowserSimAction.java 2012-02-04 18:30:28 UTC (rev 38431)
@@ -10,10 +10,31 @@
******************************************************************************/
package org.jboss.tools.vpe.browsersim.eclipse.actions;
+import java.lang.reflect.Field;
+
+import org.eclipse.core.resources.IFile;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IPath;
+import org.eclipse.core.runtime.Platform;
import org.eclipse.jface.action.IAction;
import org.eclipse.jface.viewers.ISelection;
+import org.eclipse.jface.viewers.IStructuredSelection;
+import org.eclipse.ui.IEditorDescriptor;
+import org.eclipse.ui.IEditorPart;
+import org.eclipse.ui.IEditorSite;
+import org.eclipse.ui.IFileEditorInput;
+import org.eclipse.ui.IViewPart;
+import org.eclipse.ui.IViewSite;
+import org.eclipse.ui.IWorkbenchPage;
+import org.eclipse.ui.IWorkbenchPart;
import org.eclipse.ui.IWorkbenchWindow;
import org.eclipse.ui.IWorkbenchWindowActionDelegate;
+import org.eclipse.ui.PlatformUI;
+import org.eclipse.ui.internal.browser.BrowserViewer;
+import org.eclipse.ui.internal.browser.WebBrowserEditor;
+import org.eclipse.ui.internal.browser.WebBrowserView;
+import org.jboss.tools.vpe.browsersim.eclipse.Activator;
+import org.jboss.tools.vpe.browsersim.eclipse.editors.BrowserSimEditorLauncher;
import org.jboss.tools.vpe.browsersim.eclipse.util.BrowserSimLauncher;
/**
@@ -23,9 +44,154 @@
@Override
public void run(IAction action) {
- BrowserSimLauncher.launchBrowserSim(null);
+ String url = guessUrl();
+ BrowserSimLauncher.launchBrowserSim(url);
}
+ private String guessUrl() {
+ String url = null;
+
+ IWorkbenchWindow window = PlatformUI.getWorkbench().getActiveWorkbenchWindow();
+ if (window != null) {
+ IWorkbenchPage page = window.getActivePage();
+ if (page != null) {
+ IWorkbenchPart part = page.getActivePart();
+ url = getInternalWebBrowserUrl(part);
+ if (url == null) {
+ IFile activeEditorFile = getEditorFile(part);
+ if (isSupportedFile(activeEditorFile)) {
+ url = toUrl(activeEditorFile);
+ }
+ }
+ }
+
+ if (url == null) {
+ ISelection selection = window.getSelectionService().getSelection();
+ IFile selectedFile = getSelectedFile(selection);
+ if (isSupportedFile(selectedFile)) {
+ url = toUrl(selectedFile);
+ }
+ }
+ }
+
+ return url;
+ }
+
+ private boolean isSupportedFile(IFile file) {
+ if (file != null) {
+ IEditorDescriptor[] editors = PlatformUI.getWorkbench()
+ .getEditorRegistry().getEditors(file.getName());
+
+ for (IEditorDescriptor editor : editors) {
+ if (BrowserSimEditorLauncher.EDITOR_ID.equals(editor.getId())) {
+ return true;
+ }
+ }
+ }
+
+ return false;
+ }
+
+ /**
+ * If {@code part} is Internal Web Browser, returns opened URL. Otherwise
+ * returns {@code null}.
+ */
+ private String getInternalWebBrowserUrl(IWorkbenchPart part) {
+ String url = null;
+
+ BrowserViewer browserViewer = null;
+ if (part instanceof IViewPart) {
+ IViewSite viewSite = ((IViewPart) part).getViewSite();
+ if (WebBrowserView.WEB_BROWSER_VIEW_ID.equals(viewSite.getId()) && part instanceof WebBrowserView) {
+ browserViewer = getFieldValue(part, "viewer");
+ }
+ } else if (part instanceof IEditorPart) {
+ IEditorPart editorPart = (IEditorPart) part;
+ IEditorSite editorSite = editorPart.getEditorSite();
+ if (WebBrowserEditor.WEB_BROWSER_EDITOR_ID.equals(editorSite.getId()) && part instanceof WebBrowserEditor) {
+ browserViewer = getFieldValue(part, "webBrowser");
+ }
+ }
+
+ if (browserViewer != null) {
+ url = browserViewer.getURL();
+ }
+
+ return url;
+ }
+
+ /**
+ * If {@code part} is Internal Web Browser, returns opened URL. Otherwise
+ * returns {@code null}.
+ */
+ private IFile getEditorFile(IWorkbenchPart part) {
+ IFile file = null;
+
+ if (part instanceof IEditorPart) {
+ IEditorPart editorPart = (IEditorPart) part;
+
+ if (editorPart.getEditorInput() instanceof IFileEditorInput) {
+ IFileEditorInput fileEditorInput = (IFileEditorInput) editorPart.getEditorInput();
+ file = fileEditorInput.getFile();
+ }
+ }
+
+ return file;
+ }
+
+ @SuppressWarnings("unchecked")
+ private <T> T getFieldValue(Object object, String name) {
+ T fieldValue = null;
+ try {
+ Field field = object.getClass().getDeclaredField(name);
+ field.setAccessible(true);
+ fieldValue = (T) field.get(object);
+ } catch (SecurityException e) {
+ Activator.logError(e.getMessage(), e);
+ } catch (NoSuchFieldException e) {
+ Activator.logError(e.getMessage(), e);
+ } catch (IllegalArgumentException e) {
+ Activator.logError(e.getMessage(), e);
+ } catch (IllegalAccessException e) {
+ Activator.logError(e.getMessage(), e);
+ }
+
+ return fieldValue;
+ }
+
+ /**
+ * Returns selected file, if a file is contained in the {@code selection}.
+ * Otherwise returns {@code null}.
+ */
+ private IFile getSelectedFile(ISelection selection) {
+ IFile file = null;
+ if (selection instanceof IStructuredSelection) {
+ IStructuredSelection ssel = (IStructuredSelection) selection;
+ Object firstSelectedElement = ssel.getFirstElement();
+ file = (IFile) Platform.getAdapterManager().getAdapter(firstSelectedElement,
+ IFile.class);
+
+ if (file == null) {
+ if (firstSelectedElement instanceof IAdaptable) {
+ file = (IFile) ((IAdaptable) firstSelectedElement).getAdapter(IFile.class);
+ }
+ }
+ }
+ return file;
+ }
+
+ private String toUrl(IFile file) {
+ String url = null;
+
+ if (file != null) {
+ IPath location = file.getLocation();
+ if (location != null) {
+ url = location.toFile().toURI().toASCIIString();
+ }
+ }
+ return url;
+ }
+
@Override
public void selectionChanged(IAction action, ISelection selection) {
}
Modified: trunk/vpe/plugins/org.jboss.tools.vpe.browsersim.eclipse/src/org/jboss/tools/vpe/browsersim/eclipse/editors/BrowserSimEditorLauncher.java
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe.browsersim.eclipse/src/org/jboss/tools/vpe/browsersim/eclipse/editors/BrowserSimEditorLauncher.java 2012-02-04 07:09:00 UTC (rev 38430)
+++ trunk/vpe/plugins/org.jboss.tools.vpe.browsersim.eclipse/src/org/jboss/tools/vpe/browsersim/eclipse/editors/BrowserSimEditorLauncher.java 2012-02-04 18:30:28 UTC (rev 38431)
@@ -19,6 +19,7 @@
* @author "Yahor Radtsevich (yradtsevich)"
*/
public class BrowserSimEditorLauncher implements IEditorLauncher {
+ public static final String EDITOR_ID = "org.jboss.tools.vpe.browsersim.eclipse.editors.BrowserSimLauncher"; //$NON-NLS-1$
@Override
public void open(IPath file) {
13 years, 8 months
JBoss Tools SVN: r38430 - trunk/download.jboss.org/jbosstools/updates/indigo/SR1-M.
by jbosstools-commits@lists.jboss.org
Author: nickboldt
Date: 2012-02-04 02:09:00 -0500 (Sat, 04 Feb 2012)
New Revision: 38430
Modified:
trunk/download.jboss.org/jbosstools/updates/indigo/SR1-M/compositeArtifac...
trunk/download.jboss.org/jbosstools/updates/indigo/SR1-M/compositeContent...
Log:
update indigo, bpel, bpmn2-modeler, ecf, eclipse, emf, mylyn, and webtools to newer post-SR1 versions
Modified: trunk/download.jboss.org/jbosstools/updates/indigo/SR1-M/compositeArtifac...
===================================================================
--- trunk/download.jboss.org/jbosstools/updates/indigo/SR1-M/compositeArtifac... 2012-02-04 07:06:17 UTC (rev 38429)
+++ trunk/download.jboss.org/jbosstools/updates/indigo/SR1-M/compositeArtifac... 2012-02-04 07:09:00 UTC (rev 38430)
@@ -3,27 +3,27 @@
<repository name='JBoss Tools Requirements - Composite Indigo SR1 Mirror' type='org.eclipse.equinox.internal.p2.artifact.repository.CompositeArtifactRepository' version='1.0.0'>
<properties size='2'>
<property name='p2.compressed' value='true'/>
-<property name='p2.timestamp' value='1327950950000'/>
+<property name='p2.timestamp' value='1328335349000'/>
</properties>
<children size='15'>
-<child location='../../requirements/indigo/201112221140-SR1-M/'/>
+<child location='../../requirements/indigo/201202012328-SR1-M/'/>
<child location='../../requirements/birt/3.7.1/'/>
-<child location='../../requirements/bpel/0.8.0.v20111120-0746-H98-CI/'/>
-<child location='../../requirements/bpmn2-modeler/20120105-0830/'/>
-<child location='../../requirements/ecf/3.5.3/'/>
+<child location='../../requirements/bpel/0.8.0.v20120202-0453-H135-CI/'/>
+<child location='../../requirements/bpmn2-modeler/201201302358/'/>
+<child location='../../requirements/ecf/3.5.4/'/>
-<child location='../../requirements/eclipse/3.7.2.M20111214-1406/'/>
+<child location='../../requirements/eclipse/3.7.2.M20120201-1336/'/>
<child location='../../requirements/egit/1.2.0.201112131611/'/>
-<child location='../../requirements/emf/2.7.2.v20111031-1121/'/>
+<child location='../../requirements/emf/2.7.2.v20120130-0943/'/>
<!-- <child location='http://dl.google.com/eclipse/plugin/3.7/'/> -->
<child location='../../requirements/gwt/2.5.0.v201201120043-rel-r37/'/>
<!-- includes m2e, m2e-extras, m2e-wtp -->
<child location='../../requirements/m2eclipse/20111005-1500/'/>
-<child location='../../requirements/mylyn/3.6.4.v20111118-0100/'/>
+<child location='../../requirements/mylyn/3.6.5.I20120201-0822/'/>
<child location='../../requirements/orbit/R20110523182458/'/>
<child location='../../requirements/swtbot/2.0.5/'/>
-<child location='../../requirements/webtools/3.3.2-20120112170214/'/>
+<child location='../../requirements/webtools/3.3.2-20120126205453/'/>
<child location='../../requirements/xulrunner-1.9.2/'/>
</children>
</repository>
Modified: trunk/download.jboss.org/jbosstools/updates/indigo/SR1-M/compositeContent...
===================================================================
--- trunk/download.jboss.org/jbosstools/updates/indigo/SR1-M/compositeContent... 2012-02-04 07:06:17 UTC (rev 38429)
+++ trunk/download.jboss.org/jbosstools/updates/indigo/SR1-M/compositeContent... 2012-02-04 07:09:00 UTC (rev 38430)
@@ -3,27 +3,27 @@
<repository name='JBoss Tools Requirements - Composite Indigo SR1 Mirror' type='org.eclipse.equinox.internal.p2.metadata.repository.CompositeMetadataRepository' version='1.0.0'>
<properties size='2'>
<property name='p2.compressed' value='true'/>
-<property name='p2.timestamp' value='1327950963000'/>
+<property name='p2.timestamp' value='1328335352000'/>
</properties>
<children size='15'>
-<child location='../../requirements/indigo/201112221140-SR1-M/'/>
+<child location='../../requirements/indigo/201202012328-SR1-M/'/>
<child location='../../requirements/birt/3.7.1/'/>
-<child location='../../requirements/bpel/0.8.0.v20111120-0746-H98-CI/'/>
-<child location='../../requirements/bpmn2-modeler/20120105-0830/'/>
-<child location='../../requirements/ecf/3.5.3/'/>
+<child location='../../requirements/bpel/0.8.0.v20120202-0453-H135-CI/'/>
+<child location='../../requirements/bpmn2-modeler/201201302358/'/>
+<child location='../../requirements/ecf/3.5.4/'/>
-<child location='../../requirements/eclipse/3.7.2.M20111214-1406/'/>
+<child location='../../requirements/eclipse/3.7.2.M20120201-1336/'/>
<child location='../../requirements/egit/1.2.0.201112131611/'/>
-<child location='../../requirements/emf/2.7.2.v20111031-1121/'/>
+<child location='../../requirements/emf/2.7.2.v20120130-0943/'/>
<!-- <child location='http://dl.google.com/eclipse/plugin/3.7/'/> -->
<child location='../../requirements/gwt/2.5.0.v201201120043-rel-r37/'/>
<!-- includes m2e, m2e-extras, m2e-wtp -->
<child location='../../requirements/m2eclipse/20111005-1500/'/>
-<child location='../../requirements/mylyn/3.6.4.v20111118-0100/'/>
+<child location='../../requirements/mylyn/3.6.5.I20120201-0822/'/>
<child location='../../requirements/orbit/R20110523182458/'/>
<child location='../../requirements/swtbot/2.0.5/'/>
-<child location='../../requirements/webtools/3.3.2-20120112170214/'/>
+<child location='../../requirements/webtools/3.3.2-20120126205453/'/>
<child location='../../requirements/xulrunner-1.9.2/'/>
</children>
</repository>
13 years, 8 months