diff --git a/debug/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/breakpoints/BreakpointEnablement.java b/debug/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/breakpoints/BreakpointEnablement.java index ead940b7f91..a6b210343be 100644 --- a/debug/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/breakpoints/BreakpointEnablement.java +++ b/debug/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/breakpoints/BreakpointEnablement.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2025 IBM Corporation and others. + * Copyright (c) 2025, 2026 IBM Corporation and others. * * This program and the accompanying materials * are made available under the terms of the Eclipse Public License 2.0 @@ -23,8 +23,10 @@ import org.eclipse.debug.core.DebugPlugin; import org.eclipse.debug.core.IBreakpointsListener; import org.eclipse.debug.core.model.IBreakpoint; +import org.eclipse.debug.internal.ui.DebugPluginImages; import org.eclipse.debug.ui.AbstractBreakpointOrganizerDelegate; import org.eclipse.debug.ui.BreakpointTypeCategory; +import org.eclipse.debug.ui.IDebugUIConstants; /** * Breakpoint organizers for breakpoint types based on breakpoint enablement @@ -33,7 +35,8 @@ public class BreakpointEnablement extends AbstractBreakpointOrganizerDelegate implements IBreakpointsListener { private final BreakpointTypeCategory ENABLED = new BreakpointTypeCategory("Enabled", 0); //$NON-NLS-1$ - private final BreakpointTypeCategory DISABLED = new BreakpointTypeCategory("Disabled", 1); //$NON-NLS-1$ + private final BreakpointTypeCategory DISABLED = new BreakpointTypeCategory("Disabled", 1, //$NON-NLS-1$ + DebugPluginImages.getImageDescriptor(IDebugUIConstants.IMG_OBJS_BREAKPOINT_GROUP_DISABLED)); private final Map breakpointCache; diff --git a/debug/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/BreakpointTypeCategory.java b/debug/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/BreakpointTypeCategory.java index 66d439e4197..c8d9296bbbf 100644 --- a/debug/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/BreakpointTypeCategory.java +++ b/debug/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/BreakpointTypeCategory.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2013 IBM Corporation and others. + * Copyright (c) 2000, 2026 IBM Corporation and others. * * This program and the accompanying materials * are made available under the terms of the Eclipse Public License 2.0 @@ -70,6 +70,24 @@ public BreakpointTypeCategory(String name, int sortPriority) { fSortPriority = sortPriority; } + /** + * Constructs a type category for the given type name, given sort and with the + * given image. + * + * @param name breakpoint type name + * @param sortPriority used to calculate the sort order of this category + * @param descriptor image descriptor + * @since 3.22 + */ + public BreakpointTypeCategory(String name, int sortPriority, ImageDescriptor descriptor) { + fName = name; + fSortable = true; + fSortPriority = sortPriority; + if (descriptor != null) { + fImageDescriptor = descriptor; + } + } + /** * Returns the name of this category's breakpoint type. *