How can we get a window always showing the code?

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

How can we get a window always showing the code?

Stéphane Ducasse
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
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: How can we get a window always showing the code?

Nicolas Anquetil

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

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 ...

nicolas


----- Mail original -----

> De: "Stéphane Ducasse" <[hidden email]>
> À: "Moose-related development" <[hidden email]>
> 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
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: How can we get a window always showing the code?

Stéphane Ducasse
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" <[hidden email]>
>> À: "Moose-related development" <[hidden email]>
>> 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
>> [hidden email]
>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev


_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: How can we get a window always showing the code?

abergel
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 ];
        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" <[hidden email]>
>>> À: "Moose-related development" <[hidden email]>
>>> 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
>>> [hidden email]
>>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>>
>> _______________________________________________
>> Moose-dev mailing list
>> [hidden email]
>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev

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






_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: How can we get a window always showing the code?

Stéphane Ducasse
alex
will it work on any preexisting visualization.
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

> 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" <[hidden email]>
>>>> À: "Moose-related development" <[hidden email]>
>>>> 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
>>>> [hidden email]
>>>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>>>
>>> _______________________________________________
>>> Moose-dev mailing list
>>> [hidden email]
>>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>>
>>
>> _______________________________________________
>> Moose-dev mailing list
>> [hidden email]
>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>
> --
> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
> Alexandre Bergel  http://www.bergel.eu
> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>
>
>
>
>
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev


_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: How can we get a window always showing the code?

abergel
> 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.

> 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" <[hidden email]>
>>>>> À: "Moose-related development" <[hidden email]>
>>>>> 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
>>>>> [hidden email]
>>>>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>>>>
>>>> _______________________________________________
>>>> Moose-dev mailing list
>>>> [hidden email]
>>>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>>>
>>>
>>> _______________________________________________
>>> Moose-dev mailing list
>>> [hidden email]
>>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>>
>> --
>> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
>> Alexandre Bergel  http://www.bergel.eu
>> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>>
>>
>>
>>
>>
>>
>> _______________________________________________
>> Moose-dev mailing list
>> [hidden email]
>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev

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






_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: How can we get a window always showing the code?

Usman Bhatti
On Thu, Nov 3, 2011 at 1:49 PM, Alexandre Bergel <[hidden email]> 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" <[hidden email]>
>>>>> À: "Moose-related development" <[hidden email]>
>>>>> 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
>>>>> [hidden email]
>>>>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>>>>
>>>> _______________________________________________
>>>> Moose-dev mailing list
>>>> [hidden email]
>>>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>>>
>>>
>>> _______________________________________________
>>> Moose-dev mailing list
>>> [hidden email]
>>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>>
>> --
>> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
>> Alexandre Bergel  http://www.bergel.eu
>> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>>
>>
>>
>>
>>
>>
>> _______________________________________________
>> Moose-dev mailing list
>> [hidden email]
>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev

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






_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev


_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: How can we get a window always showing the code?

Tudor Girba-2
Hi,

On 9 Nov 2011, at 18:08, Usman Bhatti wrote:

> On Thu, Nov 3, 2011 at 1:49 PM, Alexandre Bergel <[hidden email]> 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.

The feature was removed from the default system complexity because it is impractical for large classes (it takes too long spawn larger blueprints).

> 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?

You can always use
view interaction popupText:
view interaction popupView:

Cheers,
Doru


>
> > 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" <[hidden email]>
> >>>>> À: "Moose-related development" <[hidden email]>
> >>>>> 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
> >>>>> [hidden email]
> >>>>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
> >>>>
> >>>> _______________________________________________
> >>>> Moose-dev mailing list
> >>>> [hidden email]
> >>>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
> >>>
> >>>
> >>> _______________________________________________
> >>> Moose-dev mailing list
> >>> [hidden email]
> >>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
> >>
> >> --
> >> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
> >> Alexandre Bergel  http://www.bergel.eu
> >> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
> >>
> >>
> >>
> >>
> >>
> >>
> >> _______________________________________________
> >> Moose-dev mailing list
> >> [hidden email]
> >> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
> >
> >
> > _______________________________________________
> > Moose-dev mailing list
> > [hidden email]
> > https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>
> --
> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
> Alexandre Bergel  http://www.bergel.eu
> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>
>
>
>
>
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev

--
www.tudorgirba.com

"If you interrupt the barber while he is cutting your hair,
you will end up with a messy haircut."


_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: How can we get a window always showing the code?

abergel
>>
>> 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.
>
> The feature was removed from the default system complexity because it is impractical for large classes (it takes too long spawn larger blueprints).

Why not to have introduced a threshold on, let's say, the number of methods?

Alexandre


>
>> 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?
>
> You can always use
> view interaction popupText:
> view interaction popupView:
>
> Cheers,
> Doru
>
>
>>
>>> 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" <[hidden email]>
>>>>>>> À: "Moose-related development" <[hidden email]>
>>>>>>> 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
>>>>>>> [hidden email]
>>>>>>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>>>>>>
>>>>>> _______________________________________________
>>>>>> Moose-dev mailing list
>>>>>> [hidden email]
>>>>>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Moose-dev mailing list
>>>>> [hidden email]
>>>>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>>>>
>>>> --
>>>> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
>>>> Alexandre Bergel  http://www.bergel.eu
>>>> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> Moose-dev mailing list
>>>> [hidden email]
>>>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>>>
>>>
>>> _______________________________________________
>>> Moose-dev mailing list
>>> [hidden email]
>>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>>
>> --
>> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
>> Alexandre Bergel  http://www.bergel.eu
>> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>>
>>
>>
>>
>>
>>
>> _______________________________________________
>> Moose-dev mailing list
>> [hidden email]
>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>>
>> _______________________________________________
>> Moose-dev mailing list
>> [hidden email]
>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>
> --
> www.tudorgirba.com
>
> "If you interrupt the barber while he is cutting your hair,
> you will end up with a messy haircut."
>
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: How can we get a window always showing the code?

Tudor Girba-2
Hi,

On 10 Nov 2011, at 01:51, Alexandre Bergel wrote:

>>>
>>> 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.
>>
>> The feature was removed from the default system complexity because it is impractical for large classes (it takes too long spawn larger blueprints).
>
> Why not to have introduced a threshold on, let's say, the number of methods?

Because you will never know when you will get the blueprint and when not, so it would feel like a roller coaster. What's more, the interesting blueprints are those above a certain threshold (meaning this is where people are most likely to click in a system complexity).

Ideally, the popup should be rendered in a parallel thread.

Cheers,
Doru


> Alexandre
>
>
>>
>>> 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?
>>
>> You can always use
>> view interaction popupText:
>> view interaction popupView:
>>
>> Cheers,
>> Doru
>>
>>
>>>
>>>> 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" <[hidden email]>
>>>>>>>> À: "Moose-related development" <[hidden email]>
>>>>>>>> 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
>>>>>>>> [hidden email]
>>>>>>>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> Moose-dev mailing list
>>>>>>> [hidden email]
>>>>>>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>>>>>>
>>>>>>
>>>>>> _______________________________________________
>>>>>> Moose-dev mailing list
>>>>>> [hidden email]
>>>>>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>>>>>
>>>>> --
>>>>> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
>>>>> Alexandre Bergel  http://www.bergel.eu
>>>>> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Moose-dev mailing list
>>>>> [hidden email]
>>>>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>>>>
>>>>
>>>> _______________________________________________
>>>> Moose-dev mailing list
>>>> [hidden email]
>>>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>>>
>>> --
>>> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
>>> Alexandre Bergel  http://www.bergel.eu
>>> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>>>
>>>
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> Moose-dev mailing list
>>> [hidden email]
>>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>>>
>>> _______________________________________________
>>> Moose-dev mailing list
>>> [hidden email]
>>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>>
>> --
>> www.tudorgirba.com
>>
>> "If you interrupt the barber while he is cutting your hair,
>> you will end up with a messy haircut."
>>
>>
>> _______________________________________________
>> Moose-dev mailing list
>> [hidden email]
>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev

--
www.tudorgirba.com

"Don't give to get. Just give."






_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: How can we get a window always showing the code?

Stéphane Ducasse
In reply to this post by Tudor Girba-2
The problem is that we want the browsing of code on any entity not only mondrian.
and we do not want to change all the existing visualizations to use view interaction popupText:

I still do not get how people can really use moose to understand code without seeing the code of the entity.
I love visualization but I love to read the code.

Stef

On Nov 9, 2011, at 9:33 PM, Tudor Girba wrote:

> Hi,
>
> On 9 Nov 2011, at 18:08, Usman Bhatti wrote:
>
>> On Thu, Nov 3, 2011 at 1:49 PM, Alexandre Bergel <[hidden email]> 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.
>
> The feature was removed from the default system complexity because it is impractical for large classes (it takes too long spawn larger blueprints).
>
>> 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?
>
> You can always use
> view interaction popupText:
> view interaction popupView:
>
> Cheers,
> Doru
>
>
>>
>>> 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" <[hidden email]>
>>>>>>> À: "Moose-related development" <[hidden email]>
>>>>>>> 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
>>>>>>> [hidden email]
>>>>>>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>>>>>>
>>>>>> _______________________________________________
>>>>>> Moose-dev mailing list
>>>>>> [hidden email]
>>>>>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Moose-dev mailing list
>>>>> [hidden email]
>>>>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>>>>
>>>> --
>>>> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
>>>> Alexandre Bergel  http://www.bergel.eu
>>>> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> Moose-dev mailing list
>>>> [hidden email]
>>>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>>>
>>>
>>> _______________________________________________
>>> Moose-dev mailing list
>>> [hidden email]
>>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>>
>> --
>> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
>> Alexandre Bergel  http://www.bergel.eu
>> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>>
>>
>>
>>
>>
>>
>> _______________________________________________
>> Moose-dev mailing list
>> [hidden email]
>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>>
>> _______________________________________________
>> Moose-dev mailing list
>> [hidden email]
>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>
> --
> www.tudorgirba.com
>
> "If you interrupt the barber while he is cutting your hair,
> you will end up with a messy haircut."
>
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev


_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev