Source View : source view enable for core app 31/23931/1
authorwoojin <woojin2.jung@samsung.com>
Fri, 4 Jul 2014 10:56:11 +0000 (19:56 +0900)
committerwoojin <woojin2.jung@samsung.com>
Fri, 4 Jul 2014 10:56:11 +0000 (19:56 +0900)
Use applicaton binary for source link when capp(efl app, core app) has no debug package.

Change-Id: I6d52e523938e9f23d3f2c4877e7c5b588e445525
Signed-off-by: woojin <woojin2.jung@samsung.com>
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/listeners/TableTooltipListener.java

index 89c6f0e..218bfd1 100644 (file)
@@ -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();
                        }