Author: akazakov
Date: 2012-01-20 16:26:21 -0500 (Fri, 20 Jan 2012)
New Revision: 38006
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/project/facet/SeamRuntimeManager.java
Log:
https://issues.jboss.org/browse/JBIDE-10679 Seam facet version 2.3
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/project/facet/SeamRuntimeManager.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/project/facet/SeamRuntimeManager.java 2012-01-20
19:11:56 UTC (rev 38005)
+++
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/project/facet/SeamRuntimeManager.java 2012-01-20
21:26:21 UTC (rev 38006)
@@ -116,7 +116,7 @@
* then the default one will be returned.
*/
public SeamRuntime getLatestSeamRuntime() {
- SeamVersion latestVersion = SeamVersion.getLatestDefaultVersion();
+ SeamVersion latestVersion =
runtimes.isEmpty()?SeamVersion.getLatestDefaultVersion():SeamVersion.SEAM_2_0;
for (SeamRuntime runtime : runtimes.values()) {
if(runtime.getVersion().compareTo(latestVersion)>=0) {
latestVersion = runtime.getVersion();