extend API to add possibility for checkin handlers check if it is amending operation

This commit is contained in:
Eugene Kudelevsky
2014-09-08 20:23:13 +04:00
parent b54894e440
commit 6feaeec018
2 changed files with 9 additions and 0 deletions
@@ -179,4 +179,8 @@ public abstract class DvcsCommitAdditionalComponent implements RefreshableOnComp
@Nullable
protected abstract String getLastCommitMessage(@NotNull VirtualFile repo) throws VcsException;
public boolean isAmend() {
return myAmend.isSelected();
}
}
@@ -175,6 +175,11 @@ public class CommitChangeListDialog extends DialogWrapper implements CheckinProj
ProjectLevelVcsManager.getInstance(project).getAllActiveVcss());
}
@NotNull
public List<RefreshableOnComponent> getAdditionalComponents() {
return Collections.unmodifiableList(myAdditionalComponents);
}
public static void commitPaths(final Project project, Collection<FilePath> paths, final LocalChangeList initialSelection,
@Nullable final CommitExecutor executor, final String comment) {
final ChangeListManager manager = ChangeListManager.getInstance(project);