From: greatim Date: Tue, 8 Apr 2014 13:52:37 +0000 (+0900) Subject: [Title] additional change after refactoring database X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=175d447a46348c1f4d378a986d9e3ce41f194922;p=sdk%2Ftools%2Fdynamic-analyzer.git [Title] additional change after refactoring database [Desc.] [Issue] --- diff --git a/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/kernel/KernelListTable.java b/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/kernel/KernelListTable.java index ce1b3b3..8898dfe 100644 --- a/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/kernel/KernelListTable.java +++ b/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/kernel/KernelListTable.java @@ -52,10 +52,10 @@ import org.tizen.dynamicanalyzer.widgets.helper.Formatter; public class KernelListTable extends DAWindowingTableComposite { private KernelDataPerThread selectedData = null; private boolean isCoreSelected = true; - + public KernelListTable(Composite parent, int compStyle, int tableStyle) { super(parent, compStyle, tableStyle); - setDataType(false, ContextDataDBTable.COLUMN_INDEX_STARTTIME); + setDataType(false, 0); // timeColumnIdex setContextMenu(AnalyzerConstants.CONTEXT_TABLE_RANGE); table.addSelectionListener(new SelectionListener() { @@ -151,7 +151,7 @@ public class KernelListTable extends DAWindowingTableComposite { // create DATableDataFormat DATableDataFormat tableData = new DATableDataFormat(seqnum); - tableData.getData().addAll(row); + tableData.getData().add(new Long(starttime)); if (isCoreSelected) { tableData.setType(AnalyzerConstants.TYPE_TABLE_CONTEXTSWITCH); } else { diff --git a/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/summary/failed/FailedApiTable.java b/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/summary/failed/FailedApiTable.java index 32473f6..81528c7 100644 --- a/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/summary/failed/FailedApiTable.java +++ b/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/summary/failed/FailedApiTable.java @@ -105,13 +105,13 @@ public class FailedApiTable extends DATableComposite { // create text List text = new ArrayList(); - List data = new ArrayList(); + List data = new ArrayList(); text.add(Integer.toString(failedData.getSeq())); // 0 - data.add(Integer.toString(failedData.getSeq())); + data.add(new Integer(failedData.getSeq())); String time = Formatter.toTimeFormat(failedData.getTime()); text.add(time); // 1 - data.add(Long.toString(failedData.getTime())); + data.add(new Long(failedData.getTime())); text.add(failedData.getName()); // 2 data.add(failedData.getName()); @@ -130,7 +130,7 @@ public class FailedApiTable extends DATableComposite { errCode = "undefined error number"; //$NON-NLS-1$ } text.add(errCode); // 5 - data.add(Long.toString(failedData.getErrorCode())); + data.add(new Long(failedData.getErrorCode())); } catch (NullPointerException e) { System.out.println("debug"); continue; @@ -142,12 +142,12 @@ public class FailedApiTable extends DATableComposite { errMsg = "undefined error number"; //$NON-NLS-1$ } text.add(errMsg); // 6 - data.add(Long.toString(failedData.getErrorCode())); + data.add(new Long(failedData.getErrorCode())); text.add(Integer.toString(failedData.getPid())); // 7 - data.add(Integer.toString(failedData.getPid())); + data.add(new Integer(failedData.getPid())); - data.add(Long.toString(failedData.getCallerPc())); // 8 + data.add(new Long(failedData.getCallerPc())); // 8 data.add(failedData.getLibName()); // 9 // create images diff --git a/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/summary/leaks/LeakTable.java b/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/summary/leaks/LeakTable.java index c6ec289..e5eba42 100644 --- a/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/summary/leaks/LeakTable.java +++ b/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/summary/leaks/LeakTable.java @@ -156,19 +156,19 @@ public class LeakTable extends DATreeComposite { leakData.getLeakSeq()); List text = new ArrayList(); - List data = new ArrayList(); + List data = new ArrayList(); text.add(leakData.getName()); // 0 column empty value for tree data.add(leakData.getName()); text.add(Integer.toString(leakData.getPid())); // 1 - data.add(Integer.toString(leakData.getPid())); + data.add(new Integer(leakData.getPid())); text.add(Integer.toString(leakData.getSeq())); // 2 - data.add(Integer.toString(leakData.getSeq())); + data.add(new Integer(leakData.getSeq())); text.add(leakData.getType()); data.add(leakData.getType()); // 3 long time = leakData.getTime(); - data.add(Long.toString(time)); + data.add(new Long(time)); try { text.add(Formatter.toTimeFormat(time)); } catch (NumberFormatException e) { @@ -190,9 +190,9 @@ public class LeakTable extends DATreeComposite { text.add(libName); // 7 data.add(libName); - data.add(Long.toString(leakData.getAddr())); // 8 // for ToolTip - // listener - data.add(Long.toString(leakData.getCallerPc())); // 9 + data.add(new Long(leakData.getAddr())); // 8 // for ToolTip + // listener + data.add(new Long(leakData.getCallerPc())); // 9 tableData.getData().addAll(data); tableData.setType(AnalyzerConstants.TYPE_TABLE_LEAK);