Page 1 of 1

Customizing "New document wizard" for new framework

Posted: Thu Oct 03, 2019 1:19 pm
by jbvalentin
Hi,

I've set up a framework to support a specific set of DTDs/Schemas.

I've created some templates as per https://www.oxygenxml.com/doc/versions/ ... lates.html

I'd like to know if it would also be possible to create a specific "New document wizard" so that users would have a specific dialog to enter requested data. I've looked at the https://www.oxygenxml.com/doc/versions/ ... orial.html page but haven't been able to find relevant information.

Could point me to the documentation, or provide me with guidelines on how to achieve that?

Thank you very much.
Regards,
Jean-Baptiste

Re: Customizing "New document wizard" for new framework

Posted: Fri Oct 04, 2019 8:18 am
by Radu
Hi Jean-Baptiste,

We do not have APIs right now for this, I added an internal issue to consider this for a future version.
A couple of possible workarounds:

1) Use editor variables in the new file templates:
https://www.oxygenxml.com/doc/versions/ ... ables.html

They automatically get expanded when a file is created based on the template. And one editor variable is called "ask" and it shows a dialog to the end user requesting a certain value.

2) If the XML documents open in the Author visual editing mode you could try to use this special CSS property:

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

3) Create a Java-based plugin for Oxygen which adds your own "New" button to the toolbar. Sample plugin:

https://github.com/oxygenxml/sample-plu ... ace-access

Regards,
Radu

Re: Customizing "New document wizard" for new framework

Posted: Fri Oct 04, 2019 10:26 am
by jbvalentin
Hi Radu,

thank you very much for your answer.
I'll try some suggested workarounds in the meantime - the third one looks close to what I'd like to achieve.

Regards,
Jean-Baptiste