mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
git4idea: IDEA-57050: fixed ISE
This commit is contained in:
+4
-3
@@ -89,7 +89,7 @@ public class GitBranchConfigurationChangedDialog extends DialogWrapper {
|
||||
myTable.setModel(new DescriptorTableModel());
|
||||
myNameTextField.setText(config.getName());
|
||||
myNewAction = new DialogWrapperExitAction("New Configuration", NEW_CONFIGURATION);
|
||||
myNameTextField.getDocument().addDocumentListener(new DocumentAdapter() {
|
||||
final DocumentAdapter l = new DocumentAdapter() {
|
||||
@Override
|
||||
protected void textChanged(DocumentEvent e) {
|
||||
String text = myNameTextField.getText().trim();
|
||||
@@ -113,8 +113,9 @@ public class GitBranchConfigurationChangedDialog extends DialogWrapper {
|
||||
setOKActionEnabled(s == null);
|
||||
myNewAction.setEnabled(s == null);
|
||||
}
|
||||
});
|
||||
|
||||
};
|
||||
myNameTextField.getDocument().addDocumentListener(l);
|
||||
l.changedUpdate(null);
|
||||
setOKButtonText("Update");
|
||||
init();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user