Show EditorVariablesResolver custom variables in 'Custom Editor Variables' in 'Preferences'?

I am using an EditorVariablesResolver to add two custom variables. That works, thank you. However, I was surprised, and then another developer was surprised, that the added custom variables do not show in the 'Custom Editor Variables' list in the 'Preferences' dialog box. Is it possible to show the programmatically-added custom variables and their current values in the 'Custom Editor Variables' list even though the variables can't be edited from the 'Preferences' dialog box? Regards, Tony Graham. -- XML Division Antenna House, Inc. tony@antennahouse.com

Hi Tony, Indeed in that Preferences list we show only variables manually added by end users and we'll probably continue to do so. But in places where custom editor variables can be used (the Oxygen dialogs which contain "Insert Editor Variables" drop down buttons those custom variables should appear. Regards, Radu Radu Coravu <oXygen/> XML Editor http://www.oxygenxml.com On 10/14/2019 1:32 PM, Tony Graham wrote:
I am using an EditorVariablesResolver to add two custom variables. That works, thank you.
However, I was surprised, and then another developer was surprised, that the added custom variables do not show in the 'Custom Editor Variables' list in the 'Preferences' dialog box.
Is it possible to show the programmatically-added custom variables and their current values in the 'Custom Editor Variables' list even though the variables can't be edited from the 'Preferences' dialog box?
Regards,
Tony Graham.

On 14/10/2019 11:37, Oxygen XML Editor Support (Radu Coravu) wrote:
Indeed in that Preferences list we show only variables manually added by end users and we'll probably continue to do so.
That is the first place that anyone has looked to see if the variables exist.
But in places where custom editor variables can be used (the Oxygen dialogs which contain "Insert Editor Variables" drop down buttons those custom variables should appear.
They do, and that was how I knew that I had at least registered them. I ended up making an 'External Tool' to run 'echo' to echo the values of the variables just to check that the values were correct. Regards, Tony Graham. -- XML Division Antenna House, Inc. tony@antennahouse.com

Hi Tony, Thanks, I added an internal issue to look into adding as read-only the API editor variables in Oxygen's "Custom Editor Variables" Preferences page. Regards, Radu Radu Coravu <oXygen/> XML Editor http://www.oxygenxml.com On 10/14/2019 1:46 PM, Tony Graham wrote:
On 14/10/2019 11:37, Oxygen XML Editor Support (Radu Coravu) wrote:
Indeed in that Preferences list we show only variables manually added by end users and we'll probably continue to do so.
That is the first place that anyone has looked to see if the variables exist.
But in places where custom editor variables can be used (the Oxygen dialogs which contain "Insert Editor Variables" drop down buttons those custom variables should appear.
They do, and that was how I knew that I had at least registered them.
I ended up making an 'External Tool' to run 'echo' to echo the values of the variables just to check that the values were correct.
Regards,
Tony Graham.

On 15/10/2019 07:21, Oxygen XML Editor Support (Radu Coravu) wrote:
Thanks, I added an internal issue to look into adding as read-only the API editor variables in Oxygen's "Custom Editor Variables" Preferences page.
Thank you. If that can be implemented, it would avoid a lot of confusion. Regards, Tony Graham. -- XML Division Antenna House, Inc. tony@antennahouse.com
participants (2)
-
Oxygen XML Editor Support (Radu Coravu)
-
Tony Graham