How to store specific information for a framework

Post here questions and problems related to oXygen frameworks/document types.
Denis
Posts: 47
Joined: Thu Jun 19, 2014 3:55 pm

How to store specific information for a framework

Post by Denis »

Hi,

we are using the Eclipse Oxygen Author in Version 15.2.

If I want to store some information, which I defined for a specific framework, in the frameworks file.

My use case to change the appeareance of some elments through the StylesFilter. This works fine, but if I want to extend the list of this elements, I have to write code. To avoid this I could define this elements in a file and extend the containing list whenever I want.

Could I use the frameworks file for it and if, which API I have to use to get the defined elements?

Best regards
Denis
Denis Zygann
KGU Consulting GmbH
http://www.kgu-consulting.com
Radu
Posts: 9470
Joined: Fri Jul 09, 2004 5:18 pm

Re: How to store specific information for a framework

Post by Radu »

Hi Denis,

I would suggest keeping a separate custom XML configuration document separate for this.
You could have a separate customizations folder for all your custom resources.
If you edit the document type you can add in the Classpath tab a link to that extra folder, then you can use the API ro.sync.ecss.extensions.api.AuthorAccess.getClassPathResourcesAccess() to get access (as URLs) to all folders listed in the Classpath tab.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Denis
Posts: 47
Joined: Thu Jun 19, 2014 3:55 pm

Re: How to store specific information for a framework

Post by Denis »

Hi Radu,

this is a nice approach. Thank you.

Best regards
Denis
Denis Zygann
KGU Consulting GmbH
http://www.kgu-consulting.com
Post Reply