[Title] fix multi selection problem in connection explorer
authorhyunsik.noh <hyunsik.noh@samsung.com>
Mon, 5 Dec 2011 08:43:03 +0000 (17:43 +0900)
committerhyunsik.noh <hyunsik.noh@samsung.com>
Mon, 5 Dec 2011 08:43:03 +0000 (17:43 +0900)
[Type] Enhancement
[Module] common
[Priority] Minor
[Redmine]Bug #3731

com.samsung.tizen.common.connection/src/com/samsung/tizen/common/connection/explorer/ConnectionExplorerPanel.java

index d367d8e..e853b49 100644 (file)
@@ -123,7 +123,7 @@ public class ConnectionExplorerPanel extends Panel
                mParent = parent;
                parent.setLayout(new FillLayout());
 
-               mTree = new Tree(parent, SWT.MULTI | SWT.FULL_SELECTION | SWT.VIRTUAL);
+               mTree = new Tree(parent, SWT.MULTI | SWT.FULL_SELECTION );
                mTree.setHeaderVisible(true);
 
                IPreferenceStore store = DdmUiPreferences.getStore();
@@ -1140,7 +1140,7 @@ public class ConnectionExplorerPanel extends Panel
 
                FileEntry file = null;
 
-               if (items.length == 1) {
+               if (items.length != 0) {
                        Object object = items[0].getData();
                        if (object instanceof FileEntry) {
                                file = (FileEntry) object;