1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-01 06:05:24 +02:00

Add setting of descriptions to the template selection page.

Change-Id: I4ea25acfac4246acd2bec10c5d94e05d3e9d8ac9
This commit is contained in:
Doug Schaefer 2016-09-21 11:18:21 -04:00
parent 379656e1be
commit 690559effb

View file

@ -13,6 +13,7 @@ public class NewWizard extends Wizard implements INewWizard {
private final String[] tags;
private String templateSelectionPageTitle;
private String templateSelectionPageDescription;
private IWorkbench workbench;
private IStructuredSelection selection;
private TemplateSelectionPage templateSelectionPage;
@ -29,10 +30,18 @@ public class NewWizard extends Wizard implements INewWizard {
}
}
protected void setTemplateSelectionPageDescription(String description) {
this.templateSelectionPageDescription = description;
if (templateSelectionPage != null) {
templateSelectionPage.setDescription(description);
}
}
@Override
public void addPages() {
templateSelectionPage = new TemplateSelectionPage("templateSelection", tags); //$NON-NLS-1$
templateSelectionPage.setTitle(templateSelectionPageTitle);
templateSelectionPage.setDescription(templateSelectionPageDescription);
this.addPage(templateSelectionPage);
}