"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