Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSopot Cela2012-11-28 18:53:13 +0000
committerSopot Cela2012-11-28 18:53:13 +0000
commitbfe12e15543a40f85e15ef596d09a89d30c59f4d (patch)
tree3936c8439c56891e2bd887ba1cf69d0209200e2f
parent6e78ec82de44f19115fa189f5ca154e9bc541c4c (diff)
downloadeclipse.platform.ui.tools-bfe12e15543a40f85e15ef596d09a89d30c59f4d.tar.gz
eclipse.platform.ui.tools-bfe12e15543a40f85e15ef596d09a89d30c59f4d.tar.xz
eclipse.platform.ui.tools-bfe12e15543a40f85e15ef596d09a89d30c59f4d.zip
Bug 395308 - Parameter ID of Command Parameter is not updated after
rename
-rw-r--r--bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/component/CommandParameterEditor.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/component/CommandParameterEditor.java b/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/component/CommandParameterEditor.java
index e7c1fc3a..cdb92773 100644
--- a/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/component/CommandParameterEditor.java
+++ b/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/component/CommandParameterEditor.java
@@ -21,6 +21,7 @@ import org.eclipse.e4.ui.model.application.commands.MCommandParameter;
import org.eclipse.e4.ui.model.application.commands.impl.CommandsPackageImpl;
import org.eclipse.e4.ui.model.application.impl.ApplicationPackageImpl;
import org.eclipse.emf.databinding.EMFDataBindingContext;
+import org.eclipse.emf.databinding.FeaturePath;
import org.eclipse.emf.databinding.edit.EMFEditProperties;
import org.eclipse.emf.databinding.edit.IEMFEditValueProperty;
import org.eclipse.emf.ecore.EObject;
@@ -49,6 +50,12 @@ public class CommandParameterEditor extends AbstractComponentEditor {
}
@Override
+ public FeaturePath[] getLabelProperties() {
+ // TODO Auto-generated method stub
+ return new FeaturePath[] { FeaturePath.fromList(CommandsPackageImpl.Literals.COMMAND_PARAMETER__NAME), FeaturePath.fromList(ApplicationPackageImpl.Literals.APPLICATION_ELEMENT__ELEMENT_ID) };
+ }
+
+ @Override
public Image getImage(Object element, Display display) {
return createImage(ResourceProvider.IMG_CommandParameter);
}

Back to the top