This commit is contained in:
Valentin Kipyatkov
2015-04-13 13:41:01 +03:00
parent f02e2b3ed6
commit 8b5be4febc
@@ -40,11 +40,11 @@ class ImportSettingsPanelWrapper(settings: CodeStyleSettings) : CodeStyleAbstrac
private fun CodeStyleSettings.kotlinSettings() = getCustomSettings(javaClass<JetCodeStyleSettings>()) private fun CodeStyleSettings.kotlinSettings() = getCustomSettings(javaClass<JetCodeStyleSettings>())
override fun getRightMargin() = 0 override fun getRightMargin() = throw UnsupportedOperationException()
override fun createHighlighter(scheme: EditorColorsScheme) = null override fun createHighlighter(scheme: EditorColorsScheme) = throw UnsupportedOperationException()
override fun getFileType() = JavaFileType.INSTANCE override fun getFileType() = throw UnsupportedOperationException()
override fun getPreviewText() = null override fun getPreviewText() = null
@@ -114,10 +114,10 @@ class ImportSettingsPanel(private val commonSettings: CodeStyleSettings) : JPane
add(rbUseSingleImports, true) add(rbUseSingleImports, true)
add(rbUseStarImports, true) add(rbUseStarImports, true)
add(JPanel(GridBagLayout()).init { add(JPanel(GridBagLayout()).init {
val constrains = GridBagConstraints().init { gridx = GridBagConstraints.RELATIVE } val constraints = GridBagConstraints().init { gridx = GridBagConstraints.RELATIVE }
add(rbUseStarImportsIfMore, constrains) add(rbUseStarImportsIfMore, constraints)
add(starImportLimitField, constrains) add(starImportLimitField, constraints)
add(JLabel(" names used"), constrains.init { fill = GridBagConstraints.HORIZONTAL; weightx = 1.0 }) add(JLabel(" names used"), constraints.init { fill = GridBagConstraints.HORIZONTAL; weightx = 1.0 })
}, true) }, true)
add(cbImportNestedClasses) add(cbImportNestedClasses)