Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Vogel2016-04-12 05:45:04 +0000
committerSergey Prigogin2016-04-12 17:14:59 +0000
commit50893f1e3d4290baebb209619a34d1ed2387edf8 (patch)
tree878554b71036bcc55f94ed7c1ff0241cef1ef62e /bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/synchronize/RefreshSubscriberParticipantJob.java
parent132925c986c76f54c95685d5fa19b26a3a8d7b10 (diff)
downloadeclipse.platform.team-50893f1e3d4290baebb209619a34d1ed2387edf8.tar.gz
eclipse.platform.team-50893f1e3d4290baebb209619a34d1ed2387edf8.tar.xz
eclipse.platform.team-50893f1e3d4290baebb209619a34d1ed2387edf8.zip
Bug 491484 - Add @Override to org.eclipse.team.ui
Change-Id: I1d158ffc0d865a25cdca12c5595d36edab7ac557 Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
Diffstat (limited to 'bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/synchronize/RefreshSubscriberParticipantJob.java')
-rw-r--r--bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/synchronize/RefreshSubscriberParticipantJob.java12
1 files changed, 10 insertions, 2 deletions
diff --git a/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/synchronize/RefreshSubscriberParticipantJob.java b/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/synchronize/RefreshSubscriberParticipantJob.java
index 34eed38d4..a75e329d6 100644
--- a/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/synchronize/RefreshSubscriberParticipantJob.java
+++ b/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/synchronize/RefreshSubscriberParticipantJob.java
@@ -40,6 +40,7 @@ public class RefreshSubscriberParticipantJob extends RefreshParticipantJob {
return ((SubscriberParticipant)getParticipant()).getSubscriberSyncInfoCollector();
}
+ @Override
protected int getChangeCount() {
int numChanges = 0;
SubscriberSyncInfoCollector collector = getCollector();
@@ -56,11 +57,13 @@ public class RefreshSubscriberParticipantJob extends RefreshParticipantJob {
return numChanges;
}
- protected int getIncomingChangeCount() {
+ @Override
+ protected int getIncomingChangeCount() {
return getChangesInMode(SyncInfo.INCOMING);
}
- protected int getOutgoingChangeCount() {
+ @Override
+ protected int getOutgoingChangeCount() {
return getChangesInMode(SyncInfo.OUTGOING);
}
@@ -84,10 +87,12 @@ public class RefreshSubscriberParticipantJob extends RefreshParticipantJob {
return numChanges;
}
+ @Override
protected RefreshParticipantJob.IChangeDescription createChangeDescription() {
return new RefreshChangeListener(resources, getCollector());
}
+ @Override
protected void handleProgressGroupSet(IProgressMonitor group, int ticks) {
getCollector().setProgressGroup(group, ticks);
}
@@ -96,11 +101,13 @@ public class RefreshSubscriberParticipantJob extends RefreshParticipantJob {
* If a collector is available then run the refresh and the background event processing
* within the same progress group.
*/
+ @Override
public boolean shouldRun() {
// Ensure that any progress shown as a result of this refresh occurs hidden in a progress group.
return getSubscriber() != null && getCollector().getSyncInfoSet() != null;
}
+ @Override
public boolean belongsTo(Object family) {
if(family instanceof RefreshSubscriberParticipantJob) {
return ((RefreshSubscriberParticipantJob)family).getSubscriber() == getSubscriber();
@@ -108,6 +115,7 @@ public class RefreshSubscriberParticipantJob extends RefreshParticipantJob {
return super.belongsTo(family);
}
+ @Override
protected void doRefresh(IChangeDescription changeListener, IProgressMonitor monitor) throws TeamException {
Subscriber subscriber = getSubscriber();
if (subscriber != null) {

Back to the top