protected void perform(InvocationTargetException e, Shell shell, String title, String message) { Throwable target= e.getTargetException(); if (target instanceof CoreException) { perform((CoreException)target, shell, title, message); } else { CompareUIPlugin.log(e); if (e.getMessage() != null && e.getMessage().length() > 0) { displayMessageDialog(e, e.getMessage(), shell, title, message); } else { displayMessageDialog(e, target.getMessage(), shell, title, message); } } }
/** * Handles the given <code>InvocationTargetException</code>. The workbench shell is used * as a parent for the dialog window. * * @param e the <code>InvocationTargetException</code> to be handled * @param title the dialog window's window title * @param message message to be displayed by the dialog window */ public static void handle(InvocationTargetException e, String title, String message) { handle(e, CompareUIPlugin.getShell(), title, message); }
/** * Handles the given <code>CoreException</code>. * * @param e the <code>CoreException</code> to be handled * @param parent the dialog window's parent shell * @param title the dialog window's window title * @param message message to be displayed by the dialog window */ public static void handle(CoreException e, Shell parent, String title, String message) { fgInstance.perform(e, parent, title, message); }
protected void perform(CoreException e, Shell shell, String title, String message) { CompareUIPlugin.log(e); IStatus status= e.getStatus(); if (status != null) { ErrorDialog.openError(shell, title, message, status); } else { displayMessageDialog(e, e.getMessage(), shell, title, message); } }
/** * Handles the given <code>CoreException</code>. The workbench shell is used as a parent * for the dialog window. * * @param e the <code>CoreException</code> to be handled * @param title the dialog window's window title * @param message message to be displayed by the dialog window */ public static void handle(CoreException e, String title, String message) { handle(e, CompareUIPlugin.getShell(), title, message); }
/** * Handles the given <code>InvocationTargetException</code>. * * @param e the <code>InvocationTargetException</code> to be handled * @param parent the dialog window's parent shell * @param title the dialog window's window title * @param message message to be displayed by the dialog window */ public static void handle(InvocationTargetException e, Shell parent, String title, String message) { fgInstance.perform(e, parent, title, message); }
protected void perform(CoreException e, Shell shell, String title, String message) { CompareUIPlugin.log(e); IStatus status= e.getStatus(); if (status != null) { ErrorDialog.openError(shell, title, message, status); } else { displayMessageDialog(e, e.getMessage(), shell, title, message); } }
protected void perform(InvocationTargetException e, Shell shell, String title, String message) { Throwable target= e.getTargetException(); if (target instanceof CoreException) { perform((CoreException)target, shell, title, message); } else { CompareUIPlugin.log(e); if (e.getMessage() != null && e.getMessage().length() > 0) { displayMessageDialog(e, e.getMessage(), shell, title, message); } else { displayMessageDialog(e, target.getMessage(), shell, title, message); } } }
/** * Handles the given <code>CoreException</code>. The workbench shell is used as a parent * for the dialog window. * * @param e the <code>CoreException</code> to be handled * @param title the dialog window's window title * @param message message to be displayed by the dialog window */ public static void handle(CoreException e, String title, String message) { handle(e, CompareUIPlugin.getShell(), title, message); }
/** * Handles the given <code>InvocationTargetException</code>. * * @param e the <code>InvocationTargetException</code> to be handled * @param parent the dialog window's parent shell * @param title the dialog window's window title * @param message message to be displayed by the dialog window */ public static void handle(InvocationTargetException e, Shell parent, String title, String message) { fgInstance.perform(e, parent, title, message); }
/** * Handles the given <code>InvocationTargetException</code>. The workbench shell is used * as a parent for the dialog window. * * @param e the <code>InvocationTargetException</code> to be handled * @param title the dialog window's window title * @param message message to be displayed by the dialog window */ public static void handle(InvocationTargetException e, String title, String message) { handle(e, CompareUIPlugin.getShell(), title, message); }
/** * Handles the given <code>CoreException</code>. * * @param e the <code>CoreException</code> to be handled * @param parent the dialog window's parent shell * @param title the dialog window's window title * @param message message to be displayed by the dialog window */ public static void handle(CoreException e, Shell parent, String title, String message) { fgInstance.perform(e, parent, title, message); }
ExceptionHandler.handle(e, PatchMessages.PatchWizard_title, PatchMessages.PatchWizard_unexpectedException_message); } catch (InterruptedException e) {
ExceptionHandler.handle(e, PatchMessages.PatchWizard_title, PatchMessages.PatchWizard_unexpectedException_message); } catch (InterruptedException e) {