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 211586 - [Fix Uses] More Options (e.g. aliases)
Summary: [Fix Uses] More Options (e.g. aliases)
Status: NEW
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.2
Hardware: All All
: P3 normal (vote)
Assignee: Ondrej Brejla
Depends on:
Reported: 2012-04-23 12:03 UTC by Ondrej Brejla
Modified: 2012-04-23 12:08 UTC (History)
0 users

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description Ondrej Brejla 2012-04-23 12:03:38 UTC
Add a new option to enable/disable of creating aliases. If aliases are disabled, then qualified names of classes are used in code instead of an alias.


use \Foo\Bar\Baz;
use \Foo\Bar\Omg;

new Baz\Bat();
new Omg\Bat();


instead of:


use \Foo\Bar\Baz\Bat;
use \Foo\Bar\Omg\Bat as Bat2;

new Bat();
new Bat2();

Comment 1 Ondrej Brejla 2012-04-23 12:08:00 UTC
Maybe allow user to use qualified names in a code instead of non-qualified names. That every class instantiation etc. will be processed to get a qualified name with a namespace part before.

Maybe one will be happy if he could have a last namespace name just before his class name...