blob: c815dc6f10f06b1542f25ae2d8ae5f05b36913cd [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2000, 2003 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Common Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/cpl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.team.ui.sync;
import org.eclipse.team.core.subscribers.SyncInfo;
/**
* Selects SyncInfo which match all child filters
*/
public class AndSyncInfoFilter extends CompoundSyncInfoFilter {
public AndSyncInfoFilter(SyncInfoFilter[] filters) {
super(filters);
}
/* (non-Javadoc)
* @see org.eclipse.team.ccvs.syncviews.views.SyncSetFilter#select(org.eclipse.team.core.sync.SyncInfo)
*/
public boolean select(SyncInfo info) {
for (int i = 0; i < filters.length; i++) {
SyncInfoFilter filter = filters[i];
if (!filter.select(info)) {
return false;
}
}
return true;
}
}