Skip to content

Commit e651a5e

Browse files
committed
implement new util class
1 parent 1a8abcc commit e651a5e

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

plugins/toolkit/jetbrains-core/src/software/aws/toolkits/jetbrains/core/explorer/AwsToolkitExplorerToolWindow.kt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,14 @@ class AwsToolkitExplorerToolWindow(
6262
val content = BorderLayoutPanel()
6363
setContent(content)
6464
val group = CredsComboBoxActionGroup(project)
65-
val toolWindow = this
6665

6766
toolbar = BorderLayoutPanel().apply {
68-
addToCenter(ConnectionActionToolbarBuilder.createToolbar(toolWindow, group))
67+
val actionToolbar = ActionManager.getInstance().createActionToolbar(ActionPlaces.TOOLBAR, group, true).apply {
68+
setTargetComponent(this@AwsToolkitExplorerToolWindow)
69+
}
70+
ActionToolbarLayoutUtil.setToolbarLayoutPolicy(actionToolbar)
71+
addToCenter(actionToolbar.component)
72+
6973
val actionManager = ActionManager.getInstance()
7074
val rightActionGroup = DefaultActionGroup(
7175
actionManager.getAction("aws.toolkit.toolwindow.credentials.rightGroup.more"),

0 commit comments

Comments
 (0)