public abstract class CheckinHandler
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
CheckinHandler.ReturnResult |
Modifier and Type | Field and Description |
---|---|
static CheckinHandler |
DUMMY
Return this handler if your handler shouldn't be created (for instance, your VCS is not active).
|
Constructor and Description |
---|
CheckinHandler() |
Modifier and Type | Method and Description |
---|---|
boolean |
acceptExecutor(CommitExecutor executor)
Allows to skip before checkin steps when is not applicable.
|
CheckinHandler.ReturnResult |
beforeCheckin()
Performs the before check-in processing.
|
CheckinHandler.ReturnResult |
beforeCheckin(CommitExecutor executor,
PairConsumer<java.lang.Object,java.lang.Object> additionalDataConsumer)
Performs the before check-in processing when a custom commit executor is used.
|
void |
checkinFailed(java.util.List<VcsException> exception)
Performs the processing on failed check-in.
|
void |
checkinSuccessful()
Performs the processing on successful check-in.
|
RefreshableOnComponent |
getAfterCheckinConfigurationPanel(Disposable parentDisposable)
Returns the panel which is inserted in the "After Check In" group box of the Checkin Project
or Checkin File dialogs.
|
RefreshableOnComponent |
getBeforeCheckinConfigurationPanel()
Returns the panel which is inserted in the "Before Check In" group box of the Checkin Project
or Checkin File dialogs.
|
UnnamedConfigurable |
getBeforeCheckinSettings() |
void |
includedChangesChanged()
Called to notify handler that user has included/excluded some changes to/from commit.
|
public static final CheckinHandler DUMMY
public RefreshableOnComponent getBeforeCheckinConfigurationPanel()
null
if the handler does not provide any options to show in the
"Before Check In" group.public UnnamedConfigurable getBeforeCheckinSettings()
public RefreshableOnComponent getAfterCheckinConfigurationPanel(Disposable parentDisposable)
null
if the handler does not provide any options to show in the
"After Check In" group.public CheckinHandler.ReturnResult beforeCheckin(CommitExecutor executor, PairConsumer<java.lang.Object,java.lang.Object> additionalDataConsumer)
CheckinProjectPanel
instance passed to
BaseCheckinHandlerFactory.createHandler(CheckinProjectPanel, CommitContext)
to
get information about the files to be checked in.executor
- the commit executor, or null
if the standard commit operation is executed.public CheckinHandler.ReturnResult beforeCheckin()
CheckinProjectPanel
instance passed to
BaseCheckinHandlerFactory.createHandler(CheckinProjectPanel, CommitContext)
to
get information about the files to be checked in.public void checkinSuccessful()
CheckinProjectPanel
instance passed to
BaseCheckinHandlerFactory.createHandler(CheckinProjectPanel, CommitContext)
to
get information about the checked in files.public void checkinFailed(java.util.List<VcsException> exception)
CheckinProjectPanel
instance passed to
BaseCheckinHandlerFactory.createHandler(CheckinProjectPanel, CommitContext)
to
get information about the checked in files.exception
- the list of VCS exceptions identifying the problems that occurred during the
commit operation.public void includedChangesChanged()
public boolean acceptExecutor(CommitExecutor executor)
executor
- current operation (null
for commit)true
if handler should be skipped