From: woojin Date: Fri, 4 Jul 2014 10:56:11 +0000 (+0900) Subject: Source View : source view enable for core app X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4b8f9eef92696179b4061e103d72baade448c8ed;p=sdk%2Ftools%2Fdynamic-analyzer.git Source View : source view enable for core app Use applicaton binary for source link when capp(efl app, core app) has no debug package. Change-Id: I6d52e523938e9f23d3f2c4877e7c5b588e445525 Signed-off-by: woojin --- diff --git a/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/listeners/TableTooltipListener.java b/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/listeners/TableTooltipListener.java index 89c6f0e..218bfd1 100644 --- a/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/listeners/TableTooltipListener.java +++ b/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/listeners/TableTooltipListener.java @@ -469,7 +469,12 @@ public class TableTooltipListener implements Listener { AppInfo appInfo = GlobalInformation.getCurrentApplication(); if (appInfo.getMainBinaryInfo().getTargetBinaryPath().equals(libName) && appInfo.getAppType().contains(AppInfo.APPTYPE_CAPP)) { - filePath = appInfo.getSourcePath() + sourceLine.getFilePath(); + String sourcePath = appInfo.getSourcePath(); + if (null != sourcePath && !sourcePath.isEmpty()) { + filePath = appInfo.getSourcePath() + sourceLine.getFilePath(); + } else { + filePath = sourceLine.getFilePath(); + } } else { filePath = sourceLine.getFilePath(); } @@ -584,7 +589,12 @@ public class TableTooltipListener implements Listener { AppInfo appInfo = GlobalInformation.getCurrentApplication(); if (binInfo.equals(appInfo.getMainBinaryInfo()) && appInfo.getAppType().contains(AppInfo.APPTYPE_CAPP)) { - path = appInfo.getDebugFilePath(); + String debugPath = appInfo.getDebugFilePath(); + if (null != debugPath && !debugPath.isEmpty()) { + path = debugPath; + } else { + path = binInfo.getTempBinaryPath(); + } } else { path = binInfo.getTempBinaryPath(); }