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.

Bug 247163

Summary: Split IDE/Swing specific parts from Editor API
Product: editor Reporter: Svata Dedic <sdedic>
Component: -- Other --Assignee: Svata Dedic <sdedic>
Status: RESOLVED FIXED    
Severity: normal Keywords: API, API_REVIEW
Priority: P1    
Version: 8.1   
Hardware: PC   
OS: Linux   
Issue Type: TASK Exception Reporter:
Bug Depends on:    
Bug Blocks: 247200    

Description Svata Dedic 2014-09-16 11:09:38 UTC
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.
Comment 1 Svata Dedic 2015-03-31 08:30:15 UTC
Already implemented / merged