Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Compartment overlapse top level figure
Compartment overlapse top level figure [message #227056] Wed, 22 April 2009 16:45 Go to next message
Marie is currently offline MarieFriend
Messages: 14
Registered: July 2009
Junior Member
Hi everybody,
I want to create a component where you can put another component. To do
this I have a figure descriptor ComponentFigure like this:
(like is the message
http://dev.eclipse.org/newslists/news.eclipse.modeling.gmf/m sg07230.html)
Figure Descriptor ComponentFigure
+Rectangle ComponentFigure
+ Flow Layout true
+ Foreground {200,0,0}
+ Label ComponentNameFigure
+ Rectangle CompositeCompartmentFigure
+ XY Layout
Child Access getFigureComponentNameFigure
Child Acces getFigureCompositeCompartmentFigure

Then I have a compartment which use this Figure Descriptor.
The problem is that the compartment take all the size of the top level
figure, it begin at the left-hand corner of the top level
figure and I cannot add the ports which are attached to the top level
figure.
My questions are
How can I resize the compartment and place it where I want? How make
appear an area with the name of the component at the top of the figure?


Thanks in advance
Marie
Re: Compartment overlapse top level figure [message #227077 is a reply to message #227056] Thu, 23 April 2009 05:52 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: duguepeorux.esteban.free.fr

Hi Marie,

Do you have setted Accessor property of your Compartment to the correct
child access?



Marie a écrit :
> Hi everybody,
> I want to create a component where you can put another component. To do
> this I have a figure descriptor ComponentFigure like this:
> (like is the message
> http://dev.eclipse.org/newslists/news.eclipse.modeling.gmf/m sg07230.html)
> Figure Descriptor ComponentFigure
> +Rectangle ComponentFigure
> + Flow Layout true
> + Foreground {200,0,0}
> + Label ComponentNameFigure
> + Rectangle CompositeCompartmentFigure
> + XY Layout
> Child Access getFigureComponentNameFigure
> Child Acces getFigureCompositeCompartmentFigure
>
> Then I have a compartment which use this Figure Descriptor.
> The problem is that the compartment take all the size of the top level
> figure, it begin at the left-hand corner of the top level figure and I
> cannot add the ports which are attached to the top level figure.
> My questions are How can I resize the compartment and place it where I
> want? How make appear an area with the name of the component at the top
> of the figure?
>
>
> Thanks in advance
> Marie
>
Re: Compartment overlapse top level figure [message #227102 is a reply to message #227077] Thu, 23 April 2009 10:02 Go to previous message
Marie is currently offline MarieFriend
Messages: 14
Registered: July 2009
Junior Member
Hi Esteban,
Thank you for your answer!
I forgot the accessor in the compartment in the .gmfgraph. I try to have
the same thing as in the mindpmap example,
but my problem now is that when I try to add ports to my component I
cannot, the component is blocked and when I try to run again the runtime
eclipse it say it is already in use whereas I closed it before.
Could you help me?
Thank you in advance
Marie
Previous Topic:Valid link attributes depending on source node
Next Topic:.gmfgen differences between M5 and M6, now things are deprecated, but what is the replacement?
Goto Forum:
  


Current Time: Thu Apr 25 06:16:45 GMT 2024

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

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

Back to the top