if (runtime == null) {
wizard.setMessage("", IMessageProvider.ERROR);
return;
}
IRuntimeWorkingCopy runtimeWC = getRuntimeDelegate().getRuntimeWorkingCopy();
getRuntimeDelegate().setInstanceProperty("serverRootDirectory", installDir.getText());
if (installDir.getText() == null || installDir.getText().length() == 0) {
// installDir field has not been entered
wizard.setMessage(Messages.bind(Messages.installDirInfo, runtimeName), IMessageProvider.NONE);
} else {
IStatus status = runtimeWC.validate(null);
if (status == null || status.isOK()) {
// a valid install found
wizard.setMessage(Messages.bind(Messages.serverDetected, runtimeName), IMessageProvider.NONE);
} else if (status.getCode() == GeronimoRuntimeDelegate.INCORRECT_VERSION) {
if (status.getSeverity() == IStatus.ERROR) {