Package org.eclipse.team.ui.synchronize
Class SynchronizeModelOperation
java.lang.Object
org.eclipse.core.runtime.jobs.JobChangeAdapter
org.eclipse.team.ui.TeamOperation
org.eclipse.team.ui.synchronize.SynchronizeModelOperation
- All Implemented Interfaces:
IJobChangeListener,IRunnableWithProgress
A specialized team operation that operates on
ISynchronizeModelElementelements. If
the operation is run in the background the elements the operation is created
with will be updated to show that they are busy while the operation is
running and will be marked un-busy after the operation completes.- Since:
- 3.0
- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedSynchronizeModelOperation(ISynchronizePageConfiguration configuration, IDiffElement[] elements) Create an operation that will operate on the given diff elements. -
Method Summary
Modifier and TypeMethodDescriptionvoiddone(IJobChangeEvent event) Notification that a job has completed execution, either due to cancelation, successful completion, or failure.protected SyncInfoSetReturns a sync info set that contains theSyncInfofor the elements of this operations.voidscheduled(IJobChangeEvent event) Notification that a job is being added to the queue of scheduled jobs.Methods inherited from class org.eclipse.team.ui.TeamOperation
belongsTo, canRunAsJob, getGotoAction, getJobName, getKeepOperation, getOperationIcon, getPart, getSchedulingRule, getShell, isKeepOneProgressServiceEntry, isPostponeAutobuild, isSameFamilyAs, isUserInitiated, run, shouldRunMethods inherited from class org.eclipse.core.runtime.jobs.JobChangeAdapter
aboutToRun, awake, running, sleepingMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.jface.operation.IRunnableWithProgress
run
-
Constructor Details
-
SynchronizeModelOperation
protected SynchronizeModelOperation(ISynchronizePageConfiguration configuration, IDiffElement[] elements) Create an operation that will operate on the given diff elements.- Parameters:
configuration- the participant configuration in which this operation is runelements- the model elements this operation will run with
-
-
Method Details
-
getSyncInfoSet
Returns a sync info set that contains theSyncInfofor the elements of this operations.- Returns:
- the sync info set that contains the elements this operation is operating on.
-
scheduled
Description copied from interface:IJobChangeListenerNotification that a job is being added to the queue of scheduled jobs. The event details includes the scheduling delay before the job should start running.
Implementations should not block and return promptly.
- Specified by:
scheduledin interfaceIJobChangeListener- Overrides:
scheduledin classJobChangeAdapter- Parameters:
event- the event details, including the job instance and the scheduling delay
-
done
Description copied from interface:IJobChangeListenerNotification that a job has completed execution, either due to cancelation, successful completion, or failure. The event status object indicates how the job finished, and the reason for failure, if applicable.
Implementations should not block and return promptly.
- Specified by:
donein interfaceIJobChangeListener- Overrides:
donein classJobChangeAdapter- Parameters:
event- the event details
-