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 202378 - Open included file should work also if there is a variable in the file path.
Summary: Open included file should work also if there is a variable in the file path.
Status: NEW
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.1
Hardware: All All
: P3 normal (vote)
Assignee: Ondrej Brejla
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-20 19:40 UTC by paolosca
Modified: 2012-04-24 15:08 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 paolosca 2011-09-20 19:40:38 UTC
With the following code:

include("/path/to/file.php");

If I Ctrl+click on the file name string the file is automatically open.

Unfortunately in most of our projects we use variables to set the path of the files and the above method doesn't work.

In example Ctrl+click on the file name doesn't do anything in the following line:

include($path . "file.php");


It would be nice if the IDE made a guess based on the file name string and the list of the files in the project, and then open the matching file.

In case of multiple files matching *file.php it could open a window with a list as in "Go to declaration" when the same method is declared in different classes and/or different files.

In example, if the project contains the following files:

/path/to/file.php
/path/to/myfile.php
/path/file.php

Ctrl+click on the following line could automatically open the first one:

include($path . "/to/file.php");

Ctrl+click on the following line could open a list containing the first and the third:

include($path . "/file.php");

Ctrl+click on the following line could open a list containing all three:

include($path . "file.php");


Regards,


Paolo