Page 1 of 1

Customize SaveInDB button for mandatory comment field in Oxygen XML Editor

Posted: Wed Nov 12, 2025 12:11 pm
by Monika Lele
Hi,

I have to customize the saveInDB button which appears in Oxygen xml editor view in TechPubStudio application.
I need to make the comment field a mandatory field and additionally add one more read only text field in Add comment dialog to show the last comment added.
We tried customizing the class OxygenActionsCustomizer, in which the buttons are loaded, but unable to customize as it calls the standard class and not customized class.
How to customize the save in database button? is it possible to customize the saveInDb button?

Thanks
Monika Lele

Re: Customize SaveInDB button for mandatory comment field in Oxygen XML Editor

Posted: Wed Nov 12, 2025 1:28 pm
by Radu
Hi Monica,
We do not know how Oxygen was integrated in TechPubStudio, probably they used our APIs to add specific buttons like the one you are mentioning, but we do not control how they have customized Oxygen. Have you tried to ask the TechPubStudio developers for help?
Regards,
Radu

Re: Customize SaveInDB button for mandatory comment field in Oxygen XML Editor

Posted: Thu Nov 13, 2025 12:32 pm
by Monika Lele
Hi,

I am trying to customize the oxygen editor by extending the abstract class com.oxygenxml.editor.editors.ActionBarContributorCustomizer and used the extension point - com.oxygenxml.author.actionBarContributorCustomizer
here i added implementation for method - public void customizeAuthorPageInternalCoolbar(final CoolBar coolbar, final WSAuthorEditorPage page) {}
, we are adding the buttons in the Toolbar Menu here.

But when i try open the application and the Oxygen editor view, the call is not going to my custom class, but the standard class from TechPubStudio.

Can you suggest if this is possible to customize it ?

Re: Customize SaveInDB button for mandatory comment field in Oxygen XML Editor

Posted: Thu Nov 13, 2025 3:41 pm
by Radu
Hi,
So you are using the Oxygen Eclipse plugin with the extra Eclipse plugin added by TechPubStudio and an extra custom Eclipse plugin added by you, correct?
The "com.oxygenxml.author.actionBarContributorCustomizer" plugin extension point is additive, so if the TechPubStudio plugin installs it and you also install it, both your code and the TechPubStudio plugin implementation will receive the "customizeAuthorPageInternalCoolbar". The order in which your plugin and the TechPubStudio plugin's code is called is not specified, it could be in any order.

Regards,
Radu

Re: Customize SaveInDB button for mandatory comment field in Oxygen XML Editor

Posted: Fri Nov 14, 2025 10:14 am
by Monika Lele
Hi,

I want to know if it is possible to register my own actionBarContributerCustomizer extension point, so to override the one coming from TPS standard.

Thanks,
Monika Lele

Re: Customize SaveInDB button for mandatory comment field in Oxygen XML Editor

Posted: Fri Nov 14, 2025 1:45 pm
by Radu
Hi Monika,
As I mentioned in my reply, the actionBarContributerCustomizer extension point is additive, it issues callbacks to extend various menus and toolbars in all plugins which extend it.
How about if you ask TPS to create a separate extension point so that you can control what buttons they add?
Regards,
Radu