add options page from js workspace access plugin
Post here questions and problems related to oXygen frameworks/document types.
add options page from js workspace access plugin
hi, i'm working on a js wsaccess plugin and i would like to add a preference page allowing users to store their plugin settings.
do i need a second plugin based on the Option Page Plugin Extension interface or can i create the preference page in my wsaccess.js?
best wishes,
barbara
do i need a second plugin based on the Option Page Plugin Extension interface or can i create the preference page in my wsaccess.js?
best wishes,
barbara
Re: add options page from js workspace access plugin
Hi Barbara,
The Preferences page extension point needs to be Java based.
But you can have a single plugin which adds both the Java-based preferences page and the Javascript-based workspace access plugin.
Basically your plugin.xml would look like this:
https://www.oxygenxml.com/doc/versions/ ... lugin.html
An example of a plugin which implements such an options page extension can be found here:
https://github.com/oxygenxml/oxygen-dita-prolog-updater
Regards,
Radu
The Preferences page extension point needs to be Java based.
But you can have a single plugin which adds both the Java-based preferences page and the Javascript-based workspace access plugin.
Basically your plugin.xml would look like this:
Code: Select all
<plugin
id="..."
name="..."
description="..."
version="1.0"
vendor="Syncro Soft"
class="ro.sync.exml.plugin.Plugin"
classLoaderType="preferReferencedResources">
<runtime>
<library name="lib/optionPageImpl.jar"/>
</runtime>
<extension type="WorkspaceAccessJS" href="wsAccess.js"/>
<extension type="OptionPage" class="my.pack.CustomOptionPagePluginExtension"/>
</plugin>
An example of a plugin which implements such an options page extension can be found here:
https://github.com/oxygenxml/oxygen-dita-prolog-updater
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