Browse Source

fixed build

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@6267 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
pull/1/head
Siegfried Pammer 16 years ago
parent
commit
b2282353d6
  1. 9
      src/AddIns/Misc/SharpRefactoring/Project/Src/GenerateCode.cs

9
src/AddIns/Misc/SharpRefactoring/Project/Src/GenerateCode.cs

@ -39,8 +39,15 @@ namespace SharpRefactoring @@ -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;

Loading…
Cancel
Save