2016-02-08 10:57 GMT+01:00 Nicolai Hess <nicolaih...@gmail.com>:

> Not the best way maybe:
>
>     | model refactoring1 refactoring2 browser |
>     model := RBNamespace onEnvironment: RBBrowserEnvironment new.
>     refactoring1 := RBAddClassRefactoring
>         model: model
>         addClass: #SomeClass
>         superclass: #Object
>         subclasses: {}
>         category: #Category.
>     refactoring1 primitiveExecute.
>     refactoring2 := RBAddInstanceVariableRefactoring
>         model: model
>         variable: 'x'
>         class: #SomeClass.
>     refactoring2 primitiveExecute.
>     browser := ChangesBrowser new.
>     browser changesTree roots: (model changes whatToDisplayIn: browser).
>     browser open
>
>
>
By the way, refactoring browser is still broken in some places (don't
remember the fogbugz issues, but one
is related with "tree-like" refactorings and one is related to rubrics diff
view :(


>
> 2016-02-07 22:24 GMT+01:00 Tudor Girba <tu...@tudorgirba.com>:
>
>> Hi,
>>
>> I would like to create a class with instance variables and methods using
>> RB, and preview the changes with the changes browser.
>>
>> I know how to create AddClass, AddInstanceVariable, AddMethod
>> refactorings individually and query for their changes. For example:
>>
>> (RBAddClassRefactoring
>>                 addClass: #SomeClass
>>                 superclass: #Object
>>                 subclasses: {}
>>                 category: #Category) primitiveExecute; changes.
>>
>> (RBAddInstanceVariableRefactoring
>>         variable: 'x'
>>         class: #SomeClass) primitiveExecute; changes
>>
>> My question is: is it possible to create them all in one batch and
>> preview their changes in one single window?
>>
>> Cheers,
>> Doru
>>
>>
>> --
>> www.tudorgirba.com
>> www.feenk.com
>>
>> "If you interrupt the barber while he is cutting your hair,
>> you will end up with a messy haircut."
>>
>>
>>
>

Reply via email to