Skip to content

Improve code assist in field declaration #862

@mauromol

Description

@mauromol

Consider the following:

package test50

class Test50 {
	
	String foo
	
	List|
}

Invoke code assist at "|". This is what I see:

  • the most obvious suggestions (those that start with List, or even exact matches) are shown below other suggestions that apparently are not relevant; this class is small, so it's not a big issue, a normal class has many fields and methods, so relevant suggestions are lost; this is very annoying
  • if I choose "java.awt.List" and hit enter, no import declaration is added

Consider this slight variation:

package test50

class Test50 {
	
	String foo
	
	TreeNode|
}

and suppose I want to choose javax.swing.tree.TreeNode: the fully qualified class name is inserted, instead of keeping just TreeNode and adding a new import. This happens although I have the Code Assist option "Add import instead of qualified name" checked.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions