Associate a Custom View with Document Types
Post here questions and problems related to oXygen frameworks/document types.
-
- Posts: 4
- Joined: Wed May 25, 2016 11:34 pm
Associate a Custom View with Document Types
Greetings,
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?
Thanks,
Strohm
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?
Thanks,
Strohm
-
- Posts: 9470
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Associate a Custom View with Document Types
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).
Regards,
Radu
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).
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Return to “SDK-API, Frameworks - Document Types”
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service