Community
Participate
Working Groups
Currently, org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.dragAndDrop(AbstractSWTBot<? extends Widget>) allows to drag'n'drop an AbstractSWTBot to a Widget. But the drop is made on the center of the widget. The goal of this enhancement is to allow to drop at a specified location.
New Gerrit change created: https://git.eclipse.org/r/127340
@Laurent > The goal of this enhancement is to allow to drop at a specified location. What's the user-story behind it? Do you need an absolute location, or a specified location inside the target widget (ie a relative one)?
(In reply to Mickael Istria from comment #2) > @Laurent > > > The goal of this enhancement is to allow to drop at a specified location. > > What's the user-story behind it? Do you need an absolute location, or a > specified location inside the target widget (ie a relative one)? As explained in comment review of patch set 4 [1], I don't need the absolute coordinates: > The original method dragAndDrop(AbstractSWTBot<? extends Widget>) used absolute coordinates. This is why I proposed both. > In my case, I use relative coordinates. So if it is simpler for everybody, I can remove the absolute case. Or I can made the changes proposed by Mickael. [1] https://git.eclipse.org/r/#/c/127340/4..4/org.eclipse.swtbot.swt.finder/src/org/eclipse/swtbot/swt/finder/widgets/AbstractSWTBot.java@1001
Gerrit change https://git.eclipse.org/r/127340 was merged to [master]. Commit: http://git.eclipse.org/c/swtbot/org.eclipse.swtbot.git/commit/?id=ddc844af8170e80f3d8f641fe27c6be8b657117d
Merged to master branch.
The version "http://download.eclipse.org/technology/swtbot/milestones/2018-12-m3", including this fix, has been tested for Sirius with bugzilla 542480. This fix is OK for us.