How to manipulate RBNamespaces?

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

How to manipulate RBNamespaces?

smalltalk@sheep.fr

Greetings,

I'm trying to play with the refactoring engine through omnibrowser but i want to limit the namespace where the refactoring is applied.

I'm close to do it but i'm stuck with RBNamespaces:
I need 3 Namespaces created from a -target- class.

"target" is an OBMethodNode<MyClass#myMethod>

1: Smalltalk Root - Easy one (not linked with the class), it's working
(RBNamespace new)

2: Class limited namespace - I'm trying to do something like:
(RBNamespace onEnvironment: (BrowserEnvironment new forClasses: {target theClass}))

i always get "MessageNotUnderstood: Object class >> definesMethod:" called in RBClass>>definesMethod:
seems like it dislikes my NameSpace.

3: Category limited namespace - Also not working:
(RBNamespace onEnvironment: (CategoryEnvironment new categories: {target theClass category}))

same error.

 

Is anybody (skilled with RBNamespaces) so kind as to help me creating my namespace? :)

Thanks
Antoine




Reply | Threaded
Open this post in threaded view
|

Re: How to manipulate RBNamespaces?

Lukas Renggli
> I'm trying to play with the refactoring engine through omnibrowser but i
> want to limit the namespace where the refactoring is applied.

Just a few seconds ago I published a version that does exactly that.
Make sure that you fetch the latest version from my repository:

http://source.lukas-renggli.ch/obaddons

Untested code, so be careful ;-)

Lukas

--
Lukas Renggli
http://www.lukas-renggli.ch