The KDM discoverer can be called programmatically (see the Java Discoverer API). Use either:
DiscoverKDMModelFromJavaModel
DiscoverKDMModelFromJavaProject
DiscoverKDMModelFromProject
from plug-in org.eclipse.modisco.java.discoverer