Skip to main content



      Home
Home » Modeling » Graphiti » remove ColorDecorator on Connection after deselection
remove ColorDecorator on Connection after deselection [message #1602442] Thu, 05 February 2015 10:12 Go to next message
Eclipse UserFriend
HI , I have a feature in which I have Nodes A B C connect to each other using two connection A --> B --> C.

I want to highlight B and C and the conections when I select A.

I have found a solution using DefaultToolBehaviorProvider , on selection of a Node, i collect all the PEs and put them into a ArrayList, and using getSelection().
and then using getDecorators(), I have created BorderDecorator for shape and colordecorator for Connections.
But when i call getDiagramTypeProvider().getDiagramBehavior().refreshRenderingDecorators(PEInstance) only the shape's borderDecorators disappears where as the colordecorators remains until the next selection of node shape.

Is there any callback method there to resolve this. and refresh the connection decorators ?

[Updated on: Thu, 05 February 2015 10:13] by Moderator

Re: Highlight Connection which are in transient [message #1604014 is a reply to message #1602442] Fri, 06 February 2015 10:20 Go to previous messageGo to next message
Eclipse UserFriend
Good point. I just checked the coding of refreshRenderingDecorators; it just
loops over the shapes not the connections. Would you please file a bug
against Graphiti for this?

Thanks,
Michael
Re: Highlight Connection which are in transient [message #1607140 is a reply to message #1604014] Sun, 08 February 2015 12:41 Go to previous message
Eclipse UserFriend
I have filled a bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=459386 for the same.
Previous Topic:Add Pictorial Element inside Diagram for model EObject
Next Topic:GMF Layout Algorithm for Graphiti
Goto Forum:
  


Current Time: Fri Jul 25 15:04:32 EDT 2025

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

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

Back to the top