Skip to main content



      Home
Home » Eclipse Projects » Sirius » How to handle Notes on diagrams
How to handle Notes on diagrams [message #1691872] Fri, 10 April 2015 05:03 Go to next message
Eclipse UserFriend
Hi,

In my metamodel, I provide an 'Annotation' concept. It contains a text attribute and can be associated with other Elements.

The diagram should display Annotations using the Note style as provided by Sirius. However, I am not completely clear on how to use this style.

First: is the body of such note represented by the Style's label attribute?
Second: does such note allow representation of a top level label and a body and if so, how to configure the style.
Third: even if setting the label's alignment to 'Left', it is still not completely displayed at the left margin. (See my screenschot.)

Any suggestions?

Greetings,
Wilbert.


  • Attachment: labelbug.png
    (Size: 120.80KB, Downloaded 133 times)
Re: How to handle Notes on diagrams [message #1691879 is a reply to message #1691872] Fri, 10 April 2015 05:30 Go to previous messageGo to next message
Eclipse UserFriend
Hello Wilbert,

My answers below.

Regards,
Steve

Le 10/04/2015 11:03, Wilbert Alberts a écrit :
> Hi,
>
> In my metamodel, I provide an 'Annotation' concept. It contains a text attribute and can be associated with other Elements.
>
> The diagram should display Annotations using the Note style as provided by Sirius. However, I am not completely clear on how to use this style.
>
> First: is the body of such note represented by the Style's label attribute?
Yes, it will display what is given in the "Label Expression" field.
> Second: does such note allow representation of a top level label and a body and if so, how to configure the style.
No, there is only one label expression field. However, you can set an
expression that combines several properties of your semantic model.
> Third: even if setting the label's alignment to 'Left', it is still not completely displayed at the left margin. (See my screenschot.)
In fact the label is aligned left/center/right but the inner text area
is centered. This is more obvious with a smaller text and an icon as you
can see in my screenshot. However, it sound reasonable to have the same
alignement for the inner text as the label widget so you can raise a
bugzilla.
>
> Any suggestions?
>
> Greetings,
> Wilbert.
>
>
>


--
Steve Monnier - Obeo

Need professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: How to handle Notes on diagrams [message #1691885 is a reply to message #1691879] Fri, 10 April 2015 06:02 Go to previous messageGo to next message
Eclipse UserFriend
Did so: https://bugs.eclipse.org/bugs/show_bug.cgi?id=464378
Re: How to handle Notes on diagrams [message #1691886 is a reply to message #1691885] Fri, 10 April 2015 06:08 Go to previous message
Eclipse UserFriend
Thank you!

Le 10/04/2015 12:02, Wilbert Alberts a écrit :
> Did so: https://bugs.eclipse.org/bugs/show_bug.cgi?id=464378


--
Steve Monnier - Obeo

Need professional services for Sirius?
http://www.obeodesigner.com/sirius
Previous Topic:Cascading Style Definitions
Next Topic:Questions about diagram(notation) extension
Goto Forum:
  


Current Time: Sat May 17 18:28:03 EDT 2025

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

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

Back to the top