Bug 68850 - [content assist] Completion for array initialization
Summary: [content assist] Completion for array initialization
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: All All
: P3 enhancement with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: David Audel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-29 07:10 EDT by Konstantin Scheglov CLA
Modified: 2022-02-24 22:08 EST (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Konstantin Scheglov CLA 2004-06-29 07:10:31 EDT
Currently Eclipse can assist in variable initialization with new class instance.
For example, in following code:
  void foo() {
    Integer I = new ${cursor}
  }
when I press Ctrl+Space, Eclipse shows popup with "Integer" and "Test" ("Test"
is name of public class).
  Now, if we have following situation:
  void foo() {
    Integer I[] = new ${cursor}
  }
and Eclipse shows only "Test". :-(
  Same sitiation for simple types arrays.

  Would be good to show also "Integer []", i.e. "TypeName []" in general case.
Comment 1 Alexander Staubo CLA 2005-12-13 19:18:34 EST
I am adding my vote to this bug. I find the lack of completion for array initialization very annoying.
Comment 2 Markus Keller CLA 2009-03-26 11:54:05 EDT
+1. Isn't this JDT/Core?
Comment 3 Dani Megert CLA 2009-03-26 12:10:55 EDT
Moving to JDT Core for comment. A new proposal type would be needed.
Comment 4 Eclipse Genie CLA 2022-02-24 21:17:02 EST
New Gerrit change created: https://git.eclipse.org/r/c/jdt/eclipse.jdt.core/+/191208
Comment 5 Eclipse Genie CLA 2022-02-24 22:08:03 EST
New Gerrit change created: https://git.eclipse.org/r/c/jdt/eclipse.jdt.ui/+/191210