Subject: | show tree element in results text view |
attached is the patch that makes the double clicking on tree element
result in seeing the element xml in the results view.
Subject: | tree-element-to-results.patch |
From 6bcd628c802a011ed3588e9b473b9ffd3a14b452 Mon Sep 17 00:00:00 2001
From: Jozef Kutej <jozef@kutej.net>
Date: Mon, 24 Nov 2008 14:54:34 +0100
Subject: [PATCH] show tree element in results text view
---
bin/xacobeo | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/bin/xacobeo b/bin/xacobeo
index 2a8e8b4..d40d47b 100755
--- a/bin/xacobeo
+++ b/bin/xacobeo
@@ -206,6 +206,13 @@ sub contruct_dom_tree_view {
my $node = $model->get($iter, $Xacobeo::DomModel::NODE_DATA);
print "Column $column\n";
printf "Item %s = %s\n", $path->to_string, $node->localname;
+
+ # Display the node in results text view
+ my $glade = $self->glade;
+ my $textview = $glade->get_widget('xpath-results');
+ my $buffer = $textview->get_buffer();
+ $buffer->delete($buffer->get_start_iter, $buffer->get_end_iter);
+ $self->render_xml_into_buffer($buffer, $node);
},
);
}
--
1.5.6.5