tmf.ui.swtbot: Fix missing @Override in SWTBotSash.getBounds()
[deliverable/tracecompass.git] / tmf / org.eclipse.tracecompass.tmf.ui.swtbot.tests / shared / org / eclipse / tracecompass / tmf / ui / swtbot / tests / shared / SWTBotSash.java
index f4428a2c8422b0adc5cb825254e12e1f5bee7b74..8f0ace219566447e6d438d28273b3e0ddea3ffe2 100644 (file)
@@ -38,18 +38,9 @@ public class SWTBotSash extends AbstractSWTBotControl<Sash> {
         super(w);
     }
 
-    /**
-     * Get the bounds of the sash
-     *
-     * @return the bounds relative to the parent
-     */
+    @Override
     public Rectangle getBounds() {
-        return syncExec(new Result<Rectangle>() {
-            @Override
-            public Rectangle run() {
-                return widget.getBounds();
-            }
-        });
+        return super.getBounds();
     }
 
     /**
@@ -79,7 +70,7 @@ public class SWTBotSash extends AbstractSWTBotControl<Sash> {
         return syncExec(new Result<Event>() {
             @Override
             public Event run() {
-                boolean vertical = (widget.getStyle() | SWT.VERTICAL) != 0;
+                boolean vertical = (widget.getStyle() & SWT.VERTICAL) != 0;
                 Point size = widget.getSize();
                 Event event = createSelectionEvent(stateMask);
                 event.x = vertical ? x : 0;
This page took 0.024038 seconds and 5 git commands to generate.