[squeak-dev] Problem with OBPackageBrowser

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

[squeak-dev] Problem with OBPackageBrowser

EstebanLM
Hi,
I don't know if this belongs to this list, but I don't know of any
other where I can get help on this.
I'm having different behaivor between OBSystemBrowser and
OBPackageBrowser, in this case:

OBSystemBrowser new
        open;
        jumpTo: (OBClassCategoryNode on: 'Sushimoto')

This works fine, but:

OBPackageBrowser new
        open;
        jumpTo: (OBClassCategoryNode on: 'Sushimoto')

Throws a DNU #isDescendantOfClass: in #isAncestorOf:using:

I'm using lates OmniBrowser-Full (0.25) from Universes in a 3.10 image.

Thanks for any help,
Esteban



Reply | Threaded
Open this post in threaded view
|

Re: [squeak-dev] Problem with OBPackageBrowser

David Röthlisberger-2
Hi,

> I'm having different behaivor between OBSystemBrowser and
> OBPackageBrowser, in this case:

> OBPackageBrowser new
>     open;
>     jumpTo: (OBClassCategoryNode on: 'Sushimoto')
>
> Throws a DNU #isDescendantOfClass: in #isAncestorOf:using:

The problem is that the package browser does not display class categories, but
Monticello packages. This means it cannot handle traditional ClassCategoryNodes. It
should display a better error msg than a DNU though.

What you can do is using OBMonticelloClassCategoryNode instead of OBClassCategoryNode:

eg.:
OBPackageBrowser new
     open;
     jumpTo: (OBMonticelloClassCategoryNode on: 'Sushimoto').

This should work.

The difference between OBMonticelloClassCategoryNode and OBClassCategoryNode is that
the former knows about the Monticello package it belongs to, it also gets displayed
below the package, while the latter doesn't know anything about packages.

Cheers,
David