From: Hyunjong.park Date: Thu, 11 Sep 2014 02:40:42 +0000 (+0900) Subject: network : show the context of the detail view when click the chart. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e9c40fd20de983908b2ad7167bc7c36fa473d925;p=sdk%2Ftools%2Fdynamic-analyzer.git network : show the context of the detail view when click the chart. Signed-off-by: Hyunjong.park Change-Id: Id5800744e75695db250d5b0bd75c0c1f29e952d2 --- diff --git a/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/network/NetworkDetailView.java b/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/network/NetworkDetailView.java index 1204869..6419556 100644 --- a/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/network/NetworkDetailView.java +++ b/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/network/NetworkDetailView.java @@ -118,13 +118,15 @@ public class NetworkDetailView extends DAViewComposite { return; } DASelectionData seldata = (DASelectionData) data; - if (seldata.getData() instanceof GridItem[] == false) { - return; + if (seldata.getData() instanceof GridItem[]) { + GridItem[] tableData = (GridItem[]) data.getData(); + DATableDataFormat tableFormat = (DATableDataFormat) tableData[0].getData(); + NetworkAPIType apiType = (NetworkAPIType) tableFormat.getLogData(); + updateData(apiType.getSeq()); + }else{ + updateData(0); } - GridItem[] tableData = (GridItem[]) data.getData(); - DATableDataFormat tableFormat = (DATableDataFormat) tableData[0].getData(); - NetworkAPIType apiType = (NetworkAPIType) tableFormat.getLogData(); - updateData(apiType.getSeq()); + } @Override