KickJava   Java API By Example, From Geeks To Geeks.

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


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.core.runtime.IStatus;
14 import org.eclipse.team.core.synchronize.SyncInfo;
15 import org.eclipse.team.internal.ui.synchronize.RefreshParticipantJob.IChangeDescription;
16 import org.eclipse.team.ui.synchronize.ISynchronizeParticipant;
17
18 /**
19  * A refresh event generated to notify clients of the refresh lifecycle.
20  */

21 public class RefreshEvent implements IRefreshEvent {
22     int type;
23     SyncInfo[] changes;
24     long startTime = 0;
25     long stopTime = 0;
26     IStatus status;
27     private final ISynchronizeParticipant participant;
28     private final IChangeDescription description;
29     private boolean isLink;
30     
31     public RefreshEvent(int type, ISynchronizeParticipant participant, IChangeDescription description) {
32         this.type = type;
33         this.participant = participant;
34         this.description = description;
35     }
36     
37     public int getRefreshType() {
38         return type;
39     }
40     
41     public long getStartTime() {
42         return startTime;
43     }
44
45     public void setStartTime(long startTime) {
46         this.startTime = startTime;
47     }
48
49     public long getStopTime() {
50         return stopTime;
51     }
52
53     public void setStopTime(long stopTime) {
54         this.stopTime = stopTime;
55     }
56
57     public IStatus getStatus() {
58         return status;
59     }
60     
61     public void setStatus(IStatus status) {
62         this.status = status;
63     }
64
65     public ISynchronizeParticipant getParticipant() {
66         return participant;
67     }
68
69     public IChangeDescription getChangeDescription() {
70         return description;
71     }
72
73     public boolean isLink() {
74         return isLink;
75     }
76
77     public void setIsLink(boolean isLink) {
78         this.isLink = isLink;
79     }
80 }
81
Popular Tags