Bug 3345 - DCR: Code resolve should give more info on local variables (1GKNK79)
Summary: DCR: Code resolve should give more info on local variables (1GKNK79)
Status: RESOLVED DUPLICATE of bug 37509
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: All Windows 2000
: P3 normal (vote)
Target Milestone: 3.0 M5   Edit
Assignee: Jerome Lanneluc CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-10-10 22:53 EDT by Dirk Baeumer CLA
Modified: 2003-10-30 09:22 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 Dirk Baeumer CLA 2001-10-10 22:53:35 EDT
ICodeAssist.codeSelect(...) on local variables returns the local's type not the local itself. Should it be UI responsibility to deceide
what to do when asking for code assist on locals. 

The concrete case: we are using code assist to convert a selection into a java element to activate an action that can work on that 
java element (for example a rename refactoring). Selecting a local variable and doing so pops up the rename type wizards which 
looks a little but strange for locals.


NOTES:

PM (9/26/2001 10:52:22 AM)
	Code selection answers Java elements. There is no element for a local variable, thus we answer the variable type.

EG (26.09.2001 11:35:08)
	Answering the variable type is good when you want to do an open on selection, but it is problematic
	for the refactoring from a code selection described above. Changed the PR into a DCR that code
	select should return additional information for local variables. There should at least be info that the selection
	is a local variable.
	A workaround is that we use the AST instead of code select to find out what is selected.
	
PM (9/26/2001 3:11:06 PM)
	Along the same path, we should be able to surface local types and their members as well.
Comment 1 DJ Houghton CLA 2001-10-29 17:11:20 EST
PRODUCT VERSION:
202

Comment 2 Philipe Mulet CLA 2001-11-21 07:47:12 EST
Defer
Comment 3 Philipe Mulet CLA 2003-10-30 04:47:21 EST
reopen
Comment 4 Philipe Mulet CLA 2003-10-30 04:48:04 EST
pls double check and dispose
Comment 5 Jerome Lanneluc CLA 2003-10-30 09:21:56 EST
Double checked.

*** This bug has been marked as a duplicate of 37509 ***