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 142019 - Code completion + interfaces
Summary: Code completion + interfaces
Status: RESOLVED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All Windows Vista
: P2 blocker (vote)
Assignee: Tomasz Slota
URL:
Keywords:
: 142018 (view as bug list)
Depends on:
Blocks: 142091
  Show dependency tree
 
Reported: 2008-07-29 10:32 UTC by polan
Modified: 2008-08-02 16:03 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description polan 2008-07-29 10:32:13 UTC
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.
Comment 1 Tomasz Slota 2008-07-30 13:20:31 UTC
It's quite a bit of work, wish we had realized it was missing earlier...
Comment 2 rmatous 2008-07-30 17:51:40 UTC
*** Issue 142018 has been marked as a duplicate of this issue. ***
Comment 3 rmatous 2008-07-30 17:52:07 UTC
*** Issue 142018 has been marked as a duplicate of this issue. ***
Comment 4 Tomasz Slota 2008-08-01 15:04:17 UTC
Committed the first part of the fix, which solves #3.

http://hg.netbeans.org/main?cmd=changeset;node=22b3fd0a3e43
Comment 5 Tomasz Slota 2008-08-01 16:39:35 UTC
Fixed the remaining part

http://hg.netbeans.org/main/rev/d756d605504c
Comment 6 Quality Engineering 2008-08-02 16:03:37 UTC
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