popups

Roman Kennke roman at kennke.org
Wed Mar 28 13:24:40 PDT 2012


Hi Glen,


> Hi I’m trying to utilize this project for running FEST tests headless
> (great work btw!).

Good to hear! Glad you like it. We are about to make a release of Cacio
(the first one!), and I'll be happy to fix that little issue before
doing it.

>   I think I’m getting close however one thing that I’ve hit is an
> issue with right click popups. I think the issue might be with the way
> the MouseEvent is created in the EventData class:
> 
>  
> 
>             return new MouseEvent((Component) source, id, time,
> modifiers,
> 
>                                   x, y, clickCount, false,
> 
>                                   getButton(modifierChange));
> 
>  
> 
> The false is for the popupTrigger parameter. I’m thinking this has to
> be true when right clicking.  Am I correct or am I missing something?

This seems to be correct. There are desktop environments where the popup
trigger is something else (like MacOS, CTRL+leftclick AFAIK), but right
click seems right for most others. Several ways to handle it come to
mind:

- We could provide support for emulating different environments,
depending on some setting (sysproperty?).
- We could declare that for the Cacio environment (heh) right-click is
it :-)

I lean towards the latter solution, at least until somebody really needs
more flexibility (e.g. when testing for MacOS environment).

What do you (and others) think?

Cheers,
Roman





More information about the caciocavallo-dev mailing list