void (boolean initial) { if (!initial && myBranchFrom.getItemCount() == 0 && myCreateBranch.isSelected()) { Messages.showWarningDialog(myPanel, TaskBundle.message("dialog.message.can.t.create.branch.if.no.commit.exists.create.commit.first"), TaskBundle.message("dialog.title.cannot.create.branch")); myCreateBranch.setSelected(false); } myBranchName.setEnabled(myCreateBranch.isSelected()); myFromLabel.setEnabled(myCreateBranch.isSelected()); myBranchFrom.setEnabled(myCreateBranch.isSelected()); myUseBranchCombo.setEnabled(myUseBranch.isSelected()); myChangelistName.setEnabled(myCreateChangelist.isSelected()); }