Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 12:12
Jose Salazar is currently offline Jose SalazarFriend
Messages: 34
Registered: July 2009
Member
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 Mar 03 02:15:54 GMT 2021

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

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

Back to the top