Associate a Custom View with Document Types

Post here questions and problems related to oXygen frameworks/document types.
Posts: 3

Associate a Custom View with Document Types

Thu Feb 02, 2017 10:59 pm


We have implemented a custom view plugin by implementing the ViewComponentCustomizer interface and would like to only have it displayed for certain document types. I'm thinking about the way that the Attributes view is only displayed for certain file types. Is there a way to have Oxygen only display the custom view for certain document types?


Posts: 5867

Re: Associate a Custom View with Document Types

Fri Feb 03, 2017 9:37 am

Hi Strohm,

You have API to hide ro.sync.exml.workspace.api.standalone.StandalonePluginWorkspace.hideView(String) and show a view ro.sync.exml.workspace.api.standalone.StandalonePluginWorkspace.showView(String, boolean).
And you also have API to listen to editor selection events ro.sync.exml.workspace.api.PluginWorkspace.addEditorChangeListener(WSEditorChangeListener, int).
So when a certain XML document's tab is selected you can choose to show/hide the view (or maybe set another content to it).

Radu Coravu
<oXygen/> XML Editor

Return to “SDK-API, Frameworks - Document Types”

Who is online

Users browsing this forum: No registered users and 1 guest