[mapguide-commits] r7425 - trunk/Tools/Maestro/OSGeo.MapGuide.MaestroAPI/Resource
svn_mapguide at osgeo.org
svn_mapguide at osgeo.org
Thu Mar 28 07:45:26 PDT 2013
Author: jng
Date: 2013-03-28 07:45:26 -0700 (Thu, 28 Mar 2013)
New Revision: 7425
Modified:
trunk/Tools/Maestro/OSGeo.MapGuide.MaestroAPI/Resource/ResourceIdentifier.cs
Log:
Special ResourceTypes enum parsing exception for Runtime Maps.
Modified: trunk/Tools/Maestro/OSGeo.MapGuide.MaestroAPI/Resource/ResourceIdentifier.cs
===================================================================
--- trunk/Tools/Maestro/OSGeo.MapGuide.MaestroAPI/Resource/ResourceIdentifier.cs 2013-03-28 14:42:03 UTC (rev 7424)
+++ trunk/Tools/Maestro/OSGeo.MapGuide.MaestroAPI/Resource/ResourceIdentifier.cs 2013-03-28 14:45:26 UTC (rev 7425)
@@ -387,7 +387,11 @@
/// <returns></returns>
public static ResourceTypes GetResourceType(string identifier)
{
- return (ResourceTypes)Enum.Parse(typeof(ResourceTypes), GetExtension(identifier));
+ var ext = GetExtension(identifier);
+ if (ext == "Map") //NOXLATE
+ return ResourceTypes.RuntimeMap;
+ else
+ return (ResourceTypes)Enum.Parse(typeof(ResourceTypes), ext);
}
/// <summary>
More information about the mapguide-commits
mailing list