diff options
author | Eugene Tarassov | 2012-03-22 22:27:20 +0000 |
---|---|---|
committer | Eugene Tarassov | 2012-03-22 22:27:20 +0000 |
commit | ebd4160910afd2fcd1e5b51b5728c1856fce8a0b (patch) | |
tree | 14a2224e4d180c12ca0a9794a08bf28c5fcf954b /plugins | |
parent | f1628030ba07d8618d89e3e6d3fe2461febaf439 (diff) | |
download | org.eclipse.tcf-ebd4160910afd2fcd1e5b51b5728c1856fce8a0b.tar.gz org.eclipse.tcf-ebd4160910afd2fcd1e5b51b5728c1856fce8a0b.tar.xz org.eclipse.tcf-ebd4160910afd2fcd1e5b51b5728c1856fce8a0b.zip |
TCF Debugger: fixed: cannot expand elements in launch configuration Targets tab on Linux.
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/debug/ui/launch/TCFTargetTab.java | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/debug/ui/launch/TCFTargetTab.java b/plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/debug/ui/launch/TCFTargetTab.java index e7ae188d2..787fed67c 100644 --- a/plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/debug/ui/launch/TCFTargetTab.java +++ b/plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/debug/ui/launch/TCFTargetTab.java @@ -809,13 +809,18 @@ public class TCFTargetTab extends AbstractLaunchConfigurationTab { TreeItem item = findItem(parent); if (item == null) return; expanded = item.getExpanded(); - item.setItemCount(expanded ? arr.length : 1); + item.setItemCount(expanded && arr.length > 0 ? arr.length : 1); items = item.getItems(); } - if (expanded) { + if (expanded && arr.length > 0) { assert items.length == arr.length; for (int i = 0; i < items.length; i++) fillItem(items[i], arr[i]); } + else if (expanded) { + items[0].setText("No peers"); + int n = peer_tree.getColumnCount(); + for (int i = 1; i < n; i++) items[0].setText(i, ""); + } else { Protocol.invokeAndWait(new Runnable() { public void run() { |