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.
As of 200807290201, there is no code completion support for interfaces. I think this should be implemented: 1) Offer a list of defined interfaces in CC after writing class Foo implements | 2) Offer a list of defined interfaces in CC in function declaration (see Issue 142018) 3) Add code completion functionality for -> where relevant. For example: interface Showable { public function show(); } function bar(Showable $sh) { $sh->| } Code completion should offer show() method here, since interface in type hinting in function declaration is valid, and used.
It's quite a bit of work, wish we had realized it was missing earlier...
*** Issue 142018 has been marked as a duplicate of this issue. ***
Committed the first part of the fix, which solves #3. http://hg.netbeans.org/main?cmd=changeset;node=22b3fd0a3e43
Fixed the remaining part http://hg.netbeans.org/main/rev/d756d605504c
Integrated into 'main-golden', available in build *200808021401* on http://bits.netbeans.org/dev/nightly/ Changeset: http://hg.netbeans.org/main/rev/22b3fd0a3e43 User: Tomasz Slota <tslota@netbeans.org> Log: #142019: Code completion + interfaces