public void setupJavaDocumentPartitioner(IDocument document, String partitioning) { IDocumentPartitioner partitioner= createDocumentPartitioner(); if (document instanceof IDocumentExtension3) { IDocumentExtension3 extension3= (IDocumentExtension3) document; extension3.setDocumentPartitioner(partitioning, partitioner); } else { document.setDocumentPartitioner(partitioner); } partitioner.connect(document);
public void setupJavaDocumentPartitioner(IDocument document) { setupJavaDocumentPartitioner(document, IDocumentExtension3.DEFAULT_PARTITIONING);
	public void setupJavaDocumentPartitioner(IDocument document, String partitioning) {		IDocumentPartitioner partitioner= createDocumentPartitioner();		if (document instanceof IDocumentExtension3) {			IDocumentExtension3 extension3= (IDocumentExtension3) document;			extension3.setDocumentPartitioner(partitioning, partitioner);		} else {			document.setDocumentPartitioner(partitioner);		}		partitioner.connect(document);	}