diff options
author | Pawel Piech | 2011-03-16 22:02:32 +0000 |
---|---|---|
committer | Pawel Piech | 2011-03-16 22:02:32 +0000 |
commit | fe1531e78ca51e2f596f34c743e25ecdee6a8b06 (patch) | |
tree | 048463ee04aba3089de1d0ee2d9fb4fa10ea8bfd /org.eclipse.debug.ui/ui/org | |
parent | 70db4876fbdab16bf80a3f447a46fa60e9e25846 (diff) | |
download | eclipse.platform.debug-fe1531e78ca51e2f596f34c743e25ecdee6a8b06.tar.gz eclipse.platform.debug-fe1531e78ca51e2f596f34c743e25ecdee6a8b06.tar.xz eclipse.platform.debug-fe1531e78ca51e2f596f34c743e25ecdee6a8b06.zip |
Bug 333517 - The Breakpoints view standard content provider does not allow filtering for non-standard debug models.
Diffstat (limited to 'org.eclipse.debug.ui/ui/org')
-rw-r--r-- | org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/model/elements/BreakpointManagerContentProvider.java | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/model/elements/BreakpointManagerContentProvider.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/model/elements/BreakpointManagerContentProvider.java index b30014d1d..c2c6e2188 100644 --- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/model/elements/BreakpointManagerContentProvider.java +++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/model/elements/BreakpointManagerContentProvider.java @@ -9,6 +9,7 @@ * Patrick Chuong (Texas Instruments) - Initial API and implementation (Bug 238956) * IBM Corporation - ongoing enhancements and bug fixing * Wind River Systems - ongoing enhancements and bug fixing + * Wind River System (Randy Rohrbach) - non standard model breakpoint filtering (Bug 333517) *****************************************************************/ package org.eclipse.debug.internal.ui.model.elements; @@ -24,6 +25,7 @@ import java.util.Set; import org.eclipse.core.resources.IMarkerDelta; import org.eclipse.core.runtime.CoreException; +import org.eclipse.core.runtime.IAdaptable; import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.core.runtime.IStatus; import org.eclipse.core.runtime.Platform; @@ -834,13 +836,23 @@ public class BreakpointManagerContentProvider extends ElementContentProvider if (target != null) { debugTargets.add(target); } - } + } else if (next instanceof IAdaptable) { + // Allow non-standard debug model element return an IDebugTarget + // element that could be used for implementing breakpoint filtering. + // Bug 333517. + ILaunch launch = (ILaunch) ((IAdaptable)next).getAdapter(ILaunch.class); + if (launch != null) { + IDebugTarget[] targets= launch.getDebugTargets(); + for (int j = 0; j < targets.length; j++) { + debugTargets.add(targets[j]); + } + } + } } } return debugTargets; } - /** * Maximum number of breakpoint manager input objects that this provider * will cache data for. This method is called once upon class creation |