diff options
author | Pauline DEVILLE | 2021-07-06 14:07:25 +0000 |
---|---|---|
committer | Pauline Deville | 2021-07-06 15:21:11 +0000 |
commit | 7aed6d6923ee426b474f1d48bcb01ad3862a1bf5 (patch) | |
tree | e3a57a93412076d14c8515049d97627eddba89f7 | |
parent | cf4abd7368ca9a4a1d0ac15ffe128af33e45bfd2 (diff) | |
download | org.eclipse.papyrus-7aed6d6923ee426b474f1d48bcb01ad3862a1bf5.tar.gz org.eclipse.papyrus-7aed6d6923ee426b474f1d48bcb01ad3862a1bf5.tar.xz org.eclipse.papyrus-7aed6d6923ee426b474f1d48bcb01ad3862a1bf5.zip |
Bug 574687 - [Properties] The content of a widget is not refresh in some
cases
Change-Id: I177ba4afd8d1854fafaf972026e8a4426ca468fe
Signed-off-by: Pauline DEVILLE <pauline.deville@cea.fr>
-rw-r--r-- | plugins/infra/properties/org.eclipse.papyrus.infra.properties.ui/src/org/eclipse/papyrus/infra/properties/ui/widgets/AbstractPropertyEditor.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/plugins/infra/properties/org.eclipse.papyrus.infra.properties.ui/src/org/eclipse/papyrus/infra/properties/ui/widgets/AbstractPropertyEditor.java b/plugins/infra/properties/org.eclipse.papyrus.infra.properties.ui/src/org/eclipse/papyrus/infra/properties/ui/widgets/AbstractPropertyEditor.java index c891fe798e8..32bfcce3696 100644 --- a/plugins/infra/properties/org.eclipse.papyrus.infra.properties.ui/src/org/eclipse/papyrus/infra/properties/ui/widgets/AbstractPropertyEditor.java +++ b/plugins/infra/properties/org.eclipse.papyrus.infra.properties.ui/src/org/eclipse/papyrus/infra/properties/ui/widgets/AbstractPropertyEditor.java @@ -1,5 +1,5 @@ /***************************************************************************** - * Copyright (c) 2010, 2016-2017,2020 CEA LIST, Christian W. Damus, Esterel Technologies SAS and others. + * Copyright (c) 2010, 2016-2017,2020, 2021 CEA LIST, Christian W. Damus, Esterel Technologies SAS and others. * * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License 2.0 @@ -20,6 +20,7 @@ * Nicolas FAUVERGUE (CEA LIST) nicolas.fauvergue@cea.fr - Bug 515650 * Fanch BONNABESSE (ALL4TEC) fanch.bonnabesse@all4tec.net - Bug 522124 * Patrick Tessier (CEA LIST) -bug 568329 + * Pauline DEVILLE (CEA LIST) pauline.deville@cea.fr - Bug 574687 * *****************************************************************************/ package org.eclipse.papyrus.infra.properties.ui.widgets; @@ -391,9 +392,11 @@ public abstract class AbstractPropertyEditor implements IChangeListener, Customi // Only do this after attaching our listener so that it will be ahead of // any ModelElements created for properties checkInput(); - manageObservableListeners(); } + if (valueEditor != null && !valueEditor.isDisposed()) { + checkInput(); + } } protected void unhookDataSourceListener(DataSource oldInput) { @@ -739,6 +742,7 @@ public abstract class AbstractPropertyEditor implements IChangeListener, Customi public void run() { isEditable = input.isEditable(propertyPath); applyReadOnly(getReadOnly()); + AbstractPropertyEditor.this.setInput(input); } }); } |