Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 148641

Summary: Inspection could be smarter when resolving selected text
Product: [Eclipse Project] JDT Reporter: Tom Mutdosch <mutdosch>
Component: DebugAssignee: JDT-Debug-Inbox <jdt-debug-inbox>
Status: RESOLVED WONTFIX QA Contact:
Severity: enhancement    
Priority: P3    
Version: 3.2   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Tom Mutdosch CLA 2006-06-26 09:14:12 EDT
build: I20060512-1600

In the Debugger, the Inspect operation could be smarter with the ability to better figure out what portion of the selected text should be inspected.  For instance if I have this line in my editor:
    IEditorInput input = new FileEditorInput(context.getJavaFile());

And I quickly highlight:  context.getJavaFile());
and try to inspect I get a "Syntax error" in the inspection box.  It would be nice  if it could figure out that I don't mean to inspect the last outer parenthesis.  I often find it hard to highlight exactly what I want when there's all those parenthesis bunched together and I feel like I have to be a surgeon with my mouse to highlight what I want; it'd be nice to be able to quickly select what I want and the Inspection would figure it out.
Comment 1 ryenus ' CLA 2006-07-18 00:04:31 EDT
Hi,

Just a tip for the code in your comment, 

you can easily select the expression inside a parentheses just by double clicking around the parentheses, i.e. the position marked with '^'
    IEditorInput input = new FileEditorInput(^context.getJavaFile())^;

Or it can help a bit to use key combination ctrl + shit + arrows.

anyway to me (a daily eclipse user) your idea is nice.
Comment 2 Darin Wright CLA 2006-09-18 16:55:48 EDT
Deferred for future consideration.
Comment 3 Eclipse Webmaster CLA 2009-08-30 02:35:50 EDT
As of now 'LATER' and 'REMIND' resolutions are no longer supported.
Please reopen this bug if it is still valid for you.