*/
package org.argeo.eclipse.ui.dialogs;
-import org.eclipse.jface.dialogs.Dialog;
import org.eclipse.jface.dialogs.IMessageProvider;
import org.eclipse.jface.dialogs.TitleAreaDialog;
+import org.eclipse.jface.window.Window;
import org.eclipse.swt.SWT;
import org.eclipse.swt.graphics.Point;
import org.eclipse.swt.layout.GridData;
public static String ask(String label, String message) {
SingleValue svd = new SingleValue(label, message);
- if (svd.open() == Dialog.OK)
+ if (svd.open() == Window.OK)
return svd.getString();
else
return null;
public static Long askLong(String label, String message) {
SingleValue svd = new SingleValue(label, message);
- if (svd.open() == Dialog.OK)
+ if (svd.open() == Window.OK)
return svd.getLong();
else
return null;
public static Double askDouble(String label, String message) {
SingleValue svd = new SingleValue(label, message);
- if (svd.open() == Dialog.OK)
+ if (svd.open() == Window.OK)
return svd.getDouble();
else
return null;