Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 368150 - Selection event fired too late by SWTBotTreeItem#clickXY
Summary: Selection event fired too late by SWTBotTreeItem#clickXY
Status: NEW
Alias: None
Product: SWTBot
Classification: Technology
Component: SWTBot (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-09 08:01 EST by Tim Moore CLA
Modified: 2012-01-09 08:03 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tim Moore CLA 2012-01-09 08:01:29 EST
Build Identifier: M20100909-0800

SWTBotTreeItem#clickXY fires events in the following order:

notifyTree(SWT.MouseEnter);
notifyTree(SWT.MouseMove);
notifyTree(SWT.Activate);
notifyTree(SWT.FocusIn);
notifyTree(SWT.MouseDown, createMouseEvent(x, y, 1, SWT.NONE, 1));
notifyTree(SWT.MouseUp, createMouseEvent(x, y, 1, SWT.BUTTON1, 1));
notifyTree(SWT.Selection, createSelectionEvent(SWT.BUTTON1));
notifyTree(SWT.MouseHover);
notifyTree(SWT.MouseMove);
notifyTree(SWT.MouseExit);
notifyTree(SWT.Deactivate);
notifyTree(SWT.FocusOut);

However, Selection should occur directly after MouseDown, not after MouseUp. In contrast, SWTBotTableItem fires the events in the correct order.

Reproducible: Always
Comment 1 Tim Moore CLA 2012-01-09 08:03:14 EST
Also, you need a 2.0.5 Version option :)