mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
convert ITNReporter, JetBrainsAccountDialog to kotlin
This commit is contained in:
+9
-11
@@ -163,19 +163,17 @@ private fun submit(event: IdeaLoggingEvent, parentComponent: Component, callback
|
||||
else if (showYesNoDialog(parentComponent, project, msg, ReportMessages.ERROR_REPORT, Messages.getErrorIcon()) != Messages.YES) {
|
||||
callback.consume(SubmittedReportInfo(SubmittedReportInfo.SubmissionStatus.FAILED))
|
||||
}
|
||||
else {
|
||||
if (e is NoSuchEAPUserException) {
|
||||
val dialog: JetBrainsAccountDialog
|
||||
if (parentComponent.isShowing) {
|
||||
dialog = JetBrainsAccountDialog(parentComponent)
|
||||
}
|
||||
else {
|
||||
dialog = JetBrainsAccountDialog(project!!)
|
||||
}
|
||||
dialog.show()
|
||||
else if (e is NoSuchEAPUserException) {
|
||||
val dialog: JetBrainsAccountDialog
|
||||
if (parentComponent.isShowing) {
|
||||
dialog = JetBrainsAccountDialog(parentComponent)
|
||||
}
|
||||
ApplicationManager.getApplication().invokeLater { submit(event, parentComponent, callback, errorBean, description) }
|
||||
else {
|
||||
dialog = JetBrainsAccountDialog(project!!)
|
||||
}
|
||||
dialog.show()
|
||||
}
|
||||
ApplicationManager.getApplication().invokeLater { submit(event, parentComponent, callback, errorBean, description) }
|
||||
}
|
||||
}
|
||||
return true
|
||||
Reference in New Issue
Block a user