@Override
protected IDocument createDocument(Object element) throws CoreException {
IDocument doc = super.createDocument(element);
if (doc != null) {
IDocumentPartitioner partitioner = new FastPartitioner(new JadePartitionScanner(), JadePartitionScanner.PARTITION_TYPES);
partitioner.connect(doc);
doc.setDocumentPartitioner(partitioner);
}
return doc;
}