Please use the Apache issue tracking system for new NetBeans issues ( !!
Bug 205707 - Introduce View API/SPI
Introduce View API/SPI
Status: NEW
Product: editor
Classification: Unclassified
Component: Painting & Printing
PC Linux
: P2 (vote)
: 7.4
Assigned To: Miloslav Metelka
: 213999 (view as bug list)
Depends on:
Blocks: 205953 207670 208078
  Show dependency treegraph
Reported: 2011-11-30 11:46 UTC by Miloslav Metelka
Modified: 2012-11-12 12:42 UTC (History)
4 users (show)

See Also:
Issue Type: TASK


Note You need to log in before you can comment on or make changes to this bug.
Description Miloslav Metelka 2011-11-30 11:46:37 UTC
Besides TextUI.modelToView() and viewToModel() operation the View API should reflect specific aspects of editor view hierarchy such as lazy construction, non-EDT view rebuilds which implies a requirement for locking.
View SPI should allow to register custom view factories to build client's custom views.

When designing the editor.lib2/org.netbeans.modules.editor.lib2.view package I have assumed potential API/SPI classes. They will need some polishing but it should be more or less like this:

View API:

View SPI:
Comment 1 Miloslav Metelka 2012-06-14 08:02:18 UTC
*** Bug 213999 has been marked as a duplicate of this bug. ***
Comment 2 David Strupl 2012-11-06 15:18:17 UTC
Should this still be opened?
Comment 3 Miloslav Metelka 2012-11-12 12:42:33 UTC
Yes, although we'll probably have to postpone to 7.4 in order to rewrite current side bars and other code to verify that the API will cover all the necessary usecases.

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