public interface UpdateEnvironment
Modifier and Type | Method and Description |
---|---|
Configurable |
createConfigurable(java.util.Collection<FilePath> files)
Allows to show a settings dialog for the operation.
|
void |
fillGroups(UpdatedFiles updatedFiles)
Called before the update operation to register file status groups in addition to standard
file status groups registered in
UpdatedFiles.create() . |
default boolean |
hasCustomNotification()
Returns true if the
UpdateSession created by this UpdateEnvironment will
show a custom notification instead of the standard one. |
UpdateSession |
updateDirectories(FilePath [] contentRoots,
UpdatedFiles updatedFiles,
ProgressIndicator progressIndicator,
Ref<SequentialUpdatesContext> context)
Performs the update/integrate/status operation.
|
boolean |
validateOptions(java.util.Collection<FilePath> roots) |
void fillGroups(UpdatedFiles updatedFiles)
UpdatedFiles.create()
. The implementation can be left
empty if the VCS doesn't support any non-standard file statuses.updatedFiles
- the holder for the results of the update/integrate/status operation.UpdateSession updateDirectories(FilePath [] contentRoots, UpdatedFiles updatedFiles, ProgressIndicator progressIndicator, Ref<SequentialUpdatesContext> context) throws ProcessCanceledException
contentRoots
- the content roots for which update/integrate/status was requested by the user.updatedFiles
- the holder for the results of the update/integrate/status operation.progressIndicator
- the indicator that can be used to report the progress of the operation.context
- in-out parameter: a link between several sequential update operations (that can be triggered by one update action)ProcessCanceledException
- if the update operation has been cancelled by the user. Alternatively,
cancellation can be reported by returning true from
UpdateSession.isCanceled()
.Configurable createConfigurable(java.util.Collection<FilePath> files)
files
- the content roots for which update/integrate/status will be performed.boolean validateOptions(java.util.Collection<FilePath> roots)
default boolean hasCustomNotification()
UpdateSession
created by this UpdateEnvironment will
show a custom notification
instead of the standard one.