Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/infra/xtext/org.eclipse.papyrus.widgets.xtext/src/org/eclipse/papyrus/widgets/xtext/creation/XtextValueFactory.java')
-rw-r--r--plugins/infra/xtext/org.eclipse.papyrus.widgets.xtext/src/org/eclipse/papyrus/widgets/xtext/creation/XtextValueFactory.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/infra/xtext/org.eclipse.papyrus.widgets.xtext/src/org/eclipse/papyrus/widgets/xtext/creation/XtextValueFactory.java b/plugins/infra/xtext/org.eclipse.papyrus.widgets.xtext/src/org/eclipse/papyrus/widgets/xtext/creation/XtextValueFactory.java
index 14aa0d06952..2dbd5000d71 100644
--- a/plugins/infra/xtext/org.eclipse.papyrus.widgets.xtext/src/org/eclipse/papyrus/widgets/xtext/creation/XtextValueFactory.java
+++ b/plugins/infra/xtext/org.eclipse.papyrus.widgets.xtext/src/org/eclipse/papyrus/widgets/xtext/creation/XtextValueFactory.java
@@ -1,6 +1,6 @@
/*****************************************************************************
* Copyright (c) 2010 CEA LIST.
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -57,13 +57,14 @@ public class XtextValueFactory implements ReferenceValueFactory {
return true; //Unsupported yet (We need a Write Transaction)
}
- public void edit(Control widget, Object object) {
+ public Object edit(Control widget, Object object) {
if(object instanceof EObject) {
XtextEditorDialog dialog = new XtextEditorDialog(widget.getShell(), adapter, (EObject)object);
dialog.open();
} else {
Activator.log.warn("The XtextValueFactory can only edit EObjects"); //$NON-NLS-1$
}
+ return object;
}
public boolean canCreateObject() {

Back to the top