Author: adietish
Date: 2011-05-05 05:48:47 -0400 (Thu, 05 May 2011)
New Revision: 31091
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/wizards/JBossRuntimeWizardFragment.java
Log:
corrected warning about deprecated jface dialog API
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/wizards/JBossRuntimeWizardFragment.java
===================================================================
---
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/wizards/JBossRuntimeWizardFragment.java 2011-05-05
09:47:07 UTC (rev 31090)
+++
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/wizards/JBossRuntimeWizardFragment.java 2011-05-05
09:48:47 UTC (rev 31091)
@@ -33,6 +33,7 @@
import org.eclipse.core.runtime.Platform;
import org.eclipse.core.runtime.Preferences;
import org.eclipse.jdt.launching.IVMInstall;
+import org.eclipse.jface.dialogs.Dialog;
import org.eclipse.jface.dialogs.IDialogConstants;
import org.eclipse.jface.dialogs.IMessageProvider;
import org.eclipse.jface.dialogs.MessageDialog;
@@ -905,8 +906,8 @@
} else {
setCleanMessage();
}
- if( getOKButton() != null )
- getOKButton().setEnabled(valid);
+ if( getButton(Dialog.OK) != null )
+ getButton(Dialog.OK).setEnabled(valid);
}
protected void setCleanMessage() {