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.
Development build #200309170100 of NetBeans 4.0 Windows 2000 with JDK 1.5 beta build #20 Description: ============ It is not possible to use "Cut", "Copy" and "Paste" actions in both command and variable editors. The actions do not produce any result. This is a regression in functionality and testability issue. Steps to reproduce: =================== 1. Invoke "Versioning|Mount Version Control|Generic VCS" from main menu. 2. Select "Empty" profile and push "Next >" button. 3. Push "Command Editor" button. 4. Right click "EmptY" node and choose "Add|Folder". 5. Type in "My Folder" and push "OK" button. 6. Expand "Empty" node and "Copy" some node. 7. Now "Paste" it on "My Folder" node but nothing is copied.
This is a testability issue. Makes complete.common.Commands.testCustomizeMenu() test to fail.
Created attachment 11703 [details] The exception, that was thrown on Paste
In build #200309240100 I've got the attached exception. Moving to openide for evaluation.
From the stack trace I guess it could be a bug of explorer.
Maybe a problem why call ExplorerActions.OwnPaste. It's wrong. OwnPaste.actionPerformed throws IllegalStateException always. It should be discussed with Jarda, author recent changes in ExporerActions.
Created attachment 11732 [details] added check for null pasteTypes
added check to avoid NPE in openide/src/org/openide/explorer/ExplorerActions.java, rev.1.61; noted test complete.common.Commands.testCustomizeMenu() now passes, closed as fixed
I'm not sure it's fixed or not. complete.common.Commands.testCustomizeMenu() passes. But I think the ball is on the vcs side :-) If I'm wrong then assign back to me.
I am sorry guys for disappointing you guys, but it does not work. The "Paste" action is not even enabled after "Cut" or "Copy". Please double check the fix. Trying to verify in development build #200311251900 of NetBeans 3.6.
Martine, make sure that your (if any) Cut/Copy action is context aware. The dialogs don't fire ACTIVATED_NODE event, the action must be context sensitive. Could you look on it? Thanks
3.6 is out, re-scheduling for promotion D (4.0).
ExplorerUtils should be used. It will hopefully solve this problem, because it used to work before.
*** Issue 38757 has been marked as a duplicate of this issue. ***
Fixed in trunk: /cvs/vcsgeneric/src/org/netbeans/modules/vcs/advanced/UserConditionedCommandsPanel.java,v <-- UserConditionedCommandsPanel.java new revision: 1.5; previous revision: 1.4 /cvs/vcsgeneric/src/org/netbeans/modules/vcs/advanced/UserConditionedVariablesPanel.java,v <-- UserConditionedVariablesPanel.java new revision: 1.6; previous revision: 1.5 /cvs/vcsgeneric/src/org/netbeans/modules/vcs/advanced/commands/CommandCopySupport.java,v <-- CommandCopySupport.java new revision: 1.3; previous revision: 1.2 /cvs/vcsgeneric/src/org/netbeans/modules/vcs/advanced/conditioned/ConditionedStructuredExec.java,v <-- ConditionedStructuredExec.java new revision: 1.2; previous revision: 1.1 /cvs/vcsgeneric/src/org/netbeans/modules/vcs/advanced/variables/VariableCopySupport.java,v <-- VariableCopySupport.java new revision: 1.3; previous revision: 1.2
Verified in development build #200407151800 of NetBeans 4.0.