This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 71995 - Matching algorithm in Add Module Dep dlg favors improbable matches
Summary: Matching algorithm in Add Module Dep dlg favors improbable matches
Status: RESOLVED FIXED
Alias: None
Product: apisupport
Classification: Unclassified
Component: Project (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: Jesse Glick
URL:
Keywords: UI
Depends on:
Blocks:
 
Reported: 2006-01-30 06:21 UTC by _ tboudreau
Modified: 2006-01-31 00:43 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description _ tboudreau 2006-01-30 06:21:39 UTC
The matching algorithm in this dialog is very generous - for example, type 
in "Memory" and it will match DBMemoryCollection in the dbschema module.

The problem here is the result ordering - based on what the user is probably 
looking for, the results should be sorted according to the type of match:

1.  Exact match (i.e. if I type "FileObject", Filesystems API should be first 
(right now "Experimental Search API" comes out on top because it contains 
a "FileObjectFilter" class)

2.  Partial match starting from first character (i.e. if I 
type "memory", "MemoryFilesystem" should come before DBMemoryCollection)

Such heuristics would make it much more likely that the initial selection is 
actually what the user is looking for.
Comment 1 Jesse Glick 2006-01-30 17:10:54 UTC
True. I can try that.
Comment 2 Jesse Glick 2006-01-31 00:43:30 UTC
Should work better now.

committed   * Up-To-Date  1.3        
apisupport/project/src/org/netbeans/modules/apisupport/project/ui/customizer/AddModuleFilter.java
committed   * Up-To-Date  1.37       
apisupport/project/src/org/netbeans/modules/apisupport/project/ui/customizer/AddModulePanel.java
committed   * Up-To-Date  1.7        
apisupport/project/src/org/netbeans/modules/apisupport/project/ui/customizer/CustomizerComponentFactory.java
committed   * Up-To-Date  1.19       
apisupport/project/src/org/netbeans/modules/apisupport/project/ui/customizer/ModuleDependency.java
committed   * Up-To-Date  1.4        
apisupport/project/test/unit/src/org/netbeans/modules/apisupport/project/ui/customizer/AddModuleFilterTest.java