summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpelder2006-11-29 13:20:04 (EST)
committerpelder2006-11-29 13:20:04 (EST)
commitb11d07cf049a38241713f55c352e72c99ba2e97a (patch)
tree4901c058ccaeb0f40279849dd7eb34969df78cfd
parent0ff861880316a067249750eba5530b799194e002 (diff)
downloadorg.eclipse.jet-b11d07cf049a38241713f55c352e72c99ba2e97a.zip
org.eclipse.jet-b11d07cf049a38241713f55c352e72c99ba2e97a.tar.gz
org.eclipse.jet-b11d07cf049a38241713f55c352e72c99ba2e97a.tar.bz2
[166121] Default missing type parameter to loadFromString to "xml".
-rw-r--r--plugins/org.eclipse.jet/src/org/eclipse/jet/internal/runtime/model/EMFXMLModelLoader.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/org.eclipse.jet/src/org/eclipse/jet/internal/runtime/model/EMFXMLModelLoader.java b/plugins/org.eclipse.jet/src/org/eclipse/jet/internal/runtime/model/EMFXMLModelLoader.java
index 291f52f..bc75db4 100644
--- a/plugins/org.eclipse.jet/src/org/eclipse/jet/internal/runtime/model/EMFXMLModelLoader.java
+++ b/plugins/org.eclipse.jet/src/org/eclipse/jet/internal/runtime/model/EMFXMLModelLoader.java
@@ -137,6 +137,9 @@ public class EMFXMLModelLoader implements IModelLoader
ResourceSet resourceSet = getResourceSet();
+ if(kind == null) {
+ kind = XML_TYPE;
+ }
final Resource.Factory factory = (Factory)resourceSet.getResourceFactoryRegistry().getExtensionToFactoryMap().get(kind);
Resource emfResource = factory.createResource(emfURI);