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 - namespacing classes breaks Code generation context
Summary: namespacing classes breaks Code generation context
Status: RESOLVED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.1
Hardware: Macintosh (x86) Mac OS X
: P3 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-27 10:57 UTC by scottaubrey
Modified: 2011-06-07 06:31 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 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: