Connects the partitioner to a document. Connect indicates the begin of the usage of the receiver as partitioner of the given document. Thus, resources the partitioner needs to be operational for this document should be allocated.
The caller of this method must ensure that this partitioner is also set as the document's document partitioner.
This method has been replaced with {@link IDocumentPartitionerExtension3#connect(IDocument,boolean)}. Implementers should default a call connect(document)
to connect(document, false)
in order to sustain the same semantics.
@param document the document to be connected to