Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian W. Damus2016-05-18 00:03:06 +0000
committerGerrit Code Review @ Eclipse.org2016-05-18 16:58:55 +0000
commit65899f3420d471eb0780043eafeb206b58dcec58 (patch)
treebbeac1746a112f193875878ad14e84286e9514b6 /plugins/uml
parentf1933675f0e471a64b53943d683d034cc5daa7c2 (diff)
downloadorg.eclipse.papyrus-65899f3420d471eb0780043eafeb206b58dcec58.tar.gz
org.eclipse.papyrus-65899f3420d471eb0780043eafeb206b58dcec58.tar.xz
org.eclipse.papyrus-65899f3420d471eb0780043eafeb206b58dcec58.zip
Bug 493858: [Properties] NattablePropertyEditor doesn't rebuild properly when data source changes
https://bugs.eclipse.org/bugs/show_bug.cgi?id=493858 Ensure that the table widget, its adjuncts, and the overall layout are fully re-created when the data-source changes, to match what is created initially from a new data-source. Change-Id: I710cd8a09805adc05c5ea3d3efab0855a7cd7c07
Diffstat (limited to 'plugins/uml')
-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 5ac553d7bf4..1e3f1d645fa 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 CEA LIST.
+ * Copyright (c) 2015, 2016 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 v1.0
@@ -8,6 +8,7 @@
*
* Contributors:
* Nicolas FAUVERGUE (ALL4TEC) nicolas.fauvergue@all4tec.net - Initial API and implementation
+ * Christian W. Damus - bug 493858
*
*****************************************************************************/
package org.eclipse.papyrus.uml.properties.widgets;
@@ -1151,8 +1152,8 @@ public class NattablePropertyEditor extends AbstractPropertyEditor {
feature = emfModelElement.getFeature(getLocalPropertyPath());
}
- // Recreate the table widget
- createTableWidget(sourceElement, feature, contexts);
+ // Recreate the table widget, its adjuncts, and their layout
+ createWidgets(sourceElement, feature, contexts);
}
}
};

Back to the top