private void setTitle(final FetchDataResult fetchDataResult) {
        final String streamType = fetchDataResult.getStreamTypeName();
        final SourceLocation sourceLocation = fetchDataResult.getSourceLocation();
        if (DataType.NON_SEGMENTED.equals(fetchDataResult.getDataType())) {
            getView().setNonSegmentedTitle(
                    fetchDataResult.getFeedName(),
                    sourceLocation.getMetaId(),
                    sourceLocation.getPartIndex() + 1,
                    streamType);
        } else {
            getView().setSegmentedTitle(
                    fetchDataResult.getFeedName(),
                    sourceLocation.getMetaId(),
                    sourceLocation.getRecordIndex() + 1,
                    streamType);
        }
    }
Compare the {@link DataRange}s using on the from/to {@link Location};
stroom-core-client/src/main/java/stroom/data/client/presenter/SourcePresenter.java