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
} catch (PartInitException x) {
								
				String name= null;
				
				if (element instanceof IJavaElement) {
					name= ((IJavaElement) element).getElementName();
				} else if (element instanceof IStorage) {
					name= ((IStorage) element).getName();
				} else if (element instanceof IResource) {
					name= ((IResource) element).getName();
				}
				
				if (name != null) {
					MessageDialog.openError(getShell(),
						ActionMessages.getString("OpenAction.error.messageProblems"),  
						ActionMessages.getFormattedString("OpenAction.error.messageArgs",  
							new String[] { name, x.getMessage() } ));			
				}
			}		
		}
	}
	
	public Object getElementToOpen(Object object) throws JavaModelException {
		if (!(object instanceof IJavaElement))
			return object;
		
		IJavaElement element= (IJavaElement)object;
		switch (element.getElementType()) {
			case IJavaElement.IMPORT_DECLARATION: