On 20 Apr 2011, at 11:42, laurent laffont wrote:
On Wed, Apr 20, 2011 at 5:27 PM, Tudor Girba tudor.girba@gmail.com wrote: Hi Laurent,
You are getting in the right mode :).
- Select the group of classes you want to visualize
- Right click and select Open in Mondrian Easel
- Add and generate view:
view shape rectangle height: [:each | each invokingClasses size]. view nodes: classGroup. view edgesFrom: #superclass. view treeLayout
hehe, start to look interesting ;)
But now in each rectangle (that is a class) I want a rectangle per method which height is also dependent on the number of references on the class Zork.
Use nodes: forEach: for this, see the easel examples, the subemnu called "subview" for some ... examples :-)
Then I should be able to right-click a method => browse source.
two possibilities, send a message to the node like this:
view interaction item: 'inspect' action: #inspect.
or use a block like this:
view interaction item: 'inspect' action: [:node | ... ]
Have fun! -- Johan Fabry jfabry@dcc.uchile.cl - http://dcc.uchile.cl/~jfabry PLEIAD Lab - Computer Science Department (DCC) - University of Chile