Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Diagram resource modified
Diagram resource modified [message #234746] Fri, 26 June 2009 11:43 Go to next message
Javier is currently offline JavierFriend
Messages: 57
Registered: July 2009
Hello guys.

In my application I'm dealing with integration and syncronization
between different editors, and I run into a problem with the value of
Resource.isModified(). To see what was going on, I tried a similar
scenario but in a simple recently autogenerated editor.

The thing is that, when you open the diagram, you make no changes on it,
and you close it, the resource.isModified() = true. Why is that
happening? Isn't that parameter indicating when something is added in
the resource and not saved? I'm checking that attribute in the method
dispose() of the DocumentProvider.

Any help would be really appreciated. I need to implement some
functionality depending if at closing, the resource is modified and not
saved or it is saved and not dirty. Can I do that using that method?

Thank you!
Re: Diagram resource modified [message #234761 is a reply to message #234746] Fri, 26 June 2009 11:52 Go to previous message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Javier,

Can you check what was the source of modification?

Alex Shatalin
Previous Topic:Programatically making editor dirty and saving them
Next Topic:Content assist for Text in GMF
Goto Forum:

Current Time: Sat Mar 06 03:37:08 GMT 2021

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

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

Back to the top