From b2282353d67e14725c09507c85e45a02d33c2f3c Mon Sep 17 00:00:00 2001 From: Siegfried Pammer Date: Tue, 27 Jul 2010 06:12:39 +0000 Subject: [PATCH] fixed build git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@6267 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61 --- .../Misc/SharpRefactoring/Project/Src/GenerateCode.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/AddIns/Misc/SharpRefactoring/Project/Src/GenerateCode.cs b/src/AddIns/Misc/SharpRefactoring/Project/Src/GenerateCode.cs index 982895fc69..98c376e6ae 100644 --- a/src/AddIns/Misc/SharpRefactoring/Project/Src/GenerateCode.cs +++ b/src/AddIns/Misc/SharpRefactoring/Project/Src/GenerateCode.cs @@ -39,8 +39,15 @@ namespace SharpRefactoring if (expression == null) return null; + string title = "${res:AddIns.SharpRefactoring.IntroduceMethod}"; + + try { + title = string.Format(StringParser.Parse("${res:AddIns.SharpRefactoring.IntroduceMethod}"), unknownMethodCall.CallName, unknownMethodCall.Target.FullyQualifiedName); + } catch (FormatException) { + } + return new IntroduceMethodContextAction(unknownMethodCall, expression, editor) { - Title = string.Format(StringParser.Parse("${res:AddIns.SharpRefactoring.IntroduceMethod}"), unknownMethodCall.CallName, unknownMethodCall.Target.FullyQualifiedName) + Title = title }; } return null;