Reference to AuthorAccess on application startup?

Oxygen general issues.
dylan
Posts: 15
Joined: Thu Feb 26, 2009 12:12 am

Reference to AuthorAccess on application startup?

Post by dylan »

Hi all,

I was hoping to get a reference to the authorAccess object when oXygen starts - we want to be able to register an AuthorListener immediately.

Any ideas?
Radu
Posts: 9057
Joined: Fri Jul 09, 2004 5:18 pm

Re: Reference to AuthorAccess on application startup?

Post by Radu »

Hi Dylan,

You should be able to do this using the Oxygen 10.3 API. Oxygen 10.3 will appear in a couple of weeks. I suspect you already have an Oxygen 10.2 beta.
I am not sure the beta you have contains the API, but here is goes:
How this should be done (if no API changes appear before the 10.3 release):
You should have a class in your jar extending ro.sync.ecss.extensions.api.ExtensionsBundle. The class should override the method

Code: Select all


public AuthorExtensionStateListener createAuthorExtensionStateListener() 
This listener receives activated/deactivated events whenever the Author page is activated for the document. The AuthorAccess is also received on both callbacks.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply