Diff browser

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

Diff browser

ezequiel lamonica
Hi everybody,

I want to make a browser with two rows to show with DiffPresentation the
difference between an item selected in the first one and something
calculated.
I see this
http://www.themoosebook.org/book/internals/glamour/presentations/diff but I
can't make this example.

Anyone who made something similar could give me an example?

Thanks!
Ezequiel



--
View this message in context: http://moose-dev.97923.n3.nabble.com/Diff-browser-tp3933343p3933343.html
Sent from the moose-dev mailing list archive at Nabble.com.
_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
eze
Reply | Threaded
Open this post in threaded view
|

Re: Diff browser

Tudor Girba-2
Hi,

Here is a simple example:

        | browser |
        browser := GLMTabulator new.
        browser
                row: [:r | r column: #one; column: #two];
                row: #diff.
        browser transmit to: #one; andShow: [ :a |
                a list
                        display: #first ].
        browser transmit to: #two; andShow: [ :a |
                a list
                        display: #second ].
        browser transmit to: #diff; from: #one; from: #two; andShow: [ :a |
                a diff
                        display: [ :one :two | {one asString . two asString}] ].
        browser openOn: #(#(abc def ghi) #(abc xyz))


I also added it now to GLMBasicExamples. Let us know if you need anything else.

Cheers,
Doru

On 23 Apr 2012, at 20:54, Ezequiel wrote:

> Hi everybody,
>
> I want to make a browser with two rows to show with DiffPresentation the
> difference between an item selected in the first one and something
> calculated.
> I see this
> http://www.themoosebook.org/book/internals/glamour/presentations/diff but I
> can't make this example.
>
> Anyone who made something similar could give me an example?
>
> Thanks!
> Ezequiel
>
>
>
> --
> View this message in context: http://moose-dev.97923.n3.nabble.com/Diff-browser-tp3933343p3933343.html
> Sent from the moose-dev mailing list archive at Nabble.com.
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev

--
www.tudorgirba.com

"One cannot do more than one can do."




_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Diff browser

ezequiel lamonica
Thanks Doru!

I tried it and works nice.

Cheers,
Eze

--
View this message in context: http://moose-dev.97923.n3.nabble.com/Diff-browser-tp3933343p3938242.html
Sent from the moose-dev mailing list archive at Nabble.com.
_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
eze