Skip to content

Commit

Permalink
Merge pull request #50 from bobi/dev
Browse files Browse the repository at this point in the history
update setters to properties
  • Loading branch information
bobi authored Aug 29, 2022
2 parents 4c3089b + 4903c89 commit 13fa7fa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ class AemConsoleEditorToolbar(project: Project, fileEditor: FileEditor) : Editor
val actionManager = ActionManager.getInstance()

val leftToolbar = actionManager.createActionToolbar("LeftAemGroovyConsoleActionGroup", leftActionGroup, true).also {
it.setTargetComponent(this)
it.targetComponent = this
}

val rightToolbar = actionManager.createActionToolbar("RightAemGroovyConsoleActionGroup", rightActionGroup, true).also {
it.setTargetComponent(this)
it.targetComponent = this
}

this.add(leftToolbar.component, BorderLayout.WEST)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ class AemGroovyConsoleScriptExecutor(private val project: Project) {

val toolbar = ActionManager.getInstance()
.createActionToolbar("AemGroovyConsoleExecutorToolbar", toolbarActions, false).also {
it.setTargetComponent(consoleComponent)
it.targetComponent = consoleComponent
}

panel.add(consoleComponent, BorderLayout.CENTER)
Expand Down

0 comments on commit 13fa7fa

Please sign in to comment.