public Object execute(ExecutionEvent event) throws ExecutionException { IJavaScriptElement javaElement = (IJavaScriptElement) event.getObjectParameterForExecution(PARAM_ID_ELEMENT_REF); PackageExplorerPart view = PackageExplorerPart.openInActivePerspective(); view.tryToReveal(javaElement); return null; }