Manuscript (Case [Issue]22553) GTools - 'Instances are not indexable' after double-clicking item in Collection Inspector

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Manuscript (Case [Issue]22553) GTools - 'Instances are not indexable' after double-clicking item in Collection Inspector

Pharo Issue Tracker
Manuscript Notification
avatar
Bug in Project:  GTools: Misc  •  You are subscribed to this case
I've implemented the suggested fix, but in this way you can't open a certain item, can't you?

I ex
cep pec t a single click to open an item in a 'sub Inspector' and a double click to open the item in a new Inspector window.

The following fix seems to work for me:

gtInspectorItemsIn: composite
    ^ composite fastTable
        title: 'Items';
        display: [ self ];
        beMultiple;
        enableElementIndex;
        wantsAutomaticRefresh: true;
        column: 'Index' evaluated: [ :value :idex | idex asString ] width: 50;
        column: 'Item' evaluated: [ :value | GTObjectPrinter asTruncatedTextFrom: value ];
        send: [ :result | 
            result isNil
                ifTrue: [ nil ]
                ifFalse: [ result isArray
                        ifTrue: [ result anyOne ]
                        ifFalse: [ result inspect ] ] ]
Priority Priority: 3 – Must Fix Status Status: Resolved (Fix Review Needed)
Assigned To Assigned to: Wouter van Zuilen Milestone Milestone: Pharo7.0

Go to Case
No longer need updates? Unsubscribe from this case.

Don't want Manuscript notifications anymore? Update your preferences.

Manuscript

_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
https://lists.gforge.inria.fr/mailman/listinfo/pharo-bugtracker