From 59f16515b714dddb7bdeea64ea281bd7d1b7a3aa Mon Sep 17 00:00:00 2001 From: "Hyunjong,park" Date: Wed, 18 Dec 2013 15:16:00 +0900 Subject: [PATCH] [Title] fix. windowing table [Desc.] add feature page up/down key [Issue] - --- .../src/org/tizen/dynamicanalyzer/ui/file/FileApiListTable.java | 6 ++++++ .../org/tizen/dynamicanalyzer/ui/network/NetworkApiListTable.java | 7 ++++++- .../ui/widgets/table/DAWindowingTableComposite.java | 7 ++++--- 3 files changed, 16 insertions(+), 4 deletions(-) diff --git a/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/file/FileApiListTable.java b/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/file/FileApiListTable.java index 343cc78..115890e 100644 --- a/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/file/FileApiListTable.java +++ b/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/file/FileApiListTable.java @@ -166,6 +166,12 @@ public class FileApiListTable extends DAApiListTableComposite { isExistStartTimeLog = true; removeTableIndex.add(startLogIndex.intValue()); + } else { + contentText.add(Formatter.toTimeFormat(contentTemp + .getTime())); // start// + contentData.add(Long.toString(contentTemp.getTime())); + contentText.add("00.000");//$NON-NLS-1$ + contentData.add("00.000");//$NON-NLS-1$ } } diff --git a/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/network/NetworkApiListTable.java b/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/network/NetworkApiListTable.java index 503a14a..209145c 100644 --- a/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/network/NetworkApiListTable.java +++ b/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/network/NetworkApiListTable.java @@ -253,8 +253,13 @@ public class NetworkApiListTable extends DAApiListTableComposite { contentText.add(removeTimeFormat); // elapsed time contentData.add(Long.toString(contentTemp.getTime() - startTime)); - removeTableIndex.add(startLogIndex.intValue()); + } else { + contentText.add(Formatter.toTimeFormat(contentTemp + .getTime())); // start// + contentData.add(Long.toString(contentTemp.getTime())); + contentText.add("00.000");//$NON-NLS-1$ + contentData.add("00.000");//$NON-NLS-1$ } } else { contentText.add(Formatter.toTimeFormat(contentTemp.getTime())); // start// diff --git a/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/widgets/table/DAWindowingTableComposite.java b/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/widgets/table/DAWindowingTableComposite.java index 4e518f4..08d4895 100644 --- a/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/widgets/table/DAWindowingTableComposite.java +++ b/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/widgets/table/DAWindowingTableComposite.java @@ -252,13 +252,13 @@ public abstract class DAWindowingTableComposite extends Composite { } else if (e.keyCode == SWT.PAGE_UP) { int nowScrollBar = scrollbar.getSelection(); int pageChagneInde = getTableLenght(); - scrollbar.setSelection(nowScrollBar - pageChagneInde); + scrollbar.setSelection(nowScrollBar - pageChagneInde+1); setTableSeqNumber(0); } else if (e.keyCode == SWT.PAGE_DOWN) { int nowScrollBar = scrollbar.getSelection(); int pageChagneInde = getTableLenght() - 1; scrollbar.setSelection(nowScrollBar + pageChagneInde); - setTableSeqNumber(getTableLenght()); + setTableSeqNumber(getTableLenght()-1); } } }); @@ -271,6 +271,7 @@ public abstract class DAWindowingTableComposite extends Composite { selectionStartTime = 0; selectionEndTime = 0; focusSeq = 0; + updateTable(); if (table.getItemCount() <= index) { index = table.getItemCount() - 1; } @@ -286,7 +287,7 @@ public abstract class DAWindowingTableComposite extends Composite { selectionStartTime = td.getLogData().getTime(); selectionEndTime = td.getLogData().getTime(); - focusSeq = td.getSelectionKey(); + focusSeq = td.getLogData().getSeq(); } updateTable(); -- 2.7.4