Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Intellij Community
Commits
1890e292
Commit
1890e292
authored
7 years ago
by
Alexander Koshevoy
Browse files
Options
Download
Email Patches
Plain Diff
PY-28370 KDoc for `PyAddSdkView.finish()` improved
parent
4422b786
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
python/src/com/jetbrains/python/sdk/add/PyAddSdkPanel.kt
+1
-2
python/src/com/jetbrains/python/sdk/add/PyAddSdkPanel.kt
python/src/com/jetbrains/python/sdk/add/PyAddSdkView.kt
+2
-1
python/src/com/jetbrains/python/sdk/add/PyAddSdkView.kt
with
3 additions
and
3 deletions
+3
-3
python/src/com/jetbrains/python/sdk/add/PyAddSdkPanel.kt
+
1
-
2
View file @
1890e292
...
...
@@ -48,8 +48,7 @@ abstract class PyAddSdkPanel : JPanel(), PyAddSdkView {
override
fun
next
()
=
throw
UnsupportedOperationException
()
// TODO could we return `null`?
override
fun
finish
():
Sdk
=
getOrCreateSdk
()
?:
throw
IllegalStateException
()
override
fun
finish
():
Sdk
=
getOrCreateSdk
()
?:
throw
IllegalStateException
(
"Failed to create Python interpreter"
)
override
abstract
val
panelName
:
String
override
val
icon
:
Icon
=
PythonIcons
.
Python
.
Python
...
...
This diff is collapsed.
Click to expand it.
python/src/com/jetbrains/python/sdk/add/PyAddSdkView.kt
+
2
-
1
View file @
1890e292
...
...
@@ -42,7 +42,8 @@ interface PyAddSdkView {
fun
next
()
/**
* Creates SDK and returns it.
* Creates SDK and returns it. The returned SDK could be later obtained by
* [getOrCreateSdk] method.
*
* If some error occurs an [Exception] is thrown.
*
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help