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.
I've created a netbeans module project using NB6.1 latest patch, created a class witch implement ProjectFactory interface, imported the project api, then in the class declaration line I used that bubble hint "Implement All Abstract Methods", I've got this line inserted twice: import org.openide.filesystems.FileObject; import org.openide.filesystems.FileObject;
Was the o.o.f.FileObject on the classpath of the given class? I.e. was there dependency on the Filesystem API?
Well those are the exact steps involved: - Create a new netbeans module project. - Create a new class org.myorg.module.ModuleProjectFactory. - Add "implements ProjectFactory" to the class declaration. At this point have not yet declared any dependency on any api, the ProjectFactory isn't yet reconised by the IDE so I open the module project Properties --> Add Dependency --> In filter I type "Project Factory" --> Select the "Project Api". - Now the hint shows "Add Import for org.netbeans.spi.project.ProjectFactory". I select it and the import is added correctly - The hint shows "implement all all abstract methods". I select it and here I get the "import org.openide.filesystems.FileObject;" inserted twice. So for your question, no at this point the "File System API" dependency isn't yet declared and the "FileObject" class isn't yet in the classpath. Regards.
The mechanism would work OK in case CP would be correct. We'll enhance the functionality in the future. Thanks.
Reopening for the future.