aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas FAUVERGUE2018-07-11 03:55:44 -0400
committerNicolas FAUVERGUE2018-07-27 03:48:05 -0400
commit60df4f731f808c4ea5eeb2ee20431d7086cbf184 (patch)
treec40c7dab4653b4095a7995ea6876b6bd13fb2f6c
parent72ecc9b3b9e1b682901b35d03f4bacc71a57097c (diff)
downloadorg.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.java25
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));