run(selection.toArray());
try { IJavaElement[] elements= SelectionConverter.codeResolveForked(fEditor, false); if (elements == null || elements.length == 0) { IEditorStatusLine statusLine= (IEditorStatusLine) fEditor.getAdapter(IEditorStatusLine.class); if (statusLine != null) statusLine.setMessage(true, ActionMessages.OpenAction_error_messageBadSelection, null); getShell().getDisplay().beep(); return; } IJavaElement element= elements[0]; if (elements.length > 1) { element= OpenActionUtil.selectJavaElement(elements, getShell(), getDialogTitle(), ActionMessages.OpenAction_select_element); if (element == null) return; }  int type= element.getElementType(); if (type == IJavaElement.JAVA_PROJECT || type == IJavaElement.PACKAGE_FRAGMENT_ROOT || type == IJavaElement.PACKAGE_FRAGMENT) element= EditorUtility.getEditorInputJavaElement(fEditor, false); run(new Object[] {element} ); } catch (InvocationTargetException e) { showError(e); } catch (InterruptedException e) {  }
	public void run(IStructuredSelection selection) {		if (!checkEnabled(selection))			return;		run(selection.toArray());	}