summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSven Efftinge2011-08-19 04:23:43 -0400
committerSven Efftinge2011-08-19 04:24:05 -0400
commit101f8474968f0971b1d198ab8bf71148b86792ff (patch)
tree5d5565d18e8062cb404910758ce5685791ea399d
parent2f1321e716d3fd8622a6144b7e24abb1561907fa (diff)
downloadorg.eclipse.mwe-101f8474968f0971b1d198ab8bf71148b86792ff.zip
org.eclipse.mwe-101f8474968f0971b1d198ab8bf71148b86792ff.tar.gz
org.eclipse.mwe-101f8474968f0971b1d198ab8bf71148b86792ff.tar.xz
removed TypeNotFoundException
-rw-r--r--plugins/org.eclipse.emf.mwe2.language/src/org/eclipse/emf/mwe2/language/scoping/FactorySupport.java7
1 files changed, 1 insertions, 6 deletions
diff --git a/plugins/org.eclipse.emf.mwe2.language/src/org/eclipse/emf/mwe2/language/scoping/FactorySupport.java b/plugins/org.eclipse.emf.mwe2.language/src/org/eclipse/emf/mwe2/language/scoping/FactorySupport.java
index 442eddb..f11385c 100644
--- a/plugins/org.eclipse.emf.mwe2.language/src/org/eclipse/emf/mwe2/language/scoping/FactorySupport.java
+++ b/plugins/org.eclipse.emf.mwe2.language/src/org/eclipse/emf/mwe2/language/scoping/FactorySupport.java
@@ -17,7 +17,6 @@ import org.eclipse.xtext.common.types.JvmParameterizedTypeReference;
import org.eclipse.xtext.common.types.JvmType;
import org.eclipse.xtext.common.types.JvmTypeReference;
import org.eclipse.xtext.common.types.access.IJvmTypeProvider;
-import org.eclipse.xtext.common.types.access.TypeNotFoundException;
import org.eclipse.xtext.common.types.xtext.AbstractTypeScopeProvider;
import com.google.inject.Inject;
@@ -65,10 +64,6 @@ public class FactorySupport {
ResourceSet resourceSet = ctx.eResource().getResourceSet();
String factoryName = IFactory.class.getName();
IJvmTypeProvider typeProvider = typeScopeProvider.getTypeProvider(resourceSet);
- try {
- return typeProvider.findTypeByName(factoryName);
- } catch(TypeNotFoundException tnfe) {
- return null;
- }
+ return typeProvider.findTypeByName(factoryName);
}
}