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.
if the code being completed is an rvalue, it should be fairly straightfoward to determine its type. knowing this, how about eliminating those members which are not the correct type and whose values cannot be implicitly cast as the correct type. for example: java.awt.Point p=new java.awt.Point(); int x=p. <--- code completion here another example: void foo(int i) { ... } ... java.awt.Point p=new java.awt.Point(); foo(p. <--- code completion here only three things should show up for these cases: p.x p.y p.hashCode() it would make things so much easier. 2 thing to watch out for: 1. implicit casting - int's need to be included for doubles, child classes need to be included for parents, etc. 2. explicit casting thanks, al
*** Bug 8157 has been marked as a duplicate of this bug. ***
What about another case: int x = something.getAnotherObject().getValue() <--------- code completion here I would really not like the completion list to show int-typed fields and methods, since I would not get getAnotherObject() that return AnotherObject type. But again, they may be filters applicable to the completion list by e.g. pressing some key and this may be one of them.
good point. let me suggest instead placing field/methods with matching types at the top of the list. thanks, al
Only changed version to Development.
Target milestone -> 3.3
Changing the state of the issue to ASSIGNED, because it was covered in Requirements document at http://editor.netbeans.org/doc/Requirements.html
Target milestone -> 3.3.1.
Set target milestone to TBD
Changing subcomponent to "code completion"
*** Issue 37105 has been marked as a duplicate of this issue. ***
i still think it's a good idea. the other guys do it...
this RFE is ancient! if you make this happen for 4.1, i promise i'll never look at Eclipse again! :P
I believe this is covered by the smart code completion in Nb6. Dusane? Can we closed this as fixed?
Agree.
yup. looking nicer by the build.