-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
IPackageProvider - and UddlPackageProvider
This provides the same packages as the AbstractValidator for the same project - but it's public.
- Loading branch information
1 parent
1e1d1ba
commit 4b9a225
Showing
3 changed files
with
49 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
com.epistimis.uddl/src/com/epistimis/uddl/scoping/IPackageProvider.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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<EPackage> getEPackages() ; | ||
|
||
} |
24 changes: 24 additions & 0 deletions
24
com.epistimis.uddl/src/com/epistimis/uddl/scoping/UddlPackageProvider.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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<EPackage> getEPackages() { | ||
List<EPackage> result = new ArrayList<EPackage>(); | ||
result.add(com.epistimis.uddl.uddl.UddlPackage.eINSTANCE); | ||
return result; | ||
} | ||
|
||
} | ||
|