commit | 0a6df0ca29739c7da3113fc891d2060d988cc5fa | [log] [tgz] |
---|---|---|
author | Florian Thienel <florian@thienel.org> | Mon Jan 07 08:28:15 2013 +0100 |
committer | Florian Thienel <florian@thienel.org> | Mon Jan 07 08:28:15 2013 +0100 |
tree | 4bb1149b2490a4cb822829fdec7b6a9007c0c37d | |
parent | fd8a61c6daecc72365332659ea9d519d5cb65de0 [diff] |
provide current node as selection instead of current element https://bugs.eclipse.org/bugs/show_bug.cgi?id=257806 Signed-off-by: Florian Thienel <florian@thienel.org>
diff --git a/org.eclipse.vex.ui/src/org/eclipse/vex/ui/internal/swt/VexWidget.java b/org.eclipse.vex.ui/src/org/eclipse/vex/ui/internal/swt/VexWidget.java index bfbaa22..7bb44cf 100644 --- a/org.eclipse.vex.ui/src/org/eclipse/vex/ui/internal/swt/VexWidget.java +++ b/org.eclipse.vex.ui/src/org/eclipse/vex/ui/internal/swt/VexWidget.java
@@ -533,7 +533,7 @@ final List<Node> nodes = getDocument().getNodes(getSelectedRange()); selection = new StructuredSelection(nodes); } else { - selection = new StructuredSelection(getCurrentElement()); + selection = new StructuredSelection(getCurrentNode()); } final SelectionChangedEvent e = new SelectionChangedEvent(VexWidget.this, selection);