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 214910 - Currently editor is showing "USE_ALIAS" as information about an alias to a class, should also print the documentation of original class
Summary: Currently editor is showing "USE_ALIAS" as information about an alias to a cl...
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
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-28 12:13 UTC by turneliusz
Modified: 2012-06-28 12:25 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
Class alias "RequestEnvelope" is displaying "USE_ALIAS" (6.28 KB, image/png)
2012-06-28 12:13 UTC, turneliusz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description turneliusz 2012-06-28 12:13:06 UTC
Created attachment 121494 [details]
Class alias "RequestEnvelope" is displaying "USE_ALIAS"

As in attachment:

Class alias "RequestEnvelope" is displaying "USE_ALIAS", which alone doesn't have any useful information about the class and it's usage. IMHO When user is pointing on a class like this, he wants to see details about the class also. Right now, to get that kind of details he needs to CTRL+CLICK on that alias, which then moves the editors view to the alias definition. Effect of this action is that it's taking the user from regular flow of working. He needs to jump over file to know details/documentation of the class. In case of regular classes (not aliases), everything is fine, user points a class and sees the information about it. I believe that this is how it should work with aliases.
Comment 1 Ondrej Brejla 2012-06-28 12:19:58 UTC
It's a valid enhancement. I'll look at it. Thanks.

Snippet for me:

<?php
namespace Dob;
class MyFooClass {

    public function __construct(String $str) {
        ;
    }
}

namespace Omg;
use Dob\MyFooClass as MyFooClass1;
$a = new MyFooClass1(); // ctrl + mouse over MyFooClass1
?>

That tooltip should be more descriptive.
Comment 2 turneliusz 2012-06-28 12:25:12 UTC
Great! Thank you!