ToolMethod method = ((MethodEditorInput)element).getMethod();
IDocument document = method.getImplementationDocument();
IDocumentPartitioner partitioner =
new FastPartitioner(
new ToolPartitionScanner(),
new String[] {
ToolPartitionScanner.TOOL_COMMENT,
ToolPartitionScanner.TOOL_SQL});
partitioner.connect(document);
document.setDocumentPartitioner(partitioner);