When dragging a window the visual feedback should indicate whether the window will be dropped into an editor mode or into non-editor mode.
Since version 7.1 it is possible to mix document windows together with non-editor windows which may lead to unwanted side effects. See e.g. issue #209468
Created attachment 122690 [details]
Thanks for the patch but it's not exactly what I had in my mind:)
The drop feedback should be different only when document and non-documents are about to be mixed. So dragging a document window and dropping below/next to some other document is legal and expected operation. However dropping an editor window next to Projects window leads to window type mixing that user should be warned about.
Also when dropping Projects window next to Navigator there should be no change in the visual feedback. But when the window is about to be dropped next to a document window the user should get a different visual feedback.
Btw, the feedback could be given also in the image of the dragged window instead of the drop target shape...
Created attachment 122718 [details]
Now it is more clear what you wanted to achieve.
The new patch paints with the default (red-ish) border the drop area and also the drag window(1) iff document TC is going to be dropped into editor mode or non-document TC is going to be dropped into non-editor mode.
On the other hand the patch paints with a new color (green-ish) border the drop area and also the drag window iff document TC is going to be dropped into non-editor mode or non-document TC is going to be dropped into editor mode.
(1) I do not know if you want to paint the drag window red-ish in the default case.
Thanks for the patch! I've tweaked it a bit and pushed into core-main 01830132d367
Integrated into 'main-golden', will be available in build *201208180001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
User: S. Aubrecht <email@example.com>
Log: #211836 - provide visual feedback when component types (editor x view) are being mixed during dnd