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 201066

Summary: RFE: Refactoring when cursor is located before '$'
Product: php Reporter: Masaki Katakai <masaki>
Component: EditorAssignee: Ondrej Brejla <obrejla>
Status: RESOLVED WORKSFORME    
Severity: normal    
Priority: P3    
Version: 7.0.1   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description Masaki Katakai 2011-08-18 08:49:58 UTC
I think this is an RFE for refactoring.

I got this opinion from Japanese mailing list. Could you evaluate it?

For example, here is the code.

        $hoge=false;

When the cursor(|) is located between 'e' and '=' like

        $hoge|=false;

then try to Ctrl+R to rename, it works. [hoge] is selected and can change the name.

It works cursor is located between '$' and 'h'.

        $|hoge=false;

However, when cursor is located at top of the line like

        |$hoge=false;

when I type Ctrl+R, it shows error dialog - it says "Cannot refactor here".

I just got a feeling that refactoring should work in this case too.
Comment 1 Ondrej Brejla 2012-04-24 15:09:26 UTC
Works for me in 7.2.