AuthorOutlineCustomizer and AuthorBreadCrumbCustomizer problems

Oxygen general issues.
xscorpio
Posts: 3
Joined: Mon Mar 18, 2013 4:28 pm

AuthorOutlineCustomizer and AuthorBreadCrumbCustomizer problems

Post by xscorpio »

Hi,

I'm trying to customize the render for the node in Outline and Bread crumb.

For that I'm using AuthorOutlineCustomizer and AuthorBreadCrumbCustomizer classes.

In my method customizeRenderingInformation(), I have the following instruction: renderInfo.setIconPath("${frameworks}/gdr/img/center.png");

But it doesn't work. Why?
Radu
Posts: 9446
Joined: Fri Jul 09, 2004 5:18 pm

Re: AuthorOutlineCustomizer and AuthorBreadCrumbCustomizer problems

Post by Radu »

Hi,

The method setIconPath is indeed available in the RenderingInformation API but it does not work for the AuthorOutlineCustomizer, we'll try to fix this.

Instead you can overwrite this method in the ExtensionsBundle implementation:

Code: Select all

ExtensionsBundle.createXMLNodeCustomizer()
or create an implementation of ro.sync.exml.workspace.api.node.customizer.XMLNodeRendererCustomizer (the Author SDK should contain the sources for the DITA and Docbook implementation classes as an example) and set it as a separate extension in the document type (edit the document type and set it in the "Extensions tab").

An extension of type XMLNodeRendererCustomizer (which is a newer API) should also provide icons in the Text page Outline.

The breadcrumb which shows the path to the current node does not have API support to set a custom icon to each node (just the name).

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply