Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Trying to modify gmfgen to add External Label - info/advice available?
Trying to modify gmfgen to add External Label - info/advice available? [message #144818] Mon, 30 July 2007 13:23 Go to next message
Eclipse UserFriend
I'm knee deep working on my first GMF based application. I've got a
requirement where I need a label figure that can be moved and placed
independently of the main figure, however still be part of the same edit
part or specifically model element. Basically, I need a label figure
can then be moved around the diagram, renamed, or removed but ultimately
they share the same model element.

I was having a lot of difficulty trying to understand how to do this
manually when I noticed in the gmfgen that you can specify an External
Node Label for my Edit Parts. I think this is what I'm looking for but
I couldn't find any documentation about that option anywhere.

If this is what I'm looking for, it seems that an external node label
requires a "viewmap" and a "diagramRunTimeClass". Not sure what exactly
to put in for those.

Please advise. Thanks!

Matt
Re: Trying to modify gmfgen to add External Label - info/advice available? [message #144918 is a reply to message #144818] Tue, 31 July 2007 05:02 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: 5d5.mail.ru

TaiPan sample has an external label - port name - so you may have a
look at it. You may add external label to your gmfgen model by creating
GenExternalNodeLabel class inside node. Currently external label may
float within a limited range from the host node but you may provide
your own border item locator for the label so it may be positioned
wherever you want.

On 2007-07-30 19:23:30 +0200, Matthew Marum <mgmarum@us.ibm.com> said:

> I'm knee deep working on my first GMF based application. I've got a
> requirement where I need a label figure that can be moved and placed
> independently of the main figure, however still be part of the same
> edit part or specifically model element. Basically, I need a label
> figure can then be moved around the diagram, renamed, or removed but
> ultimately they share the same model element.
>
> I was having a lot of difficulty trying to understand how to do this
> manually when I noticed in the gmfgen that you can specify an External
> Node Label for my Edit Parts. I think this is what I'm looking for but
> I couldn't find any documentation about that option anywhere.
>
> If this is what I'm looking for, it seems that an external node label
> requires a "viewmap" and a "diagramRunTimeClass". Not sure what
> exactly to put in for those.
>
> Please advise. Thanks!
>
> Matt
Re: Trying to modify gmfgen to add External Label - info/advice available? [message #144953 is a reply to message #144918] Tue, 31 July 2007 08:42 Go to previous messageGo to next message
Eclipse UserFriend
Matt,

You could use the LabelLocator or ResizableLabelLocator to allow your
label to float anywhere.

Regards,
Cherie

Dmitry Stadnik wrote:
> TaiPan sample has an external label - port name - so you may have a look
> at it. You may add external label to your gmfgen model by creating
> GenExternalNodeLabel class inside node. Currently external label may
> float within a limited range from the host node but you may provide your
> own border item locator for the label so it may be positioned wherever
> you want.
>
> On 2007-07-30 19:23:30 +0200, Matthew Marum <mgmarum@us.ibm.com> said:
>
>> I'm knee deep working on my first GMF based application. I've got a
>> requirement where I need a label figure that can be moved and placed
>> independently of the main figure, however still be part of the same
>> edit part or specifically model element. Basically, I need a label
>> figure can then be moved around the diagram, renamed, or removed but
>> ultimately they share the same model element.
>>
>> I was having a lot of difficulty trying to understand how to do this
>> manually when I noticed in the gmfgen that you can specify an External
>> Node Label for my Edit Parts. I think this is what I'm looking for
>> but I couldn't find any documentation about that option anywhere.
>>
>> If this is what I'm looking for, it seems that an external node label
>> requires a "viewmap" and a "diagramRunTimeClass". Not sure what
>> exactly to put in for those.
>>
>> Please advise. Thanks!
>>
>> Matt
>
>
Re: Trying to modify gmfgen to add External Label - info/advice available? [message #145870 is a reply to message #144953] Wed, 08 August 2007 17:53 Go to previous message
Eclipse UserFriend
Thanks for the help!

Matt

Cherie Revells wrote:
> Matt,
>
> You could use the LabelLocator or ResizableLabelLocator to allow your
> label to float anywhere.
>
> Regards,
> Cherie
>
> Dmitry Stadnik wrote:
>> TaiPan sample has an external label - port name - so you may have a
>> look at it. You may add external label to your gmfgen model by
>> creating GenExternalNodeLabel class inside node. Currently external
>> label may float within a limited range from the host node but you may
>> provide your own border item locator for the label so it may be
>> positioned wherever you want.
>>
>> On 2007-07-30 19:23:30 +0200, Matthew Marum <mgmarum@us.ibm.com> said:
>>
>>> I'm knee deep working on my first GMF based application. I've got a
>>> requirement where I need a label figure that can be moved and placed
>>> independently of the main figure, however still be part of the same
>>> edit part or specifically model element. Basically, I need a label
>>> figure can then be moved around the diagram, renamed, or removed but
>>> ultimately they share the same model element.
>>>
>>> I was having a lot of difficulty trying to understand how to do this
>>> manually when I noticed in the gmfgen that you can specify an
>>> External Node Label for my Edit Parts. I think this is what I'm
>>> looking for but I couldn't find any documentation about that option
>>> anywhere.
>>>
>>> If this is what I'm looking for, it seems that an external node label
>>> requires a "viewmap" and a "diagramRunTimeClass". Not sure what
>>> exactly to put in for those.
>>>
>>> Please advise. Thanks!
>>>
>>> Matt
>>
>>
Previous Topic:Compartment - Connection - Layout
Next Topic:How does a nested View's of a shortcut get rendered?
Goto Forum:
  


Current Time: Wed Apr 23 23:14:12 EDT 2025

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

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

Back to the top