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)