Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 Tools » Unexpected layout of elements inside Component
Unexpected layout of elements inside Component [message #625834] Thu, 22 July 2010 18:03
Eclipse UserFriend
Originally posted by: harrisb.ociweb.com

Hello,

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
the component?

Thanks,
Byron Harris
Previous Topic:Extending UML2 tools
Next Topic:Adding operations to Class Diagram
Goto Forum:
  


Current Time: Fri Apr 26 19:37:39 GMT 2024

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

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

Back to the top