Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kurtakov2016-02-11 10:15:59 +0000
committerAlexander Kurtakov2016-02-11 10:15:59 +0000
commitf2df2060979ba4c8ef9b181dc2b52ef3840b2444 (patch)
tree3548ebcca7507c2a6658e190722dd53b62388cce /bundles/org.eclipse.swt/Eclipse SWT AWT
parentc791930f17fe9fa72f453e115c84c60c6e0cdf78 (diff)
downloadeclipse.platform.swt-f2df2060979ba4c8ef9b181dc2b52ef3840b2444.tar.gz
eclipse.platform.swt-f2df2060979ba4c8ef9b181dc2b52ef3840b2444.tar.xz
eclipse.platform.swt-f2df2060979ba4c8ef9b181dc2b52ef3840b2444.zip
Bug 487645 - Remove pre Java 1.7 workarounds
Java 1.7 is a prereq so no need for this guard. Change-Id: Ic63114afc61c82f120abb2a5526dfdb0330f93a1 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT AWT')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT AWT/gtk/org/eclipse/swt/awt/SWT_AWT.java16
1 files changed, 7 insertions, 9 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT AWT/gtk/org/eclipse/swt/awt/SWT_AWT.java b/bundles/org.eclipse.swt/Eclipse SWT AWT/gtk/org/eclipse/swt/awt/SWT_AWT.java
index f73f9261a4..9852f995f3 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT AWT/gtk/org/eclipse/swt/awt/SWT_AWT.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT AWT/gtk/org/eclipse/swt/awt/SWT_AWT.java
@@ -249,15 +249,13 @@ public static Frame new_Frame (final Composite parent) {
});
break;
case SWT.Resize:
- if (Library.JAVA_VERSION >= Library.JAVA_VERSION(1, 6, 0)) {
- final Rectangle clientArea = parent.getClientArea();
- EventQueue.invokeLater(new Runnable () {
- @Override
- public void run () {
- frame.setSize (clientArea.width, clientArea.height);
- }
- });
- }
+ final Rectangle clientArea = parent.getClientArea();
+ EventQueue.invokeLater(new Runnable () {
+ @Override
+ public void run () {
+ frame.setSize (clientArea.width, clientArea.height);
+ }
+ });
break;
}
}

Back to the top