Hi,
I am using Oxygen 15's inbuilt DITA framework and I would
like to customize it by showing a Swing based form when Oxygen
Author has been opened. This form will be used to set custom
variables which can then be used later on.
My questions are as follows:
a) Is
this the best way to implement what I have in mind?
b) There
does not seem to be any Author window event which can be used
to popup the form. I see others for doctypeChanged(),
documentChanged etc here but nothing to record a
opening-of-author event.
I feel like I am missing something here and would greatly
appreciate some help. If there is a better way to do this, I
am all ears. Just a note, I cannot use plugins since this has
to work for people who use Oxygen Author standalone and those
who use the Author plugin within eclipse.
My current code structure something like this...
File 1:
public class ditaAuthorExtensionStateListener implements
AuthorExtensionStateListener{
....
....
public void activated(...){
// Add
author document listeners.
ditaAuthorDocumentListener
= new DitaAuthorListener();
authorAccess.getDocumentController().addAuthorListener(ditaAuthorDocumentListener);
}
File 2:
public class DitaAuthorListener implements AuthorListener{
.....
.....
// I am stuck here since I do not find any method which is
triggered on opening Oxygen Author.
Thanks a bunch!
Nathan