1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-24 09:25:31 +02:00

Externalizing strings.

This commit is contained in:
Markus Schorn 2009-07-15 06:45:59 +00:00
parent 6ecaea8010
commit 5103912b81
3 changed files with 3 additions and 1 deletions

View file

@ -46,6 +46,7 @@ public final class Messages extends NLS {
public static String ExtractFunctionRefactoring_Error_Return;
public static String ExtractFunctionRefactoring_Error_Continue;
public static String ExtractFunctionRefactoring_Error_Break;
public static String SimilarFinderVisitor_replaceDuplicateCode;
static {
NLS.initializeMessages(BUNDLE_NAME, Messages.class);

View file

@ -105,7 +105,7 @@ final class SimilarFinderVisitor extends CPPASTVisitor {
this.refactoring.container, similarContainer);
ASTRewrite rewrite = collector.rewriterForTranslationUnit(stmtToReplace.get(0)
.getTranslationUnit());
TextEditGroup editGroup = new TextEditGroup("Replace Dublicated Code");
TextEditGroup editGroup = new TextEditGroup(Messages.SimilarFinderVisitor_replaceDuplicateCode);
rewrite.replace(stmtToReplace.get(0), call, editGroup);
if (stmtToReplace.size() > 1) {
for (int i = 1; i < stmtToReplace.size(); ++i) {

View file

@ -34,3 +34,4 @@ ChooserComposite_NoReturnValue=No return-value (void)
ExtractFunctionRefactoring_Error_Return=Extracting return statements is not supported
ExtractFunctionRefactoring_Error_Continue=Extracting cotinue statements without the surrounding loop is not possible. Please adjust your selection.
ExtractFunctionRefactoring_Error_Break=Extracting break statements without the surrounding loop is not possible. Please adjust your selection.
SimilarFinderVisitor_replaceDuplicateCode=Replace Duplicated Code