2015-01-27 3:41 GMT-03:00 Tudor Girba <tu...@tudorgirba.com>:

> Hi,
>
> On Mon, Jan 26, 2015 at 11:58 PM, Hernán Morales Durand <
> hernan.mora...@gmail.com> wrote:
>
>>
>>
>> 2015-01-26 6:25 GMT-03:00 Tudor Girba <tu...@tudorgirba.com>:
>>
>>> Hi,
>>>
>>> On Mon, Jan 26, 2015 at 10:18 AM, Hernán Morales Durand <
>>> hernan.mora...@gmail.com> wrote:
>>>
>>>>
>>>> 2015-01-26 5:54 GMT-03:00 Tudor Girba <tu...@tudorgirba.com>:
>>>>
>>>>> There is no way at the moment.
>>>>>
>>>>> Just out of curiosity, why do you need to select an item if you do not
>>>>> want to see the details?
>>>>>
>>>>>
>>>> This is for two reasons
>>>>
>>>> 1) I have items with big strings inside and it takes too long to load
>>>> in the new inspector sub-window.
>>>>
>>>
>>> Why should it take too long? Is it because printString is too expensive?
>>> In that case, perhaps you might want to make printString cheaper and offer
>>> a separate presentation for your object that shows the full contents.
>>>
>>>
>> I don't know, I have this 7.7Mb XML file, opened the Time Profiler with:
>>
>> 'DLoop_Bovino_31-10-14-Alignment.xml' asFileReference contents inspect.
>>
>> it took almost 6 minutes to open the inspector.
>>
>> Here is the link to the file:
>> https://www.dropbox.com/s/pzw88gg3wyfkf8o/DLoop_Bovino_31-10-14-Alignment.zip?dl=0
>> Here is the full report
>>
>> - 350675 tallies, 359630 msec.
>>
>
> Hmm, Something is strange. I open the inspector on the same file in 1192
> ms. It takes so long because the first presentation is a text presentation
> of the contents of that file. What image do you use? Is it possible that
> you have extra . Could you make it available?
>
>

I am using #40463 in Windows 8.1 x64. This is how I download the image

$ wget -O- get.pharo.org/40+vm | bash

image link with test file:
https://www.dropbox.com/s/57hprg7cyryd9cs/testGT1.zip?dl=0


>
>
>> 2) I select the item to send a message to it, or bring a pop-up menu to
>>>> remove the item (I have implemented it in the old inspector and I would
>>>> like to port it to Pharo 4)
>>>>
>>>
>>> This implies that you actually need a custom presentation. For such a
>>> custom presentation you can suppress the propagation of selection. If you
>>> tell me your use case in more details I can try to guide you.
>>>
>>>
>> My use case is I want to add or remove items from an Inspector/Explorer.
>> The items are classified objects and the user curates false positives.
>> Another item I used to have is "Serialize" the inspector contents (or
>> from a specific item) so that one could import the curated data set and
>> review.
>>
>
> Do you mean items from collections in general, or items stored as a
> collection in a specific object? If you mean the latter, you can create a
> custom presentation just for that object and add all the actions you want.
> Do you want to give it a try? If yes, let me know the more specific use
> case and I can help :)
>
>
I would be glad to get some help :)
I tried subclassing GTInspector. I see you implemented menu items in
GTObjectVariablesBrowser.
So question is how could I implement my own "GTObjectVariablesBrowser" and
link to GTInspector subclass?
Thank you Doru.


Hernán



> Doru
>
>
> --
> www.tudorgirba.com
>
> "Every thing has its own flow"
>

Reply via email to