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 186812

Summary: Refactor menu items should grayed (disabled) if they cannot be applied in the current context
Product: java Reporter: dlipin <dlipin>
Component: RefactoringAssignee: Jan Becicka <jbecicka>
Status: RESOLVED WONTFIX    
Severity: normal Keywords: USABILITY
Priority: P4    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description dlipin 2010-05-27 13:48:04 UTC
Steps to reproduce:
1) Create Java Application
2) Select project node in the Projects window
3) Click "Refactor" menu
4) I see Rename, Move, Copy, Safely Delete items there active and Undo/Redo disabled
5) Clicking on any of the active items mentioned above results in "The ... refactoring cannot be applied in this context" message

I would expect the appropriate item be grayed (disabled) other than seeing this unfriendly message.

Not sure about the category, can be general refactoring issue, not the java's one.
Comment 1 dlipin 2010-05-27 15:48:11 UTC
The same situation for the case when no projects are opened at all.
Comment 2 Jan Becicka 2010-11-18 11:05:05 UTC
Enable/disable logic was too expensive and responsive was poor. We decided to implement it this way. See issue 173786