Skip to main content



      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 08:34 Go to next message
Eclipse UserFriend
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 04:53 Go to previous messageGo to next message
Eclipse UserFriend
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 07:33 Go to previous message
Eclipse UserFriend
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: Sun Jun 15 21:19:29 EDT 2025

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

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

Back to the top