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 244679 - Extract document manipulation from editor.lib(2)
Summary: Extract document manipulation from editor.lib(2)
Status: NEW
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 8.0.1
Hardware: PC Linux
: P2 normal (vote)
Assignee: Svata Dedic
Depends on:
Reported: 2014-05-23 08:35 UTC by Svata Dedic
Modified: 2014-10-18 05:13 UTC (History)
1 user (show)

See Also:
Issue Type: TASK
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description Svata Dedic 2014-05-23 08:35:57 UTC
Modules editor.lib and editor.lib2 contain many Swing-related interfaces in addition to document features. 
If the document is to be used without Swing (e.g. editor replacement, some service implementation), at least interfaces to BaseDocument should be extracted to a separate module so that client code may declared dependency on Document manipulation API/utils and not require the rest.

The APIs/suitable utilities should be moved to editor.document module.

Milo please review the API/module contents in the server_split branch; especially the AtomicLockDocument interface -- while the original AtomicLockDocument interface in editor.lib was not deprecated, BaseDocument.atomicLock was. If the design should promote runAtomic over lock/unlock pairs, these can be still removed from the API until we merge/release the code.

I have also some doubts about exposing the (Adjust)Finder interface; it seems ancient and not widely used.
Comment 1 Svata Dedic 2014-05-23 08:59:22 UTC
Comment 2 Miloslav Metelka 2014-05-29 16:32:36 UTC
Removed ALD.atomicLock()/Unlock() and improved javadocs. Removed compilation warnings.
Comment 3 Quality Engineering 2014-10-18 05:13:05 UTC
Integrated into 'main-silver', will be available in build *201410180001* on (upload may still be in progress)

User: Miloslav Metelka <>
Log: #244679 - Extract document manipulation from editor.lib(2) - removed AtomicLockDocument.atomicLock()/Unlock().