mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
assign paths for jbTabs titles (IDEA-163178)
This commit is contained in:
@@ -28,6 +28,8 @@ import com.intellij.ui.JBColor;
|
||||
import com.intellij.ui.SimpleColoredComponent;
|
||||
import com.intellij.ui.SimpleTextAttributes;
|
||||
import com.intellij.ui.TabbedPaneWrapper;
|
||||
import com.intellij.ui.tabs.JBTabs;
|
||||
import com.intellij.ui.tabs.TabInfo;
|
||||
import com.intellij.util.containers.ContainerUtil;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
@@ -141,6 +143,20 @@ public class SearchUtil {
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (component instanceof JBTabs) {
|
||||
final JBTabs tabbedPane = (JBTabs)component;
|
||||
final int tabCount = tabbedPane.getTabCount();
|
||||
for (int i = 0; i < tabCount; i++) {
|
||||
TabInfo tabInfo = tabbedPane.getTabAt(i);
|
||||
String tabTitle = tabInfo.getText();
|
||||
final String title = path != null ? path + '.' + tabTitle : tabTitle;
|
||||
processUILabel(title, configurableOptions, title);
|
||||
final JComponent tabComponent = tabInfo.getComponent();
|
||||
if (tabComponent != null) {
|
||||
processComponent(tabComponent, configurableOptions, title);
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
final Component[] components = component.getComponents();
|
||||
if (components != null) {
|
||||
|
||||
Reference in New Issue
Block a user