History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEADEV-20300
Type: New Feature New Feature
Status: Open Open
Priority: Normal Normal
Assignee: Alexey Kudravtsev
Reporter: Alexander Chernikov
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
IDEA: Development

When String literal matches existing class name, navigation facilities could be provided

Created: 20 Aug 07 17:10   Updated: 20 Aug 07 17:12
Component/s: Code Navigation
Fix Version/s: None

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown

Build: 7,229


 Description  « Hide
"Hard coded string literal" inspection has options to ignore literals which are equal to existing class or property name. So, IDEA resolves string literals into class and property names.
Since this is performed anyway, would be nice to have "go to definition" action available if this resolve is successful. E.g. user provides something like:
...
	Hashtable<String, String> env = new Hashtable<String, String>(0);
	env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.fscontext.RefFSContextFactory");
...

"com.sun.jndi.fscontext.RefFSContextFactory" is resolved to key and green. User puts cursor to this literal and go to class definition by Ctrl+B.



 All   Comments   Work Log   Change History      Sort Order:
There are no comments yet on this issue.