Damn google groups keyboard focus.
Due to the staggering response this thread has received, I'm going to
work around this issue. Here's the plan.
Use the nsICommandManager and the nsIClipboardDragDropHooks(), I'll
intercept the nsITransferable and manually pass each DataFlavor over
to Java. In Java, I'll cook up a real
java.awt.datatransfer.Transferable instance and set it on the
clipboard.
Here's the most recent change-bundle in this regard.
Issue: 369376
Workaround
M webclient/classes_spec/org/mozilla/webclient/impl/wrapper_native/
CurrentPageImpl.java
+void addStringToTransferable(String mimeType, String text) {
This method is called from native code when a Transferable is being
inspected for the DataFlavors it supports.
M webclient/classes_spec/org/mozilla/webclient/test/WorkDialog.java
- Whitespace
M webclient/src_moz/EmbedWindow.cpp
M webclient/src_moz/EmbedWindow.h
- copy code from nsPrimitiveHelpers to aid in the extraction of text
from the nsITransferable
- Flesh out GetText(), SendTextToJava() methods.
M webclient/src_moz/Makefile.in
- Additional dependencies for nsPrimitiveHelpers copy.
I wish there were a better way, but this seems to work.
_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding