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 - Refactor menu items should grayed (disabled) if they cannot be applied in the current context
Summary: Refactor menu items should grayed (disabled) if they cannot be applied in the...
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 6.x
Hardware: All All
: P4 normal (vote)
Assignee: Jan Becicka
URL:
Keywords: USABILITY
Depends on:
Blocks:
 
Reported: 2010-05-27 13:48 UTC by dlipin
Modified: 2010-11-18 11:05 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 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