"class1",
"class2",
"cla ss2", // invalid
"4class2" // invalid
};
final StyleSelectionDialog dialog =
new StyleSelectionDialog(button.getShell(), styles);
button.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent e) {
dialog.open();
System.out.println(dialog.getStyles());
}
});
}