/** Constructor to be called from public default one. */ private TemplateWizard (TemplateWizardIterImpl it) { super (it); this.iterator = it; // pass this to iterator iterator.initialize(this); putProperty("WizardPanel_autoWizardStyle", Boolean.TRUE); // NOI18N putProperty("WizardPanel_contentDisplayed", Boolean.TRUE); // NOI18N putProperty("WizardPanel_contentNumbered", Boolean.TRUE); // NOI18N setTitle(NbBundle.getMessage(TemplateWizard.class,"CTL_TemplateTitle")); //NOI18N setTitleFormat(new java.text.MessageFormat("{0}")); // NOI18N }
/** This is method used by TemplateWizardPanel1 to change the template */ final void setTemplateImpl (DataObject obj, boolean notify) { DataObject old = template; if (template != obj) { template = obj; } setTitle(NbBundle.getMessage(TemplateWizard.class, "CTL_TemplateTitle2", obj.getNodeDelegate().getDisplayName())); if (old != template) { Iterator it; if ( obj == null || (it = getIterator (obj)) == null ) { it = defaultIterator (); } this.iterator.setIterator (it, notify); } }
wizard.setTitle(org.openide.util.NbBundle.getBundle(TemplateWizard.class).getString("CTL_TemplateTitle")); updateRootNode (wizard.getTemplatesFolder ());
DataObject dob = DataObject.find(FileUtil.getConfigFile(test.getPath())); String title = templateWizard.getTitleFormat().format(new Object[] { dob.getNodeDelegate().getDisplayName() }); templateWizard.setTitle(title); Set<DataObject> files = templateWizard.instantiate(dob); if (files != null && !files.isEmpty()) {