use of org.eclipse.linuxtools.internal.docker.editor.scanner.DockerPartitionScanner in project linuxtools by eclipse.
the class DockerDocumentProvider method createDocument.
@Override
protected IDocument createDocument(Object element) throws CoreException {
IDocument document = super.createDocument(element);
if (document != null) {
DockerPartitionScanner scanner = new DockerPartitionScanner();
IDocumentPartitioner partitioner = new FastPartitioner(scanner, DockerPartitionScanner.ALLOWED_CONTENT_TYPES);
partitioner.connect(document);
document.setDocumentPartitioner(partitioner);
}
return document;
}
Aggregations