Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » save issues
save issues [message #141031] Tue, 03 July 2007 13:34 Go to next message
Gilles Cannenterre is currently offline Gilles CannenterreFriend
Messages: 38
Registered: July 2009
Member
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.
Re: save issues [message #141042 is a reply to message #141031] Tue, 03 July 2007 13:53 Go to previous messageGo to next message
Eclipse UserFriend
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.
Re: save issues [message #141076 is a reply to message #141042] Tue, 03 July 2007 15:07 Go to previous message
Gilles Cannenterre is currently offline Gilles CannenterreFriend
Messages: 38
Registered: July 2009
Member
Of course...Thanks a lot Jan!
Regards,

Gilles

Jan Herriger a écrit :
> 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.
Previous Topic:Problem with gmfgen and "Same File For Diagram And Model"
Next Topic:can't find the GMF/mindmap cheat sheet
Goto Forum:
  


Current Time: Fri Apr 26 03:04:24 GMT 2024

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

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

Back to the top