Cannot drag items into an Eclipse editor
I'm using standalone Zotero for Linux. I recently discovered the excellent feature of dragging items to an outside text editor. For many simple editors (gedit, Chrome browser) this works fine.
But Eclipse editors do not accept the dragged content. Since they do accept plain text dragged from elsewhere, I assume the items dragged from Zotero have an unusual mime-type. Is this the case?
Anyway, I'd love to see a fix — or a way for me to fix it myself.
Thanks!
Some extra information: When I use Edit → Copy Bibliography, I am able to paste the content into Eclipse. (This surprised me somewhat, because as I recall, drag/dropping and copy/pasting often share the same API.) The Edit → Copy Citation entry doesn't seem to do anything for me.
But Eclipse editors do not accept the dragged content. Since they do accept plain text dragged from elsewhere, I assume the items dragged from Zotero have an unusual mime-type. Is this the case?
Anyway, I'd love to see a fix — or a way for me to fix it myself.
Thanks!
Some extra information: When I use Edit → Copy Bibliography, I am able to paste the content into Eclipse. (This surprised me somewhat, because as I recall, drag/dropping and copy/pasting often share the same API.) The Edit → Copy Citation entry doesn't seem to do anything for me.
I'm guessing that Eclipse only accepts content with a plain-text MIME type. Content dragged from Firefox or Libreoffice may not be accepted simply because it contains a formatted / rich text MIME type without a fallback to text/plain.
But I could be completely off the mark. I've worked with various drag/drop API's (e.g., Qt, Android) but, truth be told, I don't know what protocol is used between applications in an Xorg environment.
https://github.com/zotero/zotero/blob/master/chrome/content/zotero/xpcom/itemTreeView.js#L2514
There are a few X Window DnD protocols listed here (XDND being the focus of the site) http://www.newplanetsoftware.com/xdnd/other_protocols.html I'm not sure which one(s) is used by XULRunner/Firefox or Eclipse.
I will point out, though, that a positive result would seem to contradict the established facts that Firefox uses the text/unicode flavor, and that text dragged from Firefox is not accepted. By the way, text dragged from Chrome is accepted (with formatting discarded at drop-time, not at drag-time).
Does anyone know of some (Xorg) tool that accepts all clipboard-content and all drop-events and will show us the exact content of the data-package? That would make all of this a lot easier. I tried
xev
, but it doesn't seem to have that feature.What I meant was that if we already knew that drags from Firefox are not accepted, and that dragged text from Firefox was of type text/unicode, then trying to get Zotero to do the same thing would seem a bit futile.
But we don't know that. So please ignore that comment.
Still strange, since dragging from gedit to Eclipse works fine for me.
And interestingly, dragging from LibreOffice to Eclipse doesn't work, but in a different way. With Zotero I simply get no reaction at all. With LibreOffice the Eclipse text-cursor follows the mouse (as if it might work) but the mouse pointer becomes a 'forbidden' icon.
Anyway, thanks for your effort! In the future I might explore the Eclipse side, but for now I'll be content with Ctrl-Shift-C.