[squeak-dev] Mondrian help

Raymond Asselin asselinraymond at videotron.ca
Sat Feb 21 16:53:48 UTC 2009


Le 21/02/09, Bergel, Alexandre <bergel at iam.unibe.ch> écrivait :

>Dear Raymond,
>
>Since a few weeks, I have been doing a major overall of
Mondrian to  
>make SqueakMondrian compatible with the Visualworks version.
>The problem you describes does not seem to be mondrian
related. You  
>basically need to identify whether methods have the same name
than  
>instance variable.
>A very inefficient way could be for instance:
>
>TranslucentColor methodDict keys reject: [:k |
>   (k last = $:)
>       ifTrue: [ (TranslucentColor instVarNames includes: k
allButLast  
>asString) ]
>       ifFalse: [(TranslucentColor instVarNames includes: k
asString)]].
>
>The returned by this expression does not contains "alpha" and
"alpha:"  
>methods.
>
>Alexandre
>
>
>On 20 Feb 2009, at 00:39, Raymond Asselin wrote:
>
>> I try to use Mondrian to analyse a small appl I'm working on...
>> I want to generate Uml like diagram on my appl..
>> It's working with MOUmlClass example: 'myPackage' .
>>
>> My question:
>>
>> In Mondrian how to eliminate easily the display of accessors
method of
>> each class of my package.  In my code I did what follow to
eliminate
>> the test-classes but don't know how to access methods
categorised as
>> 'accessing' ?
>>
>>   "I want to strip all  classes used for tests, except a class
named
>>   XPTest that I want to be in the group'"
>>   exceptClass := theClasses select:[ :cl |  cl asString =
'XPTest'].
>>   theClasses := theClasses reject:[ :cl |  cl asString endsWith:  
>> 'Test'].
>>   theClasses := theClasses , exceptClass.
>>   "Now I want to eleminate all access methods "
>>
>> Any help ?
>> Raymond
>>
>
Merci pour la réponse.

I will try it immediately

Raymond



More information about the Squeak-dev mailing list