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 198947

Summary: namespacing classes breaks Code generation context
Product: php Reporter: scottaubrey
Component: EditorAssignee: Petr Pisl <ppisl>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P3    
Version: 7.1   
Hardware: Macintosh (x86)   
OS: Mac OS X   
Issue Type: DEFECT Exception Reporter:

Description scottaubrey 2011-05-27 10:57:20 UTC
Tried in 7.0 and today's Dev (201105261343).

When you add a namespace before a class, the code generation/code insert doesn't know it's inside of a class. If you comment the namespace, it show options for classes then

namespace Something;

    Class SomethingElse {
        private $privateVar;
    
        | <- cursor here
    }

pressing ctrl+I (Insert code on OS X) will only show:

    Connection to Database...
    Database Table...

commenting out the namespace line and doing the same also shows:

    Constructor...
    Getter...
    Setter...
    Getter and Setter...
    Override & Implement Method...
Comment 1 Petr Pisl 2011-06-02 14:35:14 UTC
Reproducible on linux as well.
Comment 2 Petr Pisl 2011-06-06 13:48:42 UTC
Fixed in web-main and releases/release701 branch as well.
Comment 3 Quality Engineering 2011-06-07 06:31:48 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/
User: 
Log: