Interface IBranchTransitionFilter
-
public interface IBranchTransitionFilter
Defines a set of branch transitions for which a particular snapshot task is enabled.- See Also:
TransitionFilteredIntegrationStrategy
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
isSnapshotRestorationEverPossible(org.eclipse.core.resources.IProject project, String branch)
Tests if restoration of a snapshot for the given project and branch may be required in future, provided the current settings.boolean
isSnapshotsCreationEnabled(org.eclipse.core.resources.IProject project, String fromBranch, String toBranch)
Tests if snapshot creation is enabled for the given project and branch transition.boolean
isSnapshotsRestorationEnabled(org.eclipse.core.resources.IProject project, String fromBranch, String toBranch)
Tests if snapshot restoration is enabled for the given project and branch transition.
-
-
-
Method Detail
-
isSnapshotsCreationEnabled
boolean isSnapshotsCreationEnabled(org.eclipse.core.resources.IProject project, String fromBranch, String toBranch)
Tests if snapshot creation is enabled for the given project and branch transition.- Parameters:
project
- the project, nevernull
fromBranch
- the source branch, nevernull
toBranch
- the target branch, nevernull
- Returns:
true
if snapshot creation is enabled
-
isSnapshotsRestorationEnabled
boolean isSnapshotsRestorationEnabled(org.eclipse.core.resources.IProject project, String fromBranch, String toBranch)
Tests if snapshot restoration is enabled for the given project and branch transition.- Parameters:
project
- the project, nevernull
fromBranch
- the source branch, nevernull
toBranch
- the target branch, nevernull
- Returns:
true
if snapshot restoration is enabled
-
isSnapshotRestorationEverPossible
boolean isSnapshotRestorationEverPossible(org.eclipse.core.resources.IProject project, String branch)
Tests if restoration of a snapshot for the given project and branch may be required in future, provided the current settings.- Parameters:
project
- the project, nevernull
branch
- the branch, nevernull
- Returns:
true
if snapshot restoration may be required,false
otherwise
-
-