* Loads sub-plug-ins and calls their initialize methods.
*/
public void initializeVisualizerPlugins(MainWindow parentWindow) {
Logger log = Logger.getLogger(this.getClass());
ExtensionPoint exportExtPoint = getManager().getRegistry().getExtensionPoint(getDescriptor().getId(),
VISUALIZER_EXTPOINT_PROVIDER);
for (Extension ext : exportExtPoint.getConnectedExtensions()) {
log.info("Discovered plugin for extension point " + ext.getExtendedPointId() + " with id: " + ext.getId());
try {
ClassLoader classLoader = getManager().getPluginClassLoader(ext.getDeclaringPluginDescriptor());
Class<?> importCls = classLoader.loadClass(ext.getParameter("class").valueAsString());
VisualizerPluginProviderInterface visualizerPluginProvider = (VisualizerPluginProviderInterface) importCls