summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorshingil.kang <shingil.kang@samsung.com>2014-05-29 16:43:23 +0900
committershingil.kang <shingil.kang@samsung.com>2014-05-29 16:43:23 +0900
commit56865a2558951a584f039c83df4e8c07e179686e (patch)
treece60edb36bf262ee36a167dcfa09df6a32d32c97
parent70660d229ae8170213d4b45b46bddfeec8c2b6a9 (diff)
downloadcommon-eplugin-56865a2558951a584f039c83df4e8c07e179686e.tar.gz
common-eplugin-56865a2558951a584f039c83df4e8c07e179686e.tar.bz2
common-eplugin-56865a2558951a584f039c83df4e8c07e179686e.zip
TOOLS: Show file and folder view when tree is expanded in the Connection Explorer.
Change-Id: I973ef4f38baf21e9075a4cc37f23e8b7b9269f24 Signed-off-by: shingil.kang <shingil.kang@samsung.com>
-rwxr-xr-xorg.tizen.common.connection/src/org/tizen/common/connection/explorer/ConnectionExplorerPanel.java25
1 files changed, 24 insertions, 1 deletions
diff --git a/org.tizen.common.connection/src/org/tizen/common/connection/explorer/ConnectionExplorerPanel.java b/org.tizen.common.connection/src/org/tizen/common/connection/explorer/ConnectionExplorerPanel.java
index fdd92e471..4c2b82cbd 100755
--- a/org.tizen.common.connection/src/org/tizen/common/connection/explorer/ConnectionExplorerPanel.java
+++ b/org.tizen.common.connection/src/org/tizen/common/connection/explorer/ConnectionExplorerPanel.java
@@ -52,8 +52,10 @@ import org.eclipse.jface.viewers.IDoubleClickListener;
import org.eclipse.jface.viewers.ISelectionChangedListener;
import org.eclipse.jface.viewers.ISelectionProvider;
import org.eclipse.jface.viewers.IStructuredSelection;
+import org.eclipse.jface.viewers.ITreeViewerListener;
import org.eclipse.jface.viewers.SelectionChangedEvent;
import org.eclipse.jface.viewers.TableViewer;
+import org.eclipse.jface.viewers.TreeExpansionEvent;
import org.eclipse.jface.viewers.TreeViewer;
import org.eclipse.jface.viewers.Viewer;
import org.eclipse.jface.viewers.ViewerDropAdapter;
@@ -327,6 +329,27 @@ public class ConnectionExplorerPanel implements IDeviceChangeListener, IDebugBri
}
});
+ treeViewer.addTreeListener(new ITreeViewerListener(){
+ @Override
+ public void treeCollapsed(TreeExpansionEvent event)
+ {
+ }
+
+ @Override
+ public void treeExpanded(TreeExpansionEvent event)
+ {
+ if (!selectionInDeviceView)
+ {
+ selectionInDeviceView = true;
+ if (!isSingleViewMode)
+ {
+ tableViewerComposite.setVisible(true);
+ tableViewerComposite.getParent().layout();
+ }
+ }
+ }
+ });
+
// new
viewFilter = new AllowOnlyFoldersFilter();
treeViewer.addFilter(viewFilter);
@@ -1351,7 +1374,7 @@ public class ConnectionExplorerPanel implements IDeviceChangeListener, IDebugBri
ConnectionExplorer.statusLineManager.setMessage("");
}
});
-
+
}
@Override