Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 247818 | Differences between
and this patch

Collapse All | Expand All

(-)Eclipse UI/org/eclipse/ui/statushandlers/WorkbenchStatusDialogManager.java (-9 / +16 lines)
Lines 52-57 Link Here
52
import org.eclipse.jface.viewers.TableViewer;
52
import org.eclipse.jface.viewers.TableViewer;
53
import org.eclipse.jface.viewers.Viewer;
53
import org.eclipse.jface.viewers.Viewer;
54
import org.eclipse.jface.viewers.ViewerComparator;
54
import org.eclipse.jface.viewers.ViewerComparator;
55
import org.eclipse.jface.window.IShellProvider;
55
import org.eclipse.jface.window.Window;
56
import org.eclipse.jface.window.Window;
56
import org.eclipse.osgi.util.NLS;
57
import org.eclipse.osgi.util.NLS;
57
import org.eclipse.swt.SWT;
58
import org.eclipse.swt.SWT;
Lines 133-141 Link Here
133
 * @see Policy#setErrorSupportProvider(ErrorSupportProvider)
134
 * @see Policy#setErrorSupportProvider(ErrorSupportProvider)
134
 * @see ErrorSupportProvider
135
 * @see ErrorSupportProvider
135
 * @see AbstractStatusAreaProvider
136
 * @see AbstractStatusAreaProvider
137
 * 
136
 * @since 3.4
138
 * @since 3.4
139
 * @since 3.5 it implements {@link IShellProvider}
137
 */
140
 */
138
public class WorkbenchStatusDialogManager {
141
public class WorkbenchStatusDialogManager implements IShellProvider {
139
142
140
	/**
143
	/**
141
	 * The default status label provider.
144
	 * The default status label provider.
Lines 1744-1757 Link Here
1744
	}
1747
	}
1745
1748
1746
	/**
1749
	/**
1747
	 * Returns the shell of the dialog.
1748
	 */
1749
	Shell getShell() {
1750
		if (this.dialog == null) return null;
1751
		return this.dialog.getShell();
1752
	}
1753
1754
	/**
1755
	 * Get the single selection. Return null if the selection is not just one
1750
	 * Get the single selection. Return null if the selection is not just one
1756
	 * element.
1751
	 * element.
1757
	 * 
1752
	 * 
Lines 2282-2285 Link Here
2282
		}
2277
		}
2283
		titleArea.layout();
2278
		titleArea.layout();
2284
	}
2279
	}
2280
2281
	/**
2282
	 * Gets the shell of the managed dialog.
2283
	 * 
2284
	 * @since 3.5
2285
	 * @see org.eclipse.jface.window.IShellProvider#getShell()
2286
	 */
2287
	public Shell getShell() {
2288
		if (this.dialog == null)
2289
			return null;
2290
		return this.dialog.getShell();
2291
	}
2285
}
2292
}
(-)Eclipse UI/org/eclipse/ui/statushandlers/WorkbenchErrorHandler.java (-1 / +1 lines)
Lines 112-118 Link Here
112
		if (block) {
112
		if (block) {
113
			Shell shell;
113
			Shell shell;
114
			while ((shell = getStatusDialogManager().getShell()) != null
114
			while ((shell = getStatusDialogManager().getShell()) != null
115
					&& !getStatusDialogManager().getShell().isDisposed()) {
115
					&& !shell.isDisposed()) {
116
				if (!shell.getDisplay().readAndDispatch()) {
116
				if (!shell.getDisplay().readAndDispatch()) {
117
					Display.getDefault().sleep();
117
					Display.getDefault().sleep();
118
				}
118
				}

Return to bug 247818