Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormvelten2012-09-19 09:21:04 +0000
committermvelten2012-09-19 09:21:04 +0000
commit63e7a0997438ae7ff604ec0295790eb543551874 (patch)
tree8bf1ab1d271157acb131c507be23f37a920288c2 /plugins/infra
parent3f7a7c4496f43f2a0bf3c88e4a256461b8ce022f (diff)
downloadorg.eclipse.papyrus-63e7a0997438ae7ff604ec0295790eb543551874.tar.gz
org.eclipse.papyrus-63e7a0997438ae7ff604ec0295790eb543551874.tar.xz
org.eclipse.papyrus-63e7a0997438ae7ff604ec0295790eb543551874.zip
NEW - bug 389869: [Tables] when deleting a table the TableInstance is not removed
https://bugs.eclipse.org/bugs/show_bug.cgi?id=389869
Diffstat (limited to 'plugins/infra')
-rw-r--r--plugins/infra/table/org.eclipse.papyrus.infra.table.modelexplorer/src/org/eclipse/papyrus/infra/table/modelexplorer/handlers/DeleteTableHandler.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/infra/table/org.eclipse.papyrus.infra.table.modelexplorer/src/org/eclipse/papyrus/infra/table/modelexplorer/handlers/DeleteTableHandler.java b/plugins/infra/table/org.eclipse.papyrus.infra.table.modelexplorer/src/org/eclipse/papyrus/infra/table/modelexplorer/handlers/DeleteTableHandler.java
index f69028da183..5541572fbd5 100644
--- a/plugins/infra/table/org.eclipse.papyrus.infra.table.modelexplorer/src/org/eclipse/papyrus/infra/table/modelexplorer/handlers/DeleteTableHandler.java
+++ b/plugins/infra/table/org.eclipse.papyrus.infra.table.modelexplorer/src/org/eclipse/papyrus/infra/table/modelexplorer/handlers/DeleteTableHandler.java
@@ -63,6 +63,7 @@ public class DeleteTableHandler extends AbstractTableModelExplorerHandler {
};
// the destroy element command is a good way to destroy the cross reference
command.append(sashRemoveComd);
+ command.append(new GMFtoEMFCommandWrapper(new DestroyElementPapyrusCommand(new DestroyElementRequest(table.getTable(), false))));
command.append(new GMFtoEMFCommandWrapper(new DestroyElementPapyrusCommand(new DestroyElementRequest(table, false))));
}
return command.isEmpty() ? UnexecutableCommand.INSTANCE : command;

Back to the top