Different mappings for the same generated code [message #510053] |
Tue, 26 January 2010 06:39  |
Eclipse User |
|
|
|
Hi,
I have one problem regarding generation of elements from gmfmap/gmfgen.
I have multiple FlowElements, like: Task, SubProcess, etc., and two containers:
Pool and Lane. These classes are defined like this:
class Task extends FlowElement { ... }
class SubProcess extendsFlowElement {...}
and containers are defined like this:
class Pool {
flowElements[0..*] : FlowElement;
...
}
class Lane {
flowElementsRef[0..*] : FlowElement;
...
}
I have defined mappings for FlowElements as ChildReferences in the Pool NodeMapping,
and I wanted to reference the same mappings from Lane NodeMapping (by using referenced child
property). However, GMF generated Task2EditPart and SubProcess2EditPart classes and other.
How can I fix this,i.e., to use the same Task and SubProcess EditParts in for the Pool and the Lane ?
--
Regards, Milan
|
|
|
|
|
Re: Different mappings for the same generated code [message #512545 is a reply to message #510053] |
Fri, 05 February 2010 07:50  |
Eclipse User |
|
|
|
No one have any suggestion how to do this?
Additionaly, I need when a FlowElement is added to the Lane, that it be automatically added to the parent Pool (i.e., its flowElements property). Lane is actually also a FlowElement and it is contained in the Pool.
--
Regards, Milan
|
|
|
Powered by
FUDForum. Page generated in 0.05183 seconds