noReadCycles = 0;
if (!autoRefresh && !inError) {
setAutoRefresh(true);
}
String scanServerName = ModelPreferences.getInstance().getScanServer();
StringMatrix data;
if (scanServerName != null && !"".equals(scanServerName) && !inError) {
try {
List<HistoricRecord> historicRecordsList = ScanApi.getHistoric(scanServerName);
int size = historicRecordsList.size();
String[][] historicAsArray = new String[size][3];
HistoricRecord record;
for (int index = 0; index < size; ++index) {
record = historicRecordsList.get(index);
historicAsArray[index][0] = periodFormat.format(record.getPeriod());
historicAsArray[index][1] = record.getType();
historicAsArray[index][2] = record.getMessage();
}
data = new StringMatrix();
data.setValues(historicAsArray);
}
catch (SalsaDeviceException e) {
data = null;
if (e.isConsoleDisplay()) {
e.printStackTrace();