mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Don't hide 3 or less "unused" items in "+" popup. Action text has been updated.
This commit is contained in:
@@ -27,10 +27,7 @@ import com.intellij.openapi.options.*;
|
||||
import com.intellij.openapi.project.Project;
|
||||
import com.intellij.openapi.ui.Messages;
|
||||
import com.intellij.openapi.ui.Splitter;
|
||||
import com.intellij.openapi.ui.popup.JBPopupFactory;
|
||||
import com.intellij.openapi.ui.popup.ListPopup;
|
||||
import com.intellij.openapi.ui.popup.ListPopupStep;
|
||||
import com.intellij.openapi.ui.popup.PopupStep;
|
||||
import com.intellij.openapi.ui.popup.*;
|
||||
import com.intellij.openapi.ui.popup.util.BaseListPopupStep;
|
||||
import com.intellij.openapi.util.Comparing;
|
||||
import com.intellij.openapi.util.IconLoader;
|
||||
@@ -1107,7 +1104,7 @@ class RunConfigurable extends BaseConfigurable {
|
||||
@Override
|
||||
@NotNull
|
||||
public String getTextFor(final ConfigurationType type) {
|
||||
return type != null ? type.getDisplayName() : "(" + hiddenCount + " more items)";
|
||||
return type != null ? type.getDisplayName() : hiddenCount + " items more (unused)...";
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -1199,7 +1196,7 @@ class RunConfigurable extends BaseConfigurable {
|
||||
applicableTypes.add(type);
|
||||
}
|
||||
}
|
||||
if (applicableTypes.size() < allTypes.length - 1) {
|
||||
if (applicableTypes.size() < allTypes.length - 3) {
|
||||
return applicableTypes;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user