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.
Cf. also comments in issue #40894. Currently the action expects the II impl to return Set<DataObject>. This should be Set<FileObject> instead. Or perhaps Set<Project>. Also it would IMHO be good to accept both projects / project directories (the project is opened), and regular files (the file's default action is run, i.e. open in editor). This would provide a proper way to open the newly created main class. Also the behavior of setAsMain is incorrect in case multiple projects are created. Probably only the first project in the set should be opened (let's assume the set is ordered). Or the setAsMain attribute should be of type FileObject or Project.
Log: #42870: new project calls the main class's preferred action (e.g. open in editor); also implementators of WD.InstantiatingIterator instantiate set of FileObject (instead of DataObject) Checking in java/j2seproject/src/org/netbeans/modules/java/j2seproject/ui/wizards/NewJ2SEProjectWizardIterator.java; /cvs/java/j2seproject/src/org/netbeans/modules/java/j2seproject/ui/wizards/NewJ2SEProjectWizardIterator.java,v <-- NewJ2SEProjectWizardIterator.java new revision: 1.6; previous revision: 1.5 done Processing log script arguments... More commits to come... Checking in java/project/src/org/netbeans/modules/java/project/NewJavaFileWizardIterator.java; /cvs/java/project/src/org/netbeans/modules/java/project/NewJavaFileWizardIterator.java,v <-- NewJavaFileWizardIterator.java new revision: 1.7; previous revision: 1.6 done Processing log script arguments... More commits to come... Checking in projects/projectui/src/org/netbeans/modules/project/ui/NewFileWizard.java; /cvs/projects/projectui/src/org/netbeans/modules/project/ui/NewFileWizard.java,v <-- NewFileWizard.java new revision: 1.8; previous revision: 1.7 done RCS file: /cvs/projects/projectui/src/org/netbeans/modules/project/ui/NewProjectWizard.java,v done Checking in projects/projectui/src/org/netbeans/modules/project/ui/NewProjectWizard.java; /cvs/projects/projectui/src/org/netbeans/modules/project/ui/NewProjectWizard.java,v <-- NewProjectWizard.java initial revision: 1.1 done Processing log script arguments... More commits to come... Checking in projects/projectui/src/org/netbeans/modules/project/ui/actions/NewFile.java; /cvs/projects/projectui/src/org/netbeans/modules/project/ui/actions/NewFile.java,v <-- NewFile.java new revision: 1.5; previous revision: 1.4 done Checking in projects/projectui/src/org/netbeans/modules/project/ui/actions/NewProject.java; /cvs/projects/projectui/src/org/netbeans/modules/project/ui/actions/NewProject.java,v <-- NewProject.java new revision: 1.4; previous revision: 1.3 done