Can you set the Outline Panel filter from the desktop author SDK/API

Post here questions and problems related to oXygen frameworks/document types.
gc_swilson39
Posts: 3
Joined: Wed Feb 19, 2025 7:35 pm

Can you set the Outline Panel filter from the desktop author SDK/API

Post by gc_swilson39 »

I'm having trouble finding information about interacting with the Outline View pane in the desktop version Author.
Is it possible to interact with that panel using the Java SDK?
I'd like to create a custom action in Java that can do something like simultaneously collapse all the child elements below a certain XML tag in the Author pane, AND apply a filter in the Outline pane to match. For example, collapse all the elements in a DocBook file below <section> and filter the outline to just <section> tags as well.
If that's not possible, perhaps someone knows of an alternative? Is there is a way to synchronize the expand/collapse state in the outline tree with the document tree?

Thanks for any help you can provide!
-Scott
Radu
Posts: 9515
Joined: Fri Jul 09, 2004 5:18 pm

Re: Can you set the Outline Panel filter from the desktop author SDK/API

Post by Radu »

Hi Scott,

Unfortunately we do not have much API to interact with the Outline.

We have "ro.sync.exml.workspace.api.editor.page.author.WSAuthorEditorPage.getOutlineAccess()"
https://archives.oxygenxml.com/Oxygen/E ... ccess.html
which allows you to select nodes or get the current selection.

And we also have this API:
https://www.oxygenxml.com/InstData/Edit ... ustomizer)
which would allow you to customize the popup menu on the Outline: https://www.oxygenxml.com/InstData/Edit ... horAccess)

Using our APIs one could probably build their own Outline custom side view but this would take some work.

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