Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-dev] Determine which project template was selected during wizard page execution

I need to determine which project template was selected by the user, while
i am processing a wizard page from the managed build wizard pages.
So basically, I'm using the project templates from the templateengine but
the wizard pages from the managed build system. (since i have some specific
processing to do, accessing the MBS data).

While in the wizard page, i want to make decisions about what to show the
user, and which MBS settings to modify, based on which project template was
selected.

<extension point="org.eclipse.cdt.managedbuilder.ui.newWizardPages">
 <wizardPage.
  ID="org.eclipse.ptp.pldt.wizards.wizardPages.MPIProjectWizardPage"
  operationClass=
"org.eclipse.ptp.pldt.wizards.wizardPages.MPIProjectRunnable" // Runnable
  pageClass=.
"org.eclipse.ptp.pldt.wizards.wizardPages.MPIProjectWizardPage"> //
MBSCustomPage
 </wizardPage>
 </extension>

<extension point="org.eclipse.cdt.core.templates">
 <template
   id="org.eclipse.ptp.pldt.projects.MPIhelloWorldCProject"
   location=."templates/MPIhelloWorldCproject/template.xml"
   projectType="org.eclipse.cdt.build.core.buildArtefactType.exe">
 </template>.

How can i tell, while in the MBSCustomPage (wizard page), which template
was selected by the user?
If there was a way to set an attribute/value in the template xml, and
access that from the MBSCustomPage, I think I could do what I need to do.

Does anyone know how to do this?

I would also be happy if I could run a different MBS wizard page based on
project type, but the project types aren't fine-grained enough
(they are not my projects determined by the templates).

More discussion of this is in
https://bugs.eclipse.org/bugs/show_bug.cgi?id=205182

Can anyone help? Thanks.


...Beth

Beth Tibbitts  (859) 243-4981  (TL 545-4981)
High Productivity Tools / Parallel Tools  http://eclipse.org/ptp
IBM T.J.Watson Research Center
Mailing Address:  IBM Corp., 455 Park Place, Lexington, KY 40511



Back to the top