private void populateWithDefinedFeatures(Environment environment) { foreach (CoreFeature feature in constraintsHolder.getDefinedFeatures()) { ModelElementNameGenerator nameGenerator = new CoreModelElementNameGeneratorImpl(); addElementToEnvironment(nameGenerator.generateName(feature), feature, environment); } }
private void populateWithAssociationClasses(Environment environment) { List <object> associationClasses = this.getAllAssociationClasses(); foreach (CoreAssociationClass associationClass in associationClasses) { ModelElementNameGenerator nameGenerator = new CoreModelElementNameGeneratorImpl(); addElementToEnvironment(nameGenerator.generateName(associationClass), associationClass, environment); } }
private void populateWithFeatures(Environment environment) { foreach (CoreModelElement element in getClassifierFeatures()) { if (elementShouldBeAddedToEnvironment(element)) { ModelElementNameGenerator nameGenerator = new CoreModelElementNameGeneratorImpl(); addElementToEnvironment(nameGenerator.generateName(element), element, environment); } } }