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.
Summary: | "Implement All Abstract Methods" insert import org.openide.filesystems.FileObject; twice | ||
---|---|---|---|
Product: | java | Reporter: | dao <dao> |
Component: | Hints | Assignee: | Svata Dedic <sdedic> |
Status: | REOPENED --- | ||
Severity: | blocker | ||
Priority: | P4 | ||
Version: | 6.x | ||
Hardware: | PC | ||
OS: | Windows Vista | ||
Issue Type: | ENHANCEMENT | Exception Reporter: |
Description
dao
2008-06-05 11:15:13 UTC
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. The mechanism would work OK in case CP would be correct. We'll enhance the functionality in the future. Thanks. Reopening for the future. |