/** * Updates the given slave document to show the specified range of its master document. * * @param slaveDocument the slave document * @param modelRangeOffset the offset of the master document range * @param modelRangeLength the length of the master document range * @return <code>true</code> if the slave has been adapted successfully * @throws BadLocationException in case the specified range is not valid in the master document * @since 3.0 */ protected boolean updateSlaveDocument(IDocument slaveDocument, int modelRangeOffset, int modelRangeLength) throws BadLocationException { return updateVisibleDocument(slaveDocument, modelRangeOffset, modelRangeLength); }
/** * Updates the given slave document to show the specified range of its master document. * * @param slaveDocument the slave document * @param modelRangeOffset the offset of the master document range * @param modelRangeLength the length of the master document range * @return <code>true</code> if the slave has been adapted successfully * @throws BadLocationException in case the specified range is not valid in the master document * @since 3.0 */ protected boolean updateSlaveDocument(IDocument slaveDocument, int modelRangeOffset, int modelRangeLength) throws BadLocationException { return updateVisibleDocument(slaveDocument, modelRangeOffset, modelRangeLength); }