Hi,
We've had previous requests and we have an internal issue on which we gathered similar use cases but right now we do not have such mechanisms in place.
There are two main use-cases and you seem to want both of them:
1) Let's say in the new file template I use different editor variables in two places:
Code: Select all
<ph id = ${ask('What ID should this ph have?', generic, 'default')}/>
Code: Select all
<code id = ${ask('What ID should this code have?', generic, 'default')}/>
Maybe Oxygen should present a single dialog in which it asks for values for both these questions, instead of presenting two dialogs.
2) You want to ask for the value of one parameter in one place and use it in multiple places. Maybe in a future version we could also add some improvements related to this, allow you to define IDs on each $ask, something like:
Code: Select all
<${ask('What ID should this ph have?', generic, 'default', id="abc")}/>
Code: Select all
<${ask('What ID should this ph have?', generic, 'default', id="abc")}/>
In this way Oxygen would ask for the value of the first ask, then seeing that the second one has the same ID, reuse the returned value for the second instance.
Until then, we have Java and Javascript-based API which allows you to resolve custom editor variables using a plugin.
For example this repository of Javascript-based plugins:
https://github.com/oxygenxml/wsaccess-j ... le-plugins
has a sample plugin called
customEditorVariables which resolves a custom editor variable called
${clipboard}.
Regards,
Radu