Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian W. Damus2018-05-14 21:54:12 +0000
committerNicolas FAUVERGUE2018-07-06 07:27:02 +0000
commit5af9263e49248bbaa7048522909cda202f37642b (patch)
tree28bf984c3dc8e45994eaf2a645701418190308e3 /tests/junit/framework/org.eclipse.papyrus.junit.utils
parent8ba78ef5f3941027769e6c537f078d173177a979 (diff)
downloadorg.eclipse.papyrus-5af9263e49248bbaa7048522909cda202f37642b.tar.gz
org.eclipse.papyrus-5af9263e49248bbaa7048522909cda202f37642b.tar.xz
org.eclipse.papyrus-5af9263e49248bbaa7048522909cda202f37642b.zip
Bug 530201: [Sequence Diagram] Covered feature is broken for InteractionFragment
Ensure that all interaction fragments that can be created in an interaction (continuation apparently not supported) are initialized with lifeline coverage for the lifelines that they visually cover. This includes updating the GridManagementEditPolicy to stop just adding all interaction operands to the 'coveredBys' of all lifelines in the interaction. Change-Id: I6e6dd83138b2433456beacbab1acacb9fb5155a3 Signed-off-by: Christian W. Damus <give.a.damus@gmail.com>
Diffstat (limited to 'tests/junit/framework/org.eclipse.papyrus.junit.utils')
-rw-r--r--tests/junit/framework/org.eclipse.papyrus.junit.utils/src/org/eclipse/papyrus/junit/utils/rules/PapyrusEditorFixture.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/junit/framework/org.eclipse.papyrus.junit.utils/src/org/eclipse/papyrus/junit/utils/rules/PapyrusEditorFixture.java b/tests/junit/framework/org.eclipse.papyrus.junit.utils/src/org/eclipse/papyrus/junit/utils/rules/PapyrusEditorFixture.java
index 21c36251496..55abac19b7b 100644
--- a/tests/junit/framework/org.eclipse.papyrus.junit.utils/src/org/eclipse/papyrus/junit/utils/rules/PapyrusEditorFixture.java
+++ b/tests/junit/framework/org.eclipse.papyrus.junit.utils/src/org/eclipse/papyrus/junit/utils/rules/PapyrusEditorFixture.java
@@ -1584,13 +1584,19 @@ public class PapyrusEditorFixture extends AbstractModelFixture<TransactionalEdit
Event mouse = new Event();
mouse.display = editor.getSite().getShell().getDisplay();
mouse.widget = viewer.getControl();
- mouse.button = 1;
mouse.x = location.x();
mouse.y = location.y();
viewer.getEditDomain().setActiveTool(tool);
tool.setViewer(viewer);
+
+ // Move to the place where we'll click
+ mouse.type = SWT.MouseMove;
+ tool.mouseMove(new MouseEvent(mouse), viewer);
+
+ // Press down
mouse.type = SWT.MouseDown;
+ mouse.button = 1;
tool.mouseDown(new MouseEvent(mouse), viewer);
flushDisplayEvents();

Back to the top