Setting Environment variables

Having trouble deploying Oxygen XML Web Author? Got a bug to report? Post it all here.
Srinarayan
Posts: 42
Joined: Tue Jun 08, 2021 3:27 pm

Setting Environment variables

Post by Srinarayan »

Hi,

I wanted to know if there is any way to set environment variables of our choice so that we can get it wherever we want just like "authorAccess.getReviewController().getReviewerAuthorName()" variable.

Also if there is any way to analyze and custom define a function of a button defined in CSS in a topic prolog? Please let me know how I can proceed?

Regards,
Vivek.
Radu
Posts: 9472
Joined: Fri Jul 09, 2004 5:18 pm

Re: Setting Environment variables

Post by Radu »

Hi Vivek,

In the Oxygen Preferences we have a "Custom Editor Variables" page where you can define custom editor variables and their values. Then you can use our APIs in the Java code to expand a string containing editor variables "ro.sync.exml.workspace.api.util.UtilAccess.expandEditorVariables(String, URL)".
We also have an already defined editor variable named "env" which can be expanded to the value of an environmental variable set in the Oxygen process when it starts:

https://www.oxygenxml.com/doc/versions/ ... ables.html

Like for example ${env(JAVA_HOME)}

About the second unrelated problem please start a different discussion thread and give more details about what you want.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply