mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
an action in event log toolbar to quickly switch on/off all the breakpoints
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 550 B |
@@ -318,6 +318,7 @@ public class EventLog implements Notifications {
|
||||
ShowSettingsUtil.getInstance().editConfigurable(project, new NotificationsConfigurable());
|
||||
}
|
||||
});
|
||||
group.add(new DisplayBalloons());
|
||||
group.add(new ToggleUseSoftWrapsToolbarAction(SoftWrapAppliancePlaces.CONSOLE) {
|
||||
@Override
|
||||
protected Editor getEditor(AnActionEvent e) {
|
||||
@@ -350,6 +351,21 @@ public class EventLog implements Notifications {
|
||||
toolWindow.getContentManager().addContent(content);
|
||||
}
|
||||
|
||||
private static class DisplayBalloons extends ToggleAction implements DumbAware {
|
||||
public DisplayBalloons() {
|
||||
super("Show balloons", "Enable or suppress notification balloons", IconLoader.getIcon("/general/balloon.png"));
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isSelected(AnActionEvent e) {
|
||||
return NotificationsConfigurationImpl.getNotificationsConfigurationImpl().SHOW_BALLOONS;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setSelected(AnActionEvent e, boolean state) {
|
||||
NotificationsConfigurationImpl.getNotificationsConfigurationImpl().SHOW_BALLOONS = state;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private static class NotificationHyperlinkInfo implements HyperlinkInfo {
|
||||
|
||||
Reference in New Issue
Block a user