Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-dev] How to dynamically add a wizard page based on the template that was selected in the wizard page.


Hi,

I am using the extension point "org.eclipse.cdt.core.templates" to provide custom templates to the project types "org.eclipse.cdt.build.core.buildArtefactType.exe" and "org.eclipse.cdt.build.core.buildArtefactType.staticLib". I am also using the "pagesAfterTemplateSelectionProvider" to provide an wizard page because I want to populate the values dynamically.

<extension point = "org.eclipse.cdt.core.templates">
<template
        filterPattern = ".*"
        id = "com.ibm.xtools.myTemplate"
        location = "templates/projectconfig/exe.xml"
        pagesAfterTemplateSelectionProvider = "com.ibm.xtools..MyConfigPageProvider"
        projectType = "org.eclipse.cdt.build.core.buildArtefactType.exe"/>
</extension>

My Template gets listed correctly under the "Executable" folder of the new C++ Project wizard. But what I see that this wizard page gets added to all the CDT projects of type "org.eclipse.cdt.build.core.buildArtefactType.exe", like when the user selects say "Hello World C++ Project" or "Empty Project" no just with the template I provided. Is their any way to know which template the user selected and control the addition of the wizard page. I do not want to define a new project type and I am using CDT 4.0.

Thanks in advance,
Kishore
_______________________________
C. Lalitha Krishna Kishore
Rational Software, IBM Software Group
email: krishna.kishore@xxxxxxxxxx
_______________________________

Back to the top