problems with LabelOffsetFacet [message #113730] |
Thu, 22 March 2007 11:14  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03313 seconds