Author: mculpepper(a)jboss.com
Date: 2007-06-15 20:41:24 -0400 (Fri, 15 Jun 2007)
New Revision: 2139
Modified:
trunk/ejb3/plugins/org.jboss.ide.eclipse.ejb3.wizards.ui/src/main/org/jboss/ide/eclipse/ejb3/ui/wizards/Ejb30ProjectFirstPage.java
Log:
server target combo assumed an AS instance was already defined
Modified:
trunk/ejb3/plugins/org.jboss.ide.eclipse.ejb3.wizards.ui/src/main/org/jboss/ide/eclipse/ejb3/ui/wizards/Ejb30ProjectFirstPage.java
===================================================================
---
trunk/ejb3/plugins/org.jboss.ide.eclipse.ejb3.wizards.ui/src/main/org/jboss/ide/eclipse/ejb3/ui/wizards/Ejb30ProjectFirstPage.java 2007-06-15
18:40:47 UTC (rev 2138)
+++
trunk/ejb3/plugins/org.jboss.ide.eclipse.ejb3.wizards.ui/src/main/org/jboss/ide/eclipse/ejb3/ui/wizards/Ejb30ProjectFirstPage.java 2007-06-16
00:41:24 UTC (rev 2139)
@@ -139,8 +139,11 @@
protected void hideOrShowWarning() {
int index = serverTargetCombo.getSelectionIndex();
- String runtimeName = serverTargetCombo.getItem(index);
- org.eclipse.wst.server.core.IRuntime rt = ServerCore.findRuntime(runtimeName);
- warningLabel.setVisible(!EJB30SupportVerifier.verify(rt));
+ if (index > 0)
+ {
+ String runtimeName = serverTargetCombo.getItem(index);
+ org.eclipse.wst.server.core.IRuntime rt = ServerCore.findRuntime(runtimeName);
+ warningLabel.setVisible(!EJB30SupportVerifier.verify(rt));
+ }
}
}
\ No newline at end of file
Show replies by date