Java 类com.intellij.ui.MutableCollectionComboBoxModel 实例源码

项目:intellij-ce-playground    文件:BrowserSelector.java   
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);
}
项目:consulo-xml    文件:BrowserSelector.java   
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);
}
项目:intellij-ce-playground    文件:ComboBoxModelEditor.java   
@NotNull
@Override
public MutableCollectionComboBoxModel<T> getModel() {
  return model;
}