Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Trigger Open Edit Policy
Trigger Open Edit Policy [message #226289] Thu, 16 April 2009 08:32 Go to next message
Matthias M. is currently offline Matthias M.Friend
Messages: 27
Registered: July 2009
Junior Member

Hello there

Ive got nodes, which I installed an OpenEditPolicy on. These nodes have
got a label as child.
My problem was, that when you click the label, my OpenEditPolicy is not
executed.
So I just copied the code from the parent EditPart, pasted it into the
label's EditPart and replaced this. by getParent().

So far, so good: it works.
But I don't think that to be a very elegant solution.

Is there a possibility to trigger the parent's OpenEditPolicy instead of
just copying it?

Any hint welcome ;)

Thanks in advance,
Matt


Re: Trigger Open Edit Policy [message #226299 is a reply to message #226289] Thu, 16 April 2009 08:33 Go to previous messageGo to next message
Matthias M. is currently offline Matthias M.Friend
Messages: 27
Registered: July 2009
Junior Member

Oh, I forgot:
I tried to remove the children's EditPolicys, but that didn't work!


Re: Trigger Open Edit Policy [message #226363 is a reply to message #226289] Thu, 16 April 2009 11:00 Go to previous message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Matt M.,

Try calling getHost().getParent().getCommand(request) in an EditPolicy for
child element.

-----------------
Alex Shatalin
Previous Topic:Is it a bug in GMF that does not allow to change the palette backgournd colour
Next Topic:2 questions about GMF
Goto Forum:
  


Current Time: Fri Apr 26 01:27:43 GMT 2024

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

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

Back to the top