Replaces all master document ranges with the given master document range.
@param offsetInMaster the offset in the master document
@param lengthInMaster the length in the master document
@throws BadLocationException if the given range of the master document is not valid
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.