Example usage for weka.core PluginManager addFromProperties

List of usage examples for weka.core PluginManager addFromProperties

Introduction

In this page you can find the example usage for weka.core PluginManager addFromProperties.

Prototype

public static synchronized void addFromProperties(Properties props) throws Exception 

Source Link

Document

Add all key value pairs from the supplied properties object

Usage

From source file:adams.gui.application.WekaPluginManagerExtensions.java

License:Open Source License

/**
 * Performs the initialization./*from w ww . ja  va  2  s . c  o  m*/
 *
 * @param parent   the application this initialization is for
 * @return      true if successful
 */
@Override
public boolean initialize(AbstractApplicationFrame parent) {
    Properties props;

    try {
        props = Properties.read(FILENAME);
        PluginManager.addFromProperties(props);
        return true;
    } catch (Exception e) {
        System.err.println("Failed to read PluginManager extensions: " + FILENAME);
        e.printStackTrace();
        return false;
    }
}