mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
extend API to add possibility for checkin handlers check if it is amending operation
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user