Steps to reproduce:
1) Start IDE with fresh user dir
2) Open "Edit" menu and see "Find Usages" item enabled
3) Invoking it results in "... cannot be applied in this context" message box
It it cannot be applied then this menu item should be grayed (disabled).
Product Version: NetBeans IDE 6.9 RC2 (Build 201005262201)
Java: 1.6.0_18; Java HotSpot(TM) Client VM 16.0-b13
System: Windows XP version 5.1 running on x86; Cp1251; ru_RU (nb)
Userdir: C:\Documents and Settings\Lipin\.netbeans\6.9rc2
Set target-milestone of open issue to TBD (was < 7.3, f.e. 6.8), so the issue doesn't get lost.
Set target-milestone of open issue to TBD (was < 7.3, f.e. 6.8), so the issue
doesn't get lost. This time the target milestone is really set.
Created attachment 132436 [details]
I like to propose this little patch to solve the issue. The action is only enabled when there is at least one ActionsImplementationProvider supports the current context.
@NB-Devs: Please review, discuss and commit. Thank you
@Miroslav: Any change to get the patch integrated into 7.4?
Integrated into jet-main #d00c9fa3f6b6
Integrated into 'main-silver', will be available in build *201405230001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
User: Ralph Benjamin Ruijs <email@example.com>
Log: #186823 - Edit->Find Usages grayed when there is no provider for the current context