private CheckedInChangeSet getChangeSetFor(String name) { ChangeSet[] sets = getSets(); for (int i = 0; i < sets.length; i++) { ChangeSet set = sets[i]; if (set.getName().equals(name)) { return (CheckedInChangeSet) set; } } return null; }
private CheckedInChangeSet getChangeSetFor(ILogEntry logEntry) { ChangeSet[] sets = getSets(); for (int i = 0; i < sets.length; i++) { ChangeSet set = sets[i]; if (set instanceof CheckedInChangeSet && set.getComment().equals(logEntry.getComment()) && ((CheckedInChangeSet) set).getAuthor().equals(logEntry.getAuthor())) { return (CheckedInChangeSet) set; } } return null; }