Hello , i was trying to use api to set the global options
pluginWorkspaceAccess.setGlobalObjectProperty(APIAccessibleOptionTags.DITA_FILL_TOPICREF_FORMAT_ATTR,Boolean.TRUE);
but this giving error "can not be resolved or is not a field"
the API available here
https://www.oxygenxml.com/InstData/Edit ... ORMAT_ATTR
where as this works fine
pluginWorkspaceAccess.setGlobalObjectProperty(APIAccessibleOptionTags.DITA_OT_DIRECTORY,"path-to-dita-ot");
Thanks,
vishwa
want to fill automatically values for attributes Format , scope , type and Navigation title for topicref
-
- Posts: 33
- Joined: Fri Feb 28, 2020 4:02 pm
Re: want to fill automatically values for attributes Format , scope , type and Navigation title for topicref
Hi,
What version of Oxygen are you using with the plugin?
This particular API field ro.sync.exml.options.APIAccessibleOptionTags.DITA_FILL_TOPICREF_FORMAT_ATTR was added in Oxygen 22.0.
So probably you are compiling the plugin with a new SDK and then running it with an older Oxygen version.
If instead of using the constant you use directly the string "dita.fill.format.attribute", like:
does that work for you?
Regards,
Radu
What version of Oxygen are you using with the plugin?
This particular API field ro.sync.exml.options.APIAccessibleOptionTags.DITA_FILL_TOPICREF_FORMAT_ATTR was added in Oxygen 22.0.
So probably you are compiling the plugin with a new SDK and then running it with an older Oxygen version.
If instead of using the constant you use directly the string "dita.fill.format.attribute", like:
Code: Select all
pluginWorkspaceAccess.setGlobalObjectProperty("dita.fill.format.attribute",Boolean.TRUE);
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 33
- Joined: Fri Feb 28, 2020 4:02 pm
Re: want to fill automatically values for attributes Format , scope , type and Navigation title for topicref
many Thanks Radu ..it's worked for me.
Thanks,
vishwa
vishwa