本文整理汇总了Java中com.intellij.notification.NotificationListener.hyperlinkUpdate方法的典型用法代码示例。如果您正苦于以下问题:Java NotificationListener.hyperlinkUpdate方法的具体用法?Java NotificationListener.hyperlinkUpdate怎么用?Java NotificationListener.hyperlinkUpdate使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.intellij.notification.NotificationListener
的用法示例。
在下文中一共展示了NotificationListener.hyperlinkUpdate方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: wrapListener
import com.intellij.notification.NotificationListener; //导入方法依赖的package包/类
@Nullable
public static HyperlinkListener wrapListener(@NotNull final Notification notification) {
final NotificationListener listener = notification.getListener();
if (listener == null) return null;
return new HyperlinkListener() {
public void hyperlinkUpdate(HyperlinkEvent e) {
if (e.getEventType() == HyperlinkEvent.EventType.ACTIVATED) {
final NotificationListener listener1 = notification.getListener();
if (listener1 != null) {
listener1.hyperlinkUpdate(notification, e);
}
}
}
};
}
示例2: wrapListener
import com.intellij.notification.NotificationListener; //导入方法依赖的package包/类
@Nullable
public static HyperlinkListener wrapListener(@Nonnull final Notification notification) {
final NotificationListener listener = notification.getListener();
if (listener == null) return null;
return new HyperlinkListener() {
public void hyperlinkUpdate(HyperlinkEvent e) {
if (e.getEventType() == HyperlinkEvent.EventType.ACTIVATED) {
final NotificationListener listener1 = notification.getListener();
if (listener1 != null) {
listener1.hyperlinkUpdate(notification, e);
}
}
}
};
}
示例3: hyperlinkUpdate
import com.intellij.notification.NotificationListener; //导入方法依赖的package包/类
@Override
public void hyperlinkUpdate(HyperlinkEvent e) {
if (e.getEventType() == HyperlinkEvent.EventType.ACTIVATED) {
final NotificationListener notificationListener = myNotification.getListener();
if (notificationListener != null) {
notificationListener.hyperlinkUpdate(myNotification, e);
}
}
}
示例4: navigate
import com.intellij.notification.NotificationListener; //导入方法依赖的package包/类
@Override
public void navigate(Project project) {
NotificationListener listener = myNotification.getListener();
if(listener != null) {
ConsoleLogConsole console = ObjectUtils.assertNotNull(getProjectComponent(project).getConsole(myNotification));
JComponent component = console.getConsoleEditor().getContentComponent();
listener.hyperlinkUpdate(myNotification, IJSwingUtilities.createHyperlinkEvent(myHref, component));
}
}