Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAsma Smaoui2021-05-31 04:15:57 -0400
committerPatrick Tessier2021-10-28 09:50:57 -0400
commit4f2ca938abf46ea689b454493f6dd36e6f98fb01 (patch)
tree5cf1c94273bbd3d2f77bdf60b7206859fa370e02 /plugins
parentaa30e36bf029740d83549c0d2816d5cc4132d30a (diff)
downloadorg.eclipse.papyrus-4f2ca938abf46ea689b454493f6dd36e6f98fb01.tar.gz
org.eclipse.papyrus-4f2ca938abf46ea689b454493f6dd36e6f98fb01.tar.xz
org.eclipse.papyrus-4f2ca938abf46ea689b454493f6dd36e6f98fb01.zip
Bug 573840 - [Properties] empty line table displayed in the Properties
view is not linked to AF, KindId is null to be able to display an empty line table in the Properties view, we should not rely on the KindId property of the table. the table config is not always referenced in the AF. use the typeID instead Change-Id: Ie25f17fbea3b5787d3a9db2af1af7b6dc343fe4f Signed-off-by: Asma Smaoui <asma.smaoui@cea.fr>
Diffstat (limited to 'plugins')
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/src/org/eclipse/papyrus/uml/properties/widgets/NattablePropertyEditor.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/plugins/uml/properties/org.eclipse.papyrus.uml.properties/src/org/eclipse/papyrus/uml/properties/widgets/NattablePropertyEditor.java b/plugins/uml/properties/org.eclipse.papyrus.uml.properties/src/org/eclipse/papyrus/uml/properties/widgets/NattablePropertyEditor.java
index 12827e3d84a..4681a8a2652 100644
--- a/plugins/uml/properties/org.eclipse.papyrus.uml.properties/src/org/eclipse/papyrus/uml/properties/widgets/NattablePropertyEditor.java
+++ b/plugins/uml/properties/org.eclipse.papyrus.uml.properties/src/org/eclipse/papyrus/uml/properties/widgets/NattablePropertyEditor.java
@@ -1,5 +1,5 @@
/*****************************************************************************
- * Copyright (c) 2015, 2016, 2017 CEA LIST, Christian W. Damus, and others.
+ * Copyright (c) 2015, 2016, 2017, 2021 CEA LIST, Christian W. Damus, and others.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
@@ -12,7 +12,7 @@
* Nicolas FAUVERGUE (CEA LIST) nicolas.fauvergue@cea.fr - Initial API and implementation, Bug 502160, 494531
* Christian W. Damus - bugs 493858, 493853, 516310, 517313
* Vincent Lorenzo (CEA-LIST) vincent.lorenzo@cea.fr - bugs 494537, 504745
- *
+ * Asma SMAOUI (CEA LIST) - bug 573840
*****************************************************************************/
package org.eclipse.papyrus.uml.properties.widgets;
@@ -802,7 +802,8 @@ public class NattablePropertyEditor extends AbstractPropertyEditor {
}
table.setName(getLabel());
-
+ // for table used in property view, the kindId was null, because it is given by the AF. So we propose to use the type for kindId
+ table.setTableKindId(table.getTableConfiguration().getType());
AbstractAxisProvider rowProvider = tableConfiguration.getDefaultRowAxisProvider();
if (rowProvider == null) {
rowProvider = NattableaxisproviderFactory.eINSTANCE.createMasterObjectAxisProvider();

Back to the top