Bug 114492 [WorkingSets] working sets: edit dialog should not display an error on open
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/ResourceWorkingSetPage.java
* @param shell parent shell for the message box
     * @param title the mesage box title
     * @param message additional error message
     */
    private void handleCoreException(CoreException exception, Shell shell,
            String title, String message) {
        IStatus status = exception.getStatus();
        if (status != null) {
            ErrorDialog.openError(shell, title, message, status);
        } else {
            MessageDialog
                    .openError(
                            shell,
                            IDEWorkbenchMessages.InternalError, exception.getLocalizedMessage());
        }
    }
    /**
     * Sets the checked state of tree items based on the initial 
     * working set, if any.
     */
    private void initializeCheckedState() {
        if (workingSet == null)
            return;
        BusyIndicator.showWhile(getShell().getDisplay(), new Runnable() {
            public void run() {
                IAdaptable[] items = workingSet.getElements();
                tree.setCheckedElements(items);
                for (int i = 0; i < items.length; i++) {
                    IAdaptable item = items[i];
                    IContainer container = null;