when create custom component action on toolbar add a link to the action

This commit is contained in:
Konstantin Bulenkov
2018-04-04 19:01:07 +02:00
parent 3d5f03503c
commit c0c4785236
@@ -1,4 +1,4 @@
// Copyright 2000-2017 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.openapi.actionSystem.impl;
import com.intellij.icons.AllIcons;
@@ -358,6 +358,7 @@ public class ActionToolbarImpl extends JPanel implements ActionToolbar, QuickAct
if (customComponent == null) {
customComponent = ((CustomComponentAction)action).createCustomComponent(presentation);
presentation.putClientProperty(CustomComponentAction.CUSTOM_COMPONENT_PROPERTY, customComponent);
customComponent.putClientProperty(CustomComponentAction.CUSTOM_COMPONENT_ACTION_PROPERTY, action);
}
tweakActionComponentUI(customComponent);