Author: mareshkau
Date: 2007-12-26 06:10:53 -0500 (Wed, 26 Dec 2007)
New Revision: 5438
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeController.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-1554, update of text node on change was added
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeController.java
===================================================================
---
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeController.java 2007-12-25
15:35:59 UTC (rev 5437)
+++
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeController.java 2007-12-26
11:10:53 UTC (rev 5438)
@@ -344,6 +344,8 @@
if (type == Node.TEXT_NODE) {
visualBuilder.setText((Node)notifier);
visualEditor.showResizer();
+ //Added by Max Areshkau JBIDE-1554
+ visualBuilder.updateNode((Node)notifier);
} else if (type == Node.COMMENT_NODE) {
if("yes".equals(VpePreference.SHOW_COMMENTS.getValue())) { //$NON-NLS-1$
visualBuilder.setSelectionRectangle(null);
@@ -409,8 +411,6 @@
if (!switcher.startActiveEditor(ActiveEditorSwitcher.ACTIVE_EDITOR_SOURCE)) {
return;
}
- //TODO Max Areshkau Improve selection notification
- // do not use event.getSelectedNodes(), use instead base selection notification
List<?> nodes = event.getSelectedNodes();
if (nodes != null && nodes.size() > 0) {
Node sourceNode = (Node)nodes.get(0);