Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Custom icon for nodes with representations in diagrams
Custom icon for nodes with representations in diagrams [message #1834763] Tue, 17 November 2020 13:34 Go to next message
Denis Nikiforov is currently offline Denis NikiforovFriend
Messages: 344
Registered: August 2013
Senior Member
Hi

In the diagram editor nodes with representations are shown with a small icon on the right bottom coner. Is it possible to customize or disable the icon?
Re: Custom icon for nodes with representations in diagrams [message #1834809 is a reply to message #1834763] Wed, 18 November 2020 09:53 Go to previous messageGo to next message
Florian Barbin is currently offline Florian BarbinFriend
Messages: 270
Registered: August 2010
Senior Member
Hi,

Sirius does not provide option for that. But the decorator is provided by org.eclipse.sirius.diagram.ui.tools.internal.decoration.SubDiagramDecorationDescriptorProvider registered in org.eclipse.sirius.diagram.ui.provider.DiagramUIPlugin.Implementation.registerCoreDecorationProviders().
Since SiriusDecorationProviderRegistry is a public API, you could try to remove it from the registry programmatically.

Regards,

Florian
Re: Custom icon for nodes with representations in diagrams [message #1834814 is a reply to message #1834809] Wed, 18 November 2020 12:33 Go to previous message
Denis Nikiforov is currently offline Denis NikiforovFriend
Messages: 344
Registered: August 2013
Senior Member
Thanks a lot! I added the code to a plugin Activator class's start() method, it works.
Previous Topic:How to change a bordered node's label location programmatically?
Next Topic:help on petri net creation, can't seem to create the edge
Goto Forum:
  


Current Time: Fri Apr 26 06:23:49 GMT 2024

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

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

Back to the top