Summary: | Improve OpenType behavior to suggest types from source first | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Gayan Perera <gayanper> |
Component: | UI | Assignee: | JDT-UI-Inbox <jdt-ui-inbox> |
Status: | NEW --- | QA Contact: | |
Severity: | enhancement | ||
Priority: | P3 | CC: | Lars.Vogel, loskutov, sarika.sinha, stephan.herrmann |
Version: | 4.21 | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | All | ||
Whiteboard: |
Description
Gayan Perera
2021-10-28 04:23:39 EDT
A quick win should be to start with Java Main Sources workingset and introduce a shortcut to toggle it which should give the same described behavior. Proposed behavior change makes sense, but I haven't checked if or how it could be implemented. One thing I wonder is: we must have already some kind of sorting in the open type dialog results, so instead of changing how search works by changing the search scope, could we simply change the sort order to prefer source types (and put it first) if both source / binary types with same name are found for same search pattern? (In reply to Andrey Loskutov from comment #2) > One thing I wonder is: we must have already some kind of sorting in the open > type dialog results, so instead of changing how search works by changing the > search scope, could we simply change the sort order to prefer source types > (and put it first) if both source / binary types with same name are found > for same search pattern? If we do so how should we sort, i mean will the order will be like 1. order by source vs binary 2. sort Alphabetically Which might looks good and hard to understand what happening if someone doesn't know about it. What about using the filter instead of playing with Scope at UI layer ? IType already provides a way to check if binary or not. (In reply to Gayan Perera from comment #3) > (In reply to Andrey Loskutov from comment #2) > > One thing I wonder is: we must have already some kind of sorting in the open > > type dialog results, so instead of changing how search works by changing the > > search scope, could we simply change the sort order to prefer source types > > (and put it first) if both source / binary types with same name are found > > for same search pattern? > > If we do so how should we sort, i mean will the order will be like > 1. order by source vs binary > 2. sort Alphabetically > > Which might looks good and hard to understand what happening if someone > doesn't know about it. > > What about using the filter instead of playing with Scope at UI layer ? > IType already provides a way to check if binary or not. Yes, I agree it will be difficult to understand the sorting.Can we have a toggle, filter, or a button "Search in source only" |