Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Problem defining some design requiriments(Sirius default width height when creating an element and how to put label always in west or east position in border nodes)
Problem defining some design requiriments [message #1802959] Tue, 19 February 2019 17:13 Go to next message
Kevin Sanchez is currently offline Kevin SanchezFriend
Messages: 10
Registered: July 2017
Junior Member
Good afternoon, we are working in an electronic design tool that use Sirius in order to create diagrams. We defined our metamodels and viewpoints but we have actualy some requiriments that we do not know how to include in our solution.
First of all we want to put the label of all the border nodes always in the border east position or west as shown in the figure 1. But for default we only can choose between node or border position.

On the other hand we want to create a node from the palette specifying the width and height, but despite the image is small the height and width by default is to big. We have to adjust the dimensions manually. In the next image we show the default behavior on the left and the expected behavior on the right. It is show in figure2.
  • Attachment: figure1.png
    (Size: 72.06KB, Downloaded 87 times)
  • Attachment: figure2.png
    (Size: 76.33KB, Downloaded 88 times)
Re: Problem defining some design requiriments [message #1803207 is a reply to message #1802959] Mon, 25 February 2019 10:35 Go to previous messageGo to next message
Florian Barbin is currently offline Florian BarbinFriend
Messages: 270
Registered: August 2010
Senior Member
Hi,

To have a node created with the image size, you have to specify "-1" as Size Computation Expression in the advanced tab in the Worskpace image properties view.
About the label location, it is currently not possible to specify its side in the same way than the border nodes. This would ask an enhancement in Sirius, probably by overriding the org.eclipse.gmf.runtime.diagram.ui.figures.LabelLocator. You can also develop your own layout algorithm but there is currently no simple solution (see https://www.eclipse.org/sirius/doc/developer/extensions-provide_custom-arrange-all.html).
Re: Problem defining some design requiriments [message #1803581 is a reply to message #1803207] Mon, 04 March 2019 21:51 Go to previous messageGo to next message
Kevin Sanchez is currently offline Kevin SanchezFriend
Messages: 10
Registered: July 2017
Junior Member
Thank you for your answer, I did what you said about the image size and it works!.
I'm going to see what can I archive with the label location.
Thank you for your answer!
Re: Problem defining some design requiriments [message #1803728 is a reply to message #1803581] Thu, 07 March 2019 17:42 Go to previous message
argaz amazigFriend
Messages: 29
Registered: November 2018
Junior Member
Hi Kevin,

I have a question
can you please exporte the diagram to SVG and open it with vision or put it here to check if can see the connections as they are?
thanks in advance
Previous Topic:Creation of two labels
Next Topic:How to apply fill color programatically on selected EObject
Goto Forum:
  


Current Time: Thu Apr 25 14:08:34 GMT 2024

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

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

Back to the top