Bootstrap

Are you missing a feature? Request its implementation here.
dylan
Posts: 15
Joined: Thu Feb 26, 2009 12:12 am

Bootstrap

Post by dylan »

I am looking for a way to register an AuthorListener with AuthorAccess as soon as the application has started.

Is this possible in 10.3?

Thanks,

Dylan.
Radu
Posts: 9473
Joined: Fri Jul 09, 2004 5:18 pm

Re: Bootstrap

Post by Radu »

Hi Dylan,

The AuthorAccess is only connected to the current authored file.
So for each authored file there is an AuthorAccess associated with it.
When editing a document type in the Oxygen Preferences->Document Type Association page in the "Extensions" tab you can set up an ro.sync.ecss.extensions.api.ExtensionsBundle implementation.
In the implementation you can overwrite the method:

Code: Select all


  public AuthorExtensionStateListener createAuthorExtensionStateListener() {
return null;
}
and you will get notified when the current editor gets activated and deactivated (its tab is brought to top or unselected).

When the void activated(AuthorAccess authorAccess); method is called you can register your listener on the AuthorAccess.getEditorAccess(). When the page gets de-activated you will remove the listener.

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