Author: dmaliarevich
Date: 2012-02-02 07:47:39 -0500 (Thu, 02 Feb 2012)
New Revision: 38394
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe.xulrunner/src/org/jboss/tools/vpe/xulrunner/util/XulRunnerVpeUtils.java
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/mapping/VpeDomMapping.java
Log:
https://issues.jboss.org/browse/JBIDE-8701 - comments were added.
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/mapping/VpeDomMapping.java
===================================================================
---
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/mapping/VpeDomMapping.java 2012-02-02
12:01:18 UTC (rev 38393)
+++
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/mapping/VpeDomMapping.java 2012-02-02
12:47:39 UTC (rev 38394)
@@ -258,6 +258,12 @@
return null;
}
+ /**
+ * Returns the nearest visual element for the source node
+ *
+ * @param sourceNode the source node
+ * @return nearest visual element
+ */
public nsIDOMElement getNearVisualElement(Node sourceNode) {
nsIDOMElement element = null;
VpeNodeMapping nodeMapping = getNearNodeMappingAtSourceNode(sourceNode);
@@ -299,6 +305,12 @@
return null;
}
+ /**
+ * Returns the nearest source element for the visual node
+ *
+ * @param visualNode the visual node
+ * @return nearest source element
+ */
public ElementImpl getNearSourceElementImpl(nsIDOMNode visualNode) {
ElementImpl element = null;
VpeNodeMapping nodeMapping = getNearNodeMappingAtVisualNode(visualNode);
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe.xulrunner/src/org/jboss/tools/vpe/xulrunner/util/XulRunnerVpeUtils.java
===================================================================
---
trunk/vpe/plugins/org.jboss.tools.vpe.xulrunner/src/org/jboss/tools/vpe/xulrunner/util/XulRunnerVpeUtils.java 2012-02-02
12:01:18 UTC (rev 38393)
+++
trunk/vpe/plugins/org.jboss.tools.vpe.xulrunner/src/org/jboss/tools/vpe/xulrunner/util/XulRunnerVpeUtils.java 2012-02-02
12:47:39 UTC (rev 38394)
@@ -142,6 +142,12 @@
return element;
}
+ /**
+ * Returns the offset for visual node
+ *
+ * @param node the visual node
+ * @return node's offset in browser
+ */
public static Point getVisualNodeOffset(nsIDOMNode node) {
Point p = new Point(-1, -1);
try {