How to extend Omnibrowser?

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

How to extend Omnibrowser?

Diego Fernández
Hi I want to extent OB to include the AutomaticMethodCategorizer (http://www.squeaksource.com/autoMethodCat/).

I heard that OB is very extensible, but I couldn't find information on how to do this.
Any clue?


Reply | Threaded
Open this post in threaded view
|

Re: How to extend Omnibrowser?

Alexandre Bergel-2
Hi Diego,

We wrote a paper on Omnibrowser. 25 pages are already there full of  
example and pictures.
However we have to wait a bit before spreading it around...

Cheers,
Alexandre


Am Jun 7, 2006 um 4:06 PM schrieb Diego Fernandez:

> Hi I want to extent OB to include the AutomaticMethodCategorizer  
> (http://www.squeaksource.com/autoMethodCat/).
>
> I heard that OB is very extensible, but I couldn't find information  
> on how to do this.
> Any clue?
>

--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.cs.tcd.ie/Alexandre.Bergel
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.




Reply | Threaded
Open this post in threaded view
|

Re: How to extend Omnibrowser?

stefan_reichhart
In reply to this post by Diego Fernández

... if you don't want to wait until the paper gets published, have a  
look at the package OB-Standard-Browser (newest version of OB!).  
There are several very simple browsers included. I've done some  
simple browsers on my own. You can find them in my SqueakSource-Repo  
("SR"): OBPackageBrowser, OBExtensionBrowser, ...) ;) ...

Basically (extremely simplified) you need to extend "OBBrowser",  
implement some "Nodes" and "Actors"

Cheers
Stef

On 07.06.2006, at 17:06, Diego Fernandez wrote:

> Hi I want to extent OB to include the AutomaticMethodCategorizer  
> (http://www.squeaksource.com/autoMethodCat/).
>
> I heard that OB is very extensible, but I couldn't find information  
> on how to do this.
> Any clue?
>

__________________________
http://www.reichhart.freezope.org




Reply | Threaded
Open this post in threaded view
|

Re: How to extend Omnibrowser?

Alexandre Bergel-2
> Basically (extremely simplified) you need to extend "OBBrowser",  
> implement some "Nodes" and "Actors"

And build a meta-graph to specify the nagivation. It is really  
simple, indeed. Colin did an incredibly good job...

Alexandre

>
> Cheers
> Stef
>
> On 07.06.2006, at 17:06, Diego Fernandez wrote:
>
>> Hi I want to extent OB to include the AutomaticMethodCategorizer  
>> (http://www.squeaksource.com/autoMethodCat/).
>>
>> I heard that OB is very extensible, but I couldn't find  
>> information on how to do this.
>> Any clue?
>>
>
> __________________________
> http://www.reichhart.freezope.org
>
>
>
>

--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.cs.tcd.ie/Alexandre.Bergel
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.




Reply | Threaded
Open this post in threaded view
|

Re: How to extend Omnibrowser?

Diego Fernández
It's possible to extend the browser without sub classification?
I don't want to make a new browser just change the "categorize uncategorized methods" to use another categorization strategy.

Cheers,
Diego.-

On 6/7/06, Alexandre Bergel <[hidden email]> wrote:
> Basically (extremely simplified) you need to extend "OBBrowser",
> implement some "Nodes" and "Actors"

And build a meta-graph to specify the nagivation. It is really
simple, indeed. Colin did an incredibly good job...

Alexandre

>
> Cheers
> Stef
>
> On 07.06.2006, at 17:06, Diego Fernandez wrote:
>
>> Hi I want to extent OB to include the AutomaticMethodCategorizer
>> ( http://www.squeaksource.com/autoMethodCat/).
>>
>> I heard that OB is very extensible, but I couldn't find
>> information on how to do this.
>> Any clue?
>>
>
> __________________________
> http://www.reichhart.freezope.org
>
>
>
>

--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel   http://www.cs.tcd.ie/Alexandre.Bergel
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.







Reply | Threaded
Open this post in threaded view
|

Re: How to extend Omnibrowser?

Pascal Zumkehr-2
>> It is really simple, indeed.
...  once you understood all the relations amongst the countless
objects. i'm really looking forward to that paper.

> It's possible to extend the browser without sub classification?
you can make use of the *categoryname feature and replace the needed
methods therein. afaik, for your needs subclassing would lead to a
completely duplicated node hierarchy.

> I don't want to make a new browser just change the "categorize
> uncategorized methods" to use another categorization strategy.
have a look at OBClassNode>>categories, this is called (as defined in
OBCodeBrowser class>>addTo:class:comment:metaclass:, a method called
when generating the defaultMetaNode) when the list of all categories
for a class is wanted. maybe modifiying this method will already be
enough for you..

cheers
->pascal

>
> Cheers,
> Diego.-
>
> On 6/7/06, Alexandre Bergel <[hidden email]> wrote:
>> > implement some "Nodes" and "Actors"
>>
>> And build a meta-graph to specify the nagivation. Colin did an
>> incredibly good job...
>>
>> Alexandre
>>
>> >
>> > Cheers
>> > Stef
>> >
>> > On 07.06.2006, at 17:06, Diego Fernandez wrote:
>> >
>> >> Hi I want to extent OB to include the AutomaticMethodCategorizer
>> >> ( http://www.squeaksource.com/autoMethodCat/).
>> >>
>> >> I heard that OB is very extensible, but I couldn't find
>> >> information on how to do this.
>> >> Any clue?
>> >>
>> >
>> > __________________________
>> > http://www.reichhart.freezope.org
>> >
>> >
>> >
>> >
>>
>> --
>> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
>> Alexandre Bergel   http://www.cs.tcd.ie/Alexandre.Bergel
>> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>>
>>
>>
>>
>


Reply | Threaded
Open this post in threaded view
|

Re: How to extend Omnibrowser?

Colin Putney
In reply to this post by Diego Fernández

On Jun 7, 2006, at 11:06 AM, Diego Fernandez wrote:

> Hi I want to extent OB to include the AutomaticMethodCategorizer  
> (http://www.squeaksource.com/autoMethodCat/).
>
> I heard that OB is very extensible, but I couldn't find information  
> on how to do this.
> Any clue?

Diego,

The 'categorize automatically' menu item is implemented by  
OBCategoryActor. Have a look at #categorizeActionFor: and  
#categorizeIn: especially. If you just want to change the behavior of  
this action, you can modify #categorizeIn: to call your code. To  
extend OB without modifying it, you'd want to create an Actor class.

Note that Actions are one of the areas of OB that will probably  
change in the next release of OB.

Si tiene preguntas podemos comunicar en español por correo directo.

Colin