Author: scabanovich
Date: 2012-01-26 17:48:16 -0500 (Thu, 26 Jan 2012)
New Revision: 38230
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/dnd/context/JSPViewerDropAdapter.java
Log:
JBIDE-6132
https://issues.jboss.org/browse/JBIDE-6132
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/dnd/context/JSPViewerDropAdapter.java
===================================================================
---
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/dnd/context/JSPViewerDropAdapter.java 2012-01-26
22:10:21 UTC (rev 38229)
+++
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/dnd/context/JSPViewerDropAdapter.java 2012-01-26
22:48:16 UTC (rev 38230)
@@ -26,7 +26,7 @@
import org.eclipse.wst.xml.core.internal.provisional.document.IDOMElement;
import org.eclipse.wst.xml.core.internal.provisional.document.IDOMNode;
import org.eclipse.wst.xml.ui.internal.dnd.XMLDragAndDropManager;
-import org.jboss.tools.common.model.options.PreferenceModelUtilities;
+import org.jboss.tools.common.model.XModelFactory;
import org.jboss.tools.common.model.ui.dnd.ModelTransfer;
import org.jboss.tools.common.model.ui.editors.dnd.context.DropContext;
import org.jboss.tools.jst.jsp.editor.IJSPTextEditor;
@@ -67,7 +67,7 @@
return extractDragSource(object);
} else if(ModelTransfer.getInstance().isSupportedType(event.currentDataType)) {
List list = new ArrayList();
- Object source =
PreferenceModelUtilities.getPreferenceModel().getModelBuffer().source();
+ Object source = XModelFactory.getDefaultInstance().getModelBuffer().source();
if(source != null) list.add(source);
return list;
} else if(dropContext.getFlavor() != null) {