Please use the Apache issue tracking system for new NetBeans issues (https://issues.apache.org/jira/projects/NETBEANS0/issues) !!

Bug 205707

Summary: Introduce View API/SPI
Product: editor Reporter: Miloslav Metelka <mmetelka>
Component: Painting & PrintingAssignee: Miloslav Metelka <mmetelka>
Status: NEW --- QA Contact: issues <issues.netbeans.org>
Priority: P2 CC: emi, err, gwaldon, sdedic
Version: 7.2Keywords: API
Target Milestone: 7.4   
Hardware: PC   
OS: Linux   
Whiteboard:
Issue Type: TASK Exception Report:
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:
ViewHierarchy
LockedViewHierarchy
ViewHierarchyListener
ViewHierarchyEvent

View SPI:
EditorViewFactory
EditorView
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