I took a look at the class you recommended and now I see what you mean.I am glad this is not deeply tied to the system browser and is something other tools can use as well with ease. Very flexible too. Looks like the tools only expose a fraction of the power of the environment .
Makes me wonder whether environment would be a good idea to be used as some sort of namespaces.��
On Thu, Aug 20, 2015 at 9:08 AM Thierry Goubier <thierry.goubier@gmail.com> wrote:Le 19/08/2015 20:26, Dimitris Chloupis a ��crit :
>
>
> On Wed, Aug 19, 2015 at 5:51 PM Sean P. DeNigris <sean@clipperadams.com
> <mailto:sean@clipperadams.com>> wrote:
>
>�� �� ��kilon.alios wrote
>
>
>�� �� ��For example, let's say your project has a class that implements a
>�� �� ��generically-named method, like #asMorph. If you try to rename that
>�� �� ��method
>�� �� ��via Refactoring, Pharo will try to rename all #asMorph methods, and
>�� �� ��update
>�� �� ��all senders, in the entire system, not just yours. But if you scope the
>�� �� ��browser first to your package or class, you can restrict the
>�� �� ��environment to
>�� �� ��which the refactoring is applied
>
>
> This sounds useful indeed. Is just the browser aware of the scope or is
> also the pharo environment aware of the scope too ? It would be nice if
> the scope could expand to include multiple�� packages , or is this
> something left to groups ?
What is happening is that many commands linked to the IDE (refactorings,
searches) have an environment entity. By default, this environment is
Smalltalk, but it can be a subset of it, and any subset of it.
Have a look into the RBBrowserEnvironment class and subclasses and you
will see all the variants. For example, a RBPackageEnvironment will
scope to one or multiple packages.
Thierry