Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » How to change a java model
How to change a java model [message #423546] Thu, 02 October 2008 01:30 Go to next message
Kim Myoungki is currently offline Kim MyoungkiFriend
Messages: 12
Registered: July 2009
Junior Member
hi.

I'm a newbie of this area. I think it is very simple question.

I made a simple java annotated class for emf enum class, and generated emf
model. After that, I have to change the enum class but the original source
is very different. Other EObject are almost same so I can add operations
but the enum is different. How to apply the changes?

Thank you.
Re: How to change a java model [message #423560 is a reply to message #423546] Thu, 02 October 2008 11:52 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
Kim,

Comments below.

Kim Myoungki wrote:
> hi.
> I'm a newbie of this area. I think it is very simple question.
>
> I made a simple java annotated class for emf enum class, and generated
> emf model. After that, I have to change the enum class but the
> original source is very different. Other EObject are almost same so I
> can add operations but the enum is different. How to apply the changes?
I suppose it's a little different because it's not just an interface;
it's a class that has to include the entire implementation. But you
should be able to change what's generated the same as in any other
situation. I.e., add new enumerators and mark them with @model. Add
methods. Use @implements to mix in additional interfaces. And so on.
Maybe you can given a more specific example of the problem if what I
said doesn't help...
>
> Thank you.
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:[teneo] one-to-many mapping bug?
Next Topic:[EMF] Adapter Factory
Goto Forum:
  


Current Time: Thu Apr 25 01:24:41 GMT 2024

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

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

Back to the top