void (ArrayList<? super LogFilter> filters, final LogConsolePreferences preferences) { filters.add(new MyFilter(DiagnosticBundle.message("log.console.filter.show.all"), preferences) { @Override public void selectFilter() { preferences.FILTER_ERRORS = false; preferences.FILTER_INFO = false; preferences.FILTER_WARNINGS = false; preferences.FILTER_DEBUG = false; } @Override public boolean isSelected() { return !preferences.FILTER_ERRORS && !preferences.FILTER_INFO && !preferences.FILTER_WARNINGS && !preferences.FILTER_DEBUG; } }); filters.add(new MyFilter(DiagnosticBundle.message("log.console.filter.show.errors.warnings.and.infos"), preferences) { @Override public void selectFilter() { preferences.FILTER_ERRORS = false; preferences.FILTER_INFO = false; preferences.FILTER_WARNINGS = false; preferences.FILTER_DEBUG = true; } @Override public boolean isSelected() { return !preferences.FILTER_ERRORS && !preferences.FILTER_INFO && !preferences.FILTER_WARNINGS && preferences.FILTER_DEBUG; } }); filters.add(new MyFilter(DiagnosticBundle.message("log.console.filter.show.errors.and.warnings"), preferences) { @Override public void selectFilter() { preferences.FILTER_ERRORS = false; preferences.FILTER_INFO = true; preferences.FILTER_WARNINGS = false; preferences.FILTER_DEBUG = true; } @Override public boolean isSelected() { return !preferences.FILTER_ERRORS && preferences.FILTER_INFO && !preferences.FILTER_WARNINGS && preferences.FILTER_DEBUG; } }); filters.add(new MyFilter(DiagnosticBundle.message("log.console.filter.show.errors"), preferences) { @Override public void selectFilter() { preferences.FILTER_ERRORS = false; preferences.FILTER_INFO = true; preferences.FILTER_WARNINGS = true; preferences.FILTER_DEBUG = true; } @Override public boolean isSelected() { return !preferences.FILTER_ERRORS && preferences.FILTER_INFO && preferences.FILTER_WARNINGS && preferences.FILTER_DEBUG; } }); }