[mapguide-commits] r6205 - trunk/Tools/Maestro/Maestro.Editors/FeatureSource/Providers/Shp

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Tue Nov 8 08:55:39 EST 2011


Author: jng
Date: 2011-11-08 05:55:39 -0800 (Tue, 08 Nov 2011)
New Revision: 6205

Modified:
   trunk/Tools/Maestro/Maestro.Editors/FeatureSource/Providers/Shp/ShpFileCtrl.cs
Log:
#1830, #1839: Whether new or existing, if we're loading a SHP feature source and it lacks a DefaultFileLocation property, set it to %MG_DATA_FILE_PATH%. This resolves the two aforementioned tickets simultaneously.

Modified: trunk/Tools/Maestro/Maestro.Editors/FeatureSource/Providers/Shp/ShpFileCtrl.cs
===================================================================
--- trunk/Tools/Maestro/Maestro.Editors/FeatureSource/Providers/Shp/ShpFileCtrl.cs	2011-11-08 13:43:56 UTC (rev 6204)
+++ trunk/Tools/Maestro/Maestro.Editors/FeatureSource/Providers/Shp/ShpFileCtrl.cs	2011-11-08 13:55:39 UTC (rev 6205)
@@ -48,6 +48,10 @@
             _service = service;
             _fs = service.GetEditedResource() as IFeatureSource;
             Debug.Assert(_fs != null);
+            if (_fs.ConnectionPropertyNames.Length == 0)
+            {
+                _fs.SetConnectionProperty("DefaultFileLocation", "%MG_DATA_FILE_PATH%");
+            }
             MarkSelected();
             resDataCtrl.ResourceDataUploaded += new Maestro.Editors.Common.ResourceDataCtrl.ResourceUploadEventHandler(OnResourceDataUploaded);
         }



More information about the mapguide-commits mailing list