Source View : source view enable for core app 34/23934/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 11:32:51 +0000 (20:32 +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 ad66237..217af3a 100644 (file)
@@ -468,7 +468,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();
                        }
@@ -583,7 +588,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();
                        }