Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Repost:Issue Regarding MouseEvents and EventDispatcher
Repost:Issue Regarding MouseEvents and EventDispatcher [message #156702] Thu, 04 November 2004 02:02 Go to next message
Eclipse UserFriend
Originally posted by: zenilnh.infotech.stph.net

Hi All,

I have a problem also discussed in this post
" http://dev.eclipse.org/newslists/news.eclipse.tools.gef/msg0 3454.html"
The following paragraph culled from that post exactly specifies my
scenario..

"A graphical editor will use mostly Tools to process all mouse events. But
sometimes a tool is too heavyweight, and a simple mouse listener on a
figure
can be used for things like expand/collapse hotspots. GEF is setup so
figures always have a chance to go first. By the figure consuming the
mouse
down event, you are saying to GEF that the mouse down should not ALSO be
sent to the tool. This allows the connection tool to be active, and the
user can click on a '+' figure to expand a container, without that mouse
click being interpreted as "start the connection here".
"
So i have a figure with expand/collapse hotspots.When user clicks on the
"+" figure,my figure mouse listener gets notifed first,i expand the
figure,i consume the mouse event..But even then the associated selection
eventsare fired,and the mouse click is also being interpreted as a
selection event..Somehow my mouseevent.consume() is not being taken in to
account by the tracker..On further verification i found that the
DomainEventDispatcher.dispatchMousePressed(MouseEvent) doesn't take in to
account whether an event has been consumed or not..So even though i
consume the event,the dispatcher continues dispatching it..Is my inference
correct??What can be the possible solutions??

Thanks
Zenil
Re: Repost:Issue Regarding MouseEvents and EventDispatcher [message #156790 is a reply to message #156702] Thu, 04 November 2004 16:02 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

> account by the tracker..On further verification i found that the
> DomainEventDispatcher.dispatchMousePressed(MouseEvent) doesn't take in to
> account whether an event has been consumed or not..So even though i

Sure it does. Look at the method isDraw2dBusy()

> consume the event,the dispatcher continues dispatching it..Is my inference
> correct??What can be the possible solutions??
>
> Thanks
> Zenil
>
Re: Repost:Issue Regarding MouseEvents and EventDispatcher [message #156844 is a reply to message #156790] Thu, 04 November 2004 18:43 Go to previous message
Eclipse UserFriend
Originally posted by: zenilnh.infotech.stph.net

I have no idea where i was lookin..
Thanks for the answer Randy..And sorry for the stupid question..

zenil

Randy Hudson wrote:

>> account by the tracker..On further verification i found that the
>> DomainEventDispatcher.dispatchMousePressed(MouseEvent) doesn't take in to
>> account whether an event has been consumed or not..So even though i

> Sure it does. Look at the method isDraw2dBusy()

>> consume the event,the dispatcher continues dispatching it..Is my inference
>> correct??What can be the possible solutions??
>>
>> Thanks
>> Zenil
>>
Previous Topic:Can GEF draw a SWT widget?
Next Topic:PrintAction is not scaling images in Labels
Goto Forum:
  


Current Time: Thu Sep 19 14:29:33 GMT 2024

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

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

Back to the top