Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] Debugging CDT Project Templates

Elena Laskavaia wrote:
You need to add filterPattern attribute in xml, see bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=274966

Thanks, that fixed it!

--
Cheers,
Karol Krizka
http://www.krizka.net
Karol Krizka wrote:
Hi there,

I'm writing a new plugin that adds a new project type to CDT. In
addition, I would like to provide a few basic starting project
templates to the new project wizards. I've extended the
org.eclipse.cdt.core.templates point and added two templates to it.
One template adds a new entry to my custom project type, which is
declared as cmtplugin.projectType. The second template adds a new
entry to the EXE project type (I based this entry on the templates in
the org.eclipse.cdt.managedbuilder.gnu.ui plugin). The latter is for
debugging purposes.

The problem is that neither templates are visible in the new project
wizard when I try to run the plugin in eclipse. I see both the EXE
project type and my custom project type, but neither of the templates
listed. How can I debug this?

Furthermore, this used to work a couple of months ago (CDT 5.0 +
Eclipse Ganymede). However I have not used the Eclipse since. However
now, I updated to the latest version of Eclipse + CDT yesterday, and
it's not working. No modifications have been done to the plugin in the
meantime.

The following is the extension point block from the plugin.xml file:
   <extension
         point="org.eclipse.cdt.core.templates">
      <template
            id="cmtplugin.templates.HelloWorld"
            location="$nl$/templates/HelloWorld.xml"
            projectType="cmtplugin.projectType">
      </template>
      <template
            id="cmtplugin.templates.ROOT"
            location="$nl$/templates/ROOT.xml"
projectType="org.eclipse.cdt.build.core.buildArtefactType.exe">
      </template>
   </extension>



--
Cheers,
Karol Krizka
http://www.krizka.net
_______________________________________________
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