本文整理匯總了Java中com.intellij.ui.popup.NotificationPopup類的典型用法代碼示例。如果您正苦於以下問題:Java NotificationPopup類的具體用法?Java NotificationPopup怎麽用?Java NotificationPopup使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
NotificationPopup類屬於com.intellij.ui.popup包,在下文中一共展示了NotificationPopup類的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: updateFatalErrorsIcon
import com.intellij.ui.popup.NotificationPopup; //導入依賴的package包/類
void updateFatalErrorsIcon() {
final IdeFatalErrorsIcon.State state = computeState();
updateState(state);
if (state == IdeFatalErrorsIcon.State.NoErrors) {
myNotificationPopupAlreadyShown = false;
}
else if (state == IdeFatalErrorsIcon.State.UnreadErrors && !myNotificationPopupAlreadyShown) {
SwingUtilities.invokeLater(new Runnable() {
public void run() {
String notificationText = tryGetFromMessages(myMessagePool.getFatalErrors(false, false));
if (notificationText == null) {
notificationText = INTERNAL_ERROR_NOTICE;
}
final JLabel label = new JLabel(notificationText);
label.setIcon(AllIcons.Ide.FatalError);
new NotificationPopup(IdeMessagePanel.this, label, LightColors.RED, false, new ActionListener() {
public void actionPerformed(ActionEvent e) {
_openFatals(null);
}
}, true);
}
});
myNotificationPopupAlreadyShown = true;
}
}
示例2: fireNotificationPopup
import com.intellij.ui.popup.NotificationPopup; //導入依賴的package包/類
@Override
public void fireNotificationPopup(@NotNull JComponent content, Color backgroundColor) {
new NotificationPopup(this, content, backgroundColor);
}
示例3: fireNotificationPopup
import com.intellij.ui.popup.NotificationPopup; //導入依賴的package包/類
public void fireNotificationPopup(@NotNull JComponent content, Color backgroundColor) {
new NotificationPopup(this, content, backgroundColor);
}
示例4: fireNotificationPopup
import com.intellij.ui.popup.NotificationPopup; //導入依賴的package包/類
@Override
public void fireNotificationPopup(@Nonnull JComponent content, Color backgroundColor) {
new NotificationPopup(this, content, backgroundColor);
}