don't change mouse cursor during goto name population (IDEA-113800)

This commit is contained in:
peter
2013-09-20 12:56:28 +02:00
parent fb5ad5b2be
commit cbeb0f1994
@@ -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;
}