From 2a0553dfbd901b1dd3501e6a5fa8f98f83ae6295 Mon Sep 17 00:00:00 2001 From: Normen Hansen Date: Wed, 28 Jan 2015 00:08:58 +0100 Subject: [PATCH] - fix issue with OgreXML that caused a lot of other issues in the SDK --- .../src/com/jme3/gde/ogrexml/OgreSceneDataObject.java | 3 +-- .../src/com/jme3/gde/ogrexml/OgreXMLDataObject.java | 3 +-- .../src/com/jme3/gde/ogrexml/OgreXMLSkeletonDataObject.java | 4 ++-- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/sdk/jme3-ogrexml/src/com/jme3/gde/ogrexml/OgreSceneDataObject.java b/sdk/jme3-ogrexml/src/com/jme3/gde/ogrexml/OgreSceneDataObject.java index 254bf3cf7..a442fd07c 100644 --- a/sdk/jme3-ogrexml/src/com/jme3/gde/ogrexml/OgreSceneDataObject.java +++ b/sdk/jme3-ogrexml/src/com/jme3/gde/ogrexml/OgreSceneDataObject.java @@ -45,8 +45,7 @@ import org.openide.loaders.MultiFileLoader; @MIMEResolver.NamespaceRegistration( displayName = "OgreXML Scene", mimeType = "text/ogrescene+xml", - elementNS = {"scene"}, - acceptedExtension = { "scene", "xml" }, + elementName = "scene", checkedExtension = { "scene", "xml" } ) @DataObject.Registration(displayName = "OgreXML Scene", mimeType = "text/ogrescene+xml", iconBase = "com/jme3/gde/ogrexml/ogre-scene.png") diff --git a/sdk/jme3-ogrexml/src/com/jme3/gde/ogrexml/OgreXMLDataObject.java b/sdk/jme3-ogrexml/src/com/jme3/gde/ogrexml/OgreXMLDataObject.java index 4e44e7620..08285937f 100644 --- a/sdk/jme3-ogrexml/src/com/jme3/gde/ogrexml/OgreXMLDataObject.java +++ b/sdk/jme3-ogrexml/src/com/jme3/gde/ogrexml/OgreXMLDataObject.java @@ -54,8 +54,7 @@ import org.openide.util.Exceptions; @MIMEResolver.NamespaceRegistration( displayName = "OgreXML File", mimeType = "text/ogrexml+xml", - elementNS = {"mesh"}, - acceptedExtension = { "xml", "meshxml" }, + elementName = "mesh", checkedExtension = {"xml", "meshxml"} ) @DataObject.Registration(displayName = "OgreXML File", mimeType = "text/ogrexml+xml", iconBase = "com/jme3/gde/ogrexml/ogre-logo.png") diff --git a/sdk/jme3-ogrexml/src/com/jme3/gde/ogrexml/OgreXMLSkeletonDataObject.java b/sdk/jme3-ogrexml/src/com/jme3/gde/ogrexml/OgreXMLSkeletonDataObject.java index 24d66491d..a3e8c2aed 100644 --- a/sdk/jme3-ogrexml/src/com/jme3/gde/ogrexml/OgreXMLSkeletonDataObject.java +++ b/sdk/jme3-ogrexml/src/com/jme3/gde/ogrexml/OgreXMLSkeletonDataObject.java @@ -42,8 +42,8 @@ import org.openide.loaders.MultiFileLoader; @MIMEResolver.NamespaceRegistration( displayName = "OgreXML Skeleton", mimeType = "text/ogrexmlskeleton+xml", - elementNS = {"skeleton"}, - acceptedExtension = {"xml", "skeleton"} + elementName = "skeleton", + checkedExtension = {"xml", "skeleton"} ) @DataObject.Registration(displayName = "OgreXML Skeleton", mimeType = "text/ogrexmlskeleton+xml", iconBase = "com/jme3/gde/ogrexml/ogre-logo.png") public class OgreXMLSkeletonDataObject extends SpatialAssetDataObject {