geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sppa...@apache.org
Subject svn commit: r370877 - /geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/internal/GeronimoServerRuntimeWizardFragment.java
Date Fri, 20 Jan 2006 18:29:32 GMT
Author: sppatel
Date: Fri Jan 20 10:29:30 2006
New Revision: 370877

URL: http://svn.apache.org/viewcvs?rev=370877&view=rev
Log:
null check out runtime validate status

Modified:
    geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/internal/GeronimoServerRuntimeWizardFragment.java

Modified: geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/internal/GeronimoServerRuntimeWizardFragment.java
URL: http://svn.apache.org/viewcvs/geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/internal/GeronimoServerRuntimeWizardFragment.java?rev=370877&r1=370876&r2=370877&view=diff
==============================================================================
--- geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/internal/GeronimoServerRuntimeWizardFragment.java
(original)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/internal/GeronimoServerRuntimeWizardFragment.java
Fri Jan 20 10:29:30 2006
@@ -103,7 +103,9 @@
 	 */
 	public void createContent(Composite parent, IWizardHandle handle) {
 
-		getWizard().setImageDescriptor(GeronimoUIPlugin.getImageDescriptor(GeronimoUIPlugin.IMG_WIZ_GERONIMO));
+		getWizard().setImageDescriptor(
+				GeronimoUIPlugin
+						.getImageDescriptor(GeronimoUIPlugin.IMG_WIZ_GERONIMO));
 
 		fDecorators = new GenericServerCompositeDecorator[1];
 		fDecorators[0] = new GeronimoJRESelectDecorator(getRuntimeDelegate());
@@ -221,14 +223,17 @@
 		}
 
 	}
-	
-	/* (non-Javadoc)
+
+	/*
+	 * (non-Javadoc)
+	 * 
 	 * @see org.eclipse.wst.server.ui.wizard.WizardFragment#isComplete()
 	 */
 	public boolean isComplete() {
 		IRuntimeWorkingCopy runtimeWC = getRuntimeDelegate()
-		.getRuntimeWorkingCopy();
-		return runtimeWC.validate(null).isOK();
+				.getRuntimeWorkingCopy();
+		IStatus status = runtimeWC.validate(null);
+		return status == null || status.isOK();
 	}
 
 	protected void validate() {



Mime
View raw message