Bug 203222 - [assist] assist on array access
Summary: [assist] assist on array access
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.3   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-13 05:03 EDT by Martin Aeschlimann CLA
Modified: 2008-08-22 12:29 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Aeschlimann CLA 2007-09-13 05:03:19 EDT
3.3

I often try code assist in the following situation:

    for (int i= 0; i < locations.length; i++) {
      int id= locations.get|
				
				
    }

I get 'getClass' here, but of course I forgot to add the array access and wanted to use a getter on 'locations[i]'.

Code assist could anticipate that and also offer methods from the array element type. When selected, the completion would add the array access and guess an index ('i') here.

    for (int i= 0; i < locations.length; i++) {
      int id= locations[i].getX()
				
				
    }