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.
The Editor API contains a lot of dependencies on Swing. Many of content manipulation code however does not need to work in a Swing-based environment, access to plain Document (or StyledDocument) would be sufficient. Editor APIs however expose BaseDocument, which derives from Swing AbstractDocument and the APIs reference a lot of Swing classes. I proposed to create a dedicated Document interface + move content manipulation utilities to a separate module, editor.document as outlined in the wiki - http://wiki.netbeans.org/EditorDocumentApi The change can be seen live in the server_split branch of jet-main hg repository.
Already implemented / merged