Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » getAfterCreateRelationshipCommand() not called on my SpecializationType
getAfterCreateRelationshipCommand() not called on my SpecializationType [message #1745627] Thu, 13 October 2016 15:11 Go to next message
Patrik Nandorf is currently offline Patrik NandorfFriend
Messages: 195
Registered: January 2013
Location: Sweden
Senior Member
I'm trying to create an EditHelperAdvice for my SpecializationType specializing Realization.

What I want to do is to set the name to something like <supplierName><clientName> and though that getAfterCreateRelationshipCommand() would be a good place but it is never called.

Other methods are called like getAfterConfigureCommand() but at that point the realization object doesn't have any clients or suppliers set.

I've also tried a similar thing with associations but no ends are set there.

What am I doing wrong?

/Patrik

Re: getAfterCreateRelationshipCommand() not called on my SpecializationType [message #1747105 is a reply to message #1745627] Wed, 09 November 2016 13:29 Go to previous messageGo to next message
Patrick Tessier is currently offline Patrick TessierFriend
Messages: 341
Registered: July 2009
Location: Paris Saclay, France
Senior Member
You problem is not simple without the code.
you can see org.eclipse.papyrus.uml.service.types.internal.ui.advice.InstanceSpecificationLinkEditHelperAdvice.
to nknwo the source and target we use the parameter of the request like request.getParameter(CreateRelationshipRequest.SOURCE).
the connection is done after the creation of the Realization by other commands.
Re: getAfterCreateRelationshipCommand() not called on my SpecializationType [message #1747264 is a reply to message #1747105] Fri, 11 November 2016 12:44 Go to previous message
Patrik Nandorf is currently offline Patrik NandorfFriend
Messages: 195
Registered: January 2013
Location: Sweden
Senior Member
Thanks Patrick,

With the help of the code in InstanceSpecificationLinkEditHelperAdvice I managed to get the renaming to work.

/Patrik
Previous Topic:how to install papyrus 2.0.1 on neon
Next Topic:Re-hash Reverse Engineering
Goto Forum:
  


Current Time: Fri Apr 19 07:54:34 GMT 2024

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

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

Back to the top