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

Bug 334884

Summary: [Outline] Clicking an already highlighted item will not snap to that item, even if it's not on screen.
Product: [Eclipse Project] JDT Reporter: James <arclyte>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: CLOSED WORKSFORME QA Contact:
Severity: minor    
Priority: P3 CC: kalyan_prasad, rolf.theunissen
Version: 4.2   
Target Milestone: ---   
Hardware: Macintosh   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard: stalebug

Description James CLA 2011-01-20 09:01:28 EST
Build Identifier: 20100218-1602

If you click on a variable or method in the Outline view and then scroll up or down so that that method is no longer on screen, clicking the method again will not bring it up since it is already highlighted.  You have to click another method/variable and back to the one you were on in order to see it again.

Methods in the outline view, even though highlighted, should snap to that method when clicked again.

Reproducible: Always

Steps to Reproduce:
1. Click on an item in the Outline view (ie, Method, Function, Variable)
2. Scroll off the screen from that item
3. Click the item again to try to return to it (nothing happens since it's already highlighted)
Comment 1 Rolf Theunissen CLA 2019-08-01 05:22:11 EDT
You are talking about "Method, Function, Variable", therefore I assume you are talking about the Java editor.
This behavior is implemented in JavaOutlinePage#select(..).

Re-assigning to the JDT project
Comment 2 Eclipse Genie CLA 2021-07-22 07:50:24 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.
Comment 3 Kalyan Prasad Tatavarthi CLA 2021-07-23 02:54:13 EDT
I have not been able to reproduce this issue in 4.21. Please reopen the bug if the issue still exists with further details to reproduce this issue.