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

Merge "Add setting of descriptions to the template selection page."

This commit is contained in:
Doug Schaefer 2016-09-21 11:21:39 -04:00 committed by Gerrit Code Review @ Eclipse.org
commit 11ccb83e9f

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);
}