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 203826 - Paste not refreshed according to context
Summary: Paste not refreshed according to context
Alias: None
Product: platform
Classification: Unclassified
Component: Explorer (show other bugs)
Version: 7.1
Hardware: PC Windows XP
: P1 normal (vote)
Assignee: Jaroslav Tulach
Depends on: 203335
  Show dependency tree
Reported: 2011-10-17 13:24 UTC by Jiri Skrivanek
Modified: 2011-11-04 09:31 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Skrivanek 2011-10-17 13:24:26 UTC
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 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 node. There is "Paste|Refactor Copy..., Copy" item enabled but it should not be.
- right-click 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)
Comment 1 Jan Becicka 2011-10-17 17:16:11 UTC
I doubt, that this is refactoring issue.
Since when those test failing?
Comment 2 Jiri Skrivanek 2011-10-18 08:52:28 UTC
In build 201110120600 it works, in build 201110160600 it fails. I can't specify better because there were additional failures which hid these ones.
Comment 3 Jan Becicka 2011-10-18 09:33:18 UTC
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.
Comment 4 Jaroslav Tulach 2011-10-20 05:46:59 UTC
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.
Comment 5 Jiri Skrivanek 2011-10-20 07:20:22 UTC
No, using -J-Dnetbeans.slow.system.clipboard.hack=false doesn't help.
Comment 6 Jiri Skrivanek 2011-10-20 07:48:52 UTC
And it is reproducible also on Linux.
Comment 7 Jaroslav Tulach 2011-11-01 14:53:54 UTC
Comment 8 Quality Engineering 2011-11-03 15:32:26 UTC
Integrated into 'main-golden'
User: Jaroslav Tulach <>
Log: #203826: Don't fire flavor events under a lock. May help the state of paste action as well.