Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Xacobeo CPAN distribution.

Report information
The Basics
Id: 41180
Status: resolved
Priority: 0/
Queue: Xacobeo

People
Owner: Nobody in particular
Requestors: jozef [...] kutej.net
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 0.03
Fixed in: (no value)



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
My original intention was to make the nodes in the DOM view displayed in the source view by scrolling to their definition. Since I didn't implemented my initial intentions I prefer to apply your patch in the meanwhile. I made a small modification to your patch: the results view is shown (handy when the namespaces view is selected and node is doubled clicked on the DOM view).