Skip to main content
summaryrefslogtreecommitdiffstats
blob: 63ec3ea68a998b40d741ac7963b1a6553f78f84c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/*******************************************************************************
 * 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.synchronize.subscribers;

import org.eclipse.team.core.synchronize.SyncInfoTree;
import org.eclipse.team.ui.synchronize.ISynchronizeParticipantReference;

/**
 * A factory which provides standard listeners to subscriber refresh operations. These
 * can be used to add common behavior to refresh operations run via a
 * {@link SubscriberParticipant}.
 *
 * @since 3.0
 */
public interface IRefreshSubscriberListenerFactory {
	/**
	 * Returns a listener that will prompt with the resuts of the refresh in a dialog. You
	 * can configure the set of synchronization information that will be shown by specifying
	 * a {@link SyncInfoSet} that is different than the default one maintained by
	 * the given participant.
	 */
	public IRefreshSubscriberListener createModalDialogListener(String targetId, ISynchronizeParticipantReference ref, SubscriberParticipant participant, SyncInfoTree syncInfoSet);
	
	/**
	 * Returns a listener that will prompt at the end of the refresh indicating if changes are
	 * found and indicate 
	 */
	public IRefreshSubscriberListener createSynchronizeViewListener(SubscriberParticipant participant);
}

Back to the top