Le 9 déc. 2014 00:51, "Chris Cunningham" <cunningham.cb(a)gmail.com> a écrit
:
Ok. That is really, really neat.
Sweet.
How would this work for examples of say, Twitter Bootstrap? Examples of
Seaside apps?
Phil
On Mon, Dec 8, 2014 at 3:36 PM, Alexandre Bergel <alexandre.bergel(a)me.com>
wrote:
>
> Hi!
>
> This evening I invited Andrei over to enjoy the sunset view on the
Andes. We
also played with Spotter. The problem we wanted to solve is the
following: There are many examples in Roassal (exactly 210), covering
different aspects of Roassal and looking for the right example usually
takes time. So, we wanted to give a chance at Spotter.
>
> By loading GT-SpotterExtensions-CoreRoassal from
> MCSmalltalkhubRepository
> owner: 'Moose'
> project: 'GToolkit'
> user: ''
> password: ‘'
>
> You will enjoy the excellent work of Andrei.
>
> The key method is the following:
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> GTSpotter>>spotterRoassalExamplesFor: aStep
> <spotterOrder: 500>
> aStep listProcessor
> allCandidates: [ (RTAbstractExample allSubclasses collect: #new)
> flatCollect: [ :each | each gtExamples ] ];
> title: 'Roassal Examples';
> itemName: [ :example | example selector ];
> itemIcon: [ :example | example iconForm ];
> matchSubstringByQueryParts;
> wantsToDisplayOnEmptyQuery: false
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
>
> So, now, you can trigger Spotter with Cmd-Enter, and enter some words
related
to Roassal, for example ‘circle layout’, or ‘composite shape’ or
'color edge popup’, a matching is done with the source code of the example.
For example, searching for ‘circle layout’ will suggest all the examples
that contains the words ‘circle’ and ‘layout’.
Here is a screenshot:
The example is run by pressing enter:
Very cool!
Thanks Andrei!!!
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel
http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev