mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Merge branch 'master' of git@git.labs.intellij.net:idea/community
This commit is contained in:
@@ -831,7 +831,8 @@ public class NavBarPanel extends JPanel implements DataProvider, PopupOwner {
|
||||
else {
|
||||
final Container container = focusedWindow != null ? focusedWindow : editor.getContentComponent();
|
||||
final Point p = AbstractPopup.getCenterOf(container, this);
|
||||
p.y = container.getHeight() / 4;
|
||||
p.x -= container.getLocation().x; //make NavBar visible in case of two monitors; p should be relative
|
||||
p.y = container.getHeight() / 4;
|
||||
HintManagerImpl.getInstanceImpl().showEditorHint(myHint, editor, p, HintManagerImpl.HIDE_BY_ESCAPE, 0, true);
|
||||
}
|
||||
select();
|
||||
|
||||
+9
-2
@@ -289,9 +289,16 @@ public class ProgressManagerImpl extends ProgressManager {
|
||||
}
|
||||
|
||||
public static void runProcessWithProgressAsynchronously(final Task.Backgroundable task) {
|
||||
final BackgroundableProcessIndicator progressIndicator = new BackgroundableProcessIndicator(task);
|
||||
final ProgressIndicator progressIndicator;
|
||||
if (ApplicationManager.getApplication().isHeadlessEnvironment()) {
|
||||
progressIndicator = new EmptyProgressIndicator();
|
||||
}
|
||||
else {
|
||||
final BackgroundableProcessIndicator indicator = new BackgroundableProcessIndicator(task);
|
||||
Disposer.register(ApplicationManager.getApplication(), indicator);
|
||||
progressIndicator = indicator;
|
||||
}
|
||||
|
||||
Disposer.register(ApplicationManager.getApplication(), progressIndicator);
|
||||
|
||||
final Runnable process = new TaskRunnable(task, progressIndicator);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user