Community
Participate
Working Groups
The "Open Type" dialog (CTRL+T) isn't too smart and could do better. It could prefer classes from the "current" project (based on focus) or event classes from recently used projects. It should sort classes coming from jars to the bottom. It should sort classes coming from JDK event more to the bottom. Classes from my workspace are always more likely, what I want.
Given that one can quickly filter makes the alphabetical sorting the best choice. Also note that we do sort source types before binary types if the names match. We won't work on this but if someone contributes a new sort option then we'll consider it.
*** Bug 534901 has been marked as a duplicate of this bug. ***
Please note that the dialog already shows previously opened types at the top of the list, so the list is already now not strictly alphabetically sorted. I *think* that this is what the --- Workspace matches --- divider is there for, although I am unsure as I often see unexpected results above it. IMHO it would be nice if there were a way to also have a divider which separates "true" workspace matches from other matches (from classpath containers, etc.).
I respectfully but strongly disagree that alphabetical is best because of filtering. I always want to see classes in my projects before any others. It is extremely rare to open anything else. Remembering previous results is good, but does not solve the usability issue. In fact, when I mistakenly choose the wrong class I then have to do more work to remove it from the list, else I will have to look at and avoid the wrong class every time I want my class. These things are minor but important because "open type" is used many hundreds of times per day.