Bug 31119 Build Path dialog opened for wrong project if element from external JAR is selected [build path]
Build I20030206 Build Path dialog opened for wrong project if element from external JAR is selected 0815 problem with parents of elements from external JARs.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/actions/OpenBuildPathDialogAction.java
private IWorkbenchWindow fWindow;
	private IJavaProject fProject;
	public void dispose() {
	}
	public void init(IWorkbenchWindow window) {
		fWindow= window;
	}
	public void run(IAction action) {
		BuildPathDialog dialog= new BuildPathDialog(fWindow.getShell(), fProject);
		dialog.open();
	}
	public void selectionChanged(IAction action, ISelection selection) {
		boolean enable= false;
		if (selection instanceof IStructuredSelection) {
			IStructuredSelection s= (IStructuredSelection)selection;
			if (s.size() == 1) {
				Object element= s.getFirstElement();
				if (element instanceof IJavaElement) {
					fProject= (IJavaProject)((IJavaElement)element).getAncestor(IJavaElement.JAVA_PROJECT);
					enable= fProject != null;
				} else if (element instanceof IAdaptable) {