Commit 1a80a17f authored by Philip Makedonski's avatar Philip Makedonski
Browse files

+ handle special case of Enumeration use where import is not required

parent bd5dc2f6
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -10,9 +10,11 @@ import org.eclipse.emf.ecore.EReference;
import org.eclipse.emf.ecore.EStructuralFeature.Setting;
import org.eclipse.emf.ecore.util.EcoreUtil;
import org.eclipse.emf.ecore.util.InternalEList;
import org.eclipse.xtend.typesystem.emf.EcoreUtil2;

import com.google.common.collect.Lists;

import de.ugoe.cs.swe.tTCN3.Enumeration;
public class TTCN3ReferenceHelper {

	/**
@@ -131,6 +133,9 @@ public class TTCN3ReferenceHelper {
					} else {
						EObject refElement = (EObject) value;
						if(targets.contains(refElement)) {
							if (refElement instanceof Enumeration) {
								return false;
							}
							return true;
						}
					}