[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.gmf] Problems with the Mapping model

We are creating a statechart editor with three kinds of states (nodes) and one type of transition (link). The same kind of link should be able to be mapped between the different kinds of nodes. This is where our problem lies:

As far as we can see we can only create one link mapping when we generate the mapping model through the gmf dashboard. (this is the one we will refer to as the "generated" one)
We can add other link mapping siblings to the link mapping that was "generated" and when we look in the **itemSemanticEditPolicy.java it looks like these mappings are correct. But the problem comes when we actually want to draw these links in the editor we created. Only the one "generated" is the kind of mapping that works. We "generate" all three mappings one at a time, with the same result, only the one "generated" works. However the rules for the mappings seem to work, ie some nodes are not allowed to have incoming or outgoing links and when you try to do a "forbidden" action the cursor indicates that this is not allowed. But,when you do something that is allowed and finishes the action nothing happens, the link is never drawn (unless it is the "generated" mapping of course.)


Is there a way to generate all of our mappings when we generate the mapping file? or Where is this set in the code later on so that we can do some manipulation of our own in the Java code?

sincerely Anna and Linda