summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjkohnlein2009-02-12 05:22:33 (EST)
committerjkohnlein2009-02-12 05:22:33 (EST)
commitc5790a6c289b20d75f6468802b7dc6f8c8a6744b (patch)
tree9f4bea22f68ae0ddc7a4169331748de1ea3317c3
parent6c3ce5bfeb98c7ebdaac6991e97636f305be58bf (diff)
downloadorg.eclipse.xpand-c5790a6c289b20d75f6468802b7dc6f8c8a6744b.zip
org.eclipse.xpand-c5790a6c289b20d75f6468802b7dc6f8c8a6744b.tar.gz
org.eclipse.xpand-c5790a6c289b20d75f6468802b7dc6f8c8a6744b.tar.bz2
Always add ecore package to EmfMetamodelContributions, as it cannot be found on the classpath and is a prerequisite for all emf metamodels.
-rw-r--r--plugins/org.eclipse.xtend.typesystem.emf.ui/src/org/eclipse/xtend/typesystem/emf/ui/ProjectAnalyzer.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/org.eclipse.xtend.typesystem.emf.ui/src/org/eclipse/xtend/typesystem/emf/ui/ProjectAnalyzer.java b/plugins/org.eclipse.xtend.typesystem.emf.ui/src/org/eclipse/xtend/typesystem/emf/ui/ProjectAnalyzer.java
index 4f978f4..97735d8 100644
--- a/plugins/org.eclipse.xtend.typesystem.emf.ui/src/org/eclipse/xtend/typesystem/emf/ui/ProjectAnalyzer.java
+++ b/plugins/org.eclipse.xtend.typesystem.emf.ui/src/org/eclipse/xtend/typesystem/emf/ui/ProjectAnalyzer.java
@@ -82,6 +82,8 @@ final class ProjectAnalyzer extends Job {
mapping = new HashMap<IStorage, Resource>();
packages = new HashMap<String, EPackage>();
loadMetamodelsForProject(project, rs, monitor);
+ // always add ecore
+ packages.put(EcorePackage.eNS_URI, EcorePackage.eINSTANCE);
// done. now trigger build for the project.
// only do this if it is an oaw project