distinguish between EClasses [message #1766525] |
Thu, 22 June 2017 11:36  |
Eclipse User |
|
|
|
Hi,
I create two Ecore EClasses with the same name in my code. Since EClass [name=Column, instanceClassName=null, instanceClass=null, defaultValue=null, instanceTypeName=null, abstract=false, interface=false, ] cannot specifies the difference of these classes, how can I distinguish between these classes?
|
|
|
|
|
|
|
|
|
|
Re: distinguish between EClasses [message #1766616 is a reply to message #1766603] |
Fri, 23 June 2017 09:43  |
Eclipse User |
|
|
|
Hi
You can contrive all sorts of things, but until you motivate identical names, you're not going to get much help. EClasses MUST have different names wrt their EPackage. You can have duplicates, but expect to have to produce a modified version of every tool that you use thereafter.
A common approach used in graphical tools is to auto-name as NewClass1, NewClass2, NewClass3, ...
A necessary approach for transformations that must comply with WFRs is to have a name supervisor that fixes duplicates and embarrassing names such as a Java class named "class" or "1£$%".
Regards
Ed Willink
|
|
|
Powered by
FUDForum. Page generated in 0.04559 seconds