Search in sources :

Example 1 with DumpManager

use of com.github.mob41.organdebug.DumpManager in project osumer by mob41.

the class ViewDumpDialog method updateDumpsTable.

private void updateDumpsTable() {
    dumpStr.setText(SELECT_DUMP_MSG);
    btnExportSelectedDump.setEnabled(false);
    DumpManager mgr = DumpManager.getInstance();
    if (mgr == null) {
        System.out.println("DumpManager not initialized");
        return;
    }
    dumpsModel.setRowCount(0);
    dumpsArr = mgr.getDumps();
    String[] rowData;
    DebugDump dump;
    for (int i = 0; i < dumpsArr.length; i++) {
        dump = dumpsArr[i];
        rowData = new String[5];
        rowData[0] = dump.getGeneratedHuman();
        rowData[1] = Long.toString(dump.getGenerated());
        rowData[2] = dump.getMessage();
        rowData[3] = dump.getStacktrace();
        rowData[4] = dump.getUid();
        dumpsModel.addRow(rowData);
    }
    dumpsModel.fireTableDataChanged();
}
Also used : DumpManager(com.github.mob41.organdebug.DumpManager) DebugDump(com.github.mob41.organdebug.DebugDump)

Aggregations

DebugDump (com.github.mob41.organdebug.DebugDump)1 DumpManager (com.github.mob41.organdebug.DumpManager)1