diff --git a/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/ui/CommitChangeListDialog.java b/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/ui/CommitChangeListDialog.java index db0c1161df2b..04459cf23cf3 100644 --- a/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/ui/CommitChangeListDialog.java +++ b/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/ui/CommitChangeListDialog.java @@ -82,51 +82,51 @@ public class CommitChangeListDialog extends DialogWrapper implements CheckinProj private static final Comparator VCS_COMPARATOR = Comparator.comparing(it -> it.getKeyInstanceMethod().getName(), String::compareToIgnoreCase); - @NotNull private final CommitContext myCommitContext; - @NotNull private final CommitMessage myCommitMessageArea; - @NotNull private final Splitter mySplitter; - - @NotNull private final ChangesBrowserBase myBrowser; - - @NotNull private final CommitLegendPanel myLegend; - @NotNull private final MyChangeProcessor myDiffDetails; - - @NotNull private final List myAdditionalComponents = ContainerUtil.newArrayList(); - @NotNull private final List myHandlers = ContainerUtil.newArrayList(); @NotNull private final Project myProject; @NotNull private final VcsConfiguration myVcsConfiguration; @Nullable private final List myExecutors; - @NotNull private final Alarm myOKButtonUpdateAlarm = new Alarm(Alarm.ThreadToUse.SWING_THREAD); - private String myLastKnownComment = ""; - private final boolean myAllOfDefaultChangeListChangesIncluded; - @Nullable private final List myExecutorActions; private final boolean myShowVcsCommit; - @NotNull private final Map myPerVcsOptionsPanels = ContainerUtil.newHashMap(); - @Nullable private final AbstractVcs mySingleVcs; private final boolean myIsAlien; - private boolean myDisposed = false; - private boolean myUpdateDisabled = false; - @NotNull private final JLabel myWarningLabel; - - @NotNull private final Map myCheckinChangeListSpecificComponents = ContainerUtil.newHashMap(); - - @NotNull private final Map myListComments; - private String myLastSelectedListName; - @NotNull private final ChangeInfoCalculator myChangesInfoCalculator; - - @NotNull private final PseudoMap myAdditionalData; - @Nullable private final String myHelpId; - - @NotNull private final SplitterWithSecondHideable myDetailsSplitter; - @Nullable private final CommitAction myCommitAction; @Nullable private final CommitResultHandler myResultHandler; + @NotNull private final List myHandlers = ContainerUtil.newArrayList(); + @NotNull private final Map myPerVcsOptionsPanels = ContainerUtil.newHashMap(); + @NotNull private final List myAdditionalComponents = ContainerUtil.newArrayList(); + @NotNull private final Map myCheckinChangeListSpecificComponents = ContainerUtil.newHashMap(); + private final boolean myAllOfDefaultChangeListChangesIncluded; + + @NotNull private final Map myListComments; + @NotNull private final PseudoMap myAdditionalData; + @Nullable private final List myExecutorActions; + + @NotNull private final CommitContext myCommitContext; + @NotNull private final ChangeInfoCalculator myChangesInfoCalculator; + @NotNull private final ChangesBrowserBase myBrowser; + @NotNull private final MyChangeProcessor myDiffDetails; + @NotNull private final CommitMessage myCommitMessageArea; + @NotNull private final CommitLegendPanel myLegend; + + @NotNull private final Splitter mySplitter; + @NotNull private final SplitterWithSecondHideable myDetailsSplitter; + @NotNull private final JLabel myWarningLabel; + + @Nullable private final String myHelpId; + @Nullable private final CommitAction myCommitAction; + + @NotNull private final Alarm myOKButtonUpdateAlarm = new Alarm(Alarm.ThreadToUse.SWING_THREAD); @NotNull private final Runnable myUpdateButtonsRunnable = () -> { updateButtons(); updateLegend(); }; + private boolean myDisposed = false; + private boolean myUpdateDisabled = false; + + private String myLastKnownComment = ""; + private String myLastSelectedListName; + + public static boolean commitChanges(final Project project, final List changes, final LocalChangeList initialSelection,