|Re: [wtp-dev] Customizing XML Editor Outline view|
On 10/21/2015 10:25 AM, Kev James wrote:
I would recommend you, and I would recommend anyone interested in contributing that to WTP as well, to rely on the Common Navigator Framework to implement the outline. This would provide extensibility "for free" as the CNF is designed for extensibility.
To use CNF, you have to re-implement the Outline View for your editor by using a CommonViewer or extending CommonNavigator, giving it an ID, and using the NavigatorService to retrieve the various content/label providers that will be associated with this ID via plugin.xml.
If you implement it that way, you'll have to create the extensions to register the regular WTP content/label providers found in XMLContentOutlineConfiguration to the NavigatorService registry. In that case, please also contribute those extensions defined in the plugin.xml to WTP, that would be a first step towards adoption of CNF in WTP directly.
Back to the top