Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas FAUVERGUE2016-06-23 14:55:54 +0000
committerGerrit Code Review @ Eclipse.org2016-07-07 15:18:58 +0000
commita0fcd7a06af5e6ad5e824cc5ebbc50de955c279e (patch)
tree37e9fbb79f4c9c83105111717a6fcd00b27b269e /plugins/uml/nattable
parent93e047cee43e956fe5431bed20258ffc53534e49 (diff)
downloadorg.eclipse.papyrus-a0fcd7a06af5e6ad5e824cc5ebbc50de955c279e.tar.gz
org.eclipse.papyrus-a0fcd7a06af5e6ad5e824cc5ebbc50de955c279e.tar.xz
org.eclipse.papyrus-a0fcd7a06af5e6ad5e824cc5ebbc50de955c279e.zip
Bug 492086: [Table] Destroy column after undo does nothing
https://bugs.eclipse.org/bugs/show_bug.cgi?id=492086 - The remove command wrapper is always used by the destroy axis command. - Modify the Stereotype property destroy axis management - Add the JUnit tests Change-Id: I64403ead51ce0663b266f079a9f146fc92155ab7 Signed-off-by: Nicolas FAUVERGUE <nicolas.fauvergue@all4tec.net>
Diffstat (limited to 'plugins/uml/nattable')
-rw-r--r--plugins/uml/nattable/org.eclipse.papyrus.uml.nattable/src/org/eclipse/papyrus/uml/nattable/manager/axis/UMLStereotypePropertyAxisManager.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable/src/org/eclipse/papyrus/uml/nattable/manager/axis/UMLStereotypePropertyAxisManager.java b/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable/src/org/eclipse/papyrus/uml/nattable/manager/axis/UMLStereotypePropertyAxisManager.java
index 914e6e7715c..3cb9b953fc8 100644
--- a/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable/src/org/eclipse/papyrus/uml/nattable/manager/axis/UMLStereotypePropertyAxisManager.java
+++ b/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable/src/org/eclipse/papyrus/uml/nattable/manager/axis/UMLStereotypePropertyAxisManager.java
@@ -256,6 +256,10 @@ public class UMLStereotypePropertyAxisManager extends UMLFeatureAxisManager impl
for (final Object current : umlProperties) {
if (current instanceof Property && ((Property) current).eContainer() instanceof Stereotype) {
propIdToDestroy.add(Constants.PROPERTY_OF_STEREOTYPE_PREFIX + ((NamedElement) current).getQualifiedName());
+ }else if(current instanceof String){
+ propIdToDestroy.add((String)current);
+ }else if(current instanceof IAxis){
+ propIdToDestroy.add(((IAxis) current).getElement().toString());
}
}

Back to the top