schemes editor: gear icon tooltip

This commit is contained in:
Gregory.Shrago
2018-07-13 17:30:39 +03:00
parent c8478ab534
commit 9e7cf34109
@@ -284,6 +284,7 @@ public abstract class AbstractSchemesPanel<T extends Scheme, InfoComponent exten
private final Component myParentComponent;
ShowSchemesActionsListAction(Collection<AnAction> actions, Component component) {
super("Show Scheme Actions", "Show Scheme Actions", AllIcons.General.Gear);
myParentComponent = component;
myActionGroup = new DefaultActionGroup(actions.toArray(AnAction.EMPTY_ARRAY));
}
@@ -291,7 +292,6 @@ public abstract class AbstractSchemesPanel<T extends Scheme, InfoComponent exten
@Override
public void update(AnActionEvent e) {
Presentation p = e.getPresentation();
p.setIcon(AllIcons.General.Gear);
p.setEnabledAndVisible(isEnabledAndVisible(e));
}