Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand All @@ -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<IBreakpoint, Boolean> breakpointCache;

Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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.
*
Expand Down
Loading