mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
plugin installation: show sticky balloon
This commit is contained in:
@@ -21,10 +21,7 @@ import com.intellij.ide.BrowserUtil;
|
||||
import com.intellij.ide.IdeBundle;
|
||||
import com.intellij.ide.ui.search.SearchUtil;
|
||||
import com.intellij.ide.ui.search.SearchableOptionsRegistrar;
|
||||
import com.intellij.notification.Notification;
|
||||
import com.intellij.notification.NotificationListener;
|
||||
import com.intellij.notification.NotificationType;
|
||||
import com.intellij.notification.Notifications;
|
||||
import com.intellij.notification.*;
|
||||
import com.intellij.openapi.Disposable;
|
||||
import com.intellij.openapi.actionSystem.*;
|
||||
import com.intellij.openapi.application.ApplicationManager;
|
||||
@@ -532,24 +529,24 @@ public abstract class PluginManagerMain implements Disposable {
|
||||
message += "<br><a href=";
|
||||
message += restartCapable ? "\"restart\">Restart now" : "\"shutdown\">Shutdown";
|
||||
message += "</a>";
|
||||
Notifications.Bus.notify(new Notification("Plugins Lifecycle Group",
|
||||
pluginName != null
|
||||
? "Plugin \'" + pluginName + "\' was successfully installed"
|
||||
: "Plugins were installed",
|
||||
XmlStringUtil.wrapInHtml(message), NotificationType.INFORMATION,
|
||||
new NotificationListener() {
|
||||
@Override
|
||||
public void hyperlinkUpdate(@NotNull Notification notification,
|
||||
@NotNull HyperlinkEvent event) {
|
||||
notification.expire();
|
||||
if (restartCapable) {
|
||||
app.restart(true);
|
||||
}
|
||||
else {
|
||||
app.exit(true);
|
||||
}
|
||||
}
|
||||
}));
|
||||
new NotificationGroup("Plugins Lifecycle Group", NotificationDisplayType.STICKY_BALLOON, true)
|
||||
.createNotification(pluginName != null
|
||||
? "Plugin \'" + pluginName + "\' was successfully installed"
|
||||
: "Plugins were installed",
|
||||
XmlStringUtil.wrapInHtml(message), NotificationType.INFORMATION,
|
||||
new NotificationListener() {
|
||||
@Override
|
||||
public void hyperlinkUpdate(@NotNull Notification notification,
|
||||
@NotNull HyperlinkEvent event) {
|
||||
notification.expire();
|
||||
if (restartCapable) {
|
||||
app.restart(true);
|
||||
}
|
||||
else {
|
||||
app.exit(true);
|
||||
}
|
||||
}
|
||||
}).notify(null);
|
||||
}
|
||||
|
||||
protected class SortByStatusAction extends ToggleAction {
|
||||
|
||||
Reference in New Issue
Block a user