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:
parent
379656e1be
commit
690559effb
1 changed files with 9 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue