mouselistener for connection label [message #186448] |
Tue, 05 July 2005 15:14 |
Eclipse User |
|
|
|
Originally posted by: kevnam.gmail.com
Hi, can anyone help me with the following? Thanks.
I added a label figure at the midpoint of a connection between two nodes.
What I'd like to do is add a mouselistener to the label so when clicked
either it goes into a direct edit mode or pops up a menu of some sort. In
the createFigure() inside ConnectionEditPart, I added a mouselistener to the
label figure, but it doesn't seem to respond to mouse clicks.
I appreciate your tips and advices.
Thanks.
-Kevin
|
|
|
Re: mouselistener for connection label [message #186859 is a reply to message #186448] |
Thu, 07 July 2005 06:15 |
Eclipse User |
|
|
|
Originally posted by: none.unknown.com
It should work. Set a breakpoint in
DomainEventDispatcher#dispatchMousePressed() and see what's going on. The
event should be passed to the SWTEventDispatcher first, which should forward
it to the label figure.
"Kevin Nam" <kevnam@gmail.com> wrote in message
news:dae85d$k85$1@news.eclipse.org...
> Hi, can anyone help me with the following? Thanks.
> I added a label figure at the midpoint of a connection between two nodes.
> What I'd like to do is add a mouselistener to the label so when clicked
> either it goes into a direct edit mode or pops up a menu of some sort. In
> the createFigure() inside ConnectionEditPart, I added a mouselistener to
the
> label figure, but it doesn't seem to respond to mouse clicks.
> I appreciate your tips and advices.
> Thanks.
>
> -Kevin
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03385 seconds