Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 15:16 Go to next message
Ali Sardarian is currently offline Ali SardarianFriend
Messages: 12
Registered: March 2019
Junior Member
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 15:23]

Report message to a moderator

Re: EMF Refactor & Modisco Java model [message #1806147 is a reply to message #1806146] Fri, 03 May 2019 15:29 Go to previous messageGo to next message
Hugo Bruneliere is currently offline Hugo BruneliereFriend
Messages: 674
Registered: July 2009
Senior Member
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


--------------------------------------------------------
Hugo Bruneliere, PhD
NaoMod team (IMT Atlantique & LS2N-CNRS)
Nantes - France
--------------------------------------------------------
Re: EMF Refactor & Modisco Java model [message #1806150 is a reply to message #1806147] Fri, 03 May 2019 15:49 Go to previous message
Ali Sardarian is currently offline Ali SardarianFriend
Messages: 12
Registered: March 2019
Junior Member
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 15:50]

Report message to a moderator

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


Current Time: Sat Feb 22 11:50:02 GMT 2020

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

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

Back to the top