[squeak-dev] Problem with OBPackageBrowser

View: New views
2 Messages — Rating Filter:   Alert me  

[squeak-dev] Problem with OBPackageBrowser

by Esteban Lorenzano :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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




Re: [squeak-dev] Problem with OBPackageBrowser

by David Röthlisberger-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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