Skip to main content



      Home
Home » Eclipse Projects » Sirius » How to replace SubDiagramDecorationDescriptorProvider class ?
How to replace SubDiagramDecorationDescriptorProvider class ? [message #1817382] Thu, 21 November 2019 07:59 Go to next message
Eclipse UserFriend
My requirement is to replace the org.eclipse.sirius.diagram.ui.tools.internal.decoration.SubDiagramDecorationDescriptorProvider) with other class extend it.

I need to change the image provided for DecorationDescriptor.
org.eclipse.sirius.diagram.ui.tools.internal.decoration.SubDiagramDecorationDescriptorProvider.getSubDiagramImage()

How can I replace it?

calling below code is adding multiple icons.
SiriusDecorationProviderRegistry.INSTANCE.addSiriusDecorationDescriptorProvider(new MySubDiagramDecorationDescriptorProvider()); 

Re: How to replace SubDiagramDecorationDescriptorProvider class ? [message #1817584 is a reply to message #1817382] Tue, 26 November 2019 04:27 Go to previous message
Eclipse UserFriend
Hello

You have to remove the SubDiagramDecorationDescriptorProvider that you do not want and replace it by yours.

To remove SubDiagramDecorationDescriptorProvider you can call org.eclipse.sirius.diagram.ui.tools.api.decoration.SiriusDecorationProviderRegistry.getDecorationDescriptorProviders() to find it and then SiriusDecorationProviderRegistry.removeSiriusDecorationDescriptorProvider(SiriusDecorationDescriptorProvider)

Best reagrds
Laurent
Previous Topic:Validation markers on diagram
Next Topic:Position of elements on a DDiagram (Layout Provider)
Goto Forum:
  


Current Time: Thu Jul 10 01:13:25 EDT 2025

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

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

Back to the top