Interface ISnapshotOperation
-
- All Known Subinterfaces:
ICreateSnapshotsStep
,IFinishSnapshotOperationStep
,IRestoreSnapshotsStep
,IStartSnapshotOperationStep
public interface ISnapshotOperation
Any step of a snapshot operation.- Restriction:
- This interface is not intended to be extended by clients.
- Restriction:
- This interface is not intended to be implemented by clients.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Set<org.eclipse.core.resources.IProject>
getAffectedProjects(Set<SnapshotTask> tasks)
Gets a set of projects, for which the operation will perform any of the given tasks.boolean
isEmpty()
Checks whether the operation is empty.boolean
willCreateSnapshots()
Checks if the operation will create any snapshots oncreate step
.boolean
willRestoreSnapshots()
Checks if the operation will restore any snapshots onrestore step
.
-
-
-
Method Detail
-
willCreateSnapshots
boolean willCreateSnapshots()
Checks if the operation will create any snapshots oncreate step
.- Returns:
true
if the operation will create snapshots, false otherwise
-
willRestoreSnapshots
boolean willRestoreSnapshots()
Checks if the operation will restore any snapshots onrestore step
.- Returns:
true
if the operation will restore snapshots, false otherwise
-
isEmpty
boolean isEmpty()
Checks whether the operation is empty.An empty operation, being executed, does nothing.
- Returns:
true
if the operation is empty,false
otherwise
-
getAffectedProjects
Set<org.eclipse.core.resources.IProject> getAffectedProjects(Set<SnapshotTask> tasks)
Gets a set of projects, for which the operation will perform any of the given tasks.- Parameters:
tasks
- the tasks, cannot benull
, may be empty- Returns:
- a set of affected projects, never
null
-
-