Skip to main content



      Home
Home » Modeling » EMF » How to change a java model
How to change a java model [message #423546] Wed, 01 October 2008 21:30 Go to next message
Eclipse UserFriend
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 07:52 Go to previous message
Eclipse UserFriend
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.
>
Previous Topic:[teneo] one-to-many mapping bug?
Next Topic:[EMF] Adapter Factory
Goto Forum:
  


Current Time: Sun Jul 06 16:20:24 EDT 2025

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

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

Back to the top