Bug 20144 Enter key not working in packages view
Build 20020612 (F3) Linux-GTK Selecting a file in the packages view and hitting the ENTER key does not open the file. Unless there's another way to open a file without the mouse, the is a serious accessibility problem.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaSelectMarkerRulerAction.java
import org.eclipse.jdt.core.ICompilationUnit;
import org.eclipse.jdt.core.IJavaModelMarker;
import org.eclipse.jdt.core.JavaModelException;
import org.eclipse.jdt.internal.ui.text.correction.JavaCorrectionProcessor;
import org.eclipse.jdt.internal.ui.text.correction.JavaCorrectionSourceViewer;
import org.eclipse.jdt.internal.ui.text.correction.ProblemPosition;
/**
 * A special select marker ruler action which activates quick fix if clicked on a quick fixable
 * probelm.
 */
public class JavaSelectMarkerRulerAction extends SelectMarkerRulerAction {
	private ITextEditor fMyTextEditor;
	private Position fPosition;
	public JavaSelectMarkerRulerAction(ResourceBundle bundle, String prefix, ITextEditor editor, IVerticalRulerInfo ruler) {
		super(bundle, prefix, editor, ruler);
		fMyTextEditor= editor;
	}
	
	public void run() {
		superCall: {
			if (fPosition == null)
				break superCall;
			ITextOperationTarget operation= (ITextOperationTarget) fMyTextEditor.getAdapter(ITextOperationTarget.class);
			final int opCode= JavaCorrectionSourceViewer.CORRECTIONASSIST_PROPOSALS;
			if (operation == null || !operation.canDoOperation(opCode)) {
				break superCall;
			}
			fMyTextEditor.selectAndReveal(fPosition.getOffset(), fPosition.getLength());
			operation.doOperation(opCode);
			return;