Vector pluginsVector =
GenericObjectEditor.getClassnames(AssociationRuleVisualizePlugin.class.getName());
for (int i = 0; i < pluginsVector.size(); i++) {
String className = (String) (pluginsVector.elementAt(i));
try {
AssociationRuleVisualizePlugin plugin =
(AssociationRuleVisualizePlugin)Class.forName(className).newInstance();
if (plugin == null) {
continue;
}
availablePlugins = true;
JMenuItem pluginMenuItem = plugin.getVisualizeMenuItem((AssociationRules)o, selectedName);
if (pluginMenuItem != null) {
visPlugins.add(pluginMenuItem);
}
} catch (Exception ex) {
//ex.printStackTrace();
}
}
} else if (o instanceof String) {
Vector pluginsVector =
GenericObjectEditor.getClassnames(TreeVisualizePlugin.class.getName());
for (int i = 0; i < pluginsVector.size(); i++) {
String className = (String) (pluginsVector.elementAt(i));
try {
TreeVisualizePlugin plugin = (TreeVisualizePlugin) Class.forName(className).newInstance();
if (plugin == null)
continue;
availablePlugins = true;
JMenuItem pluginMenuItem = plugin.getVisualizeMenuItem((String)o, selectedName);
// Version version = new Version();
if (pluginMenuItem != null) {
/* if (version.compareTo(plugin.getMinVersion()) < 0)
pluginMenuItem.setText(pluginMenuItem.getText() + " (weka outdated)");
if (version.compareTo(plugin.getMaxVersion()) >= 0)