Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 14:34 Go to next message
Ralf Sieger is currently offline Ralf SiegerFriend
Messages: 9
Registered: August 2017
Junior Member
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 10:10 Go to previous message
Ralf Sieger is currently offline Ralf SiegerFriend
Messages: 9
Registered: August 2017
Junior Member
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: Fri Apr 19 18:20:20 GMT 2024

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

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

Back to the top