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.
1. Open two projects, A and B 2. Use drag & drop to copy a source file from A to B (hold Option on Mac) 3. Right-click on another source in A, and select Copy 4. Right-click on the package name for project A 5. Select paste (without refactor) 6. Select Undo (copy class) Expected: The second copy/paste will be undone. Actual results: The first (drag & drop) copy/paste is undone instead.
reproducible
The problem is, that refactoring Undo can only undo refactoring operations. The second paste was not refactoring action. In fact we should support undoing of all operations, not only refactoring.
Report from old NetBeans version. Due to code changes since it was reported likely not reproducible now. Feel free to reopen if happens in 8.0.2 or 8.1.