Bug 18285 Double-clicking on import statement transfers to referenced type
Build 20020528 In the package view outline, double-clicking on a type import statement does open the editor on the target type, instead of the unit hosting the import reference.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/OpenAction.java
IImportDeclaration declaration= (IImportDeclaration) element;
				if (declaration.isOnDemand()) {
					element= JavaModelUtil.findTypeContainer(element.getJavaProject(), Signature.getQualifier(element.getElementName()));
				} else {
					element= element.getJavaProject().findType(element.getElementName());
				}
				if (element instanceof IType) {
					element= (IJavaElement)element.getOpenable();
				}
				break;
		}
		return element;
	}	
	
	private String getDialogTitle() {
		return ActionMessages.getString("OpenAction.error.title"); 
	}
	
	private void showError(CoreException e) {
		ExceptionHandler.handle(e, getShell(), getDialogTitle(), ActionMessages.getString("OpenAction.error.message")); 
	}
	
	private IStatusLineManager getStatusLineManager() {
		IEditorActionBarContributor contributor= fEditor.getEditorSite().getActionBarContributor();
		if (contributor instanceof EditorActionBarContributor) {
			return ((EditorActionBarContributor)contributor).getActionBars().getStatusLineManager();
		}
		return null; 
	}
}