public Object execute(ExecutionEvent event) throws ExecutionException { IWorkbenchPart part = HandlerUtil.getActivePart(event); IObjectActionDelegate action = EditorPropertyTester.hasResourceSelection(part); if (action == null) { action = EditorPropertyTester.hasAbstractConsole(part); } if (action != null) action.run(null); return null; }