KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > team > internal > ui > synchronize > IRefreshSubscriberListener


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.ui.synchronize;
12
13 import org.eclipse.ui.actions.ActionFactory;
14
15 /**
16  * Callback interface for clients interested in being notified about the lifecycle of
17  * a subscriber refresh operation.
18  * <p>
19  * Clients may implement this interface.
20  * </p>
21  * @see IRefreshEvent
22  * @since 3.0
23  */

24 public interface IRefreshSubscriberListener {
25     /**
26      * Notification that a refresh is about to start. The event contains the resources
27      * that will be refreshed.
28      *
29      * @param event an event describing the state of the refresh.
30      */

31     public void refreshStarted(IRefreshEvent event);
32     
33     /**
34      * Notification that a refresh has completed. The event contains the changes
35      * found during the refresh as well as the status of the refresh.
36      *
37      * @param event the event describing the result of the refresh.
38      */

39     public ActionFactory.IWorkbenchAction refreshDone(IRefreshEvent event);
40 }
41
Popular Tags