Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » mouselistener for connection label
mouselistener for connection label [message #186448] Tue, 05 July 2005 15:14 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
>
>
Previous Topic:Updating the content and Reveal a part
Next Topic:Pbm EditDomain and GraphicalViewers
Goto Forum:
  


Current Time: Thu Apr 25 04:22:54 GMT 2024

Powered by FUDForum. Page generated in 0.02676 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top