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 - [67cat] JavaScript "Rename Local Variable" `Preview' button enabled by default.
Summary: [67cat] JavaScript "Rename Local Variable" `Preview' button enabled by default.
Status: RESOLVED WONTFIX
Alias: None
Product: javaee
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: Macintosh Mac OS X
: P4 blocker with 1 vote (vote)
Assignee: issues@javaee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-21 14:01 UTC by brettryan
Modified: 2016-07-08 10:12 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.