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.
When creating a new FileType object in a module, the generated method signature for "public static MultiViewEditorElement createEditor(Lookup lkp)" contains 2 errors. First, it references TopComponent.PERSISTENCE_ONLY_OPENED which is not available via the imports. Second, it uses Lookup which is not available via the imports. Solution: Simple import of the TopComponent class will generate a third error regarding the type of values allowed in the annotation so the proper correction is to provide a static import for the TopComponent.PERSISTENCE_ONLY_OPENED value. A simple import of the Lookup class is sufficient to correct the second problem.
fix: http://hg.netbeans.org/core-main/rev/fbc6a22c00c6
Integrated into 'main-golden', will be available in build *201301040001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/fbc6a22c00c6 User: Ondrej Vrabec <ovrabec@netbeans.org> Log: #224290 - New FileType template contains invalid createEditor method signature. fixing missing imports in template