dialog.setBlockOnOpen(true);
dialog.setSize(100, 25); //in number of chars
dialog.setMessage("Select command(s) to be executed");
dialog.setMultipleSelection(true);
if (dialog.open() == SelectionDialog.OK) {
Object[] result = dialog.getResult();
if (result != null) {
ArrayList<String> list = new ArrayList<String>();
for (Object o : result) {
list.add(o.toString());