Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 18550

Summary: [navigation] Outline jumps around a lot when cursoring around text
Product: [Eclipse Project] JDT Reporter: Nick Edgar <n.a.edgar>
Component: TextAssignee: JDT-Text-Inbox <jdt-text-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: bogofilter+eclipse.org
Version: 2.0Keywords: usability
Target Milestone: 3.0 M2   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Nick Edgar CLA 2002-05-31 21:01:31 EDT
Build 20020531

- open any large class, e.g. IWorkbenchGraphicConstants
- move around in it in the editor using the cursor keys, going into and 
between field and/or method declarations
- the outline selects the type when you move between declarations
- this can cause a lot of distracting scrolling (both horizontal and vertical) 
in the outline
- for indented declarations, it also seems incorrect since it selects the type 
when the cursor is at the left of the first line of the declaration

Recommend extending the effective range of one declaration to the start of the 
next one.  It should only select the type when you go up to the type 
declaration (or between the type declaration and the first member).
Comment 1 Ron Baldwin CLA 2003-02-22 17:50:41 EST
I would recommend extending the effective range of a declaration to the *end* of
the *previous* one.  This would cause the declaration's javadoc to be naturally
included as part of the declaration's "space".
Comment 2 Dani Megert CLA 2003-07-18 06:48:37 EDT
Text now uses a post selection listener. The outline will only updated after the
cursor stands still.

Also, Javadoc is part of a Java elements declaration and hence selecting Javadoc
selects the correct element in the Java Outline page.

Verified using I20030717-rebuild