I have been looking around for this for ages, but could not find any way to link a UML note to an operation of a class or to display the provided implementation in the specification of an operation. The idea is illustrated in the picture.
I tried to add the implementation to the operation, but I don't manage to make it appear in my diagram. I also tried making a note and then connecting it to the method, but this leads to unclear floating line-ends.
If anybody could let me know how this could be achieved with visual paradigm or let me know it is impossible, that would be nice.
Thanks in advance.
I have no idea how or whether this is possible with VP (I know for sure that you can't do it with Enterprise Architect which is pretty much UML2.x compliant). But you could hook the link near the position in the appropriate compartment (EA also has a feature to lock the connector at a certain position of an element).
Edit I have looked into Superstructures 2.5:
So actually what you want to do is not UML compliant. A comment can only be attached to an element. Attributes/operations are not UML elements.