Project

General

Profile

Revision 98b22c11

ID98b22c11b756de3b32e723e1d888d2f2dbe5df5e
Parent a1169a72
Child 6252f4f0

Added by Patrick Plitzner over 3 years ago

fix #6549 Fix ClassCastException

View differences:

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

Add picture from clipboard (Maximum size: 40 MB)