Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEugene Tarassov2012-09-18 12:29:26 -0400
committerPawel Piech2012-09-18 13:49:41 -0400
commit24c9d7d60ff5efc982bea4541b00c7d396db883c (patch)
tree055a5075be14470e0ebef4b61ba2aeb406d15412
parent26148aa9caf525f5226b3ae63a1631447fbc2db1 (diff)
downloadorg.eclipse.tcf-24c9d7d60ff5efc982bea4541b00c7d396db883c.tar.gz
org.eclipse.tcf-24c9d7d60ff5efc982bea4541b00c7d396db883c.tar.xz
org.eclipse.tcf-24c9d7d60ff5efc982bea4541b00c7d396db883c.zip
Bug 389598 - "Symbols Files..." Dialog: Wrong entry is chosen for editing
-rw-r--r--plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/debug/ui/commands/MemoryMapWidget.java11
1 files changed, 6 insertions, 5 deletions
diff --git a/plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/debug/ui/commands/MemoryMapWidget.java b/plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/debug/ui/commands/MemoryMapWidget.java
index d86b10834..a82598907 100644
--- a/plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/debug/ui/commands/MemoryMapWidget.java
+++ b/plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/debug/ui/commands/MemoryMapWidget.java
@@ -346,7 +346,6 @@ public class MemoryMapWidget {
table_viewer.getSelection()).getFirstElement();
if (r == null) return;
editRegion(r);
- notifyModifyListeners();
}
});
final MenuItem item_edit = new MenuItem(menu, SWT.PUSH);
@@ -401,10 +400,12 @@ public class MemoryMapWidget {
if (new MemoryMapItemDialog(map_table.getShell(), image, props, enable_editing).open() == Window.OK && enable_editing) {
ArrayList<IMemoryMap.MemoryRegion> lst = cur_maps.get(id);
if (lst != null) {
- int n = lst.indexOf(r);
- if (n >= 0) {
- lst.set(n, new TCFMemoryRegion(props));
- table_viewer.refresh();
+ for (int n = 0; n < lst.size(); n++) {
+ if (lst.get(n) == r) {
+ lst.set(n, new TCFMemoryRegion(props));
+ table_viewer.refresh();
+ notifyModifyListeners();
+ }
}
}
}

Back to the top