Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » How to handle Notes on diagrams
How to handle Notes on diagrams [message #1691872] Fri, 10 April 2015 09:03 Go to next message
Wilbert Alberts is currently offline Wilbert AlbertsFriend
Messages: 209
Registered: June 2010
Senior Member
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 111 times)
Re: How to handle Notes on diagrams [message #1691879 is a reply to message #1691872] Fri, 10 April 2015 09:30 Go to previous messageGo to next message
Steve Monnier is currently offline Steve MonnierFriend
Messages: 572
Registered: May 2011
Senior Member
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


Steve Monnier - Obeo Canada
Need training or 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 10:02 Go to previous messageGo to next message
Wilbert Alberts is currently offline Wilbert AlbertsFriend
Messages: 209
Registered: June 2010
Senior Member
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 10:08 Go to previous message
Steve Monnier is currently offline Steve MonnierFriend
Messages: 572
Registered: May 2011
Senior Member
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


Steve Monnier - Obeo Canada
Need training or 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: Thu Apr 25 12:44:44 GMT 2024

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

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

Back to the top