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 268020 - Aliases - go to declaration
Summary: Aliases - go to declaration
Status: NEW
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: Dev
Hardware: PC Windows 10 x64
: P3 normal (vote)
Assignee: Tomas Mysik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-14 13:28 UTC by amobilia
Modified: 2016-09-26 13:34 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description amobilia 2016-09-14 13:28:13 UTC
From netcat - PHP Sanity -> Aliases


1/ Create new php file and declare function called reallyLongNameForUselessFunction.
2/ In the lines below, type following: 
    use reallyLongNameForUselessFunction as shortName;
3/ Now, start typing shortN and invoke code completion. Whole name should be completed. 

Expected result:
Hold Ctrl and left click on calling of shortName, cursor should be moved to the line with reallyLongNameForUselessFunction declaration.

-----------------------------

When I ctrl + click on "shortName", i go to the declaration line "use reallyLongNameForUselessFunction as shortName".
When I ctrl + click (on these line) on  "reallyLongNameForUselessFunction", nothing occurs.

Should go to the declaration of the reallyLongNameForUselessFunction function.
Comment 1 mrpc 2016-09-26 13:25:51 UTC
This happens to me too: 

Product Version: NetBeans IDE 8.2 (Build 201609230201)
Java: 1.8.0_101; Java HotSpot(TM) 64-Bit Server VM 25.101-b13
Runtime: Java(TM) SE Runtime Environment 1.8.0_101-b13
System: Mac OS X version 10.11.6 running on x86_64; UTF-8; en_US (nb)


However, I pressed "Passed" on the test case, as clicking on "shortName" goes to the line:
use reallyLongNameForUselessFunction as shortName;

I am not sure if clicking on reallyLongNameForUselessFunction is in the scope of the test case.