Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[Dltk-dev] How to implement a CompletionProcessor that is partition aware

Eclipse 3.4M5
DLTK 1.0M6

Have implemented a CompletionProcessor and TemplateCompletionProcessor setup based on the Dltk Python example.  This is working, no problems.

However, this example pattern appears to be *not* sensitive to the partition/context in which the control-space is pressed -- all templates are offered in the code completion popup regardless of the partition type.

Can you provide a hint as to the proper DLTK way to filter/separate/limit different completion proposals based on context corresponding to, for example, IDocument. DEFAULT_CONTENT_TYPE and my own IPartitions. MULTILINE_COMMENT partition/context.

Thanks,
Gerald

Back to the top