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

Summary: Introduce View API/SPI
Product: editor Reporter: Miloslav Metelka <mmetelka>
Component: Painting & PrintingAssignee: Miloslav Metelka <mmetelka>
Status: NEW ---    
Severity: normal CC: emi, err, gwaldon, sdedic
Priority: P2 Keywords: API
Version: 7.2   
Hardware: PC   
OS: Linux   
Issue Type: TASK Exception Reporter:
Bug Depends on:    
Bug Blocks: 205953, 207670, 208078    

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.