diff options
Diffstat (limited to 'org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/commands/actions/DebugCommandService.java')
-rw-r--r-- | org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/commands/actions/DebugCommandService.java | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/commands/actions/DebugCommandService.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/commands/actions/DebugCommandService.java index 817aa1906..2a8885796 100644 --- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/commands/actions/DebugCommandService.java +++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/commands/actions/DebugCommandService.java @@ -198,8 +198,8 @@ public class DebugCommandService implements IDebugContextListener { } } // ABORT - no command processors - for (int i = 0; i < actions.length; i++) { - actions[i].setEnabled(false); + for (IEnabledTarget action : actions) { + action.setEnabled(false); } } @@ -252,8 +252,7 @@ public class DebugCommandService implements IDebugContextListener { */ private Map<IDebugCommandHandler, List<Object>> collate(Object[] elements, Class<?> handlerType) { Map<IDebugCommandHandler, List<Object>> map = new HashMap<>(); - for (int i = 0; i < elements.length; i++) { - Object element = elements[i]; + for (Object element : elements) { IDebugCommandHandler handler = getHandler(element, handlerType); if (handler == null) { return null; |