[ANN Goodie] RBHierarchicalMethods

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

[ANN Goodie] RBHierarchicalMethods

Christian Haider

Hi,

 

I am trying again to post to the list, because I think this goodie is really nice and deserves an announcement…

 

Happy hacking,

                Christian

 

8< -------- Package comment:

 

Orders and indents method lists according to the class hierarchy.

 

The alphabetically sorted methods of each class are ordered by

                1. class methods

                2. instance methods

                3. class variable initializers.

At last, all namespace variable initializers are listed.

 

 

Implementation

The code depends only on the refactoring browser and should run in a vanilla visual.im.

It is faster than the original :-). The UI opening code for large lists is about 40% faster.

No overrides were necessary!

 

To be compatible to older versions (tested VW 7.4.1) and other dialects,

I did not used new features of VW like symbols as blocks or in-place sorting,

 

 

Examples

 

| mc filter |

mc := MethodCollector new.

filter := mc implementorsOf: #new.

mc browseSelect: filter

 

(Refactory.Browser.BrowserEnvironment new implementorsOf: #new) openEditor

 

| mc filter |

mc := MethodCollector new.

filter := mc referencesTo: #new.

mc browseSelect: filter

 

(Refactory.Browser.BrowserEnvironment new referencesTo: #new) openEditor

 


_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: [ANN Goodie] RBHierarchicalMethods

Reinout Heeck-2
On 6/17/2011 10:51 AM, Christian Haider wrote:

Hi,

 

I am trying again to post to the list, because I think this goodie is really nice and deserves an announcement…


On behalf of the Soops team many-many-many thanks :-)))


To Cincom:  this belongs in the base development image!
(since it makes RB method lists show 'the right thing' instead of an unsorted heap of methods).



Reinout
-------


 

Happy hacking,

                Christian

 

8< -------- Package comment:

 

Orders and indents method lists according to the class hierarchy.

 

The alphabetically sorted methods of each class are ordered by

                1. class methods

                2. instance methods

                3. class variable initializers.

At last, all namespace variable initializers are listed.

 

 

Implementation

The code depends only on the refactoring browser and should run in a vanilla visual.im.

It is faster than the original :-). The UI opening code for large lists is about 40% faster.

No overrides were necessary!

 

To be compatible to older versions (tested VW 7.4.1) and other dialects,

I did not used new features of VW like symbols as blocks or in-place sorting,

 

 

Examples

 

| mc filter |

mc := MethodCollector new.

filter := mc implementorsOf: #new.

mc browseSelect: filter

 

(Refactory.Browser.BrowserEnvironment new implementorsOf: #new) openEditor

 

| mc filter |

mc := MethodCollector new.

filter := mc referencesTo: #new.

mc browseSelect: filter

 

(Refactory.Browser.BrowserEnvironment new referencesTo: #new) openEditor

 

_______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc

-- 
*********************************************************************

Dit e-mailbericht is alleen bestemd voor de geadresseerde(n).

Gebruik door anderen is niet toegestaan. Indien u niet degeadresseerde(n) bent wordt u verzocht de verzender hiervan op de hoogte te stellen en het bericht te verwijderen. Door de elektronische verzending kunnen aan de inhoud van dit bericht geen rechten worden ontleend.

Soops B.V. is gevestigd te Amsterdam, Nederland, en is geregistreerd bij de Kamer van Koophandel onder nummer 33240368.
Soops B.V. levert volgens de Fenit voorwaarden, gedeponeerd te Den Haag op 8 december 1994 onder nummer 1994/189.
**********************************************************************

This e-mail message is intended to be exclusively for the addressee.

If you are not the intended recipient you are kindly requested not to make any use whatsoever of the contents and to notify the sender immediately by returning this e-mail message. No rights can be derived from this message.

Soops B.V. is a private limited liability company and has its seat at Amsterdam, The Netherlands and is registered with the Trade Registry of the Chamber of Commerce and Industry under number 33240368.
Soops B.V. delivers according to the General Terms and Conditions of Business of Fenit, registered at The Hague, The Netherlands on December 8th, 1994, under number 1994/189
**********************************************************************


_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: [ANN Goodie] RBHierarchicalMethods

Andres Valloud-6
In reply to this post by Christian Haider
AWESOME!!!  THANK YOU!!!

On 6/17/2011 1:51 AM, Christian Haider wrote:

> Hi,
>
> I am trying again to post to the list, because I think this goodie is
> really nice and deserves an announcement…
>
> Happy hacking,
>
> Christian
>
> 8< -------- Package comment:
>
> Orders and indents method lists according to the class hierarchy.
>
> The alphabetically sorted methods of each class are ordered by
>
> 1. class methods
>
> 2. instance methods
>
> 3. class variable initializers.
>
> At last, all namespace variable initializers are listed.
>
> Implementation
>
> The code depends only on the refactoring browser and should run in a
> vanilla visual.im.
>
> It is faster than the original :-). The UI opening code for large lists
> is about 40% faster.
>
> No overrides were necessary!
>
> To be compatible to older versions (tested VW 7.4.1) and other dialects,
>
> I did not used new features of VW like symbols as blocks or in-place
> sorting,
>
> Examples
>
> | mc filter |
>
> mc := MethodCollector new.
>
> filter := mc implementorsOf: #new.
>
> mc browseSelect: filter
>
> (Refactory.Browser.BrowserEnvironment new implementorsOf: #new) openEditor
>
> | mc filter |
>
> mc := MethodCollector new.
>
> filter := mc referencesTo: #new.
>
> mc browseSelect: filter
>
> (Refactory.Browser.BrowserEnvironment new referencesTo: #new) openEditor
>
>
>
> _______________________________________________
> vwnc mailing list
> [hidden email]
> http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc