mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-80382 Notifications: when balloon is shown in Event Log and after clicking a link it expires, it should be hidden
This commit is contained in:
@@ -97,6 +97,11 @@ public class Notification {
|
||||
|
||||
public void expire() {
|
||||
NotificationsManager.getNotificationsManager().expire(this);
|
||||
hideBalloon();
|
||||
myExpired = true;
|
||||
}
|
||||
|
||||
public void hideBalloon() {
|
||||
if (myBalloonRef != null) {
|
||||
final Balloon balloon = myBalloonRef.get();
|
||||
if (balloon != null) {
|
||||
@@ -104,7 +109,6 @@ public class Notification {
|
||||
}
|
||||
myBalloonRef = null;
|
||||
}
|
||||
myExpired = true;
|
||||
}
|
||||
|
||||
public void setBalloon(@Nullable final Balloon balloon) {
|
||||
|
||||
@@ -415,6 +415,8 @@ public class EventLog implements Notifications {
|
||||
Balloon balloon = NotificationsManagerImpl.createBalloon(myNotification, true, true);
|
||||
Disposer.register(project, balloon);
|
||||
balloon.show(target, Balloon.Position.above);
|
||||
myNotification.hideBalloon();
|
||||
myNotification.setBalloon(balloon);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user