public Object execute(ExecutionEvent event) throws ExecutionException {
ICsvService service = new CsvService();
ListSelectionDialog dlg = new ListSelectionDialog(Display.getCurrent().getActiveShell(), service.getTableHeaders(event), new CsvContentProvider(), new LabelProvider(), "Select the columns to delete.");
dlg.setTitle("Delete columns");
if (dlg.open() == Window.OK) {
service.deleteColumn(dlg.getResult(), event);
}
return null;
}
}