@Override public Object getSelectedItem() { Object item = super.getSelectedItem(); if (item instanceof String) { if (env.getVariableValue((String) item) != null) { String newS = "${" + (String) item + "}"; item = newS; } } return item; } };
@Override public Object getSelectedItem() { Object item = super.getSelectedItem(); if (item instanceof String) { if (env.getVariableValue((String) item) != null) { String newS = "${" + (String) item + "}"; item = newS; } } return item; } };
@Override public Object getSelectedItem() { Object item = super.getSelectedItem(); if (item instanceof String) { if (env.getVariableValue((String) item) != null) { String newS = "${" + (String) item + "}"; item = newS; } } return item; } };
@Override public String getProperty(String key) { // allow system-wide properties to override if (m_env == null) { m_env = Environment.getSystemWide(); } String result = m_env.getVariableValue(key); if (result == null) { result = super.getProperty(key); } return result; } }
@Override public Object getSelectedItem() { Object item = super.getSelectedItem(); if (item instanceof String) { if (env.getVariableValue((String) item) != null) { String newS = "${" + (String) item + "}"; item = newS; } } return item; } };
@Override public String getProperty(String key) { // allow system-wide properties to override if (m_env == null) { m_env = Environment.getSystemWide(); } String result = m_env.getVariableValue(key); if (result == null) { result = super.getProperty(key); } return result; } }
/** * Returns entries from the WEKA_CLASSPATH property (if set). * * @return an array of URLs, one for each part of the WEKA_CLASSPATH */ private URL[] getWekaClasspathEntries() { String wekaCp = Environment.getSystemWide().getVariableValue("WEKA_CLASSPATH"); // assume the system separator is being used String sep = System.getProperty("path.separator", ":"); if (wekaCp != null) { return getParts(wekaCp, sep); } return new URL[0]; }
/** * Returns entries from the WEKA_CLASSPATH property (if set). * * @return an array of URLs, one for each part of the WEKA_CLASSPATH */ private URL[] getWekaClasspathEntries() { String wekaCp = Environment.getSystemWide().getVariableValue("WEKA_CLASSPATH"); // assume the system separator is being used String sep = System.getProperty("path.separator", ":"); if (wekaCp != null) { return getParts(wekaCp, sep); } return new URL[0]; }
String numMaps = m_env.getVariableValue(TOTAL_NUMBER_OF_MAPS); if (numMaps != null && numMaps.length() > 0) { int nM = Integer.parseInt(numMaps);
private void buildAssociations(Instances data) throws Exception { // see if there is an environment variable with // options for the associator if (m_env != null && m_Associator instanceof OptionHandler) { String opts = m_env .getVariableValue("weka.gui.beans.associator.schemeOptions"); if (opts != null && opts.length() > 0) { String[] options = Utils.splitOptions(opts); if (options.length > 0) { try { ((OptionHandler) m_Associator).setOptions(options); } catch (Exception ex) { String warningMessage = "[Associator] WARNING: unable to set options \"" + opts + "\"for " + m_Associator.getClass().getName(); if (m_log != null) { m_log.logMessage(warningMessage); } else { System.err.print(warningMessage); } } } } } m_Associator.buildAssociations(data); }
private void buildAssociations(Instances data) throws Exception { // see if there is an environment variable with // options for the associator if (m_env != null && m_Associator instanceof OptionHandler) { String opts = m_env .getVariableValue("weka.gui.beans.associator.schemeOptions"); if (opts != null && opts.length() > 0) { String[] options = Utils.splitOptions(opts); if (options.length > 0) { try { ((OptionHandler) m_Associator).setOptions(options); } catch (Exception ex) { String warningMessage = "[Associator] WARNING: unable to set options \"" + opts + "\"for " + m_Associator.getClass().getName(); if (m_log != null) { m_log.logMessage(warningMessage); } else { System.err.print(warningMessage); } } } } } m_Associator.buildAssociations(data); }
if (env.getVariableValue(var.trim()) == null) {
if (env.getVariableValue(var.trim()) == null) {
String wh = env.getVariableValue("WEKA_HOME"); if (wh != null) { WEKA_HOME = new File(wh); env.getVariableValue("weka.core.wekaPackageRepositoryURL"); if (repURL == null || repURL.length() == 0) { String offline = env.getVariableValue("weka.packageManager.offline"); if (offline != null) { m_offline = offline.equalsIgnoreCase("true"); env.getVariableValue("weka.packageManager.loadPackages"); if (loadPackages == null) { loadPackages = env.getVariableValue("weka.core.loadPackages"); if (loadPackages == null) { loadPackages = env.getVariableValue("weka.core.loadPackages");
String val = env.getVariableValue(key.getKey()); if (val != null) { value = stringToT(val, defaultValue);
String val = env.getVariableValue(key.getKey()); if (val != null) { value = stringToT(val, defaultValue);
Set<String> vars = flowEnv.getVariableNames(); for (String var : vars) { env.put(var, flowEnv.getVariableValue(var));
Set<String> vars = flowEnv.getVariableNames(); for (String var : vars) { env.put(var, flowEnv.getVariableValue(var));
&& currentEnv.getVariableValue(key) == null) { getStepManager() .logDetailed("Setting variable: " + key + " = " + value);
&& currentEnv.getVariableValue(key) == null) { getStepManager() .logDetailed("Setting variable: " + key + " = " + value);