5253545556575859606162
@Override public void addPattern(String pattern) { List<GitIgnoreEntry> entries = getEntries(); GitIgnoreEntry entry = new GitIgnoreEntry(pattern); if (!entries.contains(entry)) { entries.add(entry); storeEntries(entries); }
6768697071727374757677
{ List<GitIgnoreEntry> entries = getEntries(); boolean modified = false; for (String pattern : newPatterns) { GitIgnoreEntry entry = new GitIgnoreEntry(pattern); if (entries.contains(entry)) { entries.add(entry); modified = true; }
8485868788899091929394
@Override public void removePattern(String pattern) { List<GitIgnoreEntry> entries = getEntries(); GitIgnoreEntry entry = new GitIgnoreEntry(pattern); if (entries.contains(entry)) { entries.remove(entry); storeEntries(entries); }
115116117118119120121122123124125
try (BufferedReader reader = new BufferedReader(new InputStreamReader(getResourceInputStream()))) { String line = null; while ((line = reader.readLine()) != null) { lines.add(new GitIgnoreEntry(line)); } return lines; } catch (IOException e) {
6061626364656667686970
} public void addPattern(String pattern) { List<GitIgnoreEntry> entries = getEntries(); GitIgnoreEntry entry = new GitIgnoreEntry(pattern); if (!entries.contains(entry)) { entries.add(entry); storeEntries(entries); }
7475767778798081828384
90919293949596979899100
} public void removePattern(String pattern) { List<GitIgnoreEntry> entries = getEntries(); GitIgnoreEntry entry = new GitIgnoreEntry(pattern); if (entries.contains(entry)) { entries.remove(entry); storeEntries(entries); }
121122123124125126127128129130131
{ reader = new BufferedReader(new InputStreamReader(getResourceInputStream())); String line = null; while ((line = reader.readLine()) != null) { lines.add(new GitIgnoreEntry(line)); } return lines; } catch (IOException e) {