Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » EMF/GMF does not update XMI file
EMF/GMF does not update XMI file [message #429835] Mon, 04 May 2009 14:46 Go to next message
Alexander Mack is currently offline Alexander MackFriend
Messages: 100
Registered: July 2009
Senior Member
Hello,
I have a "little" problem with EMF:

I have an eclpise Plugin based on EMF and GMF. In this project I can for
example paint GUI-Elements like textfields and buttons etc. .The problem
now is that EMF sometimes does not update the XMI-File.
The Problem most occurs when I add for example a Textfield an then delete
it. In the plugin editor the textfield seems to be deleted but if I take a
loog at the XMI File I will see that there are some informations left
about that textfield.

Another problem is that I unfortunatly cannot say in which specific
situations the problem occurs...

Is the only way to solve this problem deleting the whole XMI-Files before
saving the complete Model? What could I do instead?

I hope you can help me...

Thanks for your answers & best regards
Alex
Re: EMF/GMF does not update XMI file [message #429836 is a reply to message #429835] Mon, 04 May 2009 15:10 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33142
Registered: July 2009
Senior Member
Alex,

comments below.

Alexander Mack wrote:
> Hello,
> I have a "little" problem with EMF:
>
> I have an eclpise Plugin based on EMF and GMF. In this project I can
> for example paint GUI-Elements like textfields and buttons etc. .The
> problem now is that EMF sometimes does not update the XMI-File.
> The Problem most occurs when I add for example a Textfield an then
> delete it. In the plugin editor the textfield seems to be deleted but
> if I take a loog at the XMI File I will see that there are some
> informations left about that textfield.
>
> Another problem is that I unfortunatly cannot say in which specific
> situations the problem occurs...
>
> Is the only way to solve this problem deleting the whole XMI-Files
> before saving the complete Model? What could I do instead?
I doubt that EMF will ever save something that doesn't accurately
reflect the actual state of the model. I could imagine though the view
not showing something that's actually still in the underlying model. In
other words, it just doesn't seem possible that EMF would not produce an
accurate serialization. The problem must lie elsewhere.
>
> I hope you can help me...
>
> Thanks for your answers & best regards
> Alex
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:how to create inter package links in an ecore model
Next Topic:Suppressing intermediate elements
Goto Forum:
  


Current Time: Fri Apr 26 22:02:22 GMT 2024

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

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

Back to the top