Hiding validation menu "XSV" in oxygen toolbar

Post here questions and problems related to oXygen frameworks/document types.
hongyung
Posts: 12

Hiding validation menu "XSV" in oxygen toolbar

Wed Mar 26, 2014 12:38 am

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. :(
adrian
Posts: 2450

Re: Hiding validation menu "XSV" in oxygen toolbar

Wed Mar 26, 2014 6:07 pm

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
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
hongyung
Posts: 12

Re: Hiding validation menu "XSV" in oxygen toolbar

Thu Jan 29, 2015 1:40 pm

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?
Radu
Posts: 5689

Re: Hiding validation menu "XSV" in oxygen toolbar

Thu Jan 29, 2015 4:03 pm

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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com

Return to “SDK-API, Frameworks - Document Types”

Who is online

Users browsing this forum: No registered users and 0 guests