[Pharo-users] GTInspector: add view tab for custom object

Andrei Chis chisvasileandrei at gmail.com
Fri Oct 2 05:03:53 EDT 2015


Hi Mark,

There is an initializeView: method that you could you use to create a
custom view

composite roassal2
title: 'Complexity';
titleIcon: MooseIcons mooseSystemComplexity;
initializeView: [ RTMondrian new ];
painting: [ :view :each |
"build views" ]

Does this help?

Cheers,
Andrei

On Fri, Oct 2, 2015 at 10:47 AM, Mark Rizun <mrizun at gmail.com> wrote:

> Hi everyone,
>
> I would like to extend GTInspector for custom object - add a roassal view
> tab.
> I found this kind of code to do this:
>
> gtInspectorViewIn: composite
>         <gtInspectorPresentationOrder: 40>
>         composite roassal2
>                 title: 'View';
>                 painting: [ :view | self viewOn: view ]
>
> The problem is, that I want to use a view that I already have, but not the
> one which is passed as an argument to block [ :view | self viewOn: view ].
> It should be simple. Am I missing something?
>
> Best regards,
> Mark
>
>
>
> --
> View this message in context:
> http://forum.world.st/GTInspector-add-view-tab-for-custom-object-tp4853161.html
> Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pharo.org/pipermail/pharo-users_lists.pharo.org/attachments/20151002/27bfa592/attachment.html>


More information about the Pharo-users mailing list