Author: scabanovich
Date: 2009-09-21 08:41:16 -0400 (Mon, 21 Sep 2009)
New Revision: 17679
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe.ui.palette/META-INF/MANIFEST.MF
trunk/vpe/plugins/org.jboss.tools.vpe.ui.palette/src/org/jboss/tools/vpe/ui/palette/PaletteDragSourceListener.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-4913
Splitting PaletteInsertHelper into jsp and non-jsp related parts.
Modified: trunk/vpe/plugins/org.jboss.tools.vpe.ui.palette/META-INF/MANIFEST.MF
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe.ui.palette/META-INF/MANIFEST.MF 2009-09-21
12:32:55 UTC (rev 17678)
+++ trunk/vpe/plugins/org.jboss.tools.vpe.ui.palette/META-INF/MANIFEST.MF 2009-09-21
12:41:16 UTC (rev 17679)
@@ -11,6 +11,7 @@
org.eclipse.jface.text,
org.eclipse.ui,
org.eclipse.gef,
- org.jboss.tools.common.model.ui
+ org.jboss.tools.common.model.ui,
+ org.jboss.tools.jst.jsp
Bundle-Version: 2.1.0
Bundle-RequiredExecutionEnvironment: J2SE-1.5
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe.ui.palette/src/org/jboss/tools/vpe/ui/palette/PaletteDragSourceListener.java
===================================================================
---
trunk/vpe/plugins/org.jboss.tools.vpe.ui.palette/src/org/jboss/tools/vpe/ui/palette/PaletteDragSourceListener.java 2009-09-21
12:32:55 UTC (rev 17678)
+++
trunk/vpe/plugins/org.jboss.tools.vpe.ui.palette/src/org/jboss/tools/vpe/ui/palette/PaletteDragSourceListener.java 2009-09-21
12:41:16 UTC (rev 17679)
@@ -23,6 +23,7 @@
import org.jboss.tools.common.model.XModelTransferBuffer;
import org.jboss.tools.common.model.plugin.ModelPlugin;
import org.jboss.tools.common.model.ui.views.palette.PaletteInsertHelper;
+import org.jboss.tools.jst.jsp.jspeditor.dnd.JSPPaletteInsertHelper;
import org.jboss.tools.vpe.ui.palette.model.PaletteItem;
public class PaletteDragSourceListener extends DragSourceAdapter {
@@ -67,7 +68,7 @@
defaultPrefix = object.getParent().getAttributeValue("default prefix");
//$NON-NLS-1$
}
if(defaultPrefix != null && tag != null) {
- PaletteInsertHelper.applyPrefix(d, "", tag, "xxx",
defaultPrefix); //$NON-NLS-1$ //$NON-NLS-2$
+ JSPPaletteInsertHelper.applyPrefix(d, "", tag, "xxx",
defaultPrefix); //$NON-NLS-1$ //$NON-NLS-2$
}
int i = d[0].indexOf('|');
if(i >= 0) d[0] = d[0].substring(0, i) + d[0].substring(i + 1);