Add a new distance function to distance matrix dialogPane

i’would like to add a distance function in the distance matrix node but when looking to the source code, i realise that class extending abstract class Distance (like euclidian, etc.) , have been added “manually” though the method getAvailableDistances(). So, my question is to know, how to add a new distance calculation function, so that it will appear in the distance-matrix dialogPane combo box.
thank u!

There is a static (and undocumented) add(Distance) method in class org.knime.base.distance.Distance. That should do it?

thanx wiswedel, i’ll try it!