need help with selection/highlight in text

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

need help with selection/highlight in text

Stéphane Ducasse
Hi

we would like to have display several time the same piece of code (here 'find') into a piece of text (here in method testCycle).
In the following method we would like to have all the find occurrences selected.
Does anybody have a pointer?

Stef and Simon

testCycle

        | a b c |
        MOGraphFixture cycleGraph: dom.
        dom run.
        dom nodes do: [:n|
                n model = $c
                        ifTrue: [self assert: n isDominant. self deny: n isDominated]
                        ifFalse: [
                                self deny: n isDominant.
                                n model = $d
                                        ifTrue: [self deny: n isDominated]
                                        ifFalse: [self assert: n isDominated]
                                ]
        ].
        a := dom findNode: $a.
        b := dom findNode: $b.
        c := dom findNode: $c.
        self assert: (a find = c).
        self assert: (b find = c).


_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project