Page 1 of 1

How to store specific information for a framework

Posted: Fri Oct 02, 2015 5:16 pm
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

Re: How to store specific information for a framework

Posted: Mon Oct 05, 2015 8:51 am
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

Re: How to store specific information for a framework

Posted: Mon Oct 05, 2015 6:24 pm
by Denis
Hi Radu,

this is a nice approach. Thank you.

Best regards
Denis