3 comments
Comment actions Permalink

Hi,

Could you please take a look on com.intellij.openapi.editor.EditorDropHandler interface and its implementations/usages.

May be it can help you.

0
Comment actions Permalink

You can register DnD source on your component with a DataFlavor.stringFlavor.

For example:

 DnDSupport.createBuilder(component)
.setBeanProvider(info -> {
if (info.isMove()) {
return new DnDDragStartBean(new StringSelection("Hello World"));
}
return null;
})
.setDisposableParent(disposeable)
.install();
0
Comment actions Permalink

Thanks guys

 

I will try them out

0

Please sign in to leave a comment.