Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Set attributes when a link is deleted
Set attributes when a link is deleted [message #217357] Thu, 05 February 2009 07:12
Eclipse UserFriend
Hello,

I want to change some attributes of the nodes when I delete the link that
binds them. Searching in this group I found a possible solution, I adapted
to my case but nothing happens and no error is showed.

In my XXXItemSemanticEditPolicy:

protected Command getDestroyElementCommand(DestroyElementRequest req) {
CompoundCommand cc = new CompoundCommand();
cc.add((new ICommandProxy(new
RelationFeatureSetFather(getEditingDomain(), req))));

cc.add(getGEFWrapper(new DestroyElementCommand(req)));

return cc.unwrap();
}


RelationFeatureSetFather extends AbstractTransactionalCommand and within
doExecuteWithResult I do a SetCommand.create(xx, xx, xx, xx, xx).execute
but nothing happens.

Where is the mistake?

PD. I pass the request to the AbstractTransactionalCommand because I don't
know how to get access to the EditPart modified and I've seen many
examples where only pass the EditingDomain. How do I get access?


Thanks.
Previous Topic:Re: Editor doesn't recognizes model changes.
Next Topic:Problem creating link from derived class
Goto Forum:
  


Current Time: Wed Jul 02 18:17:24 EDT 2025

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

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

Back to the top