[mapguide-commits] r7066 - in trunk/Tools/Maestro/Maestro.Base: . UI/Packaging

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Wed Oct 3 07:07:01 PDT 2012


Author: jng
Date: 2012-10-03 07:07:01 -0700 (Wed, 03 Oct 2012)
New Revision: 7066

Modified:
   trunk/Tools/Maestro/Maestro.Base/Maestro.Base.addin
   trunk/Tools/Maestro/Maestro.Base/UI/Packaging/CreatePackageDialog.cs
Log:
#2133: Unique-ify the list of resource ids that are inputted into the Create Package dialog. Also make the "Compile Full Dependency List" command available on multiple selected resources.

Modified: trunk/Tools/Maestro/Maestro.Base/Maestro.Base.addin
===================================================================
--- trunk/Tools/Maestro/Maestro.Base/Maestro.Base.addin	2012-10-03 14:05:15 UTC (rev 7065)
+++ trunk/Tools/Maestro/Maestro.Base/Maestro.Base.addin	2012-10-03 14:07:01 UTC (rev 7066)
@@ -636,6 +636,9 @@
                           class="Maestro.Base.Commands.CutCommand" />
             </Condition>
             <MenuItem type="Separator" />
+            <MenuItem id="CompileDependencyList"
+                      label="${res:SiteExplorer_SelectedItem_CompileDependencyList}"
+                      class="Maestro.Base.Commands.SiteExplorer.CompileFullDependencyListCommand" />
             <MenuItem id="CopyMoveMultipleToServer"
                       icon="server__arrow"
                       label="${res:SiteExplorer_CopyMoveToServer}"

Modified: trunk/Tools/Maestro/Maestro.Base/UI/Packaging/CreatePackageDialog.cs
===================================================================
--- trunk/Tools/Maestro/Maestro.Base/UI/Packaging/CreatePackageDialog.cs	2012-10-03 14:05:15 UTC (rev 7065)
+++ trunk/Tools/Maestro/Maestro.Base/UI/Packaging/CreatePackageDialog.cs	2012-10-03 14:07:01 UTC (rev 7066)
@@ -80,7 +80,11 @@
 
         public string[] ResourceIds
         {
-            get { return txtResourceIdList.Lines.ToArray(); }
+            get
+            { 
+                var ids = new HashSet<string>(txtResourceIdList.Lines);
+                return ids.ToArray();
+            }
         }
 
         public string FolderToPackage



More information about the mapguide-commits mailing list