Save Exception [message #119206] |
Fri, 13 April 2007 08:35 |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.33084 seconds