Alignment can be either SWT.LEFT or SWT.RIGHT. The button dismissal alignment is used when positioning the default dismissal button for a dialog. For example, if alignement is LEFT, the button order should be OK, CANCEL.
import org.eclipse.swt.SWT; import org.eclipse.swt.widgets.Display; public class MainClass { static Display display = new Display(); public static void main(String[] args) { System.out.println(display.getDismissalAlignment() == SWT.LEFT); System.out.println(display.getDismissalAlignment() == SWT.RIGHT); } }