mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
tweak transparent progress indicator position in case of tabbed editors
This commit is contained in:
+3
@@ -40,6 +40,7 @@ import com.intellij.openapi.wm.StatusBar;
|
||||
import com.intellij.openapi.wm.StatusBarWidget;
|
||||
import com.intellij.openapi.wm.ex.ProgressIndicatorEx;
|
||||
import com.intellij.ui.Gray;
|
||||
import com.intellij.ui.TabbedPaneWrapper;
|
||||
import com.intellij.ui.awt.RelativePoint;
|
||||
import com.intellij.ui.components.labels.LinkLabel;
|
||||
import com.intellij.ui.components.labels.LinkListener;
|
||||
@@ -414,6 +415,8 @@ public class InfoAndProgressPanel extends JPanel implements CustomStatusBarWidge
|
||||
|
||||
@NotNull
|
||||
private static Component getAnchor(@NotNull JRootPane pane) {
|
||||
Component tabWrapper = UIUtil.findComponentOfType(pane, TabbedPaneWrapper.TabWrapper.class);
|
||||
if (tabWrapper != null) return tabWrapper;
|
||||
Component splitters = UIUtil.findComponentOfType(pane, EditorsSplitters.class);
|
||||
if (splitters != null) return splitters;
|
||||
FileEditorManagerEx ex = FileEditorManagerEx.getInstanceEx(ProjectUtil.guessCurrentProject(pane));
|
||||
|
||||
Reference in New Issue
Block a user