Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoreutarass2011-06-23 16:05:09 -0400
committereutarass2011-06-23 16:05:09 -0400
commit124a4755506b039f009e478bc8c7960014f192ed (patch)
tree259d577cd48e8de7c352a781acb9d9004ca81493 /plugins/org.eclipse.tm.tcf.debug.ui/src/org/eclipse
parentb5b2e393127521d54ebe83c49a7bfabeba74d629 (diff)
downloadorg.eclipse.tcf-124a4755506b039f009e478bc8c7960014f192ed.tar.gz
org.eclipse.tcf-124a4755506b039f009e478bc8c7960014f192ed.tar.xz
org.eclipse.tcf-124a4755506b039f009e478bc8c7960014f192ed.zip
TCF Debugger: Remembering when user collapses thread in the Debug view and don't expand it again.
Diffstat (limited to 'plugins/org.eclipse.tm.tcf.debug.ui/src/org/eclipse')
-rw-r--r--plugins/org.eclipse.tm.tcf.debug.ui/src/org/eclipse/tm/internal/tcf/debug/ui/model/TCFModel.java11
1 files changed, 6 insertions, 5 deletions
diff --git a/plugins/org.eclipse.tm.tcf.debug.ui/src/org/eclipse/tm/internal/tcf/debug/ui/model/TCFModel.java b/plugins/org.eclipse.tm.tcf.debug.ui/src/org/eclipse/tm/internal/tcf/debug/ui/model/TCFModel.java
index 72ca0812a..3cfeffdf2 100644
--- a/plugins/org.eclipse.tm.tcf.debug.ui/src/org/eclipse/tm/internal/tcf/debug/ui/model/TCFModel.java
+++ b/plugins/org.eclipse.tm.tcf.debug.ui/src/org/eclipse/tm/internal/tcf/debug/ui/model/TCFModel.java
@@ -254,11 +254,11 @@ public class TCFModel implements IElementContentProvider, IElementLabelProvider,
private final Map<String,TCFMemoryBlockRetrieval> mem_retrieval = new HashMap<String,TCFMemoryBlockRetrieval>();
private MemoryBlocksUpdate mem_blocks_update;
- private final Map<String,String> cast_to_type_map =
- new HashMap<String,String>();
+ private final Map<String,String> cast_to_type_map = new HashMap<String,String>();
- private final Map<String,Object> context_map =
- new HashMap<String,Object>();
+ private final Map<String,Object> context_map = new HashMap<String,Object>();
+
+ private final Set<String> expanded_nodes = new HashSet<String>();
private TCFConsole console;
@@ -795,6 +795,7 @@ public class TCFModel implements IElementContentProvider, IElementLabelProvider,
}
action_results.remove(id);
context_map.remove(id);
+ expanded_nodes.remove(id);
if (mem_blocks_update != null) mem_blocks_update.changeset.remove(id);
}
launch_node.onAnyContextAddedOrRemoved();
@@ -1134,7 +1135,7 @@ public class TCFModel implements IElementContentProvider, IElementLabelProvider,
if (reason.equals(IRunControl.REASON_STEP)) continue;
if (reason.equals(IRunControl.REASON_CONTAINER)) continue;
if (delay_stack_update_until_last_step && launch.getContextActionsCount(node.id) != 0) continue;
- proxy.expand(node);
+ if (expanded_nodes.add(node.id)) proxy.expand(node);
}
}
}

Back to the top