diff options
author | shingil.kang <shingil.kang@samsung.com> | 2014-05-29 16:43:23 +0900 |
---|---|---|
committer | shingil.kang <shingil.kang@samsung.com> | 2014-05-29 16:43:23 +0900 |
commit | 56865a2558951a584f039c83df4e8c07e179686e (patch) | |
tree | ce60edb36bf262ee36a167dcfa09df6a32d32c97 | |
parent | 70660d229ae8170213d4b45b46bddfeec8c2b6a9 (diff) | |
download | common-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-x | org.tizen.common.connection/src/org/tizen/common/connection/explorer/ConnectionExplorerPanel.java | 25 |
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 |