Java Code Examples for com.intellij.notification.impl.NotificationsConfigurationImpl#getSettings()

The following examples show how to use com.intellij.notification.impl.NotificationsConfigurationImpl#getSettings() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: EventLogConsole.java    From consulo with Apache License 2.0 5 votes vote down vote up
private static void addConfigureNotificationAction(@Nonnull DefaultActionGroup actions, @Nonnull String groupId) {
  DefaultActionGroup displayTypeGroup = new DefaultActionGroup("Notification Display Type", true);
  NotificationSettings settings = NotificationsConfigurationImpl.getSettings(groupId);
  NotificationDisplayType current = settings.getDisplayType();

  for (NotificationDisplayType type : NotificationDisplayType.values()) {
    if (type != NotificationDisplayType.TOOL_WINDOW || NotificationsConfigurationImpl.getInstanceImpl().hasToolWindowCapability(groupId)) {
      displayTypeGroup.add(new DisplayTypeAction(settings, type, current));
    }
  }

  actions.add(displayTypeGroup);
  actions.addSeparator();
}
 
Example 2
Source File: NotificationsConfigurablePanel.java    From consulo with Apache License 2.0 4 votes vote down vote up
@Nonnull
private NotificationSettings getOriginalSettings() {
  return NotificationsConfigurationImpl.getSettings(getGroupId());
}