[debugger] keep initial and tail parts of long breakpoint names, IJPL-86215

^IJPL-86215 fixed

GitOrigin-RevId: a5223b4f1838f117c4bf15d1cd0b93ddcfd33d92
This commit is contained in:
Vladimir Parfinenko
2024-08-29 16:02:55 +02:00
committed by intellij-monorepo-bot
parent 149d3476b4
commit 768c20d2d4

View File

@@ -34,8 +34,10 @@ object XBreakpointUtil {
* The forcibly shortened version of [XBreakpointType.getShortText].
*/
@JvmStatic
fun getShortText(breakpoint: XBreakpoint<*>): @Nls String =
StringUtil.shortenTextWithEllipsis(breakpoint.shortText, 70, 5)
fun getShortText(breakpoint: XBreakpoint<*>): @Nls String {
val len = 70
return StringUtil.shortenTextWithEllipsis(breakpoint.shortText, len, len / 2)
}
/**
* @see XBreakpointType.getDisplayText