Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPawel Piech2012-10-10 23:21:37 +0000
committerPawel Piech2012-10-11 22:31:40 +0000
commit8af59db4eeed4690656cb59c6bec0e20a858a781 (patch)
treebfb68b83fae574ed328ca02eb796bc5ad7a7a985 /plugins
parent8262804baba03972c73338ebcecdd423b874fd8b (diff)
downloadorg.eclipse.tcf-8af59db4eeed4690656cb59c6bec0e20a858a781.tar.gz
org.eclipse.tcf-8af59db4eeed4690656cb59c6bec0e20a858a781.tar.xz
org.eclipse.tcf-8af59db4eeed4690656cb59c6bec0e20a858a781.zip
Bug 391612 - [breakpoints] Editing breakpoint scope group in bp view can lead to view refresh problems
Diffstat (limited to 'plugins')
-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 03361aa6b..f8049c452 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