This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 65778 - [50cat] ctrl-space would first propose classes and not interfaces / abstract classes after a new.
Summary: [50cat] ctrl-space would first propose classes and not interfaces / abstract ...
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P2 blocker with 1 vote (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-03 23:24 UTC by vbrabant
Modified: 2013-01-31 16:05 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description vbrabant 2005-10-03 23:24:31 UTC
[ BUILD # : Beta ]
[ JDK VERSION : 1.5.0_05 ]

I am editing a class, called MyClass.
And I am filling the main method:

List = new A

and press Ctrl-Space.

Code Completion propose a lot of classes and interface, but why it is not proposing at first classes that have constructor, that are not abstrac classes nor interfaces.

Best would be that it first propose the classes that are implementing List in our case.

Example:
List l = new     Ctrl-Space
would propose ArrayList and LinkedList on first Lines.

Calendar c = new    Ctrl-Space
would propose Calendar, GregorianCalendar, ...
Comment 1 Jiri Prox 2006-06-13 15:44:58 UTC
The abstract classes and interfaces are proposed because  user can use them to
declare anonymous class.
Comment 2 vbrabant 2006-06-13 21:22:04 UTC
I totally agree with you that abstract classes and interfaces are proposed.
But What I wanted to highlight is the fact that it should FIRSTLY propose non
abstract classes nor interfaces.