From db512a7eace642c81e095493290bc51b5b794e85 Mon Sep 17 00:00:00 2001 From: Harisankar S Date: Thu, 12 Feb 2026 19:20:00 +0530 Subject: [PATCH] Update Lambda breakpoint message label This commit updates label for lambda breakpoints on annotation hover. Fixes : https://github.com/eclipse-jdt/eclipse.jdt.debug/issues/861 --- .../eclipse/jdt/internal/debug/ui/DebugUIMessages.java | 2 ++ .../jdt/internal/debug/ui/DebugUIMessages.properties | 1 + .../jdt/internal/debug/ui/JavaDebugOptionsManager.java | 10 ++++++++-- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/DebugUIMessages.java b/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/DebugUIMessages.java index ffb45e5603..094e4aa686 100644 --- a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/DebugUIMessages.java +++ b/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/DebugUIMessages.java @@ -474,4 +474,6 @@ public class DebugUIMessages extends NLS { public static String ListSameElementsFor2; public static String fExceptionBreakpointMsg; + + protected static String JavaDebugOptionsManager_Lambda_Breakpoint; } diff --git a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/DebugUIMessages.properties b/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/DebugUIMessages.properties index fc346fa11b..653fbfba15 100644 --- a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/DebugUIMessages.properties +++ b/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/DebugUIMessages.properties @@ -297,6 +297,7 @@ JDIModelPresentation_no_suspended_threads=[toString() unavailable - no suspended JavaDebugOptionsManager_Breakpoint___1=Breakpoint: JavaDebugOptionsManager_Method_breakpoint___2=Method breakpoint: +JavaDebugOptionsManager_Lambda_Breakpoint=Lambda Breakpoint: JavaDebugOptionsManager_Watchpoint___3=Watchpoint: JavaDebugOptionsManager_0=Initialize Java Debug Options JavaDebugOptionsManager_exceptionRecurrence_dialogTitle=Repeated exception occurrence diff --git a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/JavaDebugOptionsManager.java b/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/JavaDebugOptionsManager.java index 8038c7b306..b4dfcedde5 100644 --- a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/JavaDebugOptionsManager.java +++ b/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/JavaDebugOptionsManager.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2019 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 @@ -878,7 +878,13 @@ public void run(IProgressMonitor monitor) throws CoreException { if (breakpoint instanceof IJavaBreakpoint) { String info = fLabelProvider.getText(breakpoint); String type = DebugUIMessages.JavaDebugOptionsManager_Breakpoint___1; - if (breakpoint instanceof IJavaMethodBreakpoint || breakpoint instanceof IJavaMethodEntryBreakpoint) { + if (breakpoint instanceof IJavaMethodBreakpoint javaMBp) { + if (javaMBp.isLambdaBreakpoint()) { + type = DebugUIMessages.JavaDebugOptionsManager_Lambda_Breakpoint; + } else { + type = DebugUIMessages.JavaDebugOptionsManager_Method_breakpoint___2; + } + } else if (breakpoint instanceof IJavaMethodEntryBreakpoint) { type = DebugUIMessages.JavaDebugOptionsManager_Method_breakpoint___2; } else if (breakpoint instanceof IJavaWatchpoint) { type = DebugUIMessages.JavaDebugOptionsManager_Watchpoint___3;