diff options
author | Nicolas FAUVERGUE | 2018-07-11 07:55:44 +0000 |
---|---|---|
committer | Nicolas FAUVERGUE | 2018-07-27 07:48:05 +0000 |
commit | 60df4f731f808c4ea5eeb2ee20431d7086cbf184 (patch) | |
tree | c40c7dab4653b4095a7995ea6876b6bd13fb2f6c | |
parent | 72ecc9b3b9e1b682901b35d03f4bacc71a57097c (diff) | |
download | org.eclipse.papyrus-60df4f731f808c4ea5eeb2ee20431d7086cbf184.tar.gz org.eclipse.papyrus-60df4f731f808c4ea5eeb2ee20431d7086cbf184.tar.xz org.eclipse.papyrus-60df4f731f808c4ea5eeb2ee20431d7086cbf184.zip |
Bug 527183: [PropertyView] The new property
'directCreationWithTreeViewer' in 'AbstractMultipleValueEditor' should
be able to be modified directly in the ModelElement
Change-Id: If3f6a8ff90107625caaac482c55d0699bcb2878e
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 | 25 |
1 files changed, 25 insertions, 0 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 465e55d559d..b23736f9457 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 @@ -8,6 +8,7 @@ * * Contributors: * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation + * Nicolas FAUVERGUE (CEA LIST) nicolas.fauvergue@cea.fr - Bug 527183 *****************************************************************************/ package org.eclipse.papyrus.infra.properties.ui.widgets; @@ -59,6 +60,30 @@ public class MultiString extends AbstractPropertyEditor { return new MultipleStringEditor(parent, style); } + /** + * Set the direct creation on the TreeViewer. + * + * @param directCreationWithTreeViewer + * + * @since 3.3 + */ + public void setDirectCreationWithTreeViewer(final boolean directCreationWithTreeViewer) { + if (null != editor) { + editor.setDirectCreationWithTreeViewer(directCreationWithTreeViewer); + } + } + + /** + * Returns the boolean for the direct creation on TreeViewer. + * + * @return the directCreation value. + * + * @since 3.3 + */ + public boolean getDirectCreationWithTreeViewer() { + return null != editor ? editor.isDirectCreationWithTreeViewer() : false; + } + @Override protected void doBinding() { editor.setOrdered(input.isOrdered(propertyPath)); |