fixed regression with last changes
diff --git a/plugins/org.eclipse.mylyn.docs.intent.client.compiler/src/org/eclipse/mylyn/docs/intent/client/compiler/ModelingUnitCompiler.java b/plugins/org.eclipse.mylyn.docs.intent.client.compiler/src/org/eclipse/mylyn/docs/intent/client/compiler/ModelingUnitCompiler.java
index 77445b3..f58c9a9 100644
--- a/plugins/org.eclipse.mylyn.docs.intent.client.compiler/src/org/eclipse/mylyn/docs/intent/client/compiler/ModelingUnitCompiler.java
+++ b/plugins/org.eclipse.mylyn.docs.intent.client.compiler/src/org/eclipse/mylyn/docs/intent/client/compiler/ModelingUnitCompiler.java
@@ -351,19 +351,19 @@
 	 */

 	protected void validateGeneratedElement() {

 		for (EObject generatedElement : informationHolder.getCurrentCreatedElements()) {

-			if (!(generatedElement instanceof EPackage)) { // EPackages are already validated

-				GeneratedElementValidator validator = new GeneratedElementValidator(

-						informationHolder.getInstanciationInstructionByCreatedElement(generatedElement),

-						generatedElement);

-				Diagnostic diagnostic;

-				try {

-					diagnostic = validator.validate();

+			// if (!(generatedElement instanceof EPackage)) { // EPackages are already validated

+			GeneratedElementValidator validator = new GeneratedElementValidator(

+					informationHolder.getInstanciationInstructionByCreatedElement(generatedElement),

+					generatedElement);

+			Diagnostic diagnostic;

+			try {

+				diagnostic = validator.validate();

 

-					informationHolder.registerDiagnosticAsCompilationStatusList(generatedElement, diagnostic);

-				} catch (CompilationException e) {

-					informationHolder.registerCompilationExceptionAsCompilationStatus(e);

-				}

+				informationHolder.registerDiagnosticAsCompilationStatusList(generatedElement, diagnostic);

+			} catch (CompilationException e) {

+				informationHolder.registerCompilationExceptionAsCompilationStatus(e);

 			}

+			// }

 		}

 	}

 

diff --git a/plugins/org.eclipse.mylyn.docs.intent.client.compiler/src/org/eclipse/mylyn/docs/intent/client/compiler/generator/modelgeneration/StructuralFeatureGenerator.java b/plugins/org.eclipse.mylyn.docs.intent.client.compiler/src/org/eclipse/mylyn/docs/intent/client/compiler/generator/modelgeneration/StructuralFeatureGenerator.java
index d7f57cd..2c596de 100644
--- a/plugins/org.eclipse.mylyn.docs.intent.client.compiler/src/org/eclipse/mylyn/docs/intent/client/compiler/generator/modelgeneration/StructuralFeatureGenerator.java
+++ b/plugins/org.eclipse.mylyn.docs.intent.client.compiler/src/org/eclipse/mylyn/docs/intent/client/compiler/generator/modelgeneration/StructuralFeatureGenerator.java
@@ -120,7 +120,7 @@
 

 			} else {

 				CompilationStatus status = CompilerFactory.eINSTANCE.createCompilationStatus();

-				status.setMessage("The feature " + affectation.getName() + " undefined for type "

+				status.setMessage("The feature " + affectation.getName() + " is undefined for type "

 						+ eClass.eClass());

 				status.setTarget(affectation);

 				status.setSeverity(CompilationStatusSeverity.ERROR);

diff --git a/plugins/org.eclipse.mylyn.docs.intent.client.compiler/src/org/eclipse/mylyn/docs/intent/client/compiler/generator/modellinking/ModelingUnitLinkResolver.java b/plugins/org.eclipse.mylyn.docs.intent.client.compiler/src/org/eclipse/mylyn/docs/intent/client/compiler/generator/modellinking/ModelingUnitLinkResolver.java
index bc5bfe5..e26e865 100644
--- a/plugins/org.eclipse.mylyn.docs.intent.client.compiler/src/org/eclipse/mylyn/docs/intent/client/compiler/generator/modellinking/ModelingUnitLinkResolver.java
+++ b/plugins/org.eclipse.mylyn.docs.intent.client.compiler/src/org/eclipse/mylyn/docs/intent/client/compiler/generator/modellinking/ModelingUnitLinkResolver.java
@@ -13,20 +13,17 @@
 import java.util.ArrayList;

 import java.util.List;

 

-import org.eclipse.emf.common.util.Diagnostic;

 import org.eclipse.emf.ecore.EClass;

 import org.eclipse.emf.ecore.EClassifier;

 import org.eclipse.emf.ecore.EObject;

 import org.eclipse.emf.ecore.EPackage;

 import org.eclipse.emf.ecore.EStructuralFeature;

 import org.eclipse.emf.ecore.impl.EPackageRegistryImpl;

-import org.eclipse.mylyn.docs.intent.client.compiler.errors.CompilationException;

 import org.eclipse.mylyn.docs.intent.client.compiler.errors.InvalidReferenceException;

 import org.eclipse.mylyn.docs.intent.client.compiler.errors.PackageNotFoundResolveException;

 import org.eclipse.mylyn.docs.intent.client.compiler.errors.PackageRegistrationException;

 import org.eclipse.mylyn.docs.intent.client.compiler.errors.ResolveException;

 import org.eclipse.mylyn.docs.intent.client.compiler.utils.IntentCompilerInformationHolder;

-import org.eclipse.mylyn.docs.intent.client.compiler.validator.GeneratedElementValidator;

 import org.eclipse.mylyn.docs.intent.core.genericunit.UnitInstruction;

 import org.eclipse.mylyn.docs.intent.core.modelingunit.ContributionInstruction;

 import org.eclipse.mylyn.docs.intent.core.modelingunit.InstanciationInstruction;

@@ -345,23 +342,26 @@
 					+ "\" cannot be registered (maybe because of an invalid connection to the repository)");

 		}

 

-		// We try to add the generated package to the packageRegistry

-		GeneratedElementValidator validator = new GeneratedElementValidator(

-				informationHolder.getInstanciationInstructionByCreatedElement(generatedPackage),

-				generatedPackage);

+		// FIXME define clear compilation steps : the EPackage links are not resolved yet so it cannot be

+		// validated

 

-		boolean hasErrors = false;

-		try {

-			Diagnostic diagnostic = validator.validate();

-			informationHolder.registerDiagnosticAsCompilationStatusList(generatedPackage, diagnostic);

-		} catch (CompilationException e) {

-			hasErrors = true;

-			informationHolder.registerCompilationExceptionAsCompilationStatus(e);

-		}

-		if (hasErrors) {

-			invalidPackageRegistry.put(generatedPackage.getNsURI(), generatedPackage);

-		} else {

-			packageRegistry.put(generatedPackage.getNsURI(), generatedPackage);

-		}

+		// // We try to add the generated package to the packageRegistry

+		// GeneratedElementValidator validator = new GeneratedElementValidator(

+		// informationHolder.getInstanciationInstructionByCreatedElement(generatedPackage),

+		// generatedPackage);

+		//

+		// boolean hasErrors = false;

+		// try {

+		// Diagnostic diagnostic = validator.validate();

+		// informationHolder.registerDiagnosticAsCompilationStatusList(generatedPackage, diagnostic);

+		// } catch (CompilationException e) {

+		// hasErrors = true;

+		// informationHolder.registerCompilationExceptionAsCompilationStatus(e);

+		// }

+		// if (hasErrors) {

+		// invalidPackageRegistry.put(generatedPackage.getNsURI(), generatedPackage);

+		// } else {

+		packageRegistry.put(generatedPackage.getNsURI(), generatedPackage);

+		// }

 	}

 }