use of org.eclipse.linuxtools.internal.rpm.ui.editor.scanners.SpecfilePartitionScanner in project linuxtools by eclipse.
the class SpecfileDocumentProvider method getDocument.
@Override
public IDocument getDocument(Object element) {
IDocument document = super.getDocument(element);
if (document != null && document.getDocumentPartitioner() == null) {
FastPartitioner partitioner = new FastPartitioner(new SpecfilePartitionScanner(), SpecfilePartitionScanner.SPEC_PARTITION_TYPES);
partitioner.connect(document, false);
document.setDocumentPartitioner(partitioner);
}
return document;
}
Aggregations