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 170951 - code completion after namespace keyword
Summary: code completion after namespace keyword
Status: NEW
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker with 1 vote (vote)
Assignee: Ondrej Brejla
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-26 17:52 UTC by Filip Zamboj
Modified: 2012-04-24 12:58 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 Filip Zamboj 2009-08-26 17:52:49 UTC
Product Version: NetBeans IDE Dev (Build 2009-08-26_13-54-24 )
Java: 1.6.0_14; Java HotSpot(TM) 64-Bit Server VM 14.0-b16

According to php specification the namespace keyword can be used to explicitly request an element from the current
namespace or a sub-namespace. It is the namespace equivalent of the self operator for classes. 

in this example is code completion after namespace keyword missing: 
namespace B\b;

class Bclass {
    static function Bclassfunction() {
        return true;
    }
}

function BglobalFunction() {
    return true;
}

$a = new namespace\ //<-no suggestions
Comment 1 Tomas Mysik 2009-08-27 08:42:58 UTC
Filipe, it's editor subcomponent, not code ;)
Comment 2 Filip Zamboj 2009-08-27 12:44:03 UTC
@Tomas: OK, I'll know next time :). thanks. 
Comment 3 Filip Zamboj 2010-09-15 12:29:51 UTC
batch reassigning
Comment 4 Petr Pisl 2011-03-07 13:26:42 UTC
Doing this is not only about code completion. The support is now more clever, it replace parts of namespace in the name (depending on the option), the hyperlink and other feature should also understand this. I don't think that there is time now to make it into NetBeans 7.0.