fix #6549 Fix ClassCastException
[taxeditor.git] / eu.etaxonomy.taxeditor.store / src / main / java / eu / etaxonomy / taxeditor / model / AbstractUtility.java
index a490390a637d2b46e6ef073a324e6a39f07ec447..f1ffe8abed386ad53b539815efbe56e8b060a8ec 100644 (file)
@@ -38,7 +38,6 @@ import org.eclipse.jface.action.IStatusLineManager;
 import org.eclipse.jface.operation.IRunnableWithProgress;
 import org.eclipse.jface.resource.ColorRegistry;
 import org.eclipse.jface.resource.FontRegistry;
-import org.eclipse.jface.window.ApplicationWindow;
 import org.eclipse.swt.graphics.Color;
 import org.eclipse.swt.graphics.Font;
 import org.eclipse.swt.widgets.Display;
@@ -167,11 +166,11 @@ public abstract class AbstractUtility {
      *
      * @return a {@link org.eclipse.jface.window.ApplicationWindow} object.
      */
-    public static ApplicationWindow getWorkbenchWindow() {
+    public static IWorkbenchWindow getWorkbenchWindow() {
         if (getWorkbench().getWorkbenchWindowCount() > 1) {
             throw new IllegalStateException("More than one workbench window");
         }
-        return (ApplicationWindow) getWorkbench().getWorkbenchWindows()[0];
+        return getWorkbench().getWorkbenchWindows()[0];
     }
 
     /**