Skip to main content



      Home
Home » Modeling » Papyrus » getAfterCreateRelationshipCommand() not called on my SpecializationType
getAfterCreateRelationshipCommand() not called on my SpecializationType [message #1745627] Thu, 13 October 2016 11:11 Go to next message
Eclipse UserFriend
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 08:29 Go to previous messageGo to next message
Eclipse UserFriend
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 07:44 Go to previous message
Eclipse UserFriend
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: Sun Aug 31 11:12:52 EDT 2025

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

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

Back to the top