From 5c1f9f5fd0af1317c8443792a52a54ed839a0d52 Mon Sep 17 00:00:00 2001 From: Sougandh S Date: Fri, 3 Jul 2026 14:16:00 +0530 Subject: [PATCH] Use Custom Breakpoint label on Breakpoint listing --- .../ui/views/breakpoints/BreakpointsLabelProvider.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/debug/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/breakpoints/BreakpointsLabelProvider.java b/debug/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/breakpoints/BreakpointsLabelProvider.java index c18e8c66f96..7158b094fd2 100644 --- a/debug/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/breakpoints/BreakpointsLabelProvider.java +++ b/debug/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/breakpoints/BreakpointsLabelProvider.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2011 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 @@ -14,6 +14,7 @@ package org.eclipse.debug.internal.ui.views.breakpoints; import org.eclipse.debug.core.DebugPlugin; +import org.eclipse.debug.core.model.Breakpoint; import org.eclipse.debug.core.model.IBreakpoint; import org.eclipse.debug.internal.ui.CompositeDebugImageDescriptor; import org.eclipse.debug.internal.ui.DebugUIPlugin; @@ -78,7 +79,11 @@ private int computeAdornmentFlags() { @Override public String getText(Object element) { - if (element instanceof IBreakpoint) { + if (element instanceof Breakpoint breakpoint) { + String customLabel = breakpoint.getBreakpointLabel(); + if (customLabel != null) { + return customLabel; + } return fPresentation.getText(element); } return fWorkbenchLabelProvider.getText(element);