Please use the Apache issue tracking system for new NetBeans issues (https://issues.apache.org/jira/projects/NETBEANS0/issues) !!
Bug 244679 - Extract document manipulation from editor.lib(2)
Extract document manipulation from editor.lib(2)
Status: NEW
Product: editor
Classification: Unclassified
Component: -- Other --
8.0.1
PC Linux
: P2 (vote)
: 8.0.1
Assigned To: Svata Dedic
issues@editor
:
Depends on:
Blocks:
  Show dependency treegraph
 
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
:


Attachments

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
See http://hg.netbeans.org/jet-main/rev/53f02b33dc09
Comment 2 Miloslav Metelka 2014-05-29 16:32:36 UTC
Removed ALD.atomicLock()/Unlock() and improved javadocs. Removed compilation warnings.
http://hg.netbeans.org/jet-main/rev/96eebb6d9751
Comment 3 Quality Engineering 2014-10-18 05:13:05 UTC
Integrated into 'main-silver', will be available in build *201410180001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/96eebb6d9751
User: Miloslav Metelka <mmetelka@netbeans.org>
Log: #244679 - Extract document manipulation from editor.lib(2) - removed AtomicLockDocument.atomicLock()/Unlock().


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo