本文整理汇总了Java中com.intellij.notification.NotificationGroup.balloonGroup方法的典型用法代码示例。如果您正苦于以下问题:Java NotificationGroup.balloonGroup方法的具体用法?Java NotificationGroup.balloonGroup怎么用?Java NotificationGroup.balloonGroup使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.intellij.notification.NotificationGroup
的用法示例。
在下文中一共展示了NotificationGroup.balloonGroup方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: askUserToDisablePlugins
import com.intellij.notification.NotificationGroup; //导入方法依赖的package包/类
private void askUserToDisablePlugins(Collection<IdeaPluginDescriptor> conflictingPlugins) {
final String text = formatMessage(conflictingPlugins);
NotificationGroup ng = NotificationGroup.balloonGroup("Conflicting Plugins");
ng.createNotification(PLUGIN_NAME, text, NotificationType.WARNING,
(notification, event) -> {
if (event.getEventType() == HyperlinkEvent.EventType.ACTIVATED) {
for (IdeaPluginDescriptor foreignPlugin : conflictingPlugins) {
PluginManager.disablePlugin(foreignPlugin.getPluginId().toString());
}
Application application = ApplicationManager.getApplication();
application.restart();
}
}).notify(project);
}
示例2: showMessage
import com.intellij.notification.NotificationGroup; //导入方法依赖的package包/类
public Notification showMessage(String message, MessageType messageType, @Nullable NotificationListener listener) {
NotificationGroup notificationGroup = NotificationGroup.balloonGroup(myNotificationDisplayId);
Notification notification = notificationGroup.createNotification("", message, messageType.toNotificationType(), listener);
notification.notify(null);
return notification;
}
示例3: compute
import com.intellij.notification.NotificationGroup; //导入方法依赖的package包/类
@NotNull
@Override
protected NotificationGroup compute() {
return NotificationGroup.balloonGroup(VfsBundle.message("jar.copy.error.title"));
}
示例4: compute
import com.intellij.notification.NotificationGroup; //导入方法依赖的package包/类
@Nonnull
@Override
protected NotificationGroup compute() {
return NotificationGroup.balloonGroup(VfsBundle.message("jar.copy.error.title"));
}