Synchronizing containment and cross reference lists [message #1766271] |
Mon, 19 June 2017 17:15 |
Wa Lid Messages: 4 Registered: April 2013 |
Junior Member |
|
|
Hi, I am fairly new to emf and I wonder how I can sync between a containment and cross reference lists
My class structure is the following
SubComponent
component // parent component, a container reference
Input > SubComponent
Output > SubComponent
Component > subComponent //super type
subComponents : [0..*] SubComponent // a containement reference
inputs : [0..*] Input
outputs : [0..*] Output
So, in my application, sometimes I need to handle all subcomponents in a way, and sometimes I need to apply specific operations only on input and outputs.
I know I can can walk through the subcomponents list and filter on inputs and outputs, or add them by hand in each list whenever I add an input or input to a Component, but is there a way to tell emf to sync between subcomponents and inputs and outpus lists, so that when I add or remove an Input (output) from the subcomponents list, it gets removed from the inputs (outputs) list as well ?
[Updated on: Mon, 19 June 2017 17:22] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03497 seconds