Showing posts from January, 2010

Content Assist in DLTK editor

This post explains how to contribute your templates in the Dynamic Languages Toolkit (DLTK) editor's content assist. Its a common requirement to incorporate your custom library API's into existing API, hence provide developer with larger domain of predefined functionality to work with.

The second step is to incorporate the options in all the existing IDE tools(the post covers only content assist) so that developer can easily leverage.

There are couple extension point which make your job hell lot easier, following are the abstract dummy steps to accomplish the same:

1. First of all there is a extension point="org.eclipse.dltk.ui.scriptCompletionProposalComputer" which essentially requires the ancestor as org.eclipse.dltk.ui.text.completion.ScriptCompletionProposalComputer (or its parent), apart from this some declarative options are also there.

2. Secondly you can provide static templates in the form of xml file via extension point="org.eclipse.ui.editors.templat…