@Override
protected void connectPartitioningToElement(IEditorInput input, IDocument document) {
if (document instanceof IDocumentExtension3) {
IDocumentExtension3 doc = (IDocumentExtension3) document;
if (doc.getDocumentPartitioner(RutaPartitions.RUTA_PARTITIONING) == null) {
IDocumentSetupParticipant participant = new RutaDocumentSetupParticipant();
participant.setup(document);
}
}
}