Project: Eclipse_Platform_UI
Bug 23138 [Wizards] Bad example in Javadoc of BasicNewFolderResource
Reported: 2002-09-04 01:29:45 | Status: closed fixed

The javadoc for org.eclipse.ui.wizards.newresource.BasicNewBolderResource offers the following example: IWizard wizard = new BasicNewFolderResourceWizard(); wizard.init(workbench, selection); WizardDialog dialog = new WizardDialog(shell, wizard); dialog.open(); This code will produce an error as IWizard is without an init() method. I believe the example should read: INewWizard wizard = new BasicNewFolderResourceWizard(); wizard.init(workbench, selection); WizardDialog dialog = new WizardDialog(shell, wizard); dialog.open(); Eclipse rocks. -Adam Childs

Files changed in fix:
bundles/org.eclipse.ui/Eclipse UI Standard Components/org/eclipse/ui/wizards/newresource/BasicNewFileResourceWizard.java bundles/org.eclipse.ui/Eclipse UI Standard Components/org/eclipse/ui/wizards/newresource/BasicNewFolderResourceWizard.java bundles/org.eclipse.ui/Eclipse UI Standard Components/org/eclipse/ui/wizards/newresource/BasicNewProjectResourceWizard.java