Author: mareshkau
Date: 2007-09-13 11:53:20 -0400 (Thu, 13 Sep 2007)
New Revision: 3614
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpePreviewDomBuilder.java
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeVisualDomBuilder.java
Log:
code adjustment
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpePreviewDomBuilder.java
===================================================================
---
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpePreviewDomBuilder.java 2007-09-13
14:58:21 UTC (rev 3613)
+++
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpePreviewDomBuilder.java 2007-09-13
15:53:20 UTC (rev 3614)
@@ -63,7 +63,8 @@
* @param visualOldContainer
* @return
*/
- private Node createNode(Node sourceNode, Node visualOldContainer) {
+ @Override
+ protected Node createNode(Node sourceNode, Node visualOldContainer) {
boolean registerFlag = isCurrentMainDocument();
switch (sourceNode.getNodeType()) {
case Node.ELEMENT_NODE:
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeVisualDomBuilder.java
===================================================================
---
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeVisualDomBuilder.java 2007-09-13
14:58:21 UTC (rev 3613)
+++
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeVisualDomBuilder.java 2007-09-13
15:53:20 UTC (rev 3614)
@@ -323,7 +323,7 @@
return border;
}
- private Node createNode(Node sourceNode, Node visualOldContainer) {
+ protected Node createNode(Node sourceNode, Node visualOldContainer) {
boolean registerFlag = isCurrentMainDocument();
switch (sourceNode.getNodeType()) {
case Node.ELEMENT_NODE:
@@ -1196,7 +1196,7 @@
case Node.ELEMENT_NODE:
VpeNodeMapping nodeMapping = domMapping.getNodeMapping(container);
if (nodeMapping != null && nodeMapping.getType() ==
VpeNodeMapping.ELEMENT_MAPPING) {
- canDrop = ((VpeElementMapping)nodeMapping).getTemplate().canInnerDrop(pageContext,
container, dragNode);
+ canDrop = ((VpeElementMapping)nodeMapping).getTemplate().canInnerDrop(pageContext,
container, dragNode);
}
if (!canDrop) {
if(!checkParentsTemplates) return new VpeSourceInnerDropInfo(container, offset,
canDrop);
Show replies by date