Removing toolbar items from Oxygen 23.1

Post here questions and problems related to editing and publishing DITA content.
mu258770
Posts: 154
Joined: Mon Aug 18, 2014 4:11 pm

Removing toolbar items from Oxygen 23.1

Post by mu258770 »

Hi team,

We would like to remove some toolbar items from Eclipse based Oxygen Author 23.1 .

The screenshot is attached for those we wish to remove (xml refactoring, delete currnet tags...). It seems it not possible to remove them using frameworks. Is it possible to be removed using some other ways ? Previously we had also removed some other items using plugin.properties and plugin.xml file changes. Is it possible to hide/remove these toolbar items using similar method?

Regards,
Shabeer
oxygen.JPG
oxygen.JPG (10.19 KiB) Viewed 217 times
Radu
Posts: 8017
Joined: Fri Jul 09, 2004 5:18 pm

Re: Removing toolbar items from Oxygen 23.1

Post by Radu »

Hi Shabeer,

In the Oxygen plugin's "plugin.xml" there is an extension point:

Code: Select all

  <extension-point id="actionBarContributorCustomizer" name="Action Bar Contributor Customizer"
    schema="exsd-schema/actionBarContributorCustomizer.exsd"/>
So a third party Eclipse plugin implemented by you in Java and which depends on our plugin could implement this API "com.oxygenxml.editor.editors.ActionBarContributorCustomizer" and get called on this method "com.oxygenxml.editor.editors.ActionBarContributorCustomizer.customizeActionsContributedToDocumentToolbar(List<IAction>)" so that it could remove certain actions from the document toolbar list.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply