Skip to main content

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

Thanks, Andrei!

Just the hint that I needed.  Only additional step was to override ScriptTemplateCompletionProcessor#getTemplates to allow for the multiple contexts.  All is working well now.

Question: would it be better to type ScriptTemplateAccess#getContextTypeId as String[] instead of String?  As is, I had to override ScriptTemplateAccess#getContextTypeRegistry directly in order to load the template registry with multiple ContextTypes.  Looks like #getContextTypeId is only called from #getContextTypeRegistry.

Thanks again for all the help,
Gerald


At 10:17 PM 4/8/2008, you wrote:
Hi Gerald,

You need to override method
ScriptTemplateCompletionProcessor.getContextType(...) instead of
getContextTypeId() to support multiple template contexts.

Best regards,
Andrei Sobolev.

Back to the top