protected IDocument createDocument(Object element) throws CoreException {
IDocument document = super.createDocument(element);
if (document != null) {
IDocumentPartitioner partitioner =
new FastPartitioner(
new FitSourcePartitionScanner(),
new String[] {
IDocument.DEFAULT_CONTENT_TYPE,
FitSourcePartitionScanner.FIT_COMMENT });
partitioner.connect(document);
document.setDocumentPartitioner(partitioner);