Package org.woped.file

Examples of org.woped.file.OLDPNMLImport2


          for (int i = 0; i < iSB.length; i++) {
              iSB[i] = (IStatusBar) iVC[i];
          }

          PNMLImport pr = new PNMLImport(medi);
          OLDPNMLImport2 oldpr = new OLDPNMLImport2(medi);
          IEditor edit = null;
          IMetricsConfiguration metricsConfig = ConfigurationManager.getMetricsConfiguration();
      try{
        // Write top line with variable and algorithm names
        write = new BufferedWriter(new FileWriter(saveFile));
        List<String> metricsList = MetricsUIRequestHandler.getLayeredAlgoNames("ALL_METRICS");
        write.write("File name");
        for(String s:metricsList)
          write.write(","+s);
        write.write("\r\n");
       
        // Loop over all selected files to analyze them
        for(File f:filesToCheck){
          write.write(f.getName());
          if(pr.run(new FileInputStream(f),false))
            edit = pr.getEditor()[0];
          else if(oldpr.run(new FileInputStream(f),false))
            edit = oldpr.getEditor()[0];
          else continue;
          MetricsUIRequestHandler ui = new MetricsUIRequestHandler(edit);
          for(String metric:metricsList){
            StringPair result;
            if(metric != null)
View Full Code Here


            pr = new PNMLImport((ApplicationMediator) getMediator());

        } else
            if (filter == FileFilterImpl.OLDPNMLFilter) {
                pr = new OLDPNMLImport2((ApplicationMediator) getMediator());
            } else {
                pr = null;
            }
        if (pr != null) {
            boolean loadSuccess = false;
View Full Code Here

TOP

Related Classes of org.woped.file.OLDPNMLImport2

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.