Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Using CDT Text editor context(How to make use of a plugin-defined new text context in the CDT editor)
Using CDT Text editor context [message #1708580] Thu, 17 September 2015 12:14
Eclipse UserFriend
Templates in the CDT editor are associated with 'contexts'.
The CDT documentation describes how to declare a new context: http://help.eclipse.org/mars/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Fguide%2Fworkbench_advext_contexts.htm
Furthermore, one can predefine templates in the plugin.xml file and associate them with contexts, such as org.eclipse.cdt.ui.text.templates.c and org.eclipse.cdt.ui.text.templates.doccomment

However, I cannot find information about
- how to inform the editor when a new context is to be active
- how to have the template definition/preference menu include the new context

Any pointers will be appreciated.

Previous Topic:compile error: liblto_plugin.so not found
Next Topic:Console output cannot link to the source files (remote build using synchronized project)
Goto Forum:
  


Current Time: Sat Aug 30 13:21:46 EDT 2025

Powered by FUDForum. Page generated in 0.08395 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top