remove CreateFromUsage icon usages

This commit is contained in:
Dmitry Batkovich
2018-06-29 10:56:53 +03:00
parent 95679d8c53
commit 89df0ff00c
3 changed files with 4 additions and 5 deletions
@@ -59,7 +59,7 @@ public class QuickFixAction extends AnAction implements CustomComponentAction {
}
protected QuickFixAction(String text, @NotNull InspectionToolWrapper toolWrapper) {
this(text, AllIcons.Actions.CreateFromUsage, null, toolWrapper);
this(text, AllIcons.Actions.IntentionBulb, null, toolWrapper);
}
protected QuickFixAction(String text, Icon icon, KeyStroke keyStroke, @NotNull InspectionToolWrapper toolWrapper) {
@@ -282,7 +282,7 @@ public class QuickFixAction extends AnAction implements CustomComponentAction {
final JButton button = new JButton(presentation.getText());
Icon icon = presentation.getIcon();
if (icon == null) {
icon = AllIcons.Actions.CreateFromUsage;
icon = AllIcons.Actions.IntentionBulb;
}
button.setEnabled(presentation.isEnabled());
button.setIcon(IconLoader.getTransparentIcon(icon, 0.75f));
@@ -165,7 +165,7 @@ public class QuickFixPreviewPanelFactory {
final ComboBoxAction fixComboBox = new ComboBoxAction() {
{
getTemplatePresentation().setText("Apply quick fixes" + (multipleDescriptors ? " to all the problems" : ""));
getTemplatePresentation().setIcon(AllIcons.Actions.CreateFromUsage);
getTemplatePresentation().setIcon(AllIcons.Actions.IntentionBulb);
setSmallVariant(false);
}
@@ -30,8 +30,7 @@ public class InvokeQuickFixAction extends AnAction {
private final InspectionResultsView myView;
public InvokeQuickFixAction(final InspectionResultsView view) {
super(InspectionsBundle.message("inspection.action.apply.quickfix"), InspectionsBundle.message("inspection.action.apply.quickfix.description"),
AllIcons.Actions.CreateFromUsage);
super(InspectionsBundle.message("inspection.action.apply.quickfix"), InspectionsBundle.message("inspection.action.apply.quickfix.description"), AllIcons.Actions.IntentionBulb);
myView = view;
registerCustomShortcutSet(ActionManager.getInstance().getAction(IdeActions.ACTION_SHOW_INTENTION_ACTIONS).getShortcutSet(),
myView.getTree());