Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Double-edged nodes/links(How can I create nodes with double-edged borders or doubled edges?)
Double-edged nodes/links [message #1809117] Tue, 09 July 2019 12:02 Go to next message
Tim Rübensaal is currently offline Tim RübensaalFriend
Messages: 3
Registered: July 2019
Junior Member
Hey,
I am fairly new to Sirius and currently I'm trying to create an editor for entity-relationship diagrams using Sirius.
The diagram instances are supposed to look like the one in the attached file 'example'.

However, I am having trouble to create double-edged links/ double-edged bordered nodes.
Is there any easy way to do so, while still using some of the built-in functionality, i. e. when i move a double-edged node both borders are moved automatically?

Or is there a way to maybe box a bordered node into another?

Much appreciate the answers in advance.

Cheers,
Tim
  • Attachment: example.png
    (Size: 12.80KB, Downloaded 50 times)
Re: Double-edged nodes/links [message #1809150 is a reply to message #1809117] Wed, 10 July 2019 08:41 Go to previous messageGo to next message
Florian Barbin is currently offline Florian BarbinFriend
Messages: 224
Registered: August 2010
Senior Member
Hi Tim,

For nodes and containers you have the possibility to provide your own workspace image (see node styles [1] and container styles [2]). It is also possible to provide a new kind of SVG shape where the border, background color etc. will be customizable from the odesign editor. See [3].
For edges, there is no simple way the customize their appearance (except color, line style with dot, solid, dash etc.) . That requires specific developments to extend Sirius.

Florian

[1] https://www.eclipse.org/sirius/doc/specifier/diagrams/Diagrams.html#nodes
[2] https://www.eclipse.org/sirius/doc/specifier/diagrams/Diagrams.html#containers
[3] https://www.eclipse.org/sirius/doc/developer/extensions-provide_custom_bundled_image_shape.html
Re: Double-edged nodes/links [message #1809265 is a reply to message #1809150] Fri, 12 July 2019 15:20 Go to previous messageGo to next message
Tim Rübensaal is currently offline Tim RübensaalFriend
Messages: 3
Registered: July 2019
Junior Member
Hey,
First of all thank you for the fast response!
So I've now created some .svg- graphics for the borders using InkScape and added them (hopefully correctly) to my plugin.xml of my *.design project as shown in your 3rd example.
But how can I select the styles in my VSM? In the sample that's provided in [1], they are added as 'Basic Shape's, however I don't have the option to select one of my custom styles in my own project.
I also tried to use the 'Custom Style' but I don't have any selection options there and it also doesn't work if I set the name to what I specified in plugin.xml.

Cheers,
Tim

[1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=542678
Re: Double-edged nodes/links [message #1809443 is a reply to message #1809265] Tue, 16 July 2019 09:19 Go to previous messageGo to next message
Florian Barbin is currently offline Florian BarbinFriend
Messages: 224
Registered: August 2010
Senior Member
If you want to make your svg available as a new shape in your odesign, you have to follow this documentation: https://www.eclipse.org/sirius/doc/developer/extensions-provide_custom_bundled_image_shape.html. You have to provide this shape through the extension point in a new plugin and next this plugin has to be deployed in your Sirius development environment to make it available in the odesign.
The first two links are just the documentation to use workspace images as style for a node or a container.

Florian
Re: Double-edged nodes/links [message #1809447 is a reply to message #1809443] Tue, 16 July 2019 10:10 Go to previous message
Tim Rübensaal is currently offline Tim RübensaalFriend
Messages: 3
Registered: July 2019
Junior Member
The link you sent isn't available (404 File not found).
But thank you for the deployment hint, I know added the extensions to the plugin.xml in my *.editor and relaunched my runtime-environment and now they are available as custom shapes.
But the labels are not inside my provided shapes but displayed below(see example.png: 'Address' and 'Section'.
How can I get labels to be inside the shape?

Cheers,
Tim
  • Attachment: example.PNG
    (Size: 14.55KB, Downloaded 0 times)

[Updated on: Tue, 16 July 2019 11:58]

Report message to a moderator

Previous Topic:How to give space between palette and elements when arrange all
Next Topic:Node replace tool
Goto Forum:
  


Current Time: Fri Aug 23 07:21:15 GMT 2019

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

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

Back to the top