Revision 98b22c11
Added by Patrick Plitzner almost 7 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/model/AbstractUtility.java | ||
---|---|---|
38 | 38 |
import org.eclipse.jface.operation.IRunnableWithProgress; |
39 | 39 |
import org.eclipse.jface.resource.ColorRegistry; |
40 | 40 |
import org.eclipse.jface.resource.FontRegistry; |
41 |
import org.eclipse.jface.window.ApplicationWindow; |
|
42 | 41 |
import org.eclipse.swt.graphics.Color; |
43 | 42 |
import org.eclipse.swt.graphics.Font; |
44 | 43 |
import org.eclipse.swt.widgets.Display; |
... | ... | |
167 | 166 |
* |
168 | 167 |
* @return a {@link org.eclipse.jface.window.ApplicationWindow} object. |
169 | 168 |
*/ |
170 |
public static ApplicationWindow getWorkbenchWindow() {
|
|
169 |
public static IWorkbenchWindow getWorkbenchWindow() {
|
|
171 | 170 |
if (getWorkbench().getWorkbenchWindowCount() > 1) { |
172 | 171 |
throw new IllegalStateException("More than one workbench window"); |
173 | 172 |
} |
174 |
return (ApplicationWindow) getWorkbench().getWorkbenchWindows()[0];
|
|
173 |
return getWorkbench().getWorkbenchWindows()[0]; |
|
175 | 174 |
} |
176 | 175 |
|
177 | 176 |
/** |
Also available in: Unified diff
fix #6549 Fix ClassCastException