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

I did a quick description in the developer articles:
http://wiki.eclipse.org/HowTo_extend_CDT_with_custom_file_templates

Please excuse my poor english,i hope people can read and understand it.

Greets 
Patrick


>Not sure, either.
>How about http://wiki.eclipse.org/CDT/devArticles
>
>> -----Original Message-----
>> From: cdt-dev-bounces@xxxxxxxxxxx 
>> [mailto:cdt-dev-bounces@xxxxxxxxxxx] On Behalf Of 
>> patrick.schmitt@xxxxxxx
>> Sent: Friday, September 05, 2008 11:45 AM
>> To: cdt-dev@xxxxxxxxxxx
>> Subject: RE: [cdt-dev] Shipping own code templates with a plugin
>> 
>> Where should i add e.g. an article about adding code templates ?
>> 
>> 
>> 
>> >The wiki on http://wiki.eclipse.org/index.php/CDT
>> >is editable by anyone with a bugzilla account.
>> >
>> >Writing documentation of any kind is a great way to contribute!
>> >
>> >Toni
>> >
>> >> -----Original Message-----
>> >> From: cdt-dev-bounces@xxxxxxxxxxx 
>> >> [mailto:cdt-dev-bounces@xxxxxxxxxxx] On Behalf Of 
>> >> patrick.schmitt@xxxxxxx
>> >> Sent: Friday, September 05, 2008 11:16 AM
>> >> To: cdt-dev@xxxxxxxxxxx
>> >> Subject: RE: [cdt-dev] Shipping own code templates with a plugin
>> >> 
>> >> Thanks alot for information, its always little difficult when 
>> >> dont know where to look for... But now it should be no 
>> >> problem to implement it.
>> >> 
>> >> Maybe a developer wiki or an FAQ like the "unofficial CDT 
>> >> Developers FAQ" with possibility of publishing own articles 
>> >> would help people like me trying to extend and customize cdt.
>> >> 
>> >> Greets 
>> >> Patrick 
>> >> 
>> >> 
>> >> >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
>> >> >> 
>> >> >_______________________________________________
>> >> >cdt-dev mailing list
>> >> >cdt-dev@xxxxxxxxxxx
>> >> >https://dev.eclipse.org/mailman/listinfo/cdt-dev
>> >> _______________________________________________
>> >> cdt-dev mailing list
>> >> cdt-dev@xxxxxxxxxxx
>> >> https://dev.eclipse.org/mailman/listinfo/cdt-dev
>> >> 
>> >_______________________________________________
>> >cdt-dev mailing list
>> >cdt-dev@xxxxxxxxxxx
>> >https://dev.eclipse.org/mailman/listinfo/cdt-dev
>> _______________________________________________
>> cdt-dev mailing list
>> cdt-dev@xxxxxxxxxxx
>> https://dev.eclipse.org/mailman/listinfo/cdt-dev
>> 
>_______________________________________________
>cdt-dev mailing list
>cdt-dev@xxxxxxxxxxx
>https://dev.eclipse.org/mailman/listinfo/cdt-dev


Back to the top