Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Mouse events in GraphicalViewer
Mouse events in GraphicalViewer [message #231777] Fri, 16 March 2007 21:31 Go to next message
Roger Pinkerton is currently offline Roger PinkertonFriend
Messages: 2
Registered: July 2009
Junior Member
Is there a way to add a mouse listener to a GraphicalViewer? I am able to
add a GraphicalViewerKeyListener to my GraphicalViewer, but I am more
interested in mouse events rather than in key events.

Thank you,
Adam
Re: Mouse events in GraphicalViewer [message #231784 is a reply to message #231777] Sat, 17 March 2007 11:45 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: till.tillamma.de

have you tried:

viewer.getControl().addMouseListener(...)

?

Im not sure if it works, but it seems the way to go ;)

Till

Adam schrieb:
> Is there a way to add a mouse listener to a GraphicalViewer? I am able
> to add a GraphicalViewerKeyListener to my GraphicalViewer, but I am more
> interested in mouse events rather than in key events.
>
> Thank you,
> Adam
>
>
>
Re: Mouse events in GraphicalViewer [message #231792 is a reply to message #231777] Sat, 17 March 2007 15:29 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.unknown.com

What are you trying to do?

"Adam" <skootch777@yahoo.com> wrote in message
news:97f115fec1940d5d8373c0b00d4bb6c8$1@www.eclipse.org...
> Is there a way to add a mouse listener to a GraphicalViewer? I am able to
> add a GraphicalViewerKeyListener to my GraphicalViewer, but I am more
> interested in mouse events rather than in key events.
>
> Thank you,
> Adam
>
>
>
Re: Mouse events in GraphicalViewer [message #232105 is a reply to message #231784] Fri, 23 March 2007 12:21 Go to previous message
Roger Pinkerton is currently offline Roger PinkertonFriend
Messages: 2
Registered: July 2009
Junior Member
Till,

Thank you very much for your helpful answer. That worked perfectly.

Adam
Previous Topic:GEF and SWG
Next Topic:Drop on a Palette
Goto Forum:
  


Current Time: Thu Oct 28 18:13:33 GMT 2021

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

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

Back to the top