Bug 519525

Summary: Open resource should use highlight matches based on substrings
Product: [Eclipse Project] Platform Reporter: Lars Vogel <Lars.Vogel>
Component: UIAssignee: Christoph Stanik <stanik>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: david.eclipse000, fabian.pfaff, Lars.Vogel, ocroquette, psuzzi, reckord, register.eclipse, stanik
Version: 4.3Keywords: bugday, helpwanted, noteworthy, usability
Target Milestone: 4.8 M1   
Hardware: PC   
OS: Linux   
See Also: https://git.eclipse.org/r/101370
https://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=131c5e405cd7923cc7c3177c46fa2a473f059290
https://git.eclipse.org/r/101879
https://git.eclipse.org/c/www.eclipse.org/eclipse/news.git/commit/?id=3d763c5c1f21f5de2806fd45bba976b9e565875c
Whiteboard:
Bug Depends on:    
Bug Blocks: 520250, 520251    
Attachments:
Description Flags
Screenshot from Open Type
none
Screenshot Open Resource none

Description Lars Vogel CLA 2017-07-11 16:56:02 EDT
Created attachment 269318 [details]
Screenshot from Open Type

Open Type uses styles to highlight the matching Java class. Open resources should use the same.
g
Comment 1 Lars Vogel CLA 2017-07-11 16:57:04 EDT
Created attachment 269319 [details]
Screenshot Open Resource
Comment 2 Lars Vogel CLA 2017-07-11 17:02:15 EDT
Gerrit patches are welcome
Comment 3 Eclipse Genie CLA 2017-07-17 12:51:20 EDT
New Gerrit change created: https://git.eclipse.org/r/101370
Comment 5 Lars Vogel CLA 2017-07-17 15:44:03 EDT
Thanks, Christoph, looks very good to me and this is extremely useful.
Comment 6 Eclipse Genie CLA 2017-07-25 04:09:09 EDT
New Gerrit change created: https://git.eclipse.org/r/101879
Comment 8 Till Brychcy CLA 2017-07-25 14:26:10 EDT
Thanks for working on this.

Only substring matches are implemented, the following cases are missing (which are the cases when highlighting would be most useful):

- CamelCase.
- Patterns (like prefix*moretext)

In "Open Type", all matching kinds are handled correctly.

I'm setting the status to REOPENED so this doesn't get overlooked, because I really think this should either be completely implemented or reverted as in the current state, this feels very broken.
Comment 9 Lars Vogel CLA 2017-07-25 15:06:59 EDT
(In reply to Till Brychcy from comment #8)
> Thanks for working on this.
> 

> I'm setting the status to REOPENED so this doesn't get overlooked, because I
> really think this should either be completely implemented or reverted as in
> the current state, this feels very broken.

I suggest to handle this via a new bug, substring matching is IMHO already useful.
Comment 10 Lars Vogel CLA 2017-07-27 06:28:41 EDT
(In reply to Lars Vogel from comment #9)
> I suggest to handle this via a new bug, substring matching is IMHO already
> useful.

I adjusted the bug message header to reflect the actual work and will open new two news bugs for the other highlighting options.