|
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 |
} |