Page 1 of 1

Hiding validation menu "XSV" in oxygen toolbar

Posted: Wed Mar 26, 2014 12:38 am
by hongyung
Hi, do you have any idea if I can hide the "XSV" menu in the oxygen toolbar for the oxygen author eclipse plugin? The toolbar that i am referring to is located outside the oxygen xml editor.

I have been trying to hide this from user with eclipse activities approach but I can't get the action id to hide it. :(

Re: Hiding validation menu "XSV" in oxygen toolbar

Posted: Wed Mar 26, 2014 6:07 pm
by adrian
Hi,

I believe you are referring to the Custom Validation Engines toolbar menu.
Unfortunately that toolbar button/menu cannot be completely eliminated as it is created and populated programmatically depending on the custom validation engines available in that context.

The best you could do is eliminate all but one of the actions listed in it. You can do this by removing the custom validation engines defined in Window > Preferences, oXygen > Editor > Custom Validation Engines (LIBXML, XSV, etc). Note that you cannot remove the Saxon-EE engine from that list, so that's the one you'll have to live with.

Regards,
Adrian

Re: Hiding validation menu "XSV" in oxygen toolbar

Posted: Thu Jan 29, 2015 1:40 pm
by hongyung
Hi Adrian,
Sorry for reply to the old topic. Is there possible that oxygen will include the action id for this button that we can based on to hide it from eclipse?

Re: Hiding validation menu "XSV" in oxygen toolbar

Posted: Thu Jan 29, 2015 4:03 pm
by Radu
Hi,

If you are using the latest Oxygen 16.1 Eclipse plugin the actions added by Oxygen on the toolbars should each have an ID (calling getId() on the action should return a platform-independent unique string).
Then in your Eclipse plugin you can implement the "actionBarContributorCustomizer" extension to provide an implementation for the ActionBarContributorCustomizer API class which has a callback method called com.oxygenxml.editor.editors.ActionBarContributorCustomizer.customizeActionsContributedToDocumentToolbar(List<IAction>) which you can use to filter out actions.

Regards,
Radu