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
}
	
	/* (non-Javadoc)
	 * Method declared on SelectionDispatchAction.
	 */
	protected void selectionChanged(ITextSelection selection) {
	}
	/* (non-Javadoc)
	 * Method declared on SelectionDispatchAction.
	 */
	protected void selectionChanged(IStructuredSelection selection) {
		setEnabled(checkEnabled(selection));
	}
	
	private boolean checkEnabled(IStructuredSelection selection) {
		if (selection.isEmpty())
			return false;
		for (Iterator iter= selection.iterator(); iter.hasNext();) {
			Object element= (Object)iter.next();
			if (element instanceof IImportDeclaration) {
				if (((IImportDeclaration)element).isOnDemand()) {
					return false;
				}
				continue;
			}
			if (element instanceof ISourceReference)
				continue;
			if (element instanceof IResource)
				continue;
			if (element instanceof IStorage)