How can modify my model element after every save [message #192646] |
Sat, 14 June 2008 16:56 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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.
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.03698 seconds