mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-144699: simplify
This commit is contained in:
@@ -467,26 +467,12 @@ public class ChooseByNamePopup extends ChooseByNameBase implements ChooseByNameP
|
||||
|
||||
public void repaintList() {
|
||||
myRepaintQueue.cancelAllUpdates();
|
||||
myRepaintQueue.queue(new MyUpdate(this));
|
||||
}
|
||||
|
||||
private static class MyUpdate extends Update {
|
||||
private final ChooseByNamePopup myPopup;
|
||||
|
||||
public MyUpdate(ChooseByNamePopup popup) {
|
||||
super(popup);
|
||||
myPopup = popup;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void run() {
|
||||
myPopup.repaintListImmediate();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canEat(final Update update) {
|
||||
return true;
|
||||
}
|
||||
myRepaintQueue.queue(new Update(this) {
|
||||
@Override
|
||||
public void run() {
|
||||
ChooseByNamePopup.this.repaintListImmediate();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
public void repaintListImmediate() {
|
||||
|
||||
Reference in New Issue
Block a user