Index: text/src/org/openide/text/ActiveEditorDrop.java
===================================================================
RCS file: /cvs/openide/text/src/org/openide/text/ActiveEditorDrop.java,v
retrieving revision 1.2
diff -u -r1.2 ActiveEditorDrop.java
--- text/src/org/openide/text/ActiveEditorDrop.java 3 Aug 2005 06:35:47 -0000 1.2
+++ text/src/org/openide/text/ActiveEditorDrop.java 3 Aug 2005 07:08:36 -0000
@@ -56,6 +56,37 @@
* }
*
*
+ * or simplified solution:
+ *
+ * + * private class MyDrop implements ActiveEditorDrop, Transferable { + * + * public MyDrop(){ + * } + * + * public boolean isDataFlavorSupported(DataFlavor f) { + * return ActiveEditorDrop.FLAVOR == f; + * } + * + * public final DataFlavor[] getTransferDataFlavors() { + * DataFlavor delegatorFlavor[] = new DataFlavor[1]; + * delegatorFlavor[0] = ActiveEditorDrop.FLAVOR; + * return delegatorFlavor; + * } + * + * public final Object getTransferData(DataFlavor flavor) throws UnsupportedFlavorException, IOException { + * return (flavor == ActiveEditorDrop.FLAVOR) ? this : null; + * } + * + * public boolean handleTransfer(java.awt.Component targetComponent) { + * //your implementation + * } + * + * } + * + *+ * + * * @author Martin Roskanin * @since org.openide.text 6.5 */ Index: text/src/org/openide/text/QuietEditorPane.java =================================================================== RCS file: /cvs/openide/text/src/org/openide/text/QuietEditorPane.java,v retrieving revision 1.2 diff -u -r1.2 QuietEditorPane.java --- text/src/org/openide/text/QuietEditorPane.java 2 Aug 2005 13:29:51 -0000 1.2 +++ text/src/org/openide/text/QuietEditorPane.java 3 Aug 2005 07:08:36 -0000 @@ -149,6 +149,11 @@ } public boolean canImport(JComponent comp, DataFlavor[] transferFlavors) { + for (int i=0; i