2017-07-05 19:43 GMT+02:00 Juraj Kubelka <juraj.kube...@icloud.com>: > I think the issue is how to update a browser when a method is modified. > There is a script: > > -=-=-=-=- > browser := GLMTabulator new > column: #one; > column: #two; > column: #three; > yourself. > browser transmit to: #one; andShow: [ :composite | > composite fastList ]. > > browser transmit from: #one; to: #two; andShow: [ :composite | > composite wrapper > title: [ 'Instance' translated ]; > show: [ :wrapper | > wrapper fastList > display: [ :aClass | aClass methods ]; > format: [ :aCompiledMethod | aCompiledMethod selector asString ] ]. > composite wrapper > title: [ 'Class side' translated ]; > show: [ :wrapper | > wrapper fastList > display: [ :aClass | aClass class methods ]; > format: [ :aCompiledMethod | aCompiledMethod selector asString ] ]. > *composite updateOn: MethodModified from: [ SystemAnnouncer uniqueInstance > ].* > composite onChangeOfPort: #activePresentation act: [ :presentation | > (presentation pane port: #activePresentation) value > ifNotNil: [ :activePresentation | > ((browser paneNamed: #two) port: #selection) value: (activePresentation > defaultPane port: #selection) value ] ] ]. > > browser transmit > from: #two; to: #three; > andShow: [ :composite | composite text > display: [ :aCompiledMethod | aCompiledMethod sourceCode ]; > updateOn: MethodModified from: [ SystemAnnouncer uniqueInstance ]. ]. > > browser openOn: Collection allSubclasses. > -=-=-=-=- >
I have some strange behavior with this example. Saving the edited method in this browser does not actually change the code shown in a "real" browser. Saving the edited method in a "real" browser may update the code in this browser, but sometimes not, and sometimes it even shows the code from a different method. > > I have added the bold line from the previous post: http://forum.world.st/ > Custom-Glamour-browser-for-Dr-Geo-scripting-tp4952920p4953209.html > > But it is not perfect, because it does not keep the selection. > > Hilaire, it looks like you are going to end up with a simplified > Nautilus/Calypso system editor. > Maybe it is possible to take Calypso and find out how to simplify it for > your needs? > Well, I am writing it without understanding your goal :-) > > Cheers, > Juraj > > > El 05-07-2017, a las 19:24, Tudor Girba <tu...@tudorgirba.com> escribió: > > Hi Hilaire, > > I think it does fit your problem. > > However, I am not sure what the current problem is. Could you describe it > again in more details? > > Cheers, > Doru > > > On Jul 5, 2017, at 5:10 PM, Hilaire <hila...@drgeo.eu> wrote: > > May be my use case does not fit to Glamour, but I am tempted to think it > does. I really need help on that to make progress. > > Thanks > > Hilaire > > Le 04/07/2017 à 23:08, Hilaire a écrit : > > I added these lines of code, but it is not that yet: > > browser > updateOn: GLMItemAdded from: #yourself; > updateOn: GLMItemRemoved from: #yourself. > > > > -- > Dr. Geo > > http://drgeo.eu > > > -- > www.tudorgirba.com > www.feenk.com > > "It's not how it is, it is how we see it." > > > >