String current = "Iteration: CustomValue=" + (m_ExpCopy.getCurrentCustomNumber() + 1) + " DatasetNumber=" + (m_ExpCopy.getCurrentDatasetNumber() + 1) + " RunNumber=" + (m_ExpCopy.getCurrentRunNumber());
String current = "Iteration:"; if (m_ExpCopy.getUsePropertyIterator()) { int cnum = m_ExpCopy.getCurrentPropertyNumber(); String cname = " Custom=" + (cnum + 1) + m_ExpCopy.getPropertyArrayValue(cnum).getClass().getName(); current += cname; } String dname = ((File) m_ExpCopy.getDatasets() .elementAt(m_ExpCopy.getCurrentDatasetNumber())).getName(); current += " Dataset=" + dname + " Run=" + (m_ExpCopy.getCurrentRunNumber());
    public void run() {            m_StartBut.setEnabled(false);      m_StopBut.setEnabled(true);      try {	logMessage("Started");	System.err.println("Initializing...");	m_ExpCopy.initialize();	int errors = 0;	System.err.println("Iterating...");	while (m_RunThread != null && m_ExpCopy.hasMoreIterations()) {	  try {	    String current = "Iteration: CustomValue="	      + (m_ExpCopy.getCurrentCustomNumber() + 1)	      + " DatasetNumber=" + (m_ExpCopy.getCurrentDatasetNumber() + 1)	      + " RunNumber=" + (m_ExpCopy.getCurrentRunNumber());	    m_StatusLab.setText(current);	    m_ExpCopy.nextIteration();	  } catch (Exception ex) {	    errors ++;	    logMessage(ex.getMessage());	    boolean continueAfterError = false;	    if (continueAfterError) {	      m_ExpCopy.advanceCounters(); // Try to keep plowing through	    } else {	      m_RunThread = null;	    }	  }	}	System.err.println("Postprocessing...");	m_ExpCopy.postProcess();	if (m_RunThread == null) {	  logMessage("Interrupted");	} else {	  logMessage("Finished");	}	if (errors == 1) {	  logMessage("There was " + errors + " error");	} else {	  logMessage("There were " + errors + " errors");	}	m_StatusLab.setText(NOT_RUNNING);      } catch (Exception ex) {	ex.printStackTrace();	System.err.println(ex.getMessage());	m_StatusLab.setText(ex.getMessage());      } finally {	m_RunThread = null;	m_StartBut.setEnabled(true);	m_StopBut.setEnabled(false);      }      System.err.println("Done...");    }