Author: scabanovich
Date: 2008-04-03 11:18:17 -0400 (Thu, 03 Apr 2008)
New Revision: 7297
Modified:
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/editors/dnd/context/DropContext.java
Log:
JBIDE-1836
Modified:
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/editors/dnd/context/DropContext.java
===================================================================
---
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/editors/dnd/context/DropContext.java 2008-04-03
15:06:06 UTC (rev 7296)
+++
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/editors/dnd/context/DropContext.java 2008-04-03
15:18:17 UTC (rev 7297)
@@ -27,6 +27,7 @@
import org.eclipse.wst.sse.ui.internal.TextDropAction;
import org.jboss.tools.common.model.XModelObject;
+import org.jboss.tools.common.model.XModelTransferBuffer;
import org.jboss.tools.common.model.options.PreferenceModelUtilities;
import org.jboss.tools.common.model.util.EclipseResourceUtil;
import org.jboss.tools.common.model.ui.editors.dnd.FileTagProposalLoader;
@@ -171,6 +172,7 @@
class ModelTransferProcessor extends TransferProcessor {
public void process(TransferData data) {
+ if(!XModelTransferBuffer.getInstance().isEnabled()) return;
XModelObject o =
PreferenceModelUtilities.getPreferenceModel().getModelBuffer().source();
if(dropAsFileObject(o)) {
flavor = "application/x-moz-file";
@@ -187,6 +189,9 @@
flavor = "text/html";
Object ooo = HTMLTransfer.getInstance().nativeToJava(event.currentDataType);
mimeData = ooo == null ? null : ooo.toString();
+ if(mimeData == null) {
+ flavor = null;
+ }
}
}
Show replies by date