Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Position of external labels inside a compartment
Position of external labels inside a compartment [message #77115] Mon, 13 November 2006 11:57 Go to next message
Alexander Schwartz is currently offline Alexander SchwartzFriend
Messages: 9
Registered: July 2009
Junior Member
Hi,

I have a problem with external labels:

My model has a "Group" with a containement
reference to an "Item". The item has an attribute
name. In the GMFMap model the Group is mapped to a
top-level node with a compartment which contains
Item nodes. The label of the Item is an external
label (of a feature of Item).

In the generated diagram the positions of the Item
labels are correct if the containing group is located
ate left upper corner.

Otherwise the anchor of each Item label is wrong:
its absolute position in the diagram is its *relative*
position inside the containing Group.
Concequently, if a Group is moved the positions of
the contained Items remain unchanged, and the
Format -> Snap back action moves the label back to
the wrong positon.



Is this a known issue? I assume its rather simple
to be fixed if one knows how the positon of a label
is retrieved from the labeled object.


Thanks for any hints,

Alex
Re: Position of external labels inside a compartment [message #77845 is a reply to message #77115] Wed, 15 November 2006 14:40 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: 5d5.mail.ru

I guess this is the same issue
https://bugs.eclipse.org/bugs/show_bug.cgi?id=149119

Alexander Schwartz wrote:
> Hi,
>
> I have a problem with external labels:
>
> My model has a "Group" with a containement
> reference to an "Item". The item has an attribute
> name. In the GMFMap model the Group is mapped to a
> top-level node with a compartment which contains
> Item nodes. The label of the Item is an external
> label (of a feature of Item).
>
> In the generated diagram the positions of the Item
> labels are correct if the containing group is located
> ate left upper corner.
>
> Otherwise the anchor of each Item label is wrong:
> its absolute position in the diagram is its *relative*
> position inside the containing Group.
> Concequently, if a Group is moved the positions of
> the contained Items remain unchanged, and the
> Format -> Snap back action moves the label back to
> the wrong positon.
>
>
>
> Is this a known issue? I assume its rather simple
> to be fixed if one knows how the positon of a label
> is retrieved from the labeled object.
>
>
> Thanks for any hints,
>
> Alex
Re: Position of external labels inside a compartment [message #78055 is a reply to message #77845] Wed, 15 November 2006 23:02 Go to previous message
Eclipse UserFriend
Originally posted by: alexander.schwartzonline.de

Hi Dmitry,

> I guess this is the same issue
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=149119
>

yes, I agree, this is the same issue.

thanks,

alex
Previous Topic:Copy/Paste building blocks of a model file
Next Topic:EModelElement and EObject
Goto Forum:
  


Current Time: Sun Jun 30 13:23:14 GMT 2024

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

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

Back to the top