Commit f6b0e5b0 authored by reaboi's avatar reaboi
Browse files

3293 deleting a component having a test suite


Signed-off-by: default avatarreaboi <reaboi@fortiss.org>
parent ea1428e3
CopyAction.java cc58c9f52b8d0b8698a9905ffadff7c37976481b GREEN
CutAction.java 6e963d94aeea85676beb38489748002b6d13346a GREEN
DeleteAction.java 96fd45832167c555b407d7169fc7a3dd03a8fe8d GREEN
DeleteAction.java 6d6367f171a7692611846bf197c5743950f3d863 GREEN
PasteAction.java f834f26660a664f138c19d82ace7b17ecc18603f GREEN
RedoAction.java d91086533289a4175e7f5ee949b31a0edc86672a GREEN
RenameAction.java f469d30cab3f692e2e0112c8f89c622ee0fa8db6 GREEN
......
......@@ -268,17 +268,17 @@ public class DeleteAction extends EObjectActionBase<EObject> {
} else if(IConnectionCompositorService.getInstance().canDisconnect(target)) {
disconnectObjects.add(target);
}
}
if(!deleteObjects.isEmpty()) {
for(int index = 0; index < deleteObjects.size(); index++) {
IElementCompositorService.getInstance().decompose(deleteObjects.get(index));
}
if(!deleteObjects.isEmpty()) {
for(int index = 0; index < deleteObjects.size(); index++) {
IElementCompositorService.getInstance().decompose(deleteObjects.get(index));
}
}
if(!disconnectObjects.isEmpty()) {
for(int index = 0; index < disconnectObjects.size(); index++) {
IElementCompositorService.getInstance().decompose(disconnectObjects.get(index));
}
if(!disconnectObjects.isEmpty()) {
for(int index = 0; index < disconnectObjects.size(); index++) {
IConnectionCompositorService.getInstance().disconnect(disconnectObjects.get(index));
}
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment