[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
RE: [cdt-dev] Shipping own code templates with a plugin
|
Hi,
you can contibute file templates using the extension point
"org.eclipse.ui.editors.templates"
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
type
by setting the context id of the template to
"<content-type-id>.contenttype_context".
E.g. to associate a file template with content type "C++ Source File",
the context id should be
"org.eclipse.cdt.core.cxxSource.contenttype_context"
HTH,
Toni
> -----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
> https://dev.eclipse.org/mailman/listinfo/cdt-dev
>