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 163248

Summary: [67cat] JavaScript "Rename Local Variable" `Preview' button enabled by default.
Product: javaee Reporter: brettryan <brettryan>
Component: CodeAssignee: issues@javaee <issues>
Status: RESOLVED WONTFIX    
Severity: blocker    
Priority: P4    
Version: 6.x   
Hardware: Macintosh   
OS: Mac OS X   
Issue Type: DEFECT Exception Reporter:

Description brettryan 2009-04-21 14:01:10 UTC
[ BUILD # : 200904201507 ]
[ JDK VERSION : 1.6.* ]

1. Create a new JSP
2. Add a variable
var testVariable;
3. Place caret in `testVariable' and press CTRL+R (Refactor > Rename)
-- `Preview' button is incorrectly enabled.
-- Error text is not visible
4. Altering text then placing back to what it was will show the error
text and disable the button as expected.

* Should the `Refactor' button be enabled? As it never seems to get
enabled.
Comment 1 Martin Balin 2016-07-07 08:55:29 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss
Comment 2 brettryan 2016-07-08 10:12:32 UTC
Confirmed OK now, it seems that JavaScript variables at some point got inline refactoring which seems to have resolved the issue.

Interestingly investigating this does reveal a new bug though, right clicking on a JavaScript member and selecting "Refactor > Rename..." brings up the error "The rename refactoring cannot be applied in this context.", though using CTRL+R does work.