|
Re: How to listen event when mouse over a node on diagram? [message #1698256 is a reply to message #1698193] |
Fri, 12 June 2015 15:01 |
|
Hello Sann,
I think the simplest way is to provide your own EditPart and EditPolicy.
In your EditPart createDefaultEditPolicies method, for the role
EditPolicyRoles.POPUPBAR_ROLE install your own policy that inherits from
SiriusPopupBarEditPolicy. In your own version the mouseHover method
should call super and then do your popup call.
You can have more information about providing custom EditParts and
EditPolicies [1] in the online documentation.
Regards,
Steve
[1]
https://www.eclipse.org/sirius/doc/developer/extensions-provide_custom_style.html
Le 12/06/2015 05:49, Sann Tran a écrit :
> Hi Obeo guys,
>
> I would like to replace the tooltip (that provided by Sirius) by our
> popup when mouse over a node on diagram. The problem is that I cannot
> listen the mouse over node event.
>
> Is there any way to listen the mouse event on DNode ?
>
> Thanks,
> ---
> Sann
>
--
Steve Monnier - Obeo
Need professional services for Sirius?
http://www.obeodesigner.com/sirius
Steve Monnier - Obeo Canada
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
|
Powered by
FUDForum. Page generated in 0.03343 seconds