public void setOptions(java.util.Map<?, ?> options) { if (options != null) { this.options = new java.util.LinkedHashMap<Object, Object>(); this.options.putAll(options); } employeeWorksInReferenceResolver.setOptions(options); employeeWorksWithReferenceResolver.setOptions(options); }
public void resolveFuzzy( String identifier, org.eclipse.emf.ecore.EObject container, org.eclipse.emf.ecore.EReference reference, int position, org.emftext.language.office.resource.office.IOfficeReferenceResolveResult< org.eclipse.emf.ecore.EObject> result) { if (container == null) { return; } if (org.emftext.language.office.OfficePackage.eINSTANCE.getEmployee().isInstance(container)) { OfficeFuzzyResolveResult<org.emftext.language.office.Office> frr = new OfficeFuzzyResolveResult<org.emftext.language.office.Office>(result); String referenceName = reference.getName(); org.eclipse.emf.ecore.EStructuralFeature feature = container.eClass().getEStructuralFeature(referenceName); if (feature != null && feature instanceof org.eclipse.emf.ecore.EReference && referenceName != null && referenceName.equals("worksIn")) { employeeWorksInReferenceResolver.resolve( identifier, (org.emftext.language.office.Employee) container, (org.eclipse.emf.ecore.EReference) feature, position, true, frr); } } if (org.emftext.language.office.OfficePackage.eINSTANCE.getEmployee().isInstance(container)) { OfficeFuzzyResolveResult<org.emftext.language.office.Employee> frr = new OfficeFuzzyResolveResult<org.emftext.language.office.Employee>(result); String referenceName = reference.getName(); org.eclipse.emf.ecore.EStructuralFeature feature = container.eClass().getEStructuralFeature(referenceName); if (feature != null && feature instanceof org.eclipse.emf.ecore.EReference && referenceName != null && referenceName.equals("worksWith")) { employeeWorksWithReferenceResolver.resolve( identifier, (org.emftext.language.office.Employee) container, (org.eclipse.emf.ecore.EReference) feature, position, true, frr); } } }