Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » How to change name of multiple objects by changing the name of only one
How to change name of multiple objects by changing the name of only one [message #1863881] Mon, 04 March 2024 05:29 Go to next message
Sachin Goyal is currently offline Sachin GoyalFriend
Messages: 19
Registered: February 2024
Junior Member
In my eclipse emf project, I have one class A and class B.
Lets say each object of class B has one object of class A associated with it.
Now, According to my project i will create object of Class A first and Then will create object of class B.
And which object is created of A before get linked to the object of B.
Now, I want that if i change the name of object of Class A.
It should reflect in B's Object.


For better understanding,

At the runtime emf looks like:

-------- | ______________
| __________
| _______
------- | _________

first left side shows the object to select and right side shows the properties in it.
If i change the name, it will reflect the name on left side.
My problem is object of A is reflecting the name on changing but object of B that refer to object of A whose name just got changed doesn't show the changes on the left side.

let's say if i name the object of A = "Sachin"
object of B should also show the changes in the left side name as " Sachin".

Any idea how can i do that?
Re: How to change name of multiple objects by changing the name of only one [message #1863886 is a reply to message #1863881] Mon, 04 March 2024 08:33 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33143
Registered: July 2009
Senior Member
It seems to me this is a variation of the previous question and the same answer applies. Or not?

Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:[CDO] Commit Exception on the second commit after thread interruption
Next Topic:Other/Custom names for objects in EMF-Plugin
Goto Forum:
  


Current Time: Thu May 02 08:10:50 GMT 2024

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

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

Back to the top