本文整理汇总了Java中com.intellij.notification.NotificationListener.URL_OPENING_LISTENER属性的典型用法代码示例。如果您正苦于以下问题:Java NotificationListener.URL_OPENING_LISTENER属性的具体用法?Java NotificationListener.URL_OPENING_LISTENER怎么用?Java NotificationListener.URL_OPENING_LISTENER使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类com.intellij.notification.NotificationListener
的用法示例。
在下文中一共展示了NotificationListener.URL_OPENING_LISTENER属性的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: IncomingChatInvitationNotification
public IncomingChatInvitationNotification(ChatInvitation chatInvitation) {
super(GroupId,
MessageService.message("samebug.notification.incomingChatInvitation.title", chatInvitation.getInviter().getDisplayName()),
getMessage(chatInvitation),
NotificationType.INFORMATION,
NotificationListener.URL_OPENING_LISTENER);
whenExpired(new Runnable() {
@Override
public void run() {
hideBalloon();
}
});
}
示例2: createNotification
private Notification createNotification(String stacktrace) {
IdeaPluginDescriptor plugin = PluginManager.getPlugin(PluginId.findId("com.thoughtworks.gauge"));
String pluginVersion = plugin == null ? "" : plugin.getVersion();
String apiVersion = ApplicationInfo.getInstance().getApiVersion();
String ideaVersion = ApplicationInfo.getInstance().getFullVersion();
String gaugeVersion = GaugeVersion.getVersion(false).version;
String body = String.format(ISSUE_TEMPLATE, stacktrace, ideaVersion, apiVersion, pluginVersion, gaugeVersion);
String content = String.format(NOTIFICATION_TEMPLATE, LINE_BREAK, body);
return new Notification("Gauge Exception", NOTIFICATION_TITLE, content, NotificationType.ERROR, NotificationListener.URL_OPENING_LISTENER);
}
示例3: showInfoURL
public static void showInfoURL(@NotNull Project project, @NotNull String title, @NotNull String message, @NotNull String url) {
LOG.info(title + "; " + message + "; " + url);
Notification notification =
new Notification(GITHUB_NOTIFICATION_GROUP, title, "<a href='" + url + "'>" + message + "</a>", NotificationType.INFORMATION,
NotificationListener.URL_OPENING_LISTENER);
Notificator.getInstance(project).notify(notification);
}
示例4: showWarningURL
public static void showWarningURL(@NotNull Project project,
@NotNull String title,
@NotNull String prefix,
@NotNull String highlight,
@NotNull String postfix,
@NotNull String url) {
LOG.info(title + "; " + prefix + highlight + postfix + "; " + url);
Notification notification =
new Notification(GITHUB_NOTIFICATION_GROUP, title, prefix + "<a href='" + url + "'>" + highlight + "</a>" + postfix,
NotificationType.WARNING, NotificationListener.URL_OPENING_LISTENER);
Notificator.getInstance(project).notify(notification);
}
示例5: showErrorURL
public static void showErrorURL(@NotNull Project project,
@NotNull String title,
@NotNull String prefix,
@NotNull String highlight,
@NotNull String postfix,
@NotNull String url) {
LOG.info(title + "; " + prefix + highlight + postfix + "; " + url);
Notification notification =
new Notification(GITHUB_NOTIFICATION_GROUP, title, prefix + "<a href='" + url + "'>" + highlight + "</a>" + postfix,
NotificationType.ERROR, NotificationListener.URL_OPENING_LISTENER);
Notificator.getInstance(project).notify(notification);
}