Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [cdt-dev] Shipping own code templates with a plugin


you can contibute file templates using the extension point
See also the extension in org.eclipse.cdt.ui/plugin.xml for reference.

Note that file templates need to be associated with an existing content
by setting the context id of the template to

E.g. to associate a file template with content type "C++ Source File",
the context id should be



> -----Original Message-----
> From: cdt-dev-bounces@xxxxxxxxxxx 
> [mailto:cdt-dev-bounces@xxxxxxxxxxx] On Behalf Of 
> patrick.schmitt@xxxxxxx
> Sent: Thursday, September 04, 2008 3:55 PM
> To: cdt-dev@xxxxxxxxxxx
> Subject: [cdt-dev] Shipping own code templates with a plugin
> Hello guys,
> next version of the fujitsu compiler plugin is nearly finnished,
> now i thought about shipping own code templates with 
> it(Context Menu: New->File from Template).
> I tried org.eclipse.cdt.core.templates and looked for some 
> example how to handle it, but didnt find anything that 
> worked. No code template get loaded automatically... Just the 
> import function works.
> Is there any description how to do this ?
> Greets 
> Patrick
> _______________________________________________
> cdt-dev mailing list
> cdt-dev@xxxxxxxxxxx

Back to the top