Undetected custom DITAExtensionsBundle
Posted: Tue May 18, 2021 5:58 pm
Hi,
I have created a plugin for Oxygen XML Editor with custom DITAExtensionsBundle and AuthorDnDListener classes.
Then, I extend the DITA framework.
I specify "Use parent classloader from plugin with ID : <my plugin ID>" in the Classpath tab.
And go to Extensions tab.
If I choose for Extension bundle, CustomDITAExtensionsBundle isn't detected.
If I choose for an Author drag and drop listener, CustomAuthorAWTDnDListener class is detected.
If I add the dita.jar to my plugin libs, CustomDITAExtensionsBundle is now detected.
Is there a way to detect my custom DITA bundle without adding dita.jar to my plugin dependencies ?
Thanks,
Vince
I have created a plugin for Oxygen XML Editor with custom DITAExtensionsBundle and AuthorDnDListener classes.
Code: Select all
public class CustomDITAExtensionsBundle extends DITAExtensionsBundle {
@Override
public AuthorDnDListener createAuthorAWTDndListener() {
return new CustomAuthorAWTDnDListener();
}
}
Code: Select all
public class CustomAuthorAWTDnDListener implements AuthorDnDListener {
....
}
I specify "Use parent classloader from plugin with ID : <my plugin ID>" in the Classpath tab.
And go to Extensions tab.
If I choose for Extension bundle, CustomDITAExtensionsBundle isn't detected.
If I choose for an Author drag and drop listener, CustomAuthorAWTDnDListener class is detected.
If I add the dita.jar to my plugin libs, CustomDITAExtensionsBundle is now detected.
Is there a way to detect my custom DITA bundle without adding dita.jar to my plugin dependencies ?
Thanks,
Vince