I am trying to customise icons contributed to the UI. Easy task you may
think, but I did not cope with it yet.
While it seems to be possible to retrieve the Sirius tabbar instance by
using DDiagramEditor#getTabBarManager() I have no idea how to access the
actions contributed by GEF, like for example the alignment actions in
the diagram menu.
I've tried some things like:
menuManager.findUsingPath('/diagramMenu/alignMenu/alignHorizontalGroup/' + GEFActionConstants.ALIGN_LEFT)
but all these are returning null.
Another theoretical possibility would be creating a subclass of
SiriusDiagramActionBarContributor and use the actionRegistry for
obtaining the actions like this:
But how can I register this custom action bar contributor so that it is used instead of the default one from Sirius?
Also I've read something about retarget actions so maybe it would be
possible to have some kind of delegate. However it seems oversized to
implement this for each single action just for changing an icon.
What is the recommended way to get into this? Am I overseeing something?
[Updated on: Mon, 23 November 2015 09:10]
Report message to a moderator