Author: dazarov
Date: 2008-01-16 09:10:23 -0500 (Wed, 16 Jan 2008)
New Revision: 5741
Modified:
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/widget/editor/SeamRuntimeListFieldEditor.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-1210
Modified:
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/widget/editor/SeamRuntimeListFieldEditor.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/widget/editor/SeamRuntimeListFieldEditor.java 2008-01-16
13:53:29 UTC (rev 5740)
+++
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/widget/editor/SeamRuntimeListFieldEditor.java 2008-01-16
14:10:23 UTC (rev 5741)
@@ -511,6 +511,11 @@
String seamVersion = getSeamVersion(homeDir
.getValueAsString());
+ if (seamVersion == null) {
+ setErrorMessage(SeamUIMessages.SEAM_RUNTIME_LIST_FIELD_EDITOR_CANNOT_FIND_JBOSS_SEAM_JAR);
+ setPageComplete(false);
+ return;
+ }
if (seamVersion != null && validSeamVersions != null) {
for (SeamVersion ver : validSeamVersions) {
if (seamVersion.matches(ver.toString().replace(".",