[mapguide-commits] r5223 - in sandbox/maestro-3.0/Maestro.Base: . Commands

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Thu Sep 30 06:52:47 EDT 2010


Author: jng
Date: 2010-09-30 10:52:47 +0000 (Thu, 30 Sep 2010)
New Revision: 5223

Modified:
   sandbox/maestro-3.0/Maestro.Base/Commands/SaveResourceAsCommand.cs
   sandbox/maestro-3.0/Maestro.Base/Maestro.Base.addin
Log:
More 3.0 sandbox changes
 - Update repository tree model when newly created resource is saved
 - Fix bad context menu entries


Modified: sandbox/maestro-3.0/Maestro.Base/Commands/SaveResourceAsCommand.cs
===================================================================
--- sandbox/maestro-3.0/Maestro.Base/Commands/SaveResourceAsCommand.cs	2010-09-30 10:49:59 UTC (rev 5222)
+++ sandbox/maestro-3.0/Maestro.Base/Commands/SaveResourceAsCommand.cs	2010-09-30 10:52:47 UTC (rev 5223)
@@ -25,6 +25,7 @@
 using Maestro.Shared.UI;
 using Maestro.Editors.Generic;
 using Maestro.Base.Services;
+using OSGeo.MapGuide.MaestroAPI.Resource;
 
 namespace Maestro.Base.Commands
 {
@@ -47,6 +48,9 @@
                         using (new WaitCursor(wb))
                         {
                             ed.EditorService.SaveAs(picker.ResourceID);
+
+                            var rid = new ResourceIdentifier(picker.ResourceID);
+                            exp.RefreshModel(rid.ParentFolder);
                         }
                     }
                 }

Modified: sandbox/maestro-3.0/Maestro.Base/Maestro.Base.addin
===================================================================
--- sandbox/maestro-3.0/Maestro.Base/Maestro.Base.addin	2010-09-30 10:49:59 UTC (rev 5222)
+++ sandbox/maestro-3.0/Maestro.Base/Maestro.Base.addin	2010-09-30 10:52:47 UTC (rev 5223)
@@ -415,10 +415,10 @@
         <Condition action="Disable" name="MultipleSelected">
             <MenuItem id="Open"
                       label="${res:SiteExplorer_SelectedItem_Open}"
-                      class="Maestro.Base.SiteExplorer.OpenResourceCommand" />
+                      class="Maestro.Base.Commands.SiteExplorer.OpenResourceCommand" />
             <MenuItem id="Delete"
                       label="${res:SiteExplorer_SelectedItem_Delete}"
-                      class="Maestro.Base.SiteExplorer.DeleteSelectedItemsCommand" />
+                      class="Maestro.Base.Commands.SiteExplorer.DeleteSelectedItemsCommand" />
             <MenuItem type="Separator" />
             <Condition action="Disable" name="CanCutOrCopy">
                 <MenuItem id="Copy"



More information about the mapguide-commits mailing list