mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-13 12:05:21 +02:00
Merge "Add setting of descriptions to the template selection page."
This commit is contained in:
commit
11ccb83e9f
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 final String[] tags;
|
||||||
|
|
||||||
private String templateSelectionPageTitle;
|
private String templateSelectionPageTitle;
|
||||||
|
private String templateSelectionPageDescription;
|
||||||
private IWorkbench workbench;
|
private IWorkbench workbench;
|
||||||
private IStructuredSelection selection;
|
private IStructuredSelection selection;
|
||||||
private TemplateSelectionPage templateSelectionPage;
|
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
|
@Override
|
||||||
public void addPages() {
|
public void addPages() {
|
||||||
templateSelectionPage = new TemplateSelectionPage("templateSelection", tags); //$NON-NLS-1$
|
templateSelectionPage = new TemplateSelectionPage("templateSelection", tags); //$NON-NLS-1$
|
||||||
templateSelectionPage.setTitle(templateSelectionPageTitle);
|
templateSelectionPage.setTitle(templateSelectionPageTitle);
|
||||||
|
templateSelectionPage.setDescription(templateSelectionPageDescription);
|
||||||
this.addPage(templateSelectionPage);
|
this.addPage(templateSelectionPage);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue