Package weka.core.ClassDiscovery

Examples of weka.core.ClassDiscovery.StringCompare


      if (selected[i].isDirectory()) {
        Vector files = new Vector();
        getFilesRecursively(selected[i], files);
   
        // sort the result
        Collections.sort(files, new StringCompare());

        for (int j = 0; j < files.size(); j++) {
    File temp = (File)files.elementAt(j);
    if (useRelativePaths) {
      try {
        temp = Utils.convertToRelativePath(temp);
      } catch (Exception ex) {
        ex.printStackTrace();
      }
    }
    m_Exp.getDatasets().addElement(temp);
        }
      } else {
        File temp = selected[i];
        if (useRelativePaths) {
    try {
      temp = Utils.convertToRelativePath(temp);
    } catch (Exception ex) {
      ex.printStackTrace();
    }
        }
        m_Exp.getDatasets().addElement(temp);
      }
    }
          setButtons(null);
  } else {
    if (m_FileChooser.getSelectedFile().isDirectory()) {
      Vector files = new Vector();
      getFilesRecursively(m_FileChooser.getSelectedFile(), files);
   
      // sort the result
      Collections.sort(files, new StringCompare());

      for (int j = 0; j < files.size(); j++) {
        File temp = (File)files.elementAt(j);
        if (useRelativePaths) {
    try {
View Full Code Here


     
      // generate list
      value   = "";
      classes = new Vector();
      classes.addAll(names);
      Collections.sort(classes, new StringCompare());
      for (i = 0; i < classes.size(); i++) {
        if (!value.equals(""))
          value += ",";
        value += classes.get(i).toString();
      }
View Full Code Here

      if (selected[i].isDirectory()) {
        Vector files = new Vector();
        getFilesRecursively(selected[i], files);
   
        // sort the result
        Collections.sort(files, new StringCompare());

        for (int j = 0; j < files.size(); j++) {
    File temp = (File)files.elementAt(j);
    if (useRelativePaths) {
      try {
        temp = Utils.convertToRelativePath(temp);
      } catch (Exception ex) {
        ex.printStackTrace();
      }
    }
    m_Exp.getDatasets().addElement(temp);
        }
      } else {
        File temp = selected[i];
        if (useRelativePaths) {
    try {
      temp = Utils.convertToRelativePath(temp);
    } catch (Exception ex) {
      ex.printStackTrace();
    }
        }
        m_Exp.getDatasets().addElement(temp);
      }
    }
          setButtons(null);
  } else {
    if (m_FileChooser.getSelectedFile().isDirectory()) {
      Vector files = new Vector();
      getFilesRecursively(m_FileChooser.getSelectedFile(), files);
   
      // sort the result
      Collections.sort(files, new StringCompare());

      for (int j = 0; j < files.size(); j++) {
        File temp = (File)files.elementAt(j);
        if (useRelativePaths) {
    try {
View Full Code Here

     
      // generate list
      value   = "";
      classes = new Vector();
      classes.addAll(names);
      Collections.sort(classes, new StringCompare());
      for (i = 0; i < classes.size(); i++) {
        if (!value.equals(""))
          value += ",";
        value += classes.get(i).toString();
      }
View Full Code Here

TOP

Related Classes of weka.core.ClassDiscovery.StringCompare

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.