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 - Split IDE/Swing specific parts from Editor API
Summary: Split IDE/Swing specific parts from Editor API
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 8.1
Hardware: PC Linux
: P1 normal (vote)
Assignee: Svata Dedic
URL:
Keywords: API, API_REVIEW
Depends on:
Blocks: 247200
  Show dependency tree
 
Reported: 2014-09-16 11:09 UTC by Svata Dedic
Modified: 2015-03-31 08:30 UTC (History)
0 users

See Also:
Issue Type: TASK
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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