//File -> Exit.
if (!thisIsAMac) {
new MenuItem(menu, SWT.SEPARATOR);
//File -> Exit.
subItem = new MenuItem(menu, SWT.NULL);
subItem.setText(resAddressBook.getString("Exit"));
subItem.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent e) {
shell.close();
}
});
}