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: | org.openide.text.FilterDocument cannot be cast to org.netbeans.editor.BaseDocument | ||
---|---|---|---|
Product: | editor | Reporter: | _ dcaoyuan <dcaoyuan> |
Component: | Parsing & Indexing | Assignee: | Miloslav Metelka <mmetelka> |
Status: | RESOLVED FIXED | ||
Severity: | blocker | CC: | anli, mmetelka |
Priority: | P3 | ||
Version: | 6.x | ||
Hardware: | Macintosh | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
_ dcaoyuan
2009-09-05 10:45:21 UTC
The issue seems come from: http://hg.netbeans.org/main/rev/52f4cc2e85f1 Where, editor.libs' "layer.xml" register a global("" mimeType) SearchableEditorKitImpl instance: <file name="EditorKit.instance"> <attr name="instanceCreate" methodvalue="org.netbeans.modules.editor.lib2.actions.SearchableEditorKitImpl.createGlobalKit"/> </file> which causes org.openide.text.CloneableEditorSupport#getEditorKit(String mimePath) always ignore org.netbeans.modules.csl.core.GsfEditorKitFactory$GsfEditorKit, and returns a SearchableEditorKitImpl instance always. Fixed by issue 171600. |