Misc: Partially revert cleanup (44138f499e) as accessing synthetic properties leads to IllegalAccessError

#KT-10653 Fixed
This commit is contained in:
Alexey Sedunov
2016-01-14 13:41:22 +03:00
parent 1d9bafe196
commit 6e5a2208c0
2 changed files with 6 additions and 6 deletions
@@ -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)) {
@@ -175,7 +175,7 @@ class KotlinInplaceParameterIntroducer(
init {
initFormComponents {
addComponent(previewComponent)
addComponent(getPreviewComponent())
val defaultValueCheckBox = NonFocusableCheckBox("Introduce default value")
defaultValueCheckBox.isSelected = descriptor.withDefaultValue