diff options
Diffstat (limited to 'pdf-over-gui/src/main/java/at/asit/pdfover/gui/MainWindow.java')
-rw-r--r-- | pdf-over-gui/src/main/java/at/asit/pdfover/gui/MainWindow.java | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/MainWindow.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/MainWindow.java index c2528adc..6af00889 100644 --- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/MainWindow.java +++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/MainWindow.java @@ -58,7 +58,6 @@ import at.asit.pdfover.gui.controls.MainBarRectangleButton; import at.asit.pdfover.gui.controls.MainBarStartButton; import at.asit.pdfover.gui.osx.CocoaUIEnhancer; import at.asit.pdfover.commons.Messages; -import at.asit.pdfover.gui.utils.SWTLoader; import at.asit.pdfover.gui.workflow.StateMachine; import at.asit.pdfover.gui.workflow.states.BKUSelectionState; import at.asit.pdfover.gui.workflow.states.ConfigurationUIState; @@ -212,23 +211,6 @@ public class MainWindow { if (System.getProperty("os.name").contains("OS X")) { //$NON-NLS-1$ //$NON-NLS-2$ hookupOSXMenu(); } - // Workaround for SWT bug on Mac: disable full screen mode - try { - Field field = Control.class.getDeclaredField("view"); //$NON-NLS-1$ - Object /*NSView*/ view = field.get(getShell()); - if (view != null) - { - Class<?> c = Class.forName("org.eclipse.swt.internal.cocoa.NSView"); //$NON-NLS-1$ - Object nswindow = c.getDeclaredMethod("window").invoke(view); //$NON-NLS-1$ - c = Class.forName("org.eclipse.swt.internal.cocoa.NSWindow"); //$NON-NLS-1$ - Method setCollectionBehavior = c.getDeclaredMethod( - "setCollectionBehavior", //$NON-NLS-1$ - (SWTLoader.getArchBits() == 64) ? long.class : int.class); - setCollectionBehavior.invoke(nswindow, 0); - } - } catch (Exception e) { - log.error("Error disabling full screen mode", e); //$NON-NLS-1$ - } } try { Display display = Display.getCurrent(); |