public Object execute(ExecutionEvent event) throws ExecutionException {
// Get the view; we need almost all of these, so refactoring makes
// little sense
IWorkbenchWindow window = HandlerUtil.getActiveWorkbenchWindow(event);
IWorkbenchPage page = window.getActivePage();
View view = (View) page.findView(View.ID);
TableViewer viewer = view.getViewer();
// Get the selection
ISelection selection = viewer.getSelection();
if (selection instanceof IStructuredSelection) {
Object obj = ((IStructuredSelection) selection).getFirstElement();