Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSopot Cela2012-09-02 16:14:24 -0400
committerSopot Cela2012-09-02 16:14:24 -0400
commit41393ab0af441dea12e2522d1ae36924e0dd2d65 (patch)
tree1ef7f2d9f36cf6446f5cfd4b7515765be813e404
parent58d5ddab3db883c3bb58824063612299c7b9666c (diff)
downloadorg.eclipse.e4.tools-41393ab0af441dea12e2522d1ae36924e0dd2d65.tar.gz
org.eclipse.e4.tools-41393ab0af441dea12e2522d1ae36924e0dd2d65.tar.xz
org.eclipse.e4.tools-41393ab0af441dea12e2522d1ae36924e0dd2d65.zip
bug 384584: [Tooling] No auto-id for model elements in fragments
https://bugs.eclipse.org/bugs/show_bug.cgi?id=384584
-rw-r--r--bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/component/StringModelFragment.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/component/StringModelFragment.java b/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/component/StringModelFragment.java
index fe7bac2d..7215a536 100644
--- a/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/component/StringModelFragment.java
+++ b/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/component/StringModelFragment.java
@@ -300,7 +300,7 @@ public class StringModelFragment extends AbstractComponentEditor {
public void widgetSelected(SelectionEvent e) {
EClass eClass = ((FeatureClass) ((IStructuredSelection) childrenDropDown.getSelection()).getFirstElement()).eClass;
EObject eObject = EcoreUtil.create(eClass);
-
+ setElementId(eObject);
Command cmd = AddCommand.create(getEditingDomain(), getMaster().getValue(), FragmentPackageImpl.Literals.MODEL_FRAGMENT__ELEMENTS, eObject);
if (cmd.canExecute()) {

Back to the top