Author: mareshkau
Date: 2007-09-10 03:46:53 -0400 (Mon, 10 Sep 2007)
New Revision: 3501
Modified:
branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeVisualDomBuilder.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-744, some code adjustment
Modified:
branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeVisualDomBuilder.java
===================================================================
---
branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeVisualDomBuilder.java 2007-09-08
19:36:50 UTC (rev 3500)
+++
branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeVisualDomBuilder.java 2007-09-10
07:46:53 UTC (rev 3501)
@@ -1520,11 +1520,8 @@
}
nsIDOMElement getLastSelectedElement() {
- // TODO Max Areshkau figure out with last selected element
- //in mozilla user can select more than one element, but this
- //function can return only first element(think about this)
-
- return (nsIDOMElement)
xulRunnerEditor.getSelection().getAnchorNode().queryInterface(nsIDOMElement.NS_IDOMELEMENT_IID);
+
+ return xulRunnerEditor.getLastSelectedElement();
}
public void pushIncludeStack(VpeIncludeInfo includeInfo) {