diff options
Diffstat (limited to 'org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/breakpoints/ShowSupportedBreakpointsAction.java')
-rw-r--r-- | org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/breakpoints/ShowSupportedBreakpointsAction.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/breakpoints/ShowSupportedBreakpointsAction.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/breakpoints/ShowSupportedBreakpointsAction.java index e7bdbb370..9bafdd7f4 100644 --- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/breakpoints/ShowSupportedBreakpointsAction.java +++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/breakpoints/ShowSupportedBreakpointsAction.java @@ -18,6 +18,7 @@ package org.eclipse.debug.internal.ui.actions.breakpoints; import java.util.ArrayList; +import java.util.Collections; import java.util.Iterator; import java.util.List; @@ -197,9 +198,7 @@ public class ShowSupportedBreakpointsAction extends ToggleFilterAction implement debugTargets.add(((IDebugElement)next).getDebugTarget()); } else if (next instanceof ILaunch) { IDebugTarget[] targets= ((ILaunch)next).getDebugTargets(); - for (int j = 0; j < targets.length; j++) { - debugTargets.add(targets[j]); - } + Collections.addAll(debugTargets, targets); } else if (next instanceof IProcess) { IDebugTarget target= ((IProcess)next).getAdapter(IDebugTarget.class); if (target != null) { |