Bug 11152

Summary: Code Select - does not work with empty selection
Product: [Eclipse Project] JDT Reporter: David Audel <david_audel>
Component: CoreAssignee: David Audel <david_audel>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 2.0   
Target Milestone: 2.0 M4   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description David Audel CLA 2002-03-12 06:21:44 EST
1) create th efollowing class
public class X {
  Obj<cursor>ect o;
}

2) do F3 at cursor location
found nothing.
Comment 1 David Audel CLA 2002-03-12 06:25:29 EST
There is still a protection in Jdt/Core which doesn't allow to call 
SelectionEngine with empty selection.

This bugs is in org.eclipse.jdt.internal.core.Openable in the second codeSelect 
method.

To fix the bugs remove the first test of the method :
if (length == 0) {
  return;
}

Fixed.