Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPawel Piech2012-10-10 19:21:37 -0400
committerPawel Piech2012-10-10 19:21:37 -0400
commitf02e1e26e092e778de63b181dba8c87f18940bfc (patch)
treeea277ae222b3fa35a52023fcb6206d3b18136f0a
parent77adf5dd34d06c0d543f3fa82daa8f915289e196 (diff)
downloadorg.eclipse.tcf-f02e1e26e092e778de63b181dba8c87f18940bfc.tar.gz
org.eclipse.tcf-f02e1e26e092e778de63b181dba8c87f18940bfc.tar.xz
org.eclipse.tcf-f02e1e26e092e778de63b181dba8c87f18940bfc.zip
Bug 391612 - [breakpoints] Editing breakpoint scope group in bp view can lead to view refresh problems
-rw-r--r--plugins/org.eclipse.tcf.cdt.ui/src/org/eclipse/tcf/internal/cdt/ui/breakpoints/BreakpointScopeCategory.java12
1 files changed, 5 insertions, 7 deletions
diff --git a/plugins/org.eclipse.tcf.cdt.ui/src/org/eclipse/tcf/internal/cdt/ui/breakpoints/BreakpointScopeCategory.java b/plugins/org.eclipse.tcf.cdt.ui/src/org/eclipse/tcf/internal/cdt/ui/breakpoints/BreakpointScopeCategory.java
index 458876816..bd62751a3 100644
--- a/plugins/org.eclipse.tcf.cdt.ui/src/org/eclipse/tcf/internal/cdt/ui/breakpoints/BreakpointScopeCategory.java
+++ b/plugins/org.eclipse.tcf.cdt.ui/src/org/eclipse/tcf/internal/cdt/ui/breakpoints/BreakpointScopeCategory.java
@@ -42,8 +42,8 @@ public class BreakpointScopeCategory extends PlatformObject implements IWorkbenc
private static Object[] EMPTY_CHILDREN_ARRAY = new Object[0];
- private String fFilter;
- private String fContextIds;
+ private final String fFilter;
+ private final String fContextIds;
public BreakpointScopeCategory(String filter, String contextIds) {
fFilter = filter;
@@ -62,10 +62,8 @@ public class BreakpointScopeCategory extends PlatformObject implements IWorkbenc
* Sets the given filter and context strings to all breakpoints which match
* the group's current scope settings.
*/
- void setFilter(String filter, String contextIds) {
+ void setFilter(final String filter, final String contextIds) {
final List<ICBreakpoint> bps = findCategoryBreakpoints();
- fFilter = filter;
- fContextIds = contextIds;
if (bps.isEmpty()) return; // No breakpoints to update
try {
@@ -73,8 +71,8 @@ public class BreakpointScopeCategory extends PlatformObject implements IWorkbenc
new IWorkspaceRunnable() {
public void run(IProgressMonitor monitor) throws CoreException {
for (ICBreakpoint bp : bps) {
- getScopeExtension(bp).setPropertiesFilter(fFilter);
- getScopeExtension(bp).setRawContextIds(fContextIds);
+ getScopeExtension(bp).setPropertiesFilter(filter);
+ getScopeExtension(bp).setRawContextIds(contextIds);
}
}
},

Back to the top