Page 1 of 1

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

Posted: Wed Jul 30, 2025 9:03 pm
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

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

Posted: Thu Jul 31, 2025 7:19 am
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