| [news.eclipse.modeling.gmf] Creating a child of the same size as its compartment |
Dear, Here is my problem. I did look into tutorials, the documentation and the generated code, but I can't find an answer. Here is the problem: Following the BPMN tutorial, I would like to have the following: A diagram is made of pools. Inside a pool, we have a process, inside process, we have tasks and transitions between them. When I create a new Diagram, I directly create a pool with a process inside. A pool EMF element is mapped to a Rectangle Figure containing a Label. I also set up a Compartment so it can contains a Process. When I create a Diagram in my application, I directly provide a fresh pool with a process inside. The question is how can I make the process the size of the pool (or of the pool's compartment)? I tried to setup a BorderLayout in the generated PoolCompartementEditPart but it didn't work. Find in attachment a sample of the application: the blue rectangle is the process. I would like it to be exactly of the same size as its "parent" (not sure it is the pool or the pool's compartment, I guess the latter). Thank for your help. Regards.
Attachment:
kprinter1.png
Description: PNG image