当前位置: 首页>>代码示例>>Java>>正文


Java NotificationListener.URL_OPENING_LISTENER属性代码示例

本文整理汇总了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();
        }
    });
}
 
开发者ID:samebug,项目名称:samebug-idea-plugin,代码行数:14,代码来源:IncomingChatInvitationNotification.java

示例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);
}
 
开发者ID:getgauge,项目名称:Intellij-Plugin,代码行数:10,代码来源:GaugeExceptionHandler.java

示例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);
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:7,代码来源:GithubNotifications.java

示例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);
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:12,代码来源:GithubNotifications.java

示例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);
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:12,代码来源:GithubNotifications.java


注:本文中的com.intellij.notification.NotificationListener.URL_OPENING_LISTENER属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。