mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-03-22 15:19:59 +07:00
do no persist Threads & Variables tab name in order to correctly present localized tab title (fixed RIDER-96368)
(cherry picked from commit be50c0943b64156c8bd60ad727a6f2b57a27442a) IJ-CR-114133 GitOrigin-RevId: 7dbc345c6494bc6bb055eecddf00a85a62e49850
This commit is contained in:
committed by
intellij-monorepo-bot
parent
c62d834ad6
commit
ea505a9fc5
@@ -16,12 +16,16 @@
|
||||
|
||||
package com.intellij.execution.ui.layout.impl;
|
||||
|
||||
import com.intellij.util.xmlb.annotations.Transient;
|
||||
|
||||
import javax.swing.*;
|
||||
|
||||
abstract class AbstractTab {
|
||||
|
||||
int myIndex;
|
||||
int myDefaultIndex = -1;
|
||||
|
||||
@Transient
|
||||
String myDisplayName;
|
||||
Icon myIcon;
|
||||
|
||||
|
||||
@@ -4,6 +4,7 @@ package com.intellij.execution.ui.layout.impl;
|
||||
import com.intellij.execution.ui.layout.PlaceInGrid;
|
||||
import com.intellij.execution.ui.layout.Tab;
|
||||
import com.intellij.openapi.util.NlsSafe;
|
||||
import com.intellij.util.xmlb.annotations.Transient;
|
||||
|
||||
import javax.swing.*;
|
||||
|
||||
@@ -21,6 +22,7 @@ public final class TabImpl extends AbstractTab implements Tab {
|
||||
return myDefaultIndex >= 0 ? myDefaultIndex : myIndex;
|
||||
}
|
||||
|
||||
@Transient
|
||||
public @NlsSafe String getDisplayName() {
|
||||
return myDisplayName;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user