blob: 5d4c8edc98822a34b6099a5b6612ebcc3e1a7371 (
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
|
/*******************************************************************************
* 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.internal.ui.synchronize;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.team.core.synchronize.SyncInfo;
import org.eclipse.team.internal.ui.synchronize.RefreshParticipantJob.IChangeDescription;
import org.eclipse.team.ui.synchronize.ISynchronizeParticipant;
/**
* A refresh event generated to notify clients of the refresh lifecycle.
*/
public class RefreshEvent implements IRefreshEvent {
int type;
SyncInfo[] changes;
long startTime = 0;
long stopTime = 0;
IStatus status;
private final ISynchronizeParticipant participant;
private final IChangeDescription description;
private boolean isLink;
public RefreshEvent(int type, ISynchronizeParticipant participant, IChangeDescription description) {
this.type = type;
this.participant = participant;
this.description = description;
}
@Override
public int getRefreshType() {
return type;
}
@Override
public long getStartTime() {
return startTime;
}
public void setStartTime(long startTime) {
this.startTime = startTime;
}
@Override
public long getStopTime() {
return stopTime;
}
public void setStopTime(long stopTime) {
this.stopTime = stopTime;
}
@Override
public IStatus getStatus() {
return status;
}
public void setStatus(IStatus status) {
this.status = status;
}
@Override
public ISynchronizeParticipant getParticipant() {
return participant;
}
@Override
public IChangeDescription getChangeDescription() {
return description;
}
@Override
public boolean isLink() {
return isLink;
}
@Override
public void setIsLink(boolean isLink) {
this.isLink = isLink;
}
}
|