Skip to main content



      Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [Edapt] replace attribute with existing abstract class(What operation to use to replace an attribute with and existing abstract class which has the same attribute)
[Edapt] replace attribute with existing abstract class [message #1836148] Tue, 22 December 2020 09:34 Go to next message
Eclipse UserFriend
We use edapt 1.4.1.

I have two classes:
Base:
someString: EString

Other:
someString: EString

Which edapt operations do I have to use to get this:
Other -> Base

The attribute name and type are identical in both classes.

Best regards,
Ralf

Re: [Edapt] replace attribute with existing abstract class [message #1836182 is a reply to message #1836148] Wed, 23 December 2020 05:10 Go to previous message
Eclipse UserFriend
I actually found a solution, but it is a bit awkward:
1. select both classes
2. execute extract supertype operation with both attributes and Temp as supertype name
3. add Temp to the supertype list of Other
4. select Other
5. execute remove superfluous supertype (Temp) operation
6. select Temp.someString attribute
7. execute push down feature operation
8. select Base
9. execute remove supertype (Temp) operation
10. select Temp
11. execute delete class operation
Previous Topic:Status of Texo
Next Topic:EMF - adding new model objects programmatically
Goto Forum:
  


Current Time: Tue Jun 17 20:18:44 EDT 2025

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

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

Back to the top