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();
}
/**
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;