KeyValuePair curr= new KeyValuePair(substitution.getKey(), value);  InsertEdit insert= model.insert(curr); String message= NLSMessages.getFormattedString("NLSPropertyFileModifier.add_entry", curr.getKey()); TextChangeCompatibility.addTextEdit(textChange, message, insert); }
InsertEdit insert= model.insert(curr); String message= NLSMessages.getFormattedString("NLSPropertyFileModifier.add_entry", curr.getKey()); TextChangeCompatibility.addTextEdit(textChange, message, insert);
	private static void addInsertEdits(TextChange textChange, NLSSubstitution[] substitutions, Map keyToSubstMap, PropertyFileDocumentModel model) {		for (int i= 0; i < substitutions.length; i++) {			NLSSubstitution substitution= substitutions[i];			boolean isExternalized= substitution.hasStateChanged() && (substitution.getState() == NLSSubstitution.EXTERNALIZED);			boolean isMissingKey= !substitution.hasStateChanged() && (substitution.getState() == NLSSubstitution.EXTERNALIZED) && (substitution.getInitialValue() == null);			if (isExternalized || isMissingKey) {				if (keyToSubstMap.get(substitution.getKey()) == substitution) { // only insert if we're not a duplicate					String value= substitution.getValueNonEmpty();									KeyValuePair curr= new KeyValuePair(substitution.getKey(), value);										InsertEdit insert= model.insert(curr);					String message= NLSMessages.getFormattedString("NLSPropertyFileModifier.add_entry", curr.getKey()); //$NON-NLS-1$					TextChangeCompatibility.addTextEdit(textChange, message, insert);				}			}		}	}