Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Approach for customising UI icons?
Approach for customising UI icons? [message #1715330] Sun, 22 November 2015 10:52
Axel Guckelsberger is currently offline Axel GuckelsbergerFriend
Messages: 347
Registered: July 2009
Senior Member
Hi all,

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

Previous Topic:boolean representation in edition table
Next Topic:relation Edge in a container ?!
Goto Forum:

Current Time: Sat Feb 27 19:01:33 GMT 2021

Powered by FUDForum. Page generated in 0.01741 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top