|
|
|
@ -149,11 +149,11 @@ namespace ICSharpCode.SharpDevelop.Gui.OptionPanels |
|
|
|
{ |
|
|
|
{ |
|
|
|
List<ExternalTool> newlist = new List<ExternalTool>(); |
|
|
|
List<ExternalTool> newlist = new List<ExternalTool>(); |
|
|
|
foreach (ExternalTool tool in ((ListBox)ControlDictionary["toolListBox"]).Items) { |
|
|
|
foreach (ExternalTool tool in ((ListBox)ControlDictionary["toolListBox"]).Items) { |
|
|
|
if (!FileUtility.IsValidPath(tool.Command)) { |
|
|
|
if (!FileUtility.IsValidPath(StringParser.Parse(tool.Command))) { |
|
|
|
MessageService.ShowError(String.Format("The command of tool \"{0}\" is invalid.", tool.MenuCommand)); |
|
|
|
MessageService.ShowError(String.Format("The command of tool \"{0}\" is invalid.", tool.MenuCommand)); |
|
|
|
return false; |
|
|
|
return false; |
|
|
|
} |
|
|
|
} |
|
|
|
if ((tool.InitialDirectory != "") && (!FileUtility.IsValidPath(tool.InitialDirectory))) { |
|
|
|
if ((tool.InitialDirectory != String.Empty) && (!FileUtility.IsValidPath(tool.InitialDirectory))) { |
|
|
|
MessageService.ShowError(String.Format("The working directory of tool \"{0}\" is invalid.", tool.MenuCommand)); |
|
|
|
MessageService.ShowError(String.Format("The working directory of tool \"{0}\" is invalid.", tool.MenuCommand)); |
|
|
|
return false; |
|
|
|
return false; |
|
|
|
} |
|
|
|
} |
|
|
|
|