[mapguide-commits] r8037 - trunk/Tools/Maestro/Maestro.Base/Events

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Sat Apr 12 11:11:40 PDT 2014


Author: jng
Date: 2014-04-12 11:11:40 -0700 (Sat, 12 Apr 2014)
New Revision: 8037

Modified:
   trunk/Tools/Maestro/Maestro.Base/Events/EventWatcher.cs
Log:
Initialize the various static editor properties from the loaded configuration

Modified: trunk/Tools/Maestro/Maestro.Base/Events/EventWatcher.cs
===================================================================
--- trunk/Tools/Maestro/Maestro.Base/Events/EventWatcher.cs	2014-04-12 18:06:28 UTC (rev 8036)
+++ trunk/Tools/Maestro/Maestro.Base/Events/EventWatcher.cs	2014-04-12 18:11:40 UTC (rev 8037)
@@ -51,6 +51,13 @@
             svc.ConnectionAdded += new ServerConnectionEventHandler(OnConnectionAdded);
             svc.ConnectionRemoved += new ServerConnectionEventHandler(OnConnectionRemoved);
 
+            //Apply initial settings
+            PreviewSettings.UseLocalPreview = PropertyService.Get(ConfigProperties.UseLocalPreview, ConfigProperties.DefaultUseLocalPreview);
+            PreviewSettings.AddDebugWatermark = PropertyService.Get(ConfigProperties.AddDebugWatermark, ConfigProperties.DefaultAddDebugWatermark);
+            PreviewSettings.UseAjaxViewer = PropertyService.Get(ConfigProperties.PreviewViewerType, ConfigProperties.DefaultPreviewViewerType) == "AJAX";
+            LayerEditorSettings.UseGridEditor = PropertyService.Get(ConfigProperties.UseGridStyleEditor, ConfigProperties.DefaultUseGridStyleEditor);
+            XmlEditorSettings.XsdPath = PropertyService.Get(ConfigProperties.XsdSchemaPath, ConfigProperties.DefaultXsdSchemaPath);
+
             LoggingService.Info("Starting session keep-alive timer"); //NOXLATE
             _keepAliveTimer.Start();
         }



More information about the mapguide-commits mailing list