add OptionListener to OptionStorage in wsaccess js plugin
Post here questions and problems related to oXygen frameworks/document types.
Re: add OptionListener to OptionStorage in wsaccess js plugin
Hi Barbara,
Right, the "ro.sync.exml.workspace.api.options.WSOptionListener" abstract class has a constructor which needs to be passed the key as an argument:
https://www.oxygenxml.com/InstData/Edit ... tener.html
and I also cannot find a way to do this from the Javascript code.
If you want I can try to add on our side of the code a default constructor for "WSOptionListener" and an extra method "setKey", in this way the Javascript which would add the listener:
Would it help you if I made these changes to the "WSOptionListener" class (default constructor and "setKey" method) available for Oxygen 21 (February 2019)?
Regards,
Radu
Right, the "ro.sync.exml.workspace.api.options.WSOptionListener" abstract class has a constructor which needs to be passed the key as an argument:
https://www.oxygenxml.com/InstData/Edit ... tener.html
and I also cannot find a way to do this from the Javascript code.
If you want I can try to add on our side of the code a default constructor for "WSOptionListener" and an extra method "setKey", in this way the Javascript which would add the listener:
Code: Select all
optionsListener = {
optionValueChanged: function (event) {
}
}
adapter = new JavaAdapter(Packages.ro.sync.exml.workspace.api.options.WSOptionListener, optionsListener);
adapter.setKey("myKey");
pluginWorkspaceAccess.getOptionsStorage().addOptionListener(adapter);
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)
- ↳ 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