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.
NetBeans IDE Dev (Build 200608131800) 1.5.0_07; Java HotSpot(TM) Client VM 1.5.0_07-b02 Windows XP version 5.1 running on x86 en_US (nb); Cp1252 1) create java project 2) select Main.java file, invoke from popup Cut (or use CTRL+X) 3) try to paste it somwhere in filemanager e.g. C:\ - paste action is disabled/ctrl+v also does not work. note: copy action works fine.
it's a problem with java refactoring as it adds its own wrapper to java file transferables so the operating system doesn't see the support file dnd flavor. reassigning to refactoring team for evaluation
note that cut & paste works fine for non-java files like html or text files
*** Issue 90694 has been marked as a duplicate of this issue. ***
Problem was, that refactoring clipboard convertor converted multi flavor transferables into one, refactoring transferable. Checking in refactoring/api/src/org/netbeans/modules/refactoring/impl/ClipboardConvertor.java; /cvs/refactoring/api/src/org/netbeans/modules/refactoring/impl/ClipboardConvertor.java,v <-- ClipboardConvertor.java new revision: 1.7; previous revision: 1.6 done Checking in refactoring/java/src/org/netbeans/modules/refactoring/java/ui/RefactoringActionsProvider.java; /cvs/refactoring/java/src/org/netbeans/modules/refactoring/java/ui/RefactoringActionsProvider.java,v <-- RefactoringActionsProvider.java new revision: 1.11; previous revision: 1.10 done Checking in ide/test/qa-functional/src/validation/IDEValidation.java; /cvs/ide/test/qa-functional/src/validation/IDEValidation.java,v <-- IDEValidation.java new revision: 1.179; previous revision: 1.178 done Problem partially fixed. Now DnD of 2 or more files does not invoke refactoring. This problem can be fixed in openide/explorer. Please review/improve/commit this patch. Thanks.
Created attachment 36617 [details] Proposed patch
patch integrated to trunk /cvs/openide/explorer/src/org/openide/explorer/view/DragDropUtilities.java,v <-- DragDropUtilities.java new revision: 1.12; previous revision: 1.11
is it possible to delete source file? That's the logic of Cut action...currently the file is copied..
> is it possible to delete source file? That's the logic of Cut action...currently > the file is copied.. unfortunately, there are not suitable hooks in java's Transferable nor in Clipboard classes. so there's now way of knowing that the actual cut operation was performed somewhere outside java and the original file should be removed...