private static MutableCollectionComboBoxModel<WebBrowser> createBrowsersComboModel(@NotNull Condition<WebBrowser> browserCondition) { List<WebBrowser> list = new ArrayList<WebBrowser>(); if (browserCondition.value(null)) { list.add(null); } list.addAll(WebBrowserManager.getInstance().getBrowsers(browserCondition)); return new MutableCollectionComboBoxModel<WebBrowser>(list); }
private static MutableCollectionComboBoxModel<WebBrowser> createBrowsersComboModel(@NotNull Condition<WebBrowser> browserCondition) { List<WebBrowser> list = new ArrayList<WebBrowser>(); if(browserCondition.value(null)) { list.add(null); } list.addAll(WebBrowserManager.getInstance().getBrowsers(browserCondition)); return new MutableCollectionComboBoxModel<WebBrowser>(list); }
@NotNull @Override public MutableCollectionComboBoxModel<T> getModel() { return model; }