public Object execute(ExecutionEvent event) throws ExecutionException {
// Get the view
IWorkbenchWindow window = HandlerUtil.getActiveWorkbenchWindow(event);
IWorkbenchPage page = window.getActivePage();
ShapeView view = (ShapeView) page.findView(ShapeView.ID);
// Get the selection
ISelection selection = view.getSite().getSelectionProvider().getSelection();
if (selection != null && selection instanceof IStructuredSelection) {
Object obj = ((IStructuredSelection) selection).getFirstElement();
// If we had a selection lets open the editor
if (obj != null) {
//ShapeModel geometry = (ShapeModel) obj;