Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » problems with LabelOffsetFacet
problems with LabelOffsetFacet [message #113730] Thu, 22 March 2007 11:14 Go to next message
Eclipse UserFriend
Hi all,

to change my label offset of a border item I have manually added a
LabelOffsetAttributes to my gmfgen model.

<viewmap
xsi:type="gmfgen:FigureViewmap"

figureQualifiedClassName="org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel ">
<attributes
xsi:type="gmfgen:LabelOffsetAttributes"
x="5"
y="5"/>
<requiredPluginIDs>org.eclipse.draw2d</requiredPluginIDs>

<requiredPluginIDs>org.eclipse.gmf.runtime.draw2d.ui</requiredPluginIDs >
</viewmap>

This exactly does what I want but is always lost if I re-create my
generator model.

So I looked whether there is a corresponding thing in the gmfgraph
model. I came up with a Label Offset Facet and added that.

I cannot find the specified values (6,6) in the generated code though.
Before I had (5,5) in the code and after generating I had (0,5).

What am I doing wrong?

Kind regards,
Henrik
Re: problems with LabelOffsetFacet [message #114355 is a reply to message #113730] Mon, 26 March 2007 08:41 Go to previous message
Eclipse UserFriend
Hello Henrik Rentz-Reichert,

Note that as with any changes in the gmfgraph model,
you need to recreate gmfgen model first to have a chance to see the changes
in the code.

I have just tried it with GMF 2.0 M4 and it works well.

Regards,
Michael


> Hi all,
>
> to change my label offset of a border item I have manually added a
> LabelOffsetAttributes to my gmfgen model.
>
> <viewmap
> xsi:type="gmfgen:FigureViewmap"
> figureQualifiedClassName="org.eclipse.gmf.runtime.draw2d.ui.figures.Wr
> apLabel">
> <attributes
> xsi:type="gmfgen:LabelOffsetAttributes"
> x="5"
> y="5"/>
> <requiredPluginIDs>org.eclipse.draw2d</requiredPluginIDs>
> <requiredPluginIDs>org.eclipse.gmf.runtime.draw2d.ui</requiredPluginID
> s>
> </viewmap>
> This exactly does what I want but is always lost if I re-create my
> generator model.
>
> So I looked whether there is a corresponding thing in the gmfgraph
> model. I came up with a Label Offset Facet and added that.
>
> I cannot find the specified values (6,6) in the generated code though.
> Before I had (5,5) in the code and after generating I had (0,5).
>
> What am I doing wrong?
>
> Kind regards,
> Henrik
Previous Topic:Problem opening saved diagram
Next Topic:how to update connection figure on property change?
Goto Forum:
  


Current Time: Sat Jun 07 07:17:26 EDT 2025

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

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

Back to the top