targetName in wizard
Peter Wisnovsky <[email protected]> Wed, 8 Oct 2003 13:19:05 -0700
| Newsgroups | gmane.comp.java.netbeans.modules.projects.devel |
|---|---|
| Message-ID | <[email protected]> |
Peter Wisnovsky writes: > I'm using a template wizard iterator and having trouble accessing the > target name of the wizard. > > I have the following: > > DataFolder folder = wiz.getTargetFolder(); > FileObject packageObject = folder.getPrimaryFile(); > String targetName = packageObject.getName() + "." + wiz.getTargetName(); > > > where wiz is a TemplateWizard. getTargetName() is returning null, even > though I've set a name in the target location panel. As I recall this > used to retrieve the name I entered in the "Name" field of the > chooser. Is this no longer the right API? More info. What is happening is that I'm asking for the target name before proceeding to the next panel. I used to be able to use getTargetName for this. When I call getTargetName from my wizard's instantiate() method it returns the proper response. Peter