Hi,

Sorry for the late reply.

Indeed the ObjectVariablesBrowser does not work with another object then the one of the tab. If you want to define a custom tab, you should simply create a table with the desired variables. For example, take a look at Morph>>gtInspectorMorphExtensionIn:. This one exposes the extensions dictionary as a separate tab. It probably matches what you want.

Let me know if you still have troubles.

Cheers,
Doru



On Wed, Oct 29, 2014 at 10:29 PM, Luc Fabresse <luc.fabresse@gmail.com> wrote:
Hi all,

I try to play with the GT inspector (thx Andrei and Doru for the great hands on session @ ESUG'14!).

In short, I try to add a customized tab for Persons objects using a PersonUI facade and a subclass of GTObjectVariablesBrowser (ok I can explain why if needed ;-)). Like that:

Person>>gtInspectorCustomUIIn: composite
<gtInspectorPresentationOrder: 5>
^ (composite custom: (MyGTCustomObjectVariablesBrowser new startOn: (PersonUI on: self) )) " <----- HERE"
title: 'Customized view';
yourself

But, the #variableValuePairsFor: message is not sent to the PersonUI object but to the Person object even if I passed a PersonUI one to the #startOn: method (cf. HERE).
startOn: seems to not store properly the object to use afterwards or I missed a something. Did I?

please find a code sample attached if needed.
Try:��
Person new inspect��

Thx for any hint,
Cheers,

#Luc



--
www.tudorgirba.com

"Every thing has its own flow"