blob: 0a40ba9778226d47f713c99cc554611b6fdfec42 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2000, 2006 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.team.ui.synchronize;
import org.eclipse.core.resources.IResource;
import org.eclipse.jface.util.IPropertyChangeListener;
/**
* A synchronize scope defines the set of resources involved in a synchronization.
* Instance of this interface are used to scope the resources of a created {@link SubscriberParticipant}.
* <p>
* This interface is not intended to be implemented by clients
* </p>
* @see SubscriberParticipant
* @since 3.0
*/
public interface ISynchronizeScope {
/**
* Property used to indicate when the roots of the scope have changed.
*/
public static final String ROOTS = "prop_roots"; //$NON-NLS-1$
/**
* Property used to indicate when the name of the scope has changed.
* @since 3.1
*/
public static final String NAME = "prop_name"; //$NON-NLS-1$
/**
* Return the name of the scope
*
* @return the name of the scope
*/
public String getName();
/**
* Return the root resources that define this scope. A return value
* of <code>null</code> indicates that the participant should use
* its default set of resources.
*
* @return the root resources or <code>null</code>
*/
public IResource[] getRoots();
/**
* Add a property change listener that will get invoked when a
* property of the receiver changes.
*
* @param listener
*/
public void addPropertyChangeListener(IPropertyChangeListener listener);
/**
* Remove a property change listener. Removing an unregistered listener
* has no effect.
*
* @param listener
*/
public void removePropertyChangeListener(IPropertyChangeListener listener);
/**
* Dispose of the scope when it is no longer needed.
*/
public void dispose();
}