Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » What is the best approach to change existing model class names
What is the best approach to change existing model class names [message #419304] Sat, 17 May 2008 16:26 Go to next message
Yigal Spinner is currently offline Yigal SpinnerFriend
Messages: 127
Registered: July 2009
Senior Member
I have a very large model (over 150 classes). I built the model using
the IBM Rational product call RSA. I need to rename about 50 of the
classes in the model. This is easy to be done in RSA, however, I want
Eclipse to manage all the changes across all source code:
1. Change the class names, Impl names Pckage domain.
2. Merge all custom code back (right now it creates a new class with the
new and does not merge the previous class name custom code)
2. Refacator class name across all plugins
3. Refactor the names in the validor class while keeping the custom code
in the correct method.

What is the best way to update the eCore file that will allow me to
trickle the changes correctly across all relevant parts.
Is there a tool to do that?

Thanks
Yigal
Re: What is the best approach to change existing model class names [message #419306 is a reply to message #419304] Sat, 17 May 2008 16:49 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
Yigal,

Comments below.

Yigal wrote:
> I have a very large model (over 150 classes). I built the model using
> the IBM Rational product call RSA. I need to rename about 50 of the
> classes in the model. This is easy to be done in RSA, however, I want
> Eclipse to manage all the changes across all source code:
> 1. Change the class names, Impl names Pckage domain.
> 2. Merge all custom code back (right now it creates a new class with
> the new and does not merge the previous class name custom code)
> 2. Refacator class name across all plugins
> 3. Refactor the names in the validor class while keeping the custom
> code in the correct method.
>
> What is the best way to update the eCore file that will allow me to
> trickle the changes correctly across all relevant parts.
> Is there a tool to do that?
We don't have any nice integrated Ecore refactoring support yet. The
best I could suggest is to use Java refactoring to refactoring the
source code and to make the same renaming changes directly to the Ecore
model so they are "aligned", and then you'll be able to regenerate again...
>
> Thanks
> Yigal


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:provide a model with a plugin
Next Topic:DanglingHREFs and few other problems
Goto Forum:
  


Current Time: Sat Apr 20 00:26:31 GMT 2024

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

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

Back to the top