Skip to main content



      Home
Home » Modeling » MoDisco » EMF Refactor & Modisco Java model(is it possible to using EMF Refactor with modisco java model ?!)
EMF Refactor & Modisco Java model [message #1806146] Fri, 03 May 2019 11:16 Go to next message
Eclipse UserFriend
I wanna run EMF Refactor Ecore refactorings on my Modisco java model.

EMF Refactor has said: "EMF Refactor can be used for refactorings of any models whose meta model is based on EMF Ecore."
https://projects.eclipse.org/projects/modeling.emft.refactor

Modisco java models have these conditions ?! right?

so I have some trouble with using prepared EMF Refactor Ecore refactoring techniques on the modisco (.xmi) java model.
here the list of EMF Refactor techniques :
https://wiki.eclipse.org/Techniques

and I think EMF Refactor just supports (.ecore) model files and the modisco java model have a different structure that is not exactly the same as the Ecore model.
If this is true, is there any way to turning the modisco java model (.xmi) to Ecore model (.ecore) that is suitable for EMF Refactor?
or maybe Adapt the EMF Refactor Techniques to Modisco Java model ?
is it possible?

My used tools:


  • Eclipse Modeling tools (Photon)
  • MoDisco SDK (1.2.0)
  • EMF Refactor (0.9.0)
  • JRE 1.8.0_202

+ my modisco model in Attachments.

Best Regards
Ali Sardarian

[Updated on: Fri, 03 May 2019 11:23] by Moderator

Re: EMF Refactor & Modisco Java model [message #1806147 is a reply to message #1806146] Fri, 03 May 2019 11:29 Go to previous messageGo to next message
Eclipse UserFriend
Hello,

I think you are confusing two different levels: the .xmi file is a Java model that conforms to the Java metamodel provided by MoDisco (which is an Ecore file).
From what yous say, EMF Refactor seems to apply only at the metamodel-level (Ecore)... I would encourage you to post your question on the EMF Refactor forum as it seems to be related to the use of EMF Refactor and not to MoDisco.

Kind regards
Re: EMF Refactor & Modisco Java model [message #1806150 is a reply to message #1806147] Fri, 03 May 2019 11:49 Go to previous message
Eclipse UserFriend
Thanks Hugo for replying

I posted a topic on the EMF Refactor forum that is referred to here for avoiding duplicates.
https://www.eclipse.org/forums/index.php/t/1098747/

[Updated on: Fri, 03 May 2019 11:50] by Moderator

Previous Topic:Problem with Java model to source code transformation
Next Topic:How to transform uml into java model ?
Goto Forum:
  


Current Time: Fri May 23 05:34:42 EDT 2025

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

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

Back to the top