[Title] bug fix. about dialog box
authorHyunjong,park <phjwithyou.park@samsung.com>
Wed, 13 Nov 2013 09:04:16 +0000 (18:04 +0900)
committerHyunjong,park <phjwithyou.park@samsung.com>
Wed, 13 Nov 2013 09:04:16 +0000 (18:04 +0900)
[Desc.] occur exception when mulit workbench plugin folder
[Issue] -

org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/common/PathManager.java

index 695ba6d..aeffec0 100755 (executable)
@@ -306,11 +306,12 @@ public class PathManager {
                        return null;
                }
 
-               if (null == files || files.length != 1) {
+               if (null == files || files.length < 1) {
                        return null;
                }
-               String aboutFilePath = aboutFolderPath + File.separator + files[0]
-                               + File.separator + AnalyzerConstants.ABOUT_FILE_NAME;
+               String aboutFilePath = aboutFolderPath + File.separator
+                               + files[files.length - 1] + File.separator
+                               + AnalyzerConstants.ABOUT_FILE_NAME;
 
                return aboutFilePath;
        }
@@ -341,13 +342,16 @@ public class PathManager {
                        return null;
                }
 
-               if (null == files || files.length != 1) {
+               if (null == files || files.length < 1) {
                        return null;
                }
-               String aboutFilePath = aboutFolderPath + File.separator + files[0];
+               System.out.println("files.length : " + files.length);
+               String aboutFilePath = aboutFolderPath + File.separator
+                               + files[files.length - 1];
 
                return aboutFilePath;
        }
+
        public static void pathCheck() {
                if (null == AnalyzerPaths.TIZEN_ROOT_PATH) {
                        final Shell shell = AnalyzerUtil.getWorkbenchWindow().getShell();