Bug 11152 - Code Select - does not work with empty selection
Summary: Code Select - does not work with empty selection
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 2.0 M4   Edit
Assignee: David Audel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-03-12 06:21 EST by David Audel CLA
Modified: 2002-03-12 06:25 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.