Paste refactoring menu is not properly refreshed for the first time but only when context menu is called second time on the node of same type. It is high priority because it blocks commit validation tests and it is a regression. To reproduce:
- create java project
- create a new package
- right-click JavaApplication1.java node and choose Copy
- right-click newpackage. There is "Paste" instead of "Paste|Refactor Copy..., Copy"
- right-click newpackage again. It is OK now.
- right-click JavaApplication1.java node. There is "Paste|Refactor Copy..., Copy" item enabled but it should not be.
- right-click JavaApplication1.java node again. It is OK - Paste is disabled.
Product Version: NetBeans IDE Dev (Build 201110160600)
Java: 1.7.0; Java HotSpot(TM) Client VM 21.0-b17
System: Windows XP version 5.1 running on x86; Cp1250; en_US (nb)
I doubt, that this is refactoring issue.
Since when those test failing?
In build 201110120600 it works, in build 201110160600 it fails. I can't specify better because there were additional failures which hid these ones.
well, it is not "Paste|Refactor Copy..." which is missing. It is regular Paste which is missing.
If you do Paste -> Refactoring version is called. It means that regular paste type is missing.
Works for me fine on my Linux, but yes, I've changed the paste action in explorer to update asynchronously to address bug 203335.
If this is a windows only issue then it may be related to bug 88161 which we were trying to fix for 7.1. Try to run with -J-Dnetbeans.slow.system.clipboard.hack=false and see if that helps.
No, using -J-Dnetbeans.slow.system.clipboard.hack=false doesn't help.
And it is reproducible also on Linux.
Integrated into 'main-golden'
User: Jaroslav Tulach <firstname.lastname@example.org>
Log: #203826: Don't fire flavor events under a lock. May help the state of paste action as well.