Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-dev] Re: Template Variables in CDT

   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



Back to the top