Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » Decorators on Connections
Decorators on Connections [message #903265] Wed, 22 August 2012 14:43 Go to next message
Rob Cernich is currently offline 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?

Thanks in advance,
Rob
Re: Decorators on Connections [message #903300 is a reply to message #903265] Wed, 22 August 2012 22:02 Go to previous messageGo to next message
Rob Cernich is currently offline 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.

Best,
Rob
Re: Decorators on Connections [message #903708 is a reply to message #903300] Thu, 23 August 2012 08:16 Go to previous messageGo to next message
Michael Wenz is currently offline Michael Wenz
Messages: 1574
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.

Michael
Re: Decorators on Connections [message #1053247 is a reply to message #903300] Fri, 03 May 2013 07:24 Go to previous messageGo to next message
Marek Jagielski is currently offline Marek Jagielski
Messages: 57
Registered: April 2012
Member
Rob,
Can you more describe your work around. I'm adding in AddMyConnectionFeature:

ConnectionDecorator dec = peCreateService.createConnectionDecorator(connection, false, 1.0, true);
gaService.createInvisibleRectangle(dec);


With which pe I should be notified in:
public IDecorator[] getDecorators(PictogramElement pe) 


Thanks,

Marek
Re: Decorators on Connections [message #1059069 is a reply to message #1053247] Thu, 16 May 2013 09:59 Go to previous message
Marek Jagielski is currently offline Marek Jagielski
Messages: 57
Registered: April 2012
Member
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/
http://www.eclipse.org/epsilon/doc/articles/eugenia-gmf-tutorial/Filesystemwitherrorshighlighted.png
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
Previous Topic:How to avoid overlapping of shapes
Next Topic:Add containment Feature for an Object
Goto Forum:
  


Current Time: Mon Jul 28 22:53:16 EDT 2014

Powered by FUDForum. Page generated in 0.01928 seconds