/** * {@inheritDoc} * <p> * If the given content type is not <code>null</code> then this scanner will first try the rules * that match the given content type. * </p> */ public void setPartialRange(IDocument document, int offset, int length, String contentType, int partitionOffset) { fContentType= contentType; fPartitionOffset= partitionOffset; if (partitionOffset > -1) { int delta= offset - partitionOffset; if (delta > 0) { super.setRange(document, partitionOffset, length + delta); fOffset= offset; return; } } super.setRange(document, offset, length); }
/** * {@inheritDoc} * <p> * If the given content type is not <code>null</code> then this scanner will first try the rules * that match the given content type. * </p> */ public void setPartialRange(IDocument document, int offset, int length, String contentType, int partitionOffset) { fContentType= contentType; fPartitionOffset= partitionOffset; if (partitionOffset > -1) { int delta= offset - partitionOffset; if (delta > 0) { super.setRange(document, partitionOffset, length + delta); fOffset= offset; return; } } super.setRange(document, offset, length); }
/** * {@inheritDoc} * <p> * If the given content type is not <code>null</code> then this scanner will first try the rules * that match the given content type. * </p> */ @Override public void setPartialRange(IDocument document, int offset, int length, String contentType, int partitionOffset) { fContentType= contentType; fPartitionOffset= partitionOffset; if (partitionOffset > -1) { int delta= offset - partitionOffset; if (delta > 0) { super.setRange(document, partitionOffset, length + delta); fOffset= offset; return; } } super.setRange(document, offset, length); }
/** * {@inheritDoc} * <p> * If the given content type is not <code>null</code> then this scanner will first try the rules * that match the given content type. * </p> */ @Override public void setPartialRange(IDocument document, int offset, int length, String contentType, int partitionOffset) { fContentType= contentType; fPartitionOffset= partitionOffset; if (partitionOffset > -1) { int delta= offset - partitionOffset; if (delta > 0) { super.setRange(document, partitionOffset, length + delta); fOffset= offset; return; } } super.setRange(document, offset, length); }