Bug 7891 - Open on Selection should work on type names even if they can't be resolved
Summary: Open on Selection should work on type names even if they can't be resolved
Status: RESOLVED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.0   Edit
Hardware: Other other
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Claude Knaus CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-01-18 12:30 EST by Nick Edgar CLA
Modified: 2002-01-28 08:18 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nick Edgar CLA 2002-01-18 12:30:25 EST
Build 20020109

The other day I ran into a case where it couldn't resolve the hierarchy, and 
therefore couldn't do F3 or F4 when I had selected a type name.
It would be good to do the VA/Java-style hack where if you have a capitalized 
word selected, it assumes it's a type name even if it can't be resolved, and 
does the same as Open Type on the name.

It would be deluxe if this worked in the console too (if it doesn't already).

See also bug 7144.
Comment 1 Erich Gamma CLA 2002-01-18 13:30:26 EST
I like this. UI keeps the AllTypes cache so we should do this in the UI.

The console doesn't use code resolve and is using search so this should work.

Comment 2 Claude Knaus CLA 2002-01-25 12:20:40 EST
Nick,
Can you give me a simple test-case? Even if I remove all imports from a CU, I
can still open the referenced types. This works for javadocs as well...
Comment 3 Nick Edgar CLA 2002-01-25 15:28:42 EST
I couldn't reproduce it in 20020124.
Seems to have been fixed by 7144.
I didn't try the console.
Comment 4 Claude Knaus CLA 2002-01-28 08:18:05 EST
console works for me as well. I just printed out some class names and did F3. It
works even if no selection is made (caret only).