Skip to content

Commit d3ef226

Browse files
Update Lambda breakpoint message label (#862)
This commit updates label for lambda breakpoints on annotation hover. Fixes : #861
1 parent 80fe541 commit d3ef226

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/DebugUIMessages.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -474,4 +474,6 @@ public class DebugUIMessages extends NLS {
474474

475475
public static String ListSameElementsFor2;
476476
public static String fExceptionBreakpointMsg;
477+
478+
protected static String JavaDebugOptionsManager_Lambda_Breakpoint;
477479
}

org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/DebugUIMessages.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,7 @@ JDIModelPresentation_no_suspended_threads=[toString() unavailable - no suspended
297297

298298
JavaDebugOptionsManager_Breakpoint___1=Breakpoint:
299299
JavaDebugOptionsManager_Method_breakpoint___2=Method breakpoint:
300+
JavaDebugOptionsManager_Lambda_Breakpoint=Lambda Breakpoint:
300301
JavaDebugOptionsManager_Watchpoint___3=Watchpoint:
301302
JavaDebugOptionsManager_0=Initialize Java Debug Options
302303
JavaDebugOptionsManager_exceptionRecurrence_dialogTitle=Repeated exception occurrence

org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/JavaDebugOptionsManager.java

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*******************************************************************************
2-
* Copyright (c) 2000, 2019 IBM Corporation and others.
2+
* Copyright (c) 2000, 2026 IBM Corporation and others.
33
*
44
* This program and the accompanying materials
55
* are made available under the terms of the Eclipse Public License 2.0
@@ -878,7 +878,13 @@ public void run(IProgressMonitor monitor) throws CoreException {
878878
if (breakpoint instanceof IJavaBreakpoint) {
879879
String info = fLabelProvider.getText(breakpoint);
880880
String type = DebugUIMessages.JavaDebugOptionsManager_Breakpoint___1;
881-
if (breakpoint instanceof IJavaMethodBreakpoint || breakpoint instanceof IJavaMethodEntryBreakpoint) {
881+
if (breakpoint instanceof IJavaMethodBreakpoint javaMBp) {
882+
if (javaMBp.isLambdaBreakpoint()) {
883+
type = DebugUIMessages.JavaDebugOptionsManager_Lambda_Breakpoint;
884+
} else {
885+
type = DebugUIMessages.JavaDebugOptionsManager_Method_breakpoint___2;
886+
}
887+
} else if (breakpoint instanceof IJavaMethodEntryBreakpoint) {
882888
type = DebugUIMessages.JavaDebugOptionsManager_Method_breakpoint___2;
883889
} else if (breakpoint instanceof IJavaWatchpoint) {
884890
type = DebugUIMessages.JavaDebugOptionsManager_Watchpoint___3;

0 commit comments

Comments
 (0)