KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > team > internal > core > subscribers > WorkingSetSyncSetInput


1 /*******************************************************************************
2  * Copyright (c) 2000, 2006 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.team.internal.core.subscribers;
12
13 import org.eclipse.core.resources.IResource;
14
15 public class WorkingSetSyncSetInput extends SyncSetInputFromSyncSet {
16
17     private SyncInfoWorkingSetFilter workingSetFilter = new SyncInfoWorkingSetFilter();
18     
19     public WorkingSetSyncSetInput(SubscriberSyncInfoSet set, SubscriberEventHandler handler) {
20         super(set, handler);
21         setFilter(workingSetFilter);
22     }
23     
24     public void setWorkingSet(IResource[] resources) {
25         workingSetFilter.setWorkingSet(resources);
26     }
27     
28     public IResource[] getWorkingSet() {
29         return workingSetFilter.getWorkingSet();
30     }
31 }
32
Popular Tags