mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
don't change mouse cursor during goto name population (IDEA-113800)
This commit is contained in:
@@ -798,18 +798,6 @@ public abstract class ChooseByNameBase {
|
||||
String[] cached = getNamesSync(checkboxState);
|
||||
if (cached != null) return cached;
|
||||
|
||||
Window window = (Window)SwingUtilities.getAncestorOfClass(Window.class, myTextField);
|
||||
//LOG.assertTrue (myTextField != null);
|
||||
//LOG.assertTrue (window != null);
|
||||
Window ownerWindow = null;
|
||||
if (window != null) {
|
||||
window.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
|
||||
ownerWindow = window.getOwner();
|
||||
if (ownerWindow != null) {
|
||||
ownerWindow.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
|
||||
}
|
||||
}
|
||||
|
||||
if (checkboxState &&
|
||||
myModel instanceof ContributorsBasedGotoByModel &&
|
||||
((ContributorsBasedGotoByModel)myModel).sameNamesForProjectAndLibraries() &&
|
||||
@@ -825,12 +813,6 @@ public abstract class ChooseByNameBase {
|
||||
assert result != null : "Model "+myModel+ "("+myModel.getClass()+") returned null names";
|
||||
setNamesSync(checkboxState, result);
|
||||
|
||||
if (window != null) {
|
||||
window.setCursor(Cursor.getDefaultCursor());
|
||||
if (ownerWindow != null) {
|
||||
ownerWindow.setCursor(Cursor.getDefaultCursor());
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user