Bug 76726 [Jobs][Progress] Redesign job error dialog
The job error dialog is very confusing. It shows two lists in a sort of master/detail paradigm. When you first see the error, you have to click on the first error listing in the top of the dialog to see the actual error message in the bottom of the dialog. This is not obvious. Furthermore, there is no text on the dialog to give users any help. Suggest that, if there is only one error reported, that you use the regular single error dialog (that dialog does appear if you click the 'job-errored' icon in the status line of the workbench). If multiple errors occur then use a multi-error dialog. And redesign a new multi-error dialog that is a little easier for the user to understand. Perhaps a listing of the errors in a FormText where the error title and error text could be displayed without the user clicking on each error individually (just an idea).
bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/ErrorDialog.java
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.List;
import org.eclipse.swt.widgets.Menu;
import org.eclipse.swt.widgets.MenuItem;
import org.eclipse.swt.widgets.Shell;
/**
 * A dialog to display one or more errors to the user, as contained in an
 * <code>IStatus</code> object. If an error contains additional detailed
 * information then a Details button is automatically supplied, which shows or
 * hides an error details viewer when pressed by the user.
 * 
 * @see org.eclipse.core.runtime.IStatus
 */
public class ErrorDialog extends IconAndMessageDialog {
    /**
     * Static to prevent opening of error dialogs for automated testing.
     */
    public static boolean AUTOMATED_MODE = false;
    /**
     * Reserve room for this many list items.
     */
    private static final int LIST_ITEM_COUNT = 7;
    /**
     * The nesting indent.
     */
    private static final String NESTING_INDENT = "  "; 
    /**
     * The Details button.