for (int i = 0; i < substitutions.length; i++) { NLSSubstitution substitution = substitutions[i]; if (substitution.hasChanged() && !substitution.hasStateChanged() && (substitution.getInitialValue() == null)) { InsertEdit insert = modell.insert(new KeyValuePair(substitution.getKey(), substitution.getValue())); String message = NLSMessages.getFormattedString("NLSRefactoring.add_entry", substitution.getKey()); TextChangeCompatibility.addTextEdit(textChange, message, insert); } }
    private static void addInsertEdits(TextChange textChange, NLSSubstitution[] substitutions, String prefix, PropertyFileDocumentModell modell) {        KeyValuePair[] keyValuePairs = convertSubstitutionsToKeyValue(substitutions, prefix);        InsertEdit[] inserts = modell.insert(keyValuePairs);        for (int i = 0; i < inserts.length; i++) {            String message = NLSMessages.getFormattedString("NLSRefactoring.add_entry", keyValuePairs[i].fKey); //$NON-NLS-1$            TextChangeCompatibility.addTextEdit(textChange, message, inserts[i]);        }    }