EMF: "preset" value (not default value) from another EObject property [message #1712913] |
Thu, 29 October 2015 10:16 |
Martin Jacob Messages: 191 Registered: July 2009 |
Senior Member |
|
|
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<font face="Helvetica, Arial, sans-serif">Hi,<br>
<br>
is there a way to get a "preset" value from another EObject
property?<br>
<br>
for example: <br>
<br>
Object A of type AType has a property nameA<br>
Object B of type BType has a <u>unsetable</u> property nameB<br>
<br>
Object B is a child or sibling of Object A. In case B::nameB is
unset the value of A::nameA should be returned when calling
B.getNameB().<br>
<br>
<br>
I my case I have a tree of objects and I need to be able to modify
a preset value and all children shall use this values if the
property is not set. If the property is set the specific value
shall be returned.<br>
<br>
Any idea or help would be appreciated.<br>
<br>
Martin<br>
<br>
<br>
</font>
</body>
</html>
|
|
|
Powered by
FUDForum. Page generated in 0.02908 seconds