Bug 82348 - marked occurrences doesn't mark folded block
Summary: marked occurrences doesn't mark folded block
Status: RESOLVED DUPLICATE of bug 63692
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-Search-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: ui, usability
Depends on:
Blocks:
 
Reported: 2005-01-06 14:30 EST by Rob Spahitz CLA
Modified: 2005-01-07 02:41 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 Rob Spahitz CLA 2005-01-06 14:30:43 EST
In the Java code window, you can fold (collapse) a block of code.

When you use the mark occurrences preference, the folded line is not marked 
when it contains that occurrence. (Note that on unfolded text, the keyword is 
highlighted and the line is marked on the right side of the scrollbar in the 
window.)

Granted, the text to mark is not visible so it's not going to highlight the 
text, but it should still mark the folded line to show that the occurrence 
actually exists inside the fold.  (It took me a while to figure out why my 
methods/class variables didn't always show the number of occurrences I 
expected.)

--
I propose adding an option to the Preferences | Java | Editor | Mark 
Occurrences window:

[x] Also mark folded lines that contain this occurrence

--
I assume that the current coding is based on what it finds in the code window 
(which excludes folded text) rather than the actual code for the file.
If this features is checked, the search will have to be done on the entire 
code and then mark each line that contains that text AND each folded block 
that contains that text.

Obviously, multiple marks on that line will have to follow the current 
precedence rules for marking lines.
Comment 1 Dani Megert CLA 2005-01-07 02:41:03 EST

*** This bug has been marked as a duplicate of 63692 ***