1 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 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 |