Community
Participate
Working Groups
Using 2.0.0.568-dev-e36. All methods on SWTBotGefEdtor taking a SWTBotGefEditPart as input seem to be erroneous. They all delegate the event creation to SWTBotGefFigureCanvas giving it the part().getFigure().getBounds() which is a location *relative* to the parent, whereas the SWTBotGefFigureCanvas expects locations *absolute* to the canvas. This issue makes drag'n'drop in GEF diagrams.
Created attachment 175829 [details] Test Bundle for gef finder This is a bundle to test GEF finder. It currently contains a test case for this bug. It uses the STP-BPMN diagram editor to execute test actions. It assumes that this editor works well, and test SWTBot operations against it.
Created attachment 175830 [details] Patch Replace relative locations to absolute, and make test turn to green.
Thanks for the patch ! Committed patch with a unit test in org.eclipse.gef.examples.logic.test project. Revision 599
(In reply to comment #3) > Thanks for the patch ! > Committed patch with a unit test in org.eclipse.gef.examples.logic.test > project. > Revision 599 Cool :) When will be the next release including the patch?
(In reply to comment #4) > (In reply to comment #3) > > Thanks for the patch ! > > Committed patch with a unit test in org.eclipse.gef.examples.logic.test > > project. > > Revision 599 > > > Cool :) > When will be the next release including the patch? I am pretty sure there is already one.
(In reply to comment #5) > (In reply to comment #4) > > (In reply to comment #3) > > > Thanks for the patch ! > > > Committed patch with a unit test in org.eclipse.gef.examples.logic.test > > > project. > > > Revision 599 > > > > > > Cool :) > > When will be the next release including the patch? > > I am pretty sure there is already one. oh god, I see the wrong year... But it seems that I had the same issue. I will check.
(In reply to comment #6) > (In reply to comment #5) > > (In reply to comment #4) > > > (In reply to comment #3) > > > > Thanks for the patch ! > > > > Committed patch with a unit test in org.eclipse.gef.examples.logic.test > > > > project. > > > > Revision 599 > > > > > > > > > Cool :) > > > When will be the next release including the patch? > > > > I am pretty sure there is already one. > > oh god, I see the wrong year... But it seems that I had the same issue. I will > check. ok do not hesitate to reopen in this cas, I will fix it rapidely.