use of org.eclipse.jface.text.IDocumentExtension3 in project dbeaver by serge-rider.
the class XMLEditor method setupDocument.
protected void setupDocument() {
IDocument document = getDocument();
if (document != null) {
IDocumentPartitioner partitioner = new FastPartitioner(new XMLPartitionScanner(), new String[] { XMLPartitionScanner.XML_TAG, XMLPartitionScanner.XML_COMMENT });
partitioner.connect(document);
((IDocumentExtension3) document).setDocumentPartitioner(XMLPartitionScanner.XML_PARTITIONING, partitioner);
}
}
Aggregations