Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Automatically set value of property
Automatically set value of property [message #192416] Fri, 13 June 2008 09:49 Go to next message
Toan is currently offline ToanFriend
Messages: 36
Registered: July 2009
Member
Hello everybody,
I have two classes A and B. Class A have two attributes: environment and
an attribute of type B (relation aggregation in GMF). Class B have an
attribute environment. Can anyone show me how to automatically set the
value of attribute environment of B equal the value of attribute
environment in A when user create an instance of B in A? Moreover, when
user change the value of environment in A, the value of environment in B
will change automatically and correspond to that in A. Thanks in advance!
Toan.
________________
|Class A |
|----------------|
|-environment |
| ______________ |
| |Class B ||
| |-------------||
| |-environment ||
| |_____________||
|________________|
Re: Automatically set value of property [message #192432 is a reply to message #192416] Fri, 13 June 2008 10:03 Go to previous message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Toan,

Looks like attribute environment in B should be derived and you can implement
corresponding logic in EMF-generated getEnvironment method then..

-----------------
Alex Shatalin
Previous Topic:Unique ID Generation
Next Topic:Doubt regarding copy/paste
Goto Forum:
  


Current Time: Wed Apr 24 18:56:15 GMT 2024

Powered by FUDForum. Page generated in 0.02958 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top