drag and drop to Editor
Answered
Hi,
Is there a way to drag JList item inside Tool Window to Editor?
Here is the screen shot of my plugin
https://github.com/shiraji/color-manager/blob/master/website/images/normal.png
I want to grab JList item (e.g. R.color.colorPrimay) and drop the text R.color.colorPrimay to editor's cursor's location.
Thanks in advance.
Please sign in to leave a comment.
Hi,
Could you please take a look on com.intellij.openapi.editor.EditorDropHandler interface and its implementations/usages.
May be it can help you.
You can register DnD source on your component with a DataFlavor.stringFlavor.
For example:
Thanks guys
I will try them out