[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.gmf] Problem with compartments

Hi,

I'm trying to create an element with one compartment like the Topic element in the Tutorial Part 2, so I followed the Tutorial, it worked well on the example, but when I tried to do with my own diagram it didn't work, when I drop some element into my package compartment, I can't move o resize the element inside the package, they go automatic to the corner of the compartment when I drop it in the compartment. I tried to change the layout of my packagefigure but it didn't work either.

In my .graph configuration I used the same of the tutorial. A Figure Descriptor with a Rounded Rectangle using the Flow Layout False and some labels. And I created a Compartment named taskCompartment with my PackageFigure as Figure.

In the .map, I let the wizard create the package node, and put the other by my self.

Frist I created a compartment mapping on the Package Node and associate it with the compartment of .graph.
After that I inserted a Child Reference on the Package Node and a Node Mapping on it.


On the Child reference I put this:

-Child  : Node Mapping <Task/Task>
-Children Feature : EMPTY
-Compartment Feature : Compartment Mapping <taskCompartment>
-Containment Feature : taksReference : Taks
-Referenced Child : EMPTY

On the Task's node:

Element : Task
Diagram Node : Node Task(TaskFigure)
Tool : Creation Tool Task


I'm sure that I miss something, but I didn't find it following the tutorial again.


I can send by e-mail two screenshots to show what is the problem if you didn't catch.