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 262734

Summary: [82cat] Refactor > Rename should invoke inline rename where possible
Product: editor Reporter: brettryan <brettryan>
Component: RefactoringAssignee: Ralph Ruijs <ralphbenjamin>
Status: NEW ---    
Severity: normal CC: markiewb
Priority: P3    
Version: 8.2   
Hardware: PC   
OS: Mac OS X   
Issue Type: DEFECT Exception Reporter:

Description brettryan 2016-07-08 10:53:22 UTC
This is a defect that presents the error message "The Rename refactoring cannot be applied in this context" message when invoked on JavaScript members, however; using CTRL+R on those same members enters inline renaming.


Steps to Reproduce
==================

1. Open Java file with a private member.
2. Place caret on member name and Invoke Refactor > Rename (Do not invoke with the shortcut).


Expected Behaviour
==================

Inline refactoring should be started for the member.


Actual Behaviour
================

"Rename Field" dialog appears for Java files, Message: "The Rename refactoring cannot be applied in this context" for JavaScript files.