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

Bug 526386

Summary: Open Type sorting doesn't show perfect match first
Product: [Eclipse Project] JDT Reporter: Lars Vogel <Lars.Vogel>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: Lars.Vogel, lbullen, mistria, nobody, noopur_gupta
Version: 4.7   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on: 525974    
Bug Blocks:    

Description Lars Vogel CLA 2017-10-23 17:20:55 EDT
+++ This bug was initially created as a clone of Bug #525974 +++

Steps to reproduce:
* Get jdt.core repo in your workspace 
* Ctrl+Shift+T to get the Open Type dialog
* Type "AST.java"
* EXECTED: AST.java first in list (as most relevant
  GOT: Some AbstractSelectionTest.java and many other classes matching A*S*T*.java before AST

It seems like the return order is alphabetical one, which isn't a too bad one in most cases. However, it seems important to at least show the perfect match first.
Maybe it would be also interesting to replace the sorting by a "reverse delta size", but I'm afraid such sort would be complex to understand for users; so just placing perfect match on top and leaving all other items in alphabetical order seems fine.
If it's simpler, it would also seem perfectly fine and maybe even better to have the perfect match item listed twice: once on top, and then in the alphabetical list; so users won't miss it if they scroll down too fast.
Comment 1 Noopur Gupta CLA 2017-10-23 17:35:53 EDT

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