This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
import java.io.File;
import java.util.Set;
import java.io.IOException;
import java.lang.ref.Reference;
import java.lang.ref.WeakReference;
import java.net.URL;
import java.text.DateFormat;
import java.util.Date;
/** Singleton instance of JavaWizardIterator, should it be ever needed.
*/
private static XMLWizardIterator instance;
private static Reference<XMLWizardIterator> instance;
private transient Map listenersMap = new HashMap(2);
private transient String[] beforeSteps;
* for constructing the instance from filesystem.attributes.
public static synchronized XMLWizardIterator singleton() {
if (instance == null) {
XMLWizardIterator it = instance == null ? null : instance.get();
instance = new XMLWizardIterator();
if (it == null) {
it = new XMLWizardIterator();
instance = new WeakReference<XMLWizardIterator>(it);
}
return instance;
return it;
public void initialize(TemplateWizard templateWizard) {