Skip to content

Commit d62750a

Browse files
committed
Fix Breakpoint custom label not showing in containers
This commit fixes custom breakpoint labels not being rendered in breakpoints view when breakpoints organized based on any groupings
1 parent 018c667 commit d62750a

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

debug/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/model/elements/BreakpointLabelProvider.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,9 @@ public class BreakpointLabelProvider extends DebugElementLabelProvider {
3232
@Override
3333
protected String getLabel(TreePath elementPath, IPresentationContext presentationContext, String columnId, int columnIndex) throws CoreException {
3434
if (columnIndex == 0) {
35-
if (elementPath.getFirstSegment() instanceof Breakpoint breakpoint) {
36-
if (breakpoint.getBreakpointLabel() != null) {
37-
return breakpoint.getBreakpointLabel();
38-
}
35+
if (elementPath.getLastSegment() instanceof Breakpoint breakpoint
36+
&& breakpoint.getBreakpointLabel() != null) {
37+
return breakpoint.getBreakpointLabel();
3938
}
4039
return super.getLabel(elementPath, presentationContext, columnId, columnIndex);
4140
} else {

0 commit comments

Comments
 (0)