|Unexpected layout of elements inside Component [message #625834]
||Thu, 22 July 2010 18:03
Originally posted by: harrisb.ociweb.com|
I'm trying to use the UML2Tool's Component diagram element defined in
componentDiagram_classifiers.gmfgraph with my own mapping. When I do
this the elements inside the component stack on top of each other with
each element nearly the same width as the component. By contrast, when I
create a component using UML2Tools, I can place elements anywhere inside
the component with any size.
In other words, the layout for a Component using UML2Tools appears to be
using the GMF XY Layout. However, inspecting the graphical definition
model I looks like a custom border is used for the figure that
corresponds to the compartment holding the component elements.
I concluding this by looking in project org.eclipse.uml2.diagram.def
graphical definition model found in
structures/componentDiagram_classifiers.gmfgraph. For figure
ComponentFigure_Body used by the compartment the custom layout
org.eclipse.gmf.runtime.draw2d.ui.figures.OneLineBorder is used. Is this
the reason the elements I'm putting in the component just stack up? I
would have expected that XY Layout would be used.
Can someone help explain why I can't position my elements anywhere in
Powered by FUDForum
. Page generated in 0.02702 seconds