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.
I can see why some people might want it, but i hate it - when I'm dragging in a text editor I'm trying to select text! Please give me an option to turn it off :)
Do you mean to turn it off just in the editor or in the whole IDE?
Just in the editor part
Ok, thanks. I think most people *do* want to have DnD in editor. We could probably add a command-line switch to disable it. AFAIK DnD support is implemented in openide/text.
I think it's important enough that it should be an option in the configuration, at the very least one in the "Advanced Options" configuration nothing more annoying than going to select text and accidentally totally trashing your code. Fortunately it currently doesn't work, so i just get a java exception message, which I'd much rather have than the text being moved :)
Reassigning to new module owner mslama.
NPE when dropping text was fixed. It did not break drop anyway. openide.text implements DnD support but has no space in options. Where should we put it in Options?
Disabling drag and drop editing is among the very first settings I make whenever I use a source code editor - whether it's UltraEdit, Notepad++ or even IntelliJ. I prefer my code to not get accidentally dragged when I'm just trying to select and reselect texts, or when I double click a word and then drag to enter "word select" mode where the mouse movement does not need to be precise in order to make the correct selections. In these cases, I prefer any clicks and movements from the mouse sees the code as "read only", just like a text editor that does not support drag-n-drop - unless I explicitly change it by clicking on cut/copy/paste commands. There are a lot of reasons and a lot of places drag-n-drop is useful, but at least for me, not when writing code - how often do people find they need to drag source code from one place to another in the same file?
I can't strongly enough express my support for this option. Does anybody even actually use drag and drop text selection / moving? I don't even see how the feature makes sense, treating an arbitrary sting of text within the flow of a page and moving it like it were a two dimensional object. It boggles my mind that there is no way to turn it off.
+1 times infinity
+1 This should take only a few minutes to implement for someone who knows how the netbeans RCP works. Is the netbeans development halted or something? Nothing gets done anymore. Is everyone waiting for the Apache incubator transition?
I've added a cmd line option to disable D&D it's -J-Dorg.netbeans.editor.dnd.disabled=true (with -J added for netbeans.conf syntax) http://hg.netbeans.org/jet-main/rev/e5ff6884dba6
Integrated into 'main-silver', will be available in build *201612070001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/e5ff6884dba6 User: Miloslav Metelka <mmetelka@netbeans.org> Log: #103803 - option to disable drag and drop -J-Dorg.netbeans.editor.dnd.disabled=true
Transplanted into release82 as 9b274bd636c4.
verified in 8.2 patch1