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.
In a new module, use New File Type, MIME Type "application/x-test", extension "test", class name prefix "Test", use any icon, uncheck "Use MultiView", Finish. The resulting TestDataObject.java contains two unused imports. "import org.openide.util.Lookup;" isn't used, but is otherwise harmless. "import org.openide.windows.TopComponent;" isn't used, but the module does not have a dependency on Window System API, so this import causes a "package org.openide.windows does not exist" error. This is easily fixed using Fix Imports, therefore priority P4.
When creating DataObject class using New File Type, unused imports are removed.
Integrated into 'main-golden', will be available in build *201212120001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/80a6f16a3e62 User: Martin Kozeny <mkozeny@netbeans.org> Log: #218972: When creating DataObject class using New File Type, unused imports are removed