Trying to modify gmfgen to add External Label - info/advice available? [message #144818] |
Mon, 30 July 2007 13:23  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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
>>
>>
|
|
|
Powered by
FUDForum. Page generated in 0.02779 seconds