|
Re: save issues [message #141042 is a reply to message #141031] |
Tue, 03 July 2007 13:53 |
Eclipse User |
|
|
|
Originally posted by: jan.herriger.gmx.de
Hi Gilles,
to avoid concurrent changes, you could use a shared editing domain. This
way all editors would use the same resource set.
Regards
Jan
Gilles Cannenterre schrieb:
> Hello,
>
> I'm working on a Ecore diagram editor allowing to open several diagram
> editors (of the same kind : EcoreDiagramEditor) on a EPackage element.
>
> So, I've disabled some canonical edit policies and modified the default
> open role edit policy (among other things) to support opening of several
> diagram editors on a EPackage element.
>
> I'm now facing problems when i'm trying to save the diagram file..."the
> file has been modifying on the file system....save operation could not
> be performed....etc".
>
> I think that I could get rid of this problem if I perform a save
> operation every time I move to another diagram editor. I've overriden
> the "safelySanityCheckState()" method of the "DiagramDocumentEditor"
> class to perform my save actions...
>
> Is there a better way to avoid the problem...? (I know there is a better
> one)
>
> I'm looking forward to your answers, regards,
>
> Gilles.
|
|
|
|
Powered by
FUDForum. Page generated in 0.03083 seconds