Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » Custom shapes for Associations
Custom shapes for Associations [message #1756475] Fri, 17 March 2017 14:42 Go to next message
Thanos Zolotas is currently offline Thanos ZolotasFriend
Messages: 51
Registered: November 2016
Location: York
Member
Hi,

Although I am able to define custom SVG shapes for my profile elements that extend metaclasses like Class or Package (so basically nodes in a diagram), I haven't managed to make the same for stereotypes that extend Association metaclass or any other connector. Is it possible to assign custom SVGs to connectors in Papyrus or in general is there any way to customize the look of edges in a diagram other than of changing the linestyle via CSS properties?

Thanks

[Updated on: Fri, 17 March 2017 14:55]

Report message to a moderator

Re: Custom shapes for Associations [message #1756477 is a reply to message #1756475] Fri, 17 March 2017 14:54 Go to previous messageGo to next message
Remi Schnekenburger is currently offline Remi SchnekenburgerFriend
Messages: 168
Registered: July 2009
Location: Palaiseau, France
Senior Member
Hi Thanos,

It is currently possible to customize in Papyrus only node representations. Only nodes have the compartment that displays shapes, and the ability to hide everything except this shape.

However, you can use decorators on top of the connectors, if you want to display some custom sign on your connection representation. This looks like this
https://bugs.eclipse.org/bugs/attachment.cgi?id=266463

There is no documentation inside Papyrus for such decorators, as they are mainly inherited from the GMF runtime framework we use for diagrams. You can have a look at the bug 510411 if you want to learn more about the implementation of the screenshot. There is a link to the gerrit used to implement the decorations on transitions in Papyrus-RT.

HTH,
Rémi


Remi Schnekenburger

Get professional Eclipse developer support:
http://eclipsesource.com/en/services/developer-support/
Re: Custom shapes for Associations [message #1756478 is a reply to message #1756477] Fri, 17 March 2017 14:57 Go to previous message
Thanos Zolotas is currently offline Thanos ZolotasFriend
Messages: 51
Registered: November 2016
Location: York
Member
Hi Rémi,

That's very helpful. Thank you very much!

Thanos
Previous Topic:Error indicator on transition in State Machine - Using SysML on Mars
Next Topic:Text placeholder for different properties in SVG
Goto Forum:
  


Current Time: Mon Jan 27 20:01:08 GMT 2020

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

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

Back to the top