/** * 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); }
/** * 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>. * * @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>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(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); } } }
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); } } }