Adding a menu entry in GTInspector

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

Adding a menu entry in GTInspector

abergel
Hi!

I would like to add a new menu entry when I right click on a text in GT. Something titled ‘execution coverage’ which will spawn an Hapao visualization.

Is there an easy way to do it?

Cheers,
Alexandre
-- 
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
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: Adding a menu entry in GTInspector

Andrei Chis
Hi Alexandre,

Right now there is no easy way.
But since it's a useful feature we should refactor that menu to use the pragma menu builder.
I can do it next week.

Cheers,
Andrei

On Sat, Sep 5, 2015 at 6:42 PM, Alexandre Bergel <[hidden email]> wrote:
Hi!

I would like to add a new menu entry when I right click on a text in GT. Something titled ‘execution coverage’ which will spawn an Hapao visualization.

Is there an easy way to do it?

Cheers,
Alexandre
-- 
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
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: Adding a menu entry in GTInspector

Tudor Girba-2
Thanks, Andrei.

Doru

On Sat, Sep 5, 2015 at 9:29 PM, Andrei Chis <[hidden email]> wrote:
Hi Alexandre,

Right now there is no easy way.
But since it's a useful feature we should refactor that menu to use the pragma menu builder.
I can do it next week.

Cheers,
Andrei

On Sat, Sep 5, 2015 at 6:42 PM, Alexandre Bergel <[hidden email]> wrote:
Hi!

I would like to add a new menu entry when I right click on a text in GT. Something titled ‘execution coverage’ which will spawn an Hapao visualization.

Is there an easy way to do it?

Cheers,
Alexandre
-- 
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
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




--

"Every thing has its own flow"

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

Re: Adding a menu entry in GTInspector

abergel

Thanks!
Would be fantastic

Alexandre 


Le 5 sept. 2015 à 16:44, Tudor Girba <[hidden email]> a écrit :

Thanks, Andrei.

Doru

On Sat, Sep 5, 2015 at 9:29 PM, Andrei Chis <[hidden email]> wrote:
Hi Alexandre,

Right now there is no easy way.
But since it's a useful feature we should refactor that menu to use the pragma menu builder.
I can do it next week.

Cheers,
Andrei

On Sat, Sep 5, 2015 at 6:42 PM, Alexandre Bergel <[hidden email]> wrote:
Hi!

I would like to add a new menu entry when I right click on a text in GT. Something titled ‘execution coverage’ which will spawn an Hapao visualization.
<Screen Shot 2015-09-05 at 1.36.20 PM.png>

Is there an easy way to do it?

Cheers,
Alexandre
-- 
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
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




--

"Every thing has its own flow"
_______________________________________________
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

Screen Shot 2015-09-05 at 1.36.20 PM.png (72K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Adding a menu entry in GTInspector

Andrei Chis
I refactored the menu construction to use pragmas.
Now you can extend it by adding to the class side of 
GTPlayground methods annotates with playgroundContextMenu 
that return a list glamour actions.
Let me know if it works for you.

Nevertheless, there is no way to indicate an order for glamour actions. 
Right now the order is the one in which they are added to a presentation, 
which in this case  might be the wrong one.

I'll add this on my todo list.

Cheers,
Andrei


On Sun, Sep 6, 2015 at 1:48 AM, Alexandre Bergel <[hidden email]> wrote:

Thanks!
Would be fantastic

Alexandre 


Le 5 sept. 2015 à 16:44, Tudor Girba <[hidden email]> a écrit :

Thanks, Andrei.

Doru

On Sat, Sep 5, 2015 at 9:29 PM, Andrei Chis <[hidden email]> wrote:
Hi Alexandre,

Right now there is no easy way.
But since it's a useful feature we should refactor that menu to use the pragma menu builder.
I can do it next week.

Cheers,
Andrei

On Sat, Sep 5, 2015 at 6:42 PM, Alexandre Bergel <[hidden email]> wrote:
Hi!

I would like to add a new menu entry when I right click on a text in GT. Something titled ‘execution coverage’ which will spawn an Hapao visualization.
<Screen Shot 2015-09-05 at 1.36.20 PM.png>

Is there an easy way to do it?

Cheers,
Alexandre
-- 
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
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




--

"Every thing has its own flow"
_______________________________________________
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: Adding a menu entry in GTInspector

abergel
Thanks!
It works well.

But, there is no Go action?

As you may guess “Hapao it!” is my new action, part of the Spy2 application

Cheers,
Alexandre

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



On Sep 8, 2015, at 10:36 AM, Andrei Chis <[hidden email]> wrote:

I refactored the menu construction to use pragmas.
Now you can extend it by adding to the class side of 
GTPlayground methods annotates with playgroundContextMenu 
that return a list glamour actions.
Let me know if it works for you.

Nevertheless, there is no way to indicate an order for glamour actions. 
Right now the order is the one in which they are added to a presentation, 
which in this case  might be the wrong one.

I'll add this on my todo list.

Cheers,
Andrei


On Sun, Sep 6, 2015 at 1:48 AM, Alexandre Bergel <[hidden email]> wrote:

Thanks!
Would be fantastic

Alexandre 


Le 5 sept. 2015 à 16:44, Tudor Girba <[hidden email]> a écrit :

Thanks, Andrei.

Doru

On Sat, Sep 5, 2015 at 9:29 PM, Andrei Chis <[hidden email]> wrote:
Hi Alexandre,

Right now there is no easy way.
But since it's a useful feature we should refactor that menu to use the pragma menu builder.
I can do it next week.

Cheers,
Andrei

On Sat, Sep 5, 2015 at 6:42 PM, Alexandre Bergel <[hidden email]> wrote:
Hi!

I would like to add a new menu entry when I right click on a text in GT. Something titled ‘execution coverage’ which will spawn an Hapao visualization.
<Screen Shot 2015-09-05 at 1.36.20 PM.png>

Is there an easy way to do it?

Cheers,
Alexandre
-- 
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
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




-- 

"Every thing has its own flow"
_______________________________________________
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


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

Re: Adding a menu entry in GTInspector

Andrei Chis
Is the Go action also missing before you added your custom action?
Also can you check that all glamour, inspector and playground packages are up to date.
I made a refactoring that affected several packages.

Cheers,
Andrei

On Tue, Sep 8, 2015 at 5:10 PM, Alexandre Bergel <[hidden email]> wrote:
Thanks!
It works well.

But, there is no Go action?

As you may guess “Hapao it!” is my new action, part of the Spy2 application

Cheers,
Alexandre

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



On Sep 8, 2015, at 10:36 AM, Andrei Chis <[hidden email]> wrote:

I refactored the menu construction to use pragmas.
Now you can extend it by adding to the class side of 
GTPlayground methods annotates with playgroundContextMenu 
that return a list glamour actions.
Let me know if it works for you.

Nevertheless, there is no way to indicate an order for glamour actions. 
Right now the order is the one in which they are added to a presentation, 
which in this case  might be the wrong one.

I'll add this on my todo list.

Cheers,
Andrei


On Sun, Sep 6, 2015 at 1:48 AM, Alexandre Bergel <[hidden email]> wrote:

Thanks!
Would be fantastic

Alexandre 


Le 5 sept. 2015 à 16:44, Tudor Girba <[hidden email]> a écrit :

Thanks, Andrei.

Doru

On Sat, Sep 5, 2015 at 9:29 PM, Andrei Chis <[hidden email]> wrote:
Hi Alexandre,

Right now there is no easy way.
But since it's a useful feature we should refactor that menu to use the pragma menu builder.
I can do it next week.

Cheers,
Andrei

On Sat, Sep 5, 2015 at 6:42 PM, Alexandre Bergel <[hidden email]> wrote:
Hi!

I would like to add a new menu entry when I right click on a text in GT. Something titled ‘execution coverage’ which will spawn an Hapao visualization.
<Screen Shot 2015-09-05 at 1.36.20 PM.png>

Is there an easy way to do it?

Cheers,
Alexandre
-- 
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
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




-- 

"Every thing has its own flow"
_______________________________________________
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


_______________________________________________
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: Adding a menu entry in GTInspector

abergel
Strange, now it seems to be in. 


‘Hapao it!’ is now at the end of the list.

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



On Sep 8, 2015, at 12:27 PM, Andrei Chis <[hidden email]> wrote:

Is the Go action also missing before you added your custom action?
Also can you check that all glamour, inspector and playground packages are up to date.
I made a refactoring that affected several packages.

Cheers,
Andrei

On Tue, Sep 8, 2015 at 5:10 PM, Alexandre Bergel <[hidden email]> wrote:
Thanks!
It works well.

But, there is no Go action?
<Screen Shot 2015-09-08 at 12.10.05 PM.png>

As you may guess “Hapao it!” is my new action, part of the Spy2 application

Cheers,
Alexandre

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



On Sep 8, 2015, at 10:36 AM, Andrei Chis <[hidden email]> wrote:

I refactored the menu construction to use pragmas.
Now you can extend it by adding to the class side of 
GTPlayground methods annotates with playgroundContextMenu 
that return a list glamour actions.
Let me know if it works for you.

Nevertheless, there is no way to indicate an order for glamour actions. 
Right now the order is the one in which they are added to a presentation, 
which in this case  might be the wrong one.

I'll add this on my todo list.

Cheers,
Andrei


On Sun, Sep 6, 2015 at 1:48 AM, Alexandre Bergel <[hidden email]> wrote:

Thanks!
Would be fantastic

Alexandre 


Le 5 sept. 2015 à 16:44, Tudor Girba <[hidden email]> a écrit :

Thanks, Andrei.

Doru

On Sat, Sep 5, 2015 at 9:29 PM, Andrei Chis <[hidden email]> wrote:
Hi Alexandre,

Right now there is no easy way.
But since it's a useful feature we should refactor that menu to use the pragma menu builder.
I can do it next week.

Cheers,
Andrei

On Sat, Sep 5, 2015 at 6:42 PM, Alexandre Bergel <[hidden email]> wrote:
Hi!

I would like to add a new menu entry when I right click on a text in GT. Something titled ‘execution coverage’ which will spawn an Hapao visualization.
<Screen Shot 2015-09-05 at 1.36.20 PM.png>

Is there an easy way to do it?

Cheers,
Alexandre
-- 
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
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




-- 

"Every thing has its own flow"
_______________________________________________
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


_______________________________________________
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: Adding a menu entry in GTInspector

Ben Coman

On Wed, Sep 9, 2015 at 2:12 AM, Alexandre Bergel <[hidden email]> wrote:
Strange, now it seems to be in. 

‘Hapao it!’ is now at the end of the list.
 
The impression I get from the exclamation mark is that this is a *much* more exciting menu item than all the others. :]
cheers -ben

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