mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
when create custom component action on toolbar add a link to the action
This commit is contained in:
+2
-1
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user