|
Re: The need for Compartments [message #181980 is a reply to message #181960] |
Wed, 09 April 2008 16:54 |
Lazar Codrut-Lucian Messages: 91 Registered: July 2009 |
Member |
|
|
You can, but there is no benefit, only drawbacks. You can configure the
compartment to be non-collapsible in gmfgraph, in case you don't want that.
Otherwise, you can alter the createContents method of the main EditPart
to have a figure (as a container) that allows a nested figure to be
moved around. However, you won't have a default mechanism to save the
position of the child figure, for a reload. And, basically, you will
re-invent the wheel, by re-implementing the container functionality.
Using the existing Compartment functionality is the best way to go.
Lucian
|
|
|
Re: The need for Compartments [message #181987 is a reply to message #181980] |
Wed, 09 April 2008 16:55 |
Barbara Rosi-Schwartz Messages: 448 Registered: July 2009 |
Senior Member |
|
|
On 2008-04-09 17:54:58 +0100, Lazar Codrut Lucian
<lcodrutlucian@yahoo.com> said:
> You can, but there is no benefit, only drawbacks. You can configure the
> compartment to be non-collapsible in gmfgraph, in case you don't want that.
>
> Otherwise, you can alter the createContents method of the main EditPart
> to have a figure (as a container) that allows a nested figure to be
> moved around. However, you won't have a default mechanism to save the
> position of the child figure, for a reload. And, basically, you will
> re-invent the wheel, by re-implementing the container functionality.
>
> Using the existing Compartment functionality is the best way to go.
>
> Lucian
Thanks Lucian,
A clear and definitive answer!... :-)
B.
--
Barbara Rosi-Schwartz
Etish Limited [http://www.etish.org]
Blog: http://www.brs4etish.blogspot.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
^...^
/ o,o \ The proud parents of Useme
|) ::: (| The Open Requirements Management Tool
====w=w==== [https://useme.dev.java.net]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03177 seconds