[Glamour] default selection in ListPresentation
by Cyrille Delaunay
Hello,
Is there a way to set a default selection to a list presentation? so that
when I open the browser, the morphic list has already a value selected.
I tried that:
|tmpBrowser|
tmpBrowser := GLMTabulator new.
tmpBrowser row: #list.
tmpBrowser transmit to: #list; andShow: [:a |
a list
display: [:input | input];
selection: #a;
yourself
].
tmpBrowser openOn: #( b c d v a d f r).
but the list still open with nothing selected
5 years, 2 months
JavaScript to MSE
by Alexandre Bergel
Hi!
Hernán has worked on an Eclipse plugging to produce MSE file from a JavaScript application. It works well.
The plugging is available on:
https://bitbucket.org/hcvazquez/mseexporterjs/wiki/Home <https://bitbucket.org/hcvazquez/mseexporterjs/wiki/Home>
Here is a teaser:
Cheers,
Alexandre
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel http://www.bergel.eu <http://www.bergel.eu/>
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
6 years, 7 months
cool animation using Viva...
by Alexandre Bergel
Just insect that code :-)
-=-=-=-=-=-=-=-=-=
v := RTView new.
seconds := 7.
timer := TRVITimer new cycleLength: seconds.
rotationRatio := 0.2.
shape := RTRotatedLabel new.
shape
angleInDegree: [ :cls |
| valueEnd |
valueEnd := cls numberOfMethods negated / rotationRatio.
TRVIAnimatedValue new
evaluator: [ :t | 0 interpolateTo: valueEnd at: t ];
timer: timer;
yourself ].
shape text: [ :cls | ' ' , cls name ].
shape color: (Color black alpha: 0.2).
v addAll: (shape elementsOn: Collection withAllSubclasses).
v canvas color: Color white.
v addAnimation: RTResetAllShape new.
timer start.
v
-=-=-=-=-=-=-=-=-=
Cheers,
Alexandre
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
6 years, 11 months
Call for action for Roassal
by Alexandre Bergel
Dear community,
As you may have seen, Roassal has entered a stabilization phase. The book AgileVisualization.com will soon be released. After its release, Roassal will go over a new development phase. In order to prepare it, I am asking this question:
What are the 3 aspects you would like to see improved in Roassal?
You can answer publicly or by sending private messages.
Kind regards,
Alexandre
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
7 years, 3 months
Script of the day!
by Alexandre Bergel
Already publicized on Facebook and Tweeter. Since there are not many emails these days, here it is:
Script of the day: visualizing dependencies between FAMIX classes and methods. Here is an example with SweetHome3D, a java application
-=-=-=-=-=-=-=-=-=-=-=-=
methods := self flatCollect: #methods.
b := RTMondrian new.
b shape rectangle withTextAbove.
b nodes: self forEach: [ :cls |
b nodes: cls methods.
b layout grid.
].
b shape line
color: (Color red alpha: 0.2); width: 3.
b edges
objects: methods;
connectToAll: [ :m | m queryAllOutgoingInvocations atMethodScope ].
b layout circle .
b
-=-=-=-=-=-=-=-=-=-=-=-=
The script has to be executed on 'all model classes', within the moose panel.
Cheers,
Alexandre
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel http://www.bergel.eu <http://www.bergel.eu/>
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
7 years, 3 months
Fix in GTExampleImpostorPragma
by Alexandre Bergel
Hi!
I have produced:
GT-Inspector-AlexandreBergel.389
That replace:
GTExampleImpostorPragma>>= aImpostorPragma
^ self class = aImpostorPragma class
and: [ self method = aImpostorPragma method ]
by:
GTExampleImpostorPragma>>= aImpostorPragma
^ self class == aImpostorPragma class
and: [ self method == aImpostorPragma method ]
Performing #= between methods is pretty expensive and I see no reason why classes have to be compared with #= and not #==
Cheers,
Alexandre
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
7 years, 3 months
Anyone can explain this PParser behaviour?
by Nicolas Anquetil
---
testWhatTheHeck
self parse: 'true' rule: #condition.
self parse: 'true)' rule: #condition.
self parse: 'true' rule: #expression.
self parse: 'true)' rule: #expression.
---
First 3 tests pass, last one fails
But the grammar says:
---
condition
^ expression
---
Can anyone propose an explanation?
[Notes:
Yes I checked that I am testing the right grammar
Yes the 'true)' test is strange, but this is precisely what I am trying
to debug (why does it pass for #condition ?)
]
nicolas
--
Nicolas Anquetil
RMod team -- Inria Lille
7 years, 3 months