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.
dev build 200403011900 JDK 1.5.0 beta 1 CTRL-C no longer triggers the "copy" operation in explorer.
works perfectly for me here (Linux, JDK 1.4.2_03, dev build from CVS), just used Ctrl+C, Ctrl+V to copy a few files around in the explorer. Gili: Can you be more concrete about what you exactly did?
It's easy reproducible with jdk1.5-beta2, keystroke Ctrl+C doesn't work. Via menu works correctly.
Created attachment 13865 [details] a possible workaround
The code which handles Ctrl-C/X/V shortcuts is called only for jdk1.4. Workaround is enable it also for other jdk.
The attached workaround commited in mailtrunk.
I think we should get this fix in release36
Is this a JDK bug? If so, we should file an issue against JDK 1.5.0 beta 2
Gili, no, it's not any jdk bug. It's a bug on netbeans side, wrong check of jdk's version. Thanks for early feedback about this problem.
Created attachment 13869 [details] patch for TreeView and also for ListView
Hmm, this is what you get for writing silly code like if (System.getProperty("java.version").startsWith("1.4")) ... instead of using e.g. if (Dependency.JAVA_SPEC.compareTo(new SpecificationVersion("1.4")) < 0) ...
Petr, could you review my patches? Thanks
Two things: 1. update the comment of the fix. "(only for JDK 1.4)" is misleading. 2. remove the (no longer needed) OurTreeCancelEditingAction class.
Yes, in maintrunk are the comments removed as well. I'll class OurTreeCancelEditingAction in maintrunk, it could be left in release36 to minimalize amount of changes.
I see no need for leaving unused garbage in the release. The "amount" of changes is "remove one unused class",doesn't matter it is 15 additional lines in diff. Please remove the class as well. Otherwise the change is OK, consider it reviewed.
Ok, I'll remove it also in release36. Thanks Petr
fix was backported to release36 branch
verified in [nb_36](200403121830)