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

Summary: code completion after namespace keyword
Product: php Reporter: Filip Zamboj <fzamboj>
Component: EditorAssignee: Ondrej Brejla <obrejla>
Status: NEW ---    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

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.