add support for new SWT api