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 36262 - ALL: Unable to "Cut|Copy" & "Paste" any command|variable."
Summary: ALL: Unable to "Cut|Copy" & "Paste" any command|variable."
Status: VERIFIED FIXED
Alias: None
Product: obsolete
Classification: Unclassified
Component: vcsgeneric (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: Martin Entlicher
URL:
Keywords: T9Y
: 38757 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-09-24 10:14 UTC by Jiri Kovalsky
Modified: 2004-08-13 12:12 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
The exception, that was thrown on Paste (6.14 KB, text/plain)
2003-09-24 12:53 UTC, Martin Entlicher
Details
added check for null pasteTypes (1.03 KB, patch)
2003-09-29 09:47 UTC, Jiri Rechtacek
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Kovalsky 2003-09-24 10:14:58 UTC
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.
Comment 1 Jiri Kovalsky 2003-09-24 10:28:08 UTC
This is a testability issue. Makes 
complete.common.Commands.testCustomizeMenu() test to fail.
Comment 2 Martin Entlicher 2003-09-24 12:53:29 UTC
Created attachment 11703 [details]
The exception, that was thrown on Paste
Comment 3 Martin Entlicher 2003-09-24 12:54:57 UTC
In build #200309240100 I've got the attached exception.
Moving to openide for evaluation.
Comment 4 Martin Entlicher 2003-09-24 12:56:12 UTC
From the stack trace I guess it could be a bug of explorer.
Comment 5 Jiri Rechtacek 2003-09-29 09:44:02 UTC
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.
Comment 6 Jiri Rechtacek 2003-09-29 09:47:44 UTC
Created attachment 11732 [details]
added check for null pasteTypes
Comment 7 Jiri Rechtacek 2003-11-01 14:54:44 UTC
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
Comment 8 Jiri Rechtacek 2003-11-01 15:00:19 UTC
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.
Comment 9 Jiri Kovalsky 2003-12-08 15:24:29 UTC
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.
Comment 10 Jiri Rechtacek 2003-12-08 16:04:37 UTC
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
Comment 11 Martin Entlicher 2004-04-20 14:33:19 UTC
3.6 is out, re-scheduling for promotion D (4.0).
Comment 12 Martin Entlicher 2004-05-26 12:57:51 UTC
ExplorerUtils should be used. It will hopefully solve this problem,
because it used to work before.
Comment 13 Martin Entlicher 2004-05-26 16:04:29 UTC
*** Issue 38757 has been marked as a duplicate of this issue. ***
Comment 14 Martin Entlicher 2004-05-27 10:47:15 UTC
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
Comment 15 Jiri Kovalsky 2004-07-21 14:58:00 UTC
Verified in development build #200407151800 of NetBeans 4.0.