@Override public void finishBulkEditing() { mBulkEditing = false; writeConfig(); } }
@Override public void finishBulkEditing() { bulkEditing = false; writeConfig(); }
@Override public void setSeverity(Issue issue, Severity severity) { ensureInitialized(); String id = issue.getId(); if (severity == null) { mSeverity.remove(id); } else { mSeverity.put(id, severity); } if (!mBulkEditing) { writeConfig(); } }
/** * Marks the given issue and file combination as being ignored. * * @param issue the issue to be ignored in the given file * @param file the file to ignore the issue in */ public void ignore(Issue issue, File file) { ensureInitialized(); String path = mProject != null ? mProject.getRelativePath(file) : file.getPath(); List<String> paths = mSuppressed.get(issue.getId()); if (paths == null) { paths = new ArrayList<String>(); mSuppressed.put(issue.getId(), paths); } paths.add(path); // Keep paths sorted alphabetically; makes XML output stable Collections.sort(paths); if (!mBulkEditing) { writeConfig(); } }
@Override public void setSeverity(@NonNull Issue issue, @Nullable Severity severity) { ensureInitialized(); String id = issue.getId(); if (severity == null) { this.severity.remove(id); } else { this.severity.put(id, severity); } if (!bulkEditing) { writeConfig(); } }
@Override public void ignore(@NonNull Issue issue, @NonNull File file) { ensureInitialized(); String path = project != null ? project.getRelativePath(file) : file.getPath(); List<String> paths = suppressed.get(issue.getId()); if (paths == null) { paths = new ArrayList<>(); suppressed.put(issue.getId(), paths); } paths.add(path); // Keep paths sorted alphabetically; makes XML output stable Collections.sort(paths); if (!bulkEditing) { writeConfig(); } }