[Title]show "device serial ( device name )"
authorhyunsik.noh <hyunsik.noh@samsung.com>
Fri, 17 Aug 2012 08:11:55 +0000 (17:11 +0900)
committerhyunsik.noh <hyunsik.noh@samsung.com>
Fri, 17 Aug 2012 08:21:44 +0000 (17:21 +0900)
[Type]enhancement
[Module]common
[Priority]normal
[CQ#]
[Redmine#]6229

Change-Id: I2109fc8ccde2cbbbeaff5b443c6e5152fe66312f

org.tizen.common.connection/src/org/tizen/common/connection/explorer/ConnectionExplorerLabelProvider.java

index 618f93a..a06635d 100644 (file)
@@ -90,7 +90,13 @@ public class ConnectionExplorerLabelProvider implements ITableLabelProvider {
 
                        switch (columnIndex) {
                        case 0:
-                               return entry.getName();
+                           if(entry.isRoot()) {
+                               return entry.getFileListingService().getDevice().getSerialNumber()
+                                       + " (" + entry.getName() + ")";
+                           }
+                           else {
+                               return entry.getName();
+                           }
                        default:
                                return null;
                        }