import org.eclipse.core.resources.IWorkspace;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Status;
-import org.eclipse.jface.dialogs.ErrorDialog;
+//import org.eclipse.jface.dialogs.ErrorDialog;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.ui.IWorkbenchPage;
return null;
}
- public static void errorDialog(String message, IStatus status) {
- log(status);
- Shell shell = getActiveWorkbenchShell();
- if (shell != null) {
- ErrorDialog.openError(shell, "Error", message, status);
- }
- }
-
- public static void errorDialog(String message, Throwable t) {
- log(t);
- Shell shell = getActiveWorkbenchShell();
- if (shell != null) {
- IStatus status = new Status(IStatus.ERROR, PLUGIN_ID, /* ICDebugUIConstants.INTERNAL_ERROR */
- 150, t.getMessage(), null); //$NON-NLS-1$
- ErrorDialog.openError(shell, "Error", message, status);
- }
- }
+// public static void errorDialog(String message, IStatus status) {
+// log(status);
+// Shell shell = getActiveWorkbenchShell();
+// if (shell != null) {
+// ErrorDialog.openError(shell, "Error", message, status);
+// }
+// }
+
+// public static void errorDialog(String message, Throwable t) {
+// log(t);
+// Shell shell = getActiveWorkbenchShell();
+// if (shell != null) {
+// IStatus status = new Status(IStatus.ERROR, PLUGIN_ID, /* ICDebugUIConstants.INTERNAL_ERROR */
+// 150, t.getMessage(), null); //$NON-NLS-1$
+// ErrorDialog.openError(shell, "Error", message, status);
+// }
+// }
public static void log(IStatus status) {
getDefault().getLog().log(status);