mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
on lookup reuse, the ads should be cleared
This commit is contained in:
@@ -82,6 +82,10 @@ public class Advertiser implements Disposable {
|
||||
return new ArrayList<String>(myTexts);
|
||||
}
|
||||
|
||||
public synchronized void clearAdvertisements() {
|
||||
myTexts.clear();
|
||||
}
|
||||
|
||||
private static Font adFont() {
|
||||
Font font = UIUtil.getLabelFont();
|
||||
return font.deriveFont((float)(font.getSize() - 2));
|
||||
|
||||
@@ -1161,7 +1161,7 @@ public class LookupImpl extends LightweightHint implements Lookup, Disposable {
|
||||
public void markReused() {
|
||||
myReused = true;
|
||||
myModel.clearItems();
|
||||
setAdvertisementText(null);
|
||||
myAdComponent.clearAdvertisements();
|
||||
myPreselectedItem = null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user