Skip to main content



      Home
Home » Eclipse Projects » NatTable » Mouse events are not properly handled
Mouse events are not properly handled [message #1220107] Mon, 09 December 2013 13:47 Go to next message
Eclipse UserFriend
Hi,

There seems to be a problem with the handling of mouse events. Hard to explain so here are some steps to reproduce the issue:

  • Open Examples
  • Goto the Group By Example
  • Select the first value in the ISIN column
  • Press control
  • Move the mouse down to item 9
  • Click again with the left mouse button to select them.
  • WITHOUT MOVING THE MOUSE: Do a right click.
  • Nothing happens, but the context menu should appear


It is very critical to NOT move the mouse, otherwise the issue is not reproducable. If you move the mouse everything works fine Smile

I debugged into it and it seems that - due to some event - the wrong IModeEventHandler is set. The new handler now does not know anything about opening the context menu and thus nothing happens.

Seems that the bad line is in:
MouseModeEventHandler#mouseMove:

// No drag mode registered when mouseMove detected. Switch back to normal mode.
switchMode(Mode.NORMAL_MODE);


For me it seems that this overwrites the handler that would open the popup menu.

Regards,
Michael



[Updated on: Mon, 09 December 2013 13:49] by Moderator

Re: Mouse events are not properly handled [message #1220120 is a reply to message #1220107] Mon, 09 December 2013 15:44 Go to previous messageGo to next message
Eclipse UserFriend
The problem is that the mode is not reset after selection via mouseDown.

I'm testing a possible solution.
Re: Mouse events are not properly handled [message #1220211 is a reply to message #1220120] Tue, 10 December 2013 06:56 Go to previous messageGo to next message
Eclipse UserFriend
https://bugs.eclipse.org/bugs/show_bug.cgi?id=423682
Re: Mouse events are not properly handled [message #1220657 is a reply to message #1220211] Thu, 12 December 2013 17:22 Go to previous message
Eclipse UserFriend
Again impressed how quickly you are resolving the issues that gets reported!
Thx Smile
Previous Topic:Gerrit enabled for NatTable
Next Topic:Abrupt behavior when using "EditCellCommand" through code directly
Goto Forum:
  


Current Time: Sat Jul 05 01:41:54 EDT 2025

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

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

Back to the top