Query With Documentprovider extending StorageDocumentprovider [message #224343] |
Sat, 04 April 2009 11:24 |
|
Hello All..
In my gmf project any changes to model file is not enabling save option.
I had my old project where the my XXXDocumentProvider was extending
StorageDocumentProvider.
And changes made to model file using Impl.SetXX Methods was enabling save
button.
But upgradation of eclipse and gmf version save button is not enabling the
save button..
And now my XXXDocumentProvider is extending AbstractDocumentProvider.
Please help me...Or is any way to make editor dirty on a operation.
Regards
Govind R
|
|
|
|
Re: Query With Documentprovider extending StorageDocumentprovider [message #224892 is a reply to message #224400] |
Wed, 08 April 2009 11:57 |
|
Hi Alex,
i found that both my diagram and model file are resource which are coming
in notifyChanged of createEditingDomain() method
ie.setTrackingModification(true) is true.
But what i found was when i set the first value using Impl.setMethod say
setName() is notifyChanged(Notification notification) of
ResourceSetModificationListener is called and its shows
nextResource.isModified() is true.
and when i call again one Impl.setMethod say setAddress. at that time
nextResource.isModified() is false. i am setting the both name and address
in okPressed of Dailog.
The same code is working i n my old gmf version.
Please help as i dont want to revert back t my old version.
Regards
Govind R
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03498 seconds