diff options
author | Nicolas FAUVERGUE | 2018-07-27 09:37:46 +0000 |
---|---|---|
committer | Quentin Le Menez | 2018-11-21 15:43:12 +0000 |
commit | 2c6c607274f82686115749533b8e5f133d6b0f2a (patch) | |
tree | 65384d13dc774488e2e5c78a9df24df4c16106e9 | |
parent | 42f48160470ae3d0057d99db271dfcb470cd7dd5 (diff) | |
download | org.eclipse.papyrus-2c6c607274f82686115749533b8e5f133d6b0f2a.tar.gz org.eclipse.papyrus-2c6c607274f82686115749533b8e5f133d6b0f2a.tar.xz org.eclipse.papyrus-2c6c607274f82686115749533b8e5f133d6b0f2a.zip |
Bug 512094: [Profiles][UMLPropertiesView] Issues when editing stereotype
properties
Remove the set of the Factory for the MultiString because it's not
needed and failed for creation/edition.
Change-Id: Iaf439ed599b5313b9aa5602f0b5862fa694c10b9
Signed-off-by: Nicolas FAUVERGUE <nicolas.fauvergue@cea.fr>
-rw-r--r-- | plugins/infra/properties/org.eclipse.papyrus.infra.properties.ui/src/org/eclipse/papyrus/infra/properties/ui/widgets/MultiString.java | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/plugins/infra/properties/org.eclipse.papyrus.infra.properties.ui/src/org/eclipse/papyrus/infra/properties/ui/widgets/MultiString.java b/plugins/infra/properties/org.eclipse.papyrus.infra.properties.ui/src/org/eclipse/papyrus/infra/properties/ui/widgets/MultiString.java index 8cd31db78b3..8d7c4945439 100644 --- a/plugins/infra/properties/org.eclipse.papyrus.infra.properties.ui/src/org/eclipse/papyrus/infra/properties/ui/widgets/MultiString.java +++ b/plugins/infra/properties/org.eclipse.papyrus.infra.properties.ui/src/org/eclipse/papyrus/infra/properties/ui/widgets/MultiString.java @@ -10,16 +10,13 @@ * * Contributors: * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation - * Nicolas FAUVERGUE (CEA LIST) nicolas.fauvergue@cea.fr - Bug 527183 + * Nicolas FAUVERGUE (CEA LIST) nicolas.fauvergue@cea.fr - Bug 527183, 512094 *****************************************************************************/ package org.eclipse.papyrus.infra.properties.ui.widgets; -import org.eclipse.jface.viewers.ILabelProvider; import org.eclipse.jface.viewers.TreeViewer; -import org.eclipse.papyrus.infra.widgets.creation.ReferenceValueFactory; import org.eclipse.papyrus.infra.widgets.editors.ICommitListener; import org.eclipse.papyrus.infra.widgets.editors.MultipleStringEditor; -import org.eclipse.papyrus.infra.widgets.providers.IStaticContentProvider; import org.eclipse.swt.widgets.Composite; /** @@ -90,20 +87,7 @@ public class MultiString extends AbstractPropertyEditor { protected void doBinding() { editor.setOrdered(input.isOrdered(propertyPath)); editor.setUnique(input.isUnique(propertyPath)); - editor.setDirectCreation(input.getDirectCreation(propertyPath)); - ReferenceValueFactory factory = input.getValueFactory(propertyPath); - if (factory != null) { - editor.setFactory(input.getValueFactory(propertyPath)); - } - - IStaticContentProvider provider = input.getContentProvider(propertyPath); - if (provider != null) { - editor.setContentProvider(provider); - } - ILabelProvider labelProvider = input.getLabelProvider(propertyPath); - if (labelProvider != null) { - editor.setLabelProvider(labelProvider); - } + // It's not needed to set the factory because the editor initialize automatically the StringEditionFactory as factory if (getInputObservableList() instanceof ICommitListener) { editor.addCommitListener((ICommitListener) getInputObservableList()); |