On Thu, Nov 3, 2011 at 1:49 PM, Alexandre Bergel <alexandre.bergel@me.com> wrote:
> will it work on any preexisting visualization.

No, visualization will have to be updated. We have to see how we do it in an intelligent way. Maybe adding a preference somewhere, or additional views.

I remember sometimes back, in a system complexity view, when we hover the mouse over a class, it used to show its blueprint view. But I think that feature is removed. An idea would be do the same with source code i.e. we show the source when mouse hovers over a class. Any help on that?
 

> when the mouse enter an event should be raised and the window should listen to it and reflect its contents.
>
>
>> I can help on this.
>> I think the script have to be adjusted simply.
>> Try the following:
>>
>> "Browse in Mondrian Easel" all classes of a model. Type the following script:
>>
>> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
>> | w |
>> w := Workspace openLabel: 'source code'.
>> w toggleStylingActive.
>>
>> view interaction
>>      on: MOMouseEnter do: [:ann | w contents: ann element model sourceText ];
>
> what is ann?
> I do not understand where view is coming if we have temporaries declared

ann is announcement.
w holds the reference of a workspace. The content of the workspace is updated each time the mouse enter an element.

Alexandre

>
>>      action: #inspect.
>> view shape rectangle
>>      width: #numberOfAttributes;
>>      height: #numberOfMethods;
>>      linearFillColor: #numberOfLinesOfCode within: classGroup.
>> view nodes: classGroup.
>> view edgesFrom: #superclass.
>> view treeLayout
>> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
>>
>> This will open a window and shows the source code of the last element you have entered.
>>
>> Cheers,
>> Alexandre
>>
>>
>> On 3 Nov 2011, at 06:58, Stéphane Ducasse wrote:
>>
>>> My idea is that we should have a float in window whose only purpose is to display information.
>>>
>>>>
>>>> obviously needs screen space to show it.
>>>>
>>>> - In Mondrian window, there is some space that is mostly wasted (bottom right pane).
>>>>
>>>> - crazy idea would be to have it in the background of the graphical view ("main" pane). My (young) students seem to like the idea of having partly transparent windows in which you can type something and have something else showing in the back. We could have some mechanism (a button or a shortcut) to bring the text in the foreground and dim the graphical view, and back ...
>>>>
>>>> - otherwise we need an additional window
>>>
>>> Yes for everything. but we need a way for the tools to announce what there currently selected, hovering.
>>>>
>>>> I think the code-pane should display the content of the node that is currently selected (clicked-on).
>>>>
>>>> For the papyrus project, I started to play with the idea of putting source-anchor on the association so that one can select an association and highlight the corresponding line in the source code …
>>>
>>> yes!!
>>>
>>>
>>>>
>>>> nicolas
>>>>
>>>>
>>>> ----- Mail original -----
>>>>> De: "Stéphane Ducasse" <stephane.ducasse@inria.fr>
>>>>> À: "Moose-related development" <moose-dev@iam.unibe.ch>
>>>>> Envoyé: Jeudi 3 Novembre 2011 09:21:35
>>>>> Objet: [Moose-dev] How can we get a window always showing the code?
>>>>> Hi guys
>>>>>
>>>>> When I analyzed a software with moose I want to see all the time the
>>>>> code of the entity I pass my mouse on.
>>>>> Now how can we do that?
>>>>> This is really missing, especially in mondrian.
>>>>>
>>>>> Stef
>>>>> _______________________________________________
>>>>> Moose-dev mailing list
>>>>> Moose-dev@iam.unibe.ch
>>>>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>>>>
>>>> _______________________________________________
>>>> Moose-dev mailing list
>>>> Moose-dev@iam.unibe.ch
>>>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>>>
>>>
>>> _______________________________________________
>>> Moose-dev mailing list
>>> Moose-dev@iam.unibe.ch
>>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>>
>> --
>> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
>> Alexandre Bergel  http://www.bergel.eu
>> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>>
>>
>>
>>
>>
>>
>> _______________________________________________
>> Moose-dev mailing list
>> Moose-dev@iam.unibe.ch
>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>
>
> _______________________________________________
> Moose-dev mailing list
> Moose-dev@iam.unibe.ch
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev

--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.






_______________________________________________
Moose-dev mailing list
Moose-dev@iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev