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 205707 - Introduce View API/SPI
Summary: Introduce View API/SPI
Status: NEW
Alias: None
Product: editor
Classification: Unclassified
Component: Painting & Printing (show other bugs)
Version: 7.2
Hardware: PC Linux
: P2 normal (vote)
Assignee: Miloslav Metelka
Keywords: API
: 213999 (view as bug list)
Depends on:
Blocks: 205953 207670 208078
  Show dependency tree
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
Exception Reporter:


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.