List of usage examples for weka.gui HierarchyPropertyParser build
public void build(String p, String delim) throws Exception
From source file:meka.gui.goe.GenericObjectEditor.java
License:Open Source License
/** * Called when the class of object being edited changes. * * @return the hashtable containing the HierarchyPropertyParsers for the root * elements/*from w ww .j a v a2 s . c o m*/ */ protected Hashtable<String, HierarchyPropertyParser> getClassesFromProperties() { String className = m_ClassType.getName(); if (className.startsWith("meka.")) { Hashtable<String, HierarchyPropertyParser> hpps = new Hashtable<String, HierarchyPropertyParser>(); Hashtable<String, String> typeOptions = sortClassesByRoot(EDITOR_PROPERTIES.getProperty(className)); try { Enumeration<String> enm = typeOptions.keys(); while (enm.hasMoreElements()) { String root = enm.nextElement(); String typeOption = typeOptions.get(root); HierarchyPropertyParser hpp = new HierarchyPropertyParser(); hpp.build(typeOption, ", "); hpps.put(root, hpp); } } catch (Exception ex) { Logger.log(weka.core.logging.Logger.Level.WARNING, "Invalid property: " + typeOptions); } if (DEBUG) System.out.println("Meka classes: " + hpps); return hpps; } return super.getClassesFromProperties(); }