Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » How can modify my model element after every save
How can modify my model element after every save [message #192646] Sat, 14 June 2008 16:56 Go to next message
Eclipse UserFriend
Originally posted by: netsrujana.rediffmail.com

Hi,

My model root element has two attributes lastModifiedBy and
lastModifiedTime, which I want to update after every save (any change to my
diagram).

I tried to set the values in
xxxDocumentProvider.$ResourceSetModificationListener.notifyC hanged() method
but I am getting the exception - no write transaction.

Please help how I can handle this.

regards,
Phani Kumar K.
Re: How can modify my model element after every save [message #192680 is a reply to message #192646] Sun, 15 June 2008 04:19 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: netsrujana.rediffmail.com

I was able to do this using, EMFCommandOpertion in the doSaveDocument of the
DocumentProvider class.


"Phani Kumar Kotaprolu" <netsrujana@rediffmail.com> wrote in message
news:g30t8i$on9$1@build.eclipse.org...
> Hi,
>
> My model root element has two attributes lastModifiedBy and
> lastModifiedTime, which I want to update after every save (any change to
> my diagram).
>
> I tried to set the values in
> xxxDocumentProvider.$ResourceSetModificationListener.notifyC hanged()
> method but I am getting the exception - no write transaction.
>
> Please help how I can handle this.
>
> regards,
> Phani Kumar K.
>
Re: How can modify my model element after every save [message #195576 is a reply to message #192680] Thu, 03 July 2008 09:46 Go to previous message
Anjali is currently offline AnjaliFriend
Messages: 6
Registered: July 2009
Junior Member
Hi,
can u send me the code u have written for modifying model element in
DocumentProvider class's dosavedocument method .

Thanks
Previous Topic:Sync Problem with eclipse 3.4 emf 2.4 gmf 2.1
Next Topic:weird behavior from the navigator(s) ?
Goto Forum:
  


Current Time: Thu Apr 25 08:23:26 GMT 2024

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

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

Back to the top