How to make a Link in a Palette non-draggable

i want to make a link none draggable from the palette but when i click on the link ,it actives a listener on all the classes in the diagram waiting for me to point on the first class and then to target the second one .
Any one can help me please,thank you

I have moved this post because it seemed unrelated to what you were asking about in the UML class topic.

I think you could make the link non-copyable by setting or binding Part.copyable to false.

But I’m not sure I understand what you are saying about activating listeners.