How to store specific information for a framework

Post here questions and problems related to oXygen frameworks/document types.
Denis
Posts: 47

How to store specific information for a framework

Fri Oct 02, 2015 5:16 pm

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: 5221

Re: How to store specific information for a framework

Mon Oct 05, 2015 8:51 am

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

Re: How to store specific information for a framework

Mon Oct 05, 2015 6:24 pm

Hi Radu,

this is a nice approach. Thank you.

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

Return to “SDK-API, Frameworks - Document Types”

Who is online

Users browsing this forum: No registered users and 0 guests