[mapguide-commits] r7524 - branches/maestro-4.0.x/Maestro.Base/Commands/SiteExplorer
svn_mapguide at osgeo.org
svn_mapguide at osgeo.org
Mon May 27 04:50:50 PDT 2013
Author: jng
Date: 2013-05-27 04:50:50 -0700 (Mon, 27 May 2013)
New Revision: 7524
Modified:
branches/maestro-4.0.x/Maestro.Base/Commands/SiteExplorer/ResourcePropertiesCommand.cs
Log:
#2276: Gracefully handle unsupported behaviour in local connection when invoking Resource Properties command (basically, explain why)
Modified: branches/maestro-4.0.x/Maestro.Base/Commands/SiteExplorer/ResourcePropertiesCommand.cs
===================================================================
--- branches/maestro-4.0.x/Maestro.Base/Commands/SiteExplorer/ResourcePropertiesCommand.cs 2013-05-27 11:50:08 UTC (rev 7523)
+++ branches/maestro-4.0.x/Maestro.Base/Commands/SiteExplorer/ResourcePropertiesCommand.cs 2013-05-27 11:50:50 UTC (rev 7524)
@@ -35,6 +35,13 @@
var connMgr = ServiceRegistry.GetService<ServerConnectionManager>();
var conn = connMgr.GetConnection(wb.ActiveSiteExplorer.ConnectionName);
+ if (conn.ProviderName != "Maestro.Http" &&
+ conn.ProviderName != "Maestro.LocalNative")
+ {
+ MessageService.ShowError("The current connection (" + conn.ProviderName + ") does not support the required interfaces to display properties of this resource");
+ return;
+ }
+
//Can only show properties of one selected item
if (items.Length == 1)
{
More information about the mapguide-commits
mailing list