Misc: Partially revert cleanup (44138f499e) as accessing synthetic properties leads to IllegalAccessError
#KT-10653 Fixed
This commit is contained in:
+5
-5
@@ -163,7 +163,7 @@ class KotlinChangeSignatureDialog(
|
||||
override fun getTableEditor(table: JTable, item: ParameterTableModelItemBase<KotlinParameterInfo>): JBTableRowEditor? {
|
||||
return object : JBTableRowEditor() {
|
||||
private val components = ArrayList<JComponent>()
|
||||
private val nameEditor = EditorTextField(item.parameter.name, project, fileType)
|
||||
private val nameEditor = EditorTextField(item.parameter.name, getProject(), getFileType())
|
||||
|
||||
private fun updateNameEditor() {
|
||||
nameEditor.isEnabled = item.parameter != parametersTableModel.receiver
|
||||
@@ -183,8 +183,8 @@ class KotlinChangeSignatureDialog(
|
||||
val columnFinal = column
|
||||
|
||||
if (KotlinCallableParameterTableModel.isTypeColumn(columnInfo)) {
|
||||
val document = PsiDocumentManager.getInstance(project).getDocument(item.typeCodeFragment)
|
||||
editor = EditorTextField(document, project, fileType)
|
||||
val document = PsiDocumentManager.getInstance(getProject()).getDocument(item.typeCodeFragment)
|
||||
editor = EditorTextField(document, getProject(), getFileType())
|
||||
component = editor
|
||||
}
|
||||
else if (KotlinCallableParameterTableModel.isNameColumn(columnInfo)) {
|
||||
@@ -193,8 +193,8 @@ class KotlinChangeSignatureDialog(
|
||||
updateNameEditor()
|
||||
}
|
||||
else if (KotlinCallableParameterTableModel.isDefaultValueColumn(columnInfo) && isDefaultColumnEnabled()) {
|
||||
val document = PsiDocumentManager.getInstance(project).getDocument(item.defaultValueCodeFragment)
|
||||
editor = EditorTextField(document, project, fileType)
|
||||
val document = PsiDocumentManager.getInstance(getProject()).getDocument(item.defaultValueCodeFragment)
|
||||
editor = EditorTextField(document, getProject(), getFileType())
|
||||
component = editor
|
||||
}
|
||||
else if (KotlinPrimaryConstructorParameterTableModel.isValVarColumn(columnInfo)) {
|
||||
|
||||
+1
-1
@@ -175,7 +175,7 @@ class KotlinInplaceParameterIntroducer(
|
||||
|
||||
init {
|
||||
initFormComponents {
|
||||
addComponent(previewComponent)
|
||||
addComponent(getPreviewComponent())
|
||||
|
||||
val defaultValueCheckBox = NonFocusableCheckBox("Introduce default value")
|
||||
defaultValueCheckBox.isSelected = descriptor.withDefaultValue
|
||||
|
||||
Reference in New Issue
Block a user