mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
don't always show intention icon
This commit is contained in:
+1
-1
@@ -26,7 +26,7 @@ public class ShowHideIntentionIconLookupAction extends LookupElementAction {
|
||||
private static final String KEY = "completion.show.intention.icon";
|
||||
|
||||
public ShowHideIntentionIconLookupAction() {
|
||||
super(AllIcons.Actions.IntentionBulb, (Registry.is(KEY) ? "Never" : "Always") + " show intention icon");
|
||||
super(AllIcons.Actions.IntentionBulb, (Registry.is(KEY) ? "Never show" : "Show") + " intention icon");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -363,7 +363,9 @@ public class LookupImpl extends LightweightHint implements LookupEx, Disposable
|
||||
for (LookupActionProvider provider : LookupActionProvider.EP_NAME.getExtensions()) {
|
||||
provider.fillActions(element, this, consumer);
|
||||
}
|
||||
consumer.consume(new ShowHideIntentionIconLookupAction());
|
||||
if (!consumer.getResult().isEmpty()) {
|
||||
consumer.consume(new ShowHideIntentionIconLookupAction());
|
||||
}
|
||||
return consumer.getResult();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user