void () { if (myDisposed) return; ChangesViewCommitWorkflowHandler newWorkflowHandler = ChangesViewWorkflowManager.getInstance(myProject).getCommitWorkflowHandler(); if (myCommitWorkflowHandler == newWorkflowHandler) return; if (newWorkflowHandler != null) { newWorkflowHandler.addActivityListener(() -> configureDiffPreview()); ChangesViewCommitPanel newCommitPanel = (ChangesViewCommitPanel)newWorkflowHandler.getUi(); newCommitPanel.registerRootComponent(this); myCommitPanelSplitter.setSecondComponent(newCommitPanel); myCommitWorkflowHandler = newWorkflowHandler; myCommitPanel = newCommitPanel; } else { myCommitPanelSplitter.setSecondComponent(null); myCommitWorkflowHandler = null; myCommitPanel = null; } configureDiffPreview(); configureToolbars(); }