summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpelder2006-11-28 16:39:17 (EST)
committerpelder2006-11-28 16:39:17 (EST)
commit9a53dca086224fa2fbf82cd5a564b8505b5e4198 (patch)
tree003be4fea0399ba215a44a33c8ec586a435a253a
parentde549146ff9d4fc36410f6f8baf31b773e4375a2 (diff)
downloadorg.eclipse.jet-9a53dca086224fa2fbf82cd5a564b8505b5e4198.zip
org.eclipse.jet-9a53dca086224fa2fbf82cd5a564b8505b5e4198.tar.gz
org.eclipse.jet-9a53dca086224fa2fbf82cd5a564b8505b5e4198.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);