Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Issue regarding Mouse events and Selection Tracker??
Issue regarding Mouse events and Selection Tracker?? [message #156056] Fri, 29 October 2004 02:50
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) doesnt 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's the possible solutions??

Thanks
Zenil
Previous Topic:PaletteCustomizer possible with standard i.e. non-Flyout palette?
Next Topic:How to sync Gef actions with toolbar?
Goto Forum:
  


Current Time: Wed Jan 15 20:38:02 GMT 2025

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

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

Back to the top