Rob Cernich Messages: 40 Registered: September 2011
Member
Hey all,
I was wondering if there was any way to add a IDecorator to a connection? I'm adding problem decorators onto my shapes (which is great) and would like to do the same for connections. Any ideas?
Rob Cernich Messages: 40 Registered: September 2011
Member
I've worked around the issue by adding a ConnectionDecorator containing an invisible rectangle to the connection. The problem decorator is then attached to the ConnectionDecorator. Works like a charm.
Michael Wenz Messages: 1275 Registered: July 2009 Location: Walldorf, Germany
Senior Member
Rob,
Graphiti supports decorators only for shapes not for the connections. The
reason is simply that we need some "room" to draw the decorator into, at
least with the current implementation.
If you would like to have that feature available also for connections, feel
free to open an enhancement bugzilla for this.
There is such a functionality available in Eugenia as I can see in the tutorial. http://www.eclipse.org/epsilon/doc/articles/eugenia-gmf-tutorial/
It can be useful to see for eventual enhancement. I made a workaround also (adding decorator to connected port), but in future maybe I will open an enhancement bugzilla or contribute to this.
Marek