RB integration suggestion

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

RB integration suggestion

Bill Schwab-2
Andy and Blair,

NICE WORK!!!!  My only suggestion so far is to add a scope for multiple
packages.  I renamed an iv and a couple of methods using the package scope,
and it seemed to work just fine, but, there would be uses for working within
a collection of packages.  Exactly which packages should be affected could
be complicated, so I'd want to set them up in advance (if only in a global
variable??) and refer to them by name.

Have a good one,

Bill

--
Wilhelm K. Schwab, Ph.D.
[hidden email]


Reply | Threaded
Open this post in threaded view
|

Re: RB integration suggestion

Blair McGlashan
"Bill Schwab" <[hidden email]> wrote in message
news:[hidden email]...
> Andy and Blair,
>
> NICE WORK!!!!  My only suggestion so far is to add a scope for multiple
> packages.  I renamed an iv and a couple of methods using the package
scope,
> and it seemed to work just fine, but, there would be uses for working
within
> a collection of packages.  Exactly which packages should be affected could
> be complicated, so I'd want to set them up in advance (if only in a global
> variable??) and refer to them by name.

You can perform certain of the refactorings that I judged one might want to
limit to package scope from within the package browser. These are all method
refactorings, since I didn't think it made sense for most of the others. The
refactorings operate within the currently selected packages (i.e. plural).
These are on the Refactorings menu.
    - Rename method (methods definitions and references within the selected
packages are renamed)
    - Remove method (the method is removed if not referenced from within the
selected packages)
    - Add parameter (methods within the selected packages have the parameter
added and references within those packages are modified)
    - Remove parameter (the reverse)

E.g. to add a parameter to an arbitrary method, select Refactorings/Add
Parameter... and enter the selector to be modified, then the new selector.
Its a bit clunky, but it gets the job done (its easier for loose methods,
since the first prompt can be omitted).

If anyone has any further suggestions for refactorings that need to be
limited to package scope, please let us know.

Regards

Blair


Reply | Threaded
Open this post in threaded view
|

Re: RB integration suggestion

Bill Schwab-2
Blair,

> You can perform certain of the refactorings that I judged one might want
to
> limit to package scope from within the package browser. These are all
method
> refactorings, since I didn't think it made sense for most of the others.
The
> refactorings operate within the currently selected packages (i.e. plural).
> These are on the Refactorings menu.
>     - Rename method (methods definitions and references within the
selected
> packages are renamed)
>     - Remove method (the method is removed if not referenced from within
the
> selected packages)
>     - Add parameter (methods within the selected packages have the
parameter
> added and references within those packages are modified)
>     - Remove parameter (the reverse)

It's based on the packages selected, not the folder, right?  That pretty
much takes care of it.

Have a good one,

Bill

--
Wilhelm K. Schwab, Ph.D.
[hidden email]