diff --git a/com.epistimis.uddl/src/com/epistimis/uddl/UddlRuntimeModule.java b/com.epistimis.uddl/src/com/epistimis/uddl/UddlRuntimeModule.java index 2feef71..1980ece 100644 --- a/com.epistimis.uddl/src/com/epistimis/uddl/UddlRuntimeModule.java +++ b/com.epistimis.uddl/src/com/epistimis/uddl/UddlRuntimeModule.java @@ -18,6 +18,7 @@ import com.epistimis.uddl.extension.ConceptualObservableExt; import com.epistimis.uddl.extension.UddlElementExt; import com.epistimis.uddl.scoping.IndexUtilities; +import com.epistimis.uddl.scoping.UddlPackageProvider; //import com.epistimis.uddl.scoping.UddlGlobalScopeProvider; import com.epistimis.uddl.scoping.UddlResourceDescriptionStrategy; @@ -139,4 +140,10 @@ public Class bindCon return ConceptualEntityExt.class; } + // -------- Other providers -------------------------------- + public Class bindIPackageProvider() { + return UddlPackageProvider.class; + } + + } diff --git a/com.epistimis.uddl/src/com/epistimis/uddl/scoping/IPackageProvider.java b/com.epistimis.uddl/src/com/epistimis/uddl/scoping/IPackageProvider.java new file mode 100644 index 0000000..bd0db4d --- /dev/null +++ b/com.epistimis.uddl/src/com/epistimis/uddl/scoping/IPackageProvider.java @@ -0,0 +1,18 @@ +/** + * + */ +package com.epistimis.uddl.scoping; + +import java.util.List; + +import org.eclipse.emf.ecore.EPackage; + +/** + * Provides the same EPackage access that Validators do - except this is public instead of protected + */ +public interface IPackageProvider { + + + List getEPackages() ; + +} diff --git a/com.epistimis.uddl/src/com/epistimis/uddl/scoping/UddlPackageProvider.java b/com.epistimis.uddl/src/com/epistimis/uddl/scoping/UddlPackageProvider.java new file mode 100644 index 0000000..d1d3ecb --- /dev/null +++ b/com.epistimis.uddl/src/com/epistimis/uddl/scoping/UddlPackageProvider.java @@ -0,0 +1,24 @@ +/** + * + */ +package com.epistimis.uddl.scoping; + +import java.util.ArrayList; +import java.util.List; + +import org.eclipse.emf.ecore.EPackage; + +/** + * Provides the same EPackage access that Validators do - except this is public instead of protected + */ +public class UddlPackageProvider implements IPackageProvider { + + @Override + public List getEPackages() { + List result = new ArrayList(); + result.add(com.epistimis.uddl.uddl.UddlPackage.eINSTANCE); + return result; + } + +} +