Change Oxygen Toolbar Menu with any custom condtion

<oXygen/> general issues.
jerryjames
Posts: 1

Change Oxygen Toolbar Menu with any custom condtion

Thu Jan 11, 2018 5:30 pm

Need to change the value coming on the menu based on some custom condition.
Currently, the menu details have been added to oxygen framework file.
Is there anyway to change the name in menu dynamically.
Radu
Posts: 5221

Re: Change Oxygen Toolbar Menu with any custom condtion

Thu Jan 11, 2018 5:36 pm

Hi Jerry,

The action names added in the framework are static, they cannot be changed depending on a certain condition, change in the document.
One possibility would be to implement an Oxygen Java-based workspace access plugin:

https://www.oxygenxml.com/doc/versions/19.1/ug-editor/topics/workspace-access-plugin.html

Such a plugin receives a reference to the main Oxygen Java Swing-based menu and it can also add various listener to detect when XML documents are opened, or caret listeners in opened documents.

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

Return to “Other Issues”

Who is online

Users browsing this forum: No registered users and 2 guests