Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Save Exception
Save Exception [message #119206] Fri, 13 April 2007 12:35
Eclipse UserFriend
Originally posted by: elena.tibrea.gmail.com

I have implemented the method below in a class derived from
CreateRelationshipCommand. When I try to save the diagram I get "Cannont
modify resource set without a write transaction".

CreateRelationshipCommand has as ancestor AbstractTransactionalCommand so
why does this pop up?

I have read several comments on this issues on the newsgroup but I still
don't know how to solve the problem.


protected CommandResult doExecuteWithResult(
IProgressMonitor progressMonitor, IAdaptable info) throws
ExecutionException
{
super.doExecuteWithResult(progressMonitor, info);
Relation newElement=(Relation)this.getNewElement();
if (newElement != null) {

EObject obj=.getElementToEdit();
newElement.setMySource(mySrc);
newElement.setMyTarget(myTrg);
//....
}


return CommandResult.newOKCommandResult();
}

Thank you very much!
elena
Previous Topic:Regarding class GenericModelElementFilter
Next Topic:Europa 3.3M6, GMF 2.0M6: ZipException
Goto Forum:
  


Current Time: Tue Sep 17 11:18:37 GMT 2024

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

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

Back to the top