newAttrValLines[i] = LdifAttrValLine.create( newAttributeDescription, oldAttrValLine
.getValueAsString() );
}
LdifModSpecSepLine newSepLine = LdifModSpecSepLine.create();
String text = newTypeLine.toFormattedString( Utils.getLdifFormatParameters() );
for ( int j = 0; j < newAttrValLines.length; j++ )
{
text += newAttrValLines[j].toFormattedString( Utils.getLdifFormatParameters() );
}
text += newSepLine.toFormattedString( Utils.getLdifFormatParameters() );
try
{
document.replace( modSpec.getOffset(), modSpec.getLength(), text );
}
catch ( BadLocationException e )