[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
RE: [cdt-dev] Re: Template Variables in CDT
|
Contributed variable resolvers are not supported for code templates.
Please file an enhancement request for that.
Toni
> -----Original Message-----
> From: cdt-dev-bounces@xxxxxxxxxxx
> [mailto:cdt-dev-bounces@xxxxxxxxxxx] On Behalf Of Matt Grosvenor
> Sent: Wednesday, March 18, 2009 11:26 PM
> To: CDT General developers list.
> Subject: Re: [cdt-dev] Re: Template Variables in CDT
>
> While I am at it. I am also interested in creating new template
> variables for the default code templates. I'm not really
> concerned about
> the templates themselves, but I am very interested in the template
> variables. So for instance, I would like to add some
> variables and then
> edit the Default C++ Header template to use them. Can I use the same
> trick I did previously with a
>
> * "org.eclipse.ui.editors.templates" extension point.
> * a variable resolver class plugin
> * a correct context ? (if so, any ideas what it might be?)
>
> It should come as no surprise I am just starting out in
> extending/modifying the CDT. This is a bit of a side project at my
> company to help improve coding efficiency across the board. Any ideas
> where/who should I submit plugins/extensions that we find useful so
> they can see the light of day?
>
> MG
>
> Matt Grosvenor wrote:
> > Thank you so much. This is exactly what I was looking for.
> >
> > Leherbauer, Anton (Toni) wrote:
> >> I think the question is not related to project templates,
> but editor
> >> templates.
> >>
> >> The CDT editor template context types are
> >>
> >> org.eclipse.cdt.ui.text.templates.c
> >> org.eclipse.cdt.ui.text.templates.comment
> >>
> >> HTH,
> >> Toni
> >>
> >>> -----Original Message-----
> >>> From: cdt-dev-bounces@xxxxxxxxxxx
> >>> [mailto:cdt-dev-bounces@xxxxxxxxxxx] On Behalf Of Elena Laskavaia
> >>> Sent: Wednesday, March 18, 2009 3:10 PM
> >>> To: CDT General developers list.
> >>> Subject: Re: [cdt-dev] Re: Template Variables in CDT
> >>>
> >>> http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse.cd
> >>> t.doc.isv/guide/projectTemplateEngine/exampletemplate.html
> >>>
> >>> Matt Grosvenor wrote:
> >>>
> >>>> Hi All,
> >>>> I have been messing about for a few days with the
> >>>> "org.eclipse.ui.editors.templates" extension point. I
> am
> >>> trying to
> >>>
> >>>> to create some custom template variables for use in the
> >>> CDT that I
> >>>
> >>>> think will be generally useful to everyone. I can do
> >>> this flawlessly
> >>>
> >>>> in the JDT but have yet to figure out how to make it
> >>> happen in the
> >>>
> >>>> CDT. Is there a way to make this happen or do I need to
> >>> edit the CDT
> >>>
> >>>> source directly? Where would I go to find the CDT
> source? I have
> >>>> hunted around the ecplise.org website and found very
> little. The
> >>>> online CVS viewer seems to have no CDT sources.
> >>>>
> >>>> This is what I have so far. If I repalce ???? with
> >>> "java" the plugin
> >>>
> >>>> works. But, I need the plugin to work in the CDT rather
> >>> than the JDT.
> >>>
> >>>> <?xml version="1.0" encoding="UTF-8"?>
> >>>> <?eclipse version="3.4"?>
> >>>> <plugin>
> >>>> <extension
> >>>> point="org.eclipse.ui.editors.templates">
> >>>> <resolver
> >>>> class="xxxx"
> >>>> contextTypeId="???"
> >>>> description="xxxxx"
> >>>> name="xxxx"
> >>>> type="xxxx"
> >>>> /> </extension>
> >>>> </plugin>
> >>>>
> >>>> mattg
> >>>>
> >>>> _______________________________________________
> >>>> 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
>