Hi, On Mon, Jan 26, 2015 at 11:58 PM, Hernán Morales Durand < [email protected]> wrote:
> > > 2015-01-26 6:25 GMT-03:00 Tudor Girba <[email protected]>: > >> Hi, >> >> On Mon, Jan 26, 2015 at 10:18 AM, Hernán Morales Durand < >> [email protected]> wrote: >> >>> >>> 2015-01-26 5:54 GMT-03:00 Tudor Girba <[email protected]>: >>> >>>> 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? > 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 :) Doru -- www.tudorgirba.com "Every thing has its own flow"
