Author: adietish
Date: 2011-05-02 08:25:39 -0400 (Mon, 02 May 2011)
New Revision: 30994
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/wizards/JBoss7ServerWizardFragment.java
Log:
corrected warnings
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/wizards/JBoss7ServerWizardFragment.java
===================================================================
---
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/wizards/JBoss7ServerWizardFragment.java 2011-05-02
09:47:13 UTC (rev 30993)
+++
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/wizards/JBoss7ServerWizardFragment.java 2011-05-02
12:25:39 UTC (rev 30994)
@@ -9,7 +9,6 @@
import org.eclipse.wst.server.core.IRuntime;
import org.eclipse.wst.server.core.IRuntimeWorkingCopy;
import org.eclipse.wst.server.core.TaskModel;
-import org.jboss.ide.eclipse.as.core.server.IJBossServerRuntime;
import org.jboss.ide.eclipse.as.ui.Messages;
public class JBoss7ServerWizardFragment extends JBossRuntimeWizardFragment {
@@ -67,7 +66,7 @@
@Override
protected boolean isHomeValid() {
- if( homeDir == null || homeDir.equals("") || !(new File(homeDir).exists()))
+ if( homeDir == null || homeDir.length() == 0 || !(new File(homeDir).exists()))
return false;
return true;
}
@@ -75,7 +74,7 @@
@Override
protected String getVersionString(File loc) {
// TODO clean this up for later
- return "7.0";
+ return "7.0"; //$NON-NLS-1$
}
@Override
Show replies by date