Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Affixed Parent Side VS Compartment
Affixed Parent Side VS Compartment [message #222780] Wed, 25 March 2009 19:26 Go to next message
Eclipse UserFriend
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 #223186 is a reply to message #222780] Mon, 30 March 2009 11:27 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: rivera.lcc.uma.es

Please,

Has anyone accomplished something like this? I have been trying several
things but I can not find the solution :(
Is there any special property (that i can not find) in the gmfgen that
makes these two kind of containment collapse?

Regards,
Edu

Jose E. Rivera escribió:
> 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 #223210 is a reply to message #223186] Mon, 30 March 2009 12:46 Go to previous messageGo to next message
Freiric is currently offline FreiricFriend
Messages: 1
Registered: July 2009
Junior Member
Hi Jose,

Have a look here:
http://dev.eclipse.org/newslists/news.eclipse.modeling.gmf/m sg03212.html

hth,

Freiric.
Re: Affixed Parent Side VS Compartment [message #223326 is a reply to message #223210] Mon, 30 March 2009 16:29 Go to previous message
Eclipse UserFriend
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.
>
Previous Topic:Collapse compartment does not work?
Next Topic:Displaying element's child attribute in property view
Goto Forum:
  


Current Time: Fri Apr 19 09:39:50 GMT 2024

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

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

Back to the top