public abstract class LRUPopupBuilder<T>
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
LRUPopupBuilder(Project project,
java.lang.String title) |
Modifier and Type | Method and Description |
---|---|
ListPopup |
buildPopup() |
static ListPopup |
forFileLanguages(Project project,
Language selection,
Consumer<? super Language> onChosen)
Deprecated.
|
static ListPopup |
forFileLanguages(Project project,
java.lang.String title,
java.lang.Iterable<? extends VirtualFile> files,
PerFileMappings<Language> mappings) |
static ListPopup |
forFileLanguages(Project project,
java.lang.String title,
Language selection,
Consumer<? super Language> onChosen) |
LRUPopupBuilder<T> |
forValues(java.lang.Iterable<? extends T> items) |
abstract java.lang.String |
getDisplayName(T t) |
abstract javax.swing.Icon |
getIcon(T t) |
abstract java.lang.String |
getStorageId(T t) |
static LRUPopupBuilder<Language> |
languagePopupBuilder(Project project,
java.lang.String title) |
LRUPopupBuilder<T> |
onChosen(Consumer<? super T> consumer) |
LRUPopupBuilder<T> |
withComparator(java.util.Comparator<? super T> comparator) |
LRUPopupBuilder<T> |
withExtra(T extra,
java.lang.String displayName,
javax.swing.Icon icon) |
LRUPopupBuilder<T> |
withSelection(T t) |
protected LRUPopupBuilder(Project project, java.lang.String title)
public static ListPopup forFileLanguages(Project project, java.lang.String title, java.lang.Iterable<? extends VirtualFile> files, PerFileMappings<Language> mappings)
@Deprecated public static ListPopup forFileLanguages(Project project, Language selection, Consumer<? super Language> onChosen)
forFileLanguages(Project, String, Language, Consumer)
public static ListPopup forFileLanguages(Project project, java.lang.String title, Language selection, Consumer<? super Language> onChosen)
public static LRUPopupBuilder<Language> languagePopupBuilder(Project project, java.lang.String title)
public abstract java.lang.String getDisplayName(T t)
public abstract java.lang.String getStorageId(T t)
public abstract javax.swing.Icon getIcon(T t)
public LRUPopupBuilder<T> forValues(java.lang.Iterable<? extends T> items)
public LRUPopupBuilder<T> withSelection(T t)
public LRUPopupBuilder<T> withExtra(T extra, java.lang.String displayName, javax.swing.Icon icon)
public LRUPopupBuilder<T> onChosen(Consumer<? super T> consumer)
public LRUPopupBuilder<T> withComparator(java.util.Comparator<? super T> comparator)
public ListPopup buildPopup()