aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormclay2009-04-20 13:17:34 (EDT)
committersefftinge2009-04-20 13:17:34 (EDT)
commitfa4be2798894adf7d630112c5783fc8df41c4a18 (patch)
treea2323c039b722eaf24bb12738f8e8d7db26a6232
parent4187be722d9a8fdedf06e903e2c22028acbe27da (diff)
downloadorg.eclipse.xtext-fa4be2798894adf7d630112c5783fc8df41c4a18.zip
org.eclipse.xtext-fa4be2798894adf7d630112c5783fc8df41c4a18.tar.gz
org.eclipse.xtext-fa4be2798894adf7d630112c5783fc8df41c4a18.tar.bz2
filter EPackage type values from EPackage.Registry
-rw-r--r--examples/org.eclipse.xtext.example.ecoredsl/src/org/eclipse/xtext/example/linker/EcoreDslScopeProvider.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/org.eclipse.xtext.example.ecoredsl/src/org/eclipse/xtext/example/linker/EcoreDslScopeProvider.java b/examples/org.eclipse.xtext.example.ecoredsl/src/org/eclipse/xtext/example/linker/EcoreDslScopeProvider.java
index 7a9b0c0..dbd45da 100644
--- a/examples/org.eclipse.xtext.example.ecoredsl/src/org/eclipse/xtext/example/linker/EcoreDslScopeProvider.java
+++ b/examples/org.eclipse.xtext.example.ecoredsl/src/org/eclipse/xtext/example/linker/EcoreDslScopeProvider.java
@@ -73,7 +73,7 @@ public class EcoreDslScopeProvider extends DefaultScopeProvider {
private IScope createEPackageScope(final EcoreDsl ecoreDsl) {
IScope current = new SimpleScope(IScope.NULLSCOPE, Iterables.transform(
- EPackage.Registry.INSTANCE.values(),
+ Iterables.filter(EPackage.Registry.INSTANCE.values(), EPackage.class),
new Function<Object, IScopedElement>() {
public IScopedElement apply(Object param) {
return ScopedElement.create(valueConverterService.toString(((EPackage) param)