Affixed Parent Side VS Compartment [message #222780] |
Wed, 25 March 2009 15:26  |
Eclipse User |
|
|
|
Originally posted by: rivera.lcc.uma.es
Hi all,
I'm trying to create a diagram similar to UML activity diagrams. Then, I
have operations with input and output parameters (in a
affixed-parent-side way), and a special kind of operation
(CompositeOperation) which also contains other kind of elements (in a
single compartment).
Everythimng works well but the CompositeOperation. It does not allow me
to contain both kind of elements: in the compartment and in an
affixed-parent-side way. If I add in the mapping model only one of them
it works properly, but when I try with both it does not.
I create "affixed-parent-side" elements (parameters) by:
1. In the Parameters Node element of the gmfgraph setting this property
to NORTH for example.
2. By adding a reference child to the CompositeOperationwith compartment
undefined.
I create "compartment" elements by:
1. Creating a compartment for the CompositeOperation in the gmfgraph
2. By adding a reference child to the CompositeOperation with the
compartment referring to the created in the previous step.
Am i doing something wrong?Do I need to change some properties in one of
the model not to make GMF to confuse with both kind of containments?
Thanks In advance,
Edu
|
|
|
|
|
Re: Affixed Parent Side VS Compartment [message #223326 is a reply to message #223210] |
Mon, 30 March 2009 12:29  |
Eclipse User |
|
|
|
Originally posted by: rivera.lcc.uma.es
Hi Freiric,
Thank you a lot really!I was looking in the news also but I didn't find
this post. thank you again :)
If someone is interested, I just needed to modify generated method
getContentPaneFor of my CompositeOperationEditPart as follows:
protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
if (editPart instanceof IBorderItemEditPart) {
return getBorderedFigure().getBorderItemContainer();
} else {
return getContentPane();
}
}
This was enough :)
Freiric escribió:
> Hi Jose,
>
> Have a look here:
> http://dev.eclipse.org/newslists/news.eclipse.modeling.gmf/m sg03212.html
>
> hth,
>
> Freiric.
>
|
|
|
Powered by
FUDForum. Page generated in 0.25152 seconds