diff options
author | Vincent Lorenzo | 2014-02-12 16:24:31 +0000 |
---|---|---|
committer | Vincent Lorenzo | 2014-02-12 16:24:31 +0000 |
commit | 2729a7622507f39b9fa416fa07ee5f8579723e71 (patch) | |
tree | 092f3bd89dba08e74278201de4d70862babafe7f /tests | |
parent | 74df1a9a52ad683d15a09cd9db1931c95f11b80a (diff) | |
download | org.eclipse.papyrus-2729a7622507f39b9fa416fa07ee5f8579723e71.tar.gz org.eclipse.papyrus-2729a7622507f39b9fa416fa07ee5f8579723e71.tar.xz org.eclipse.papyrus-2729a7622507f39b9fa416fa07ee5f8579723e71.zip |
Apply bugfox from B. Maggi on master (already applied on branch (see
commit id in following text)
e8fb604a0762987da518649578bbee6308742323 Use DiagramCommandStack to
allow editPart creation notification
(used when dropping a link create a view for a (source or target) node)
58f0eb6713f732753ab262d88cd13b2464aeadcc Bug 427271 - [SysML BDD] Can no
more draw associations between a Block
and an Actor.
f86c1d8b36eb37cee0122e4de920ed71a6f952bc Bug 406290 - [SysML IBD] When
the type of a part or a reference changes
the nestedConnectors linked to an internal component of the
part/refrence are hidden but are not deleted from the model.
When destroying a part or changing its type, destroying all connectors
that reference this part in NestedConnectorEnd.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/junit/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.internalblock.tests/src/org/eclipse/papyrus/sysml/diagram/internalblock/tests/utils/TestUtils.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/junit/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.internalblock.tests/src/org/eclipse/papyrus/sysml/diagram/internalblock/tests/utils/TestUtils.java b/tests/junit/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.internalblock.tests/src/org/eclipse/papyrus/sysml/diagram/internalblock/tests/utils/TestUtils.java index e8f8220e9dd..09300f8df8b 100644 --- a/tests/junit/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.internalblock.tests/src/org/eclipse/papyrus/sysml/diagram/internalblock/tests/utils/TestUtils.java +++ b/tests/junit/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.internalblock.tests/src/org/eclipse/papyrus/sysml/diagram/internalblock/tests/utils/TestUtils.java @@ -726,23 +726,23 @@ public class TestUtils { history.addOperationHistoryListener(historyChange);
// Test execution
historyEventType = OperationHistoryEvent.DONE;
- EditorUtils.getCommandStack().execute(new GEFtoEMFCommandWrapper(command));
+ EditorUtils.getDiagramCommandStack().execute(command);
if(historyEventType == OperationHistoryEvent.OPERATION_NOT_OK) {
fail("Command execution failed ()");
}
// Test undo
historyEventType = OperationHistoryEvent.DONE;
- EditorUtils.getCommandStack().undo();
+ EditorUtils.getDiagramCommandStack().undo();
if(historyEventType == OperationHistoryEvent.OPERATION_NOT_OK) {
fail("Command undo failed ()");
}
// Test redo
historyEventType = OperationHistoryEvent.DONE;
- EditorUtils.getCommandStack().redo();
+ EditorUtils.getDiagramCommandStack().redo();
if(historyEventType == OperationHistoryEvent.OPERATION_NOT_OK) {
fail("Command redo failed ()");
}
// Remove listener.
history.removeOperationHistoryListener(historyChange);
}
-}
+}
\ No newline at end of file |