Package org.rssowl.ui.internal.editors.feed.NewsFilter

Examples of org.rssowl.ui.internal.editors.feed.NewsFilter.Type


    searchScope.add(((FeedViewInput) fFeedView.getEditorInput()).getMark());
    ISearchField field = factory.createSearchField(INews.LOCATION, INews.class.getName());
    conditions.add(factory.createSearchCondition(field, SearchSpecifier.IS, ModelUtils.toPrimitive(searchScope)));

    /* Create Condition from Filter */
    Type filterType = fFeedView.getFilter().getType();
    switch (filterType) {
      case SHOW_NEW:
        field = factory.createSearchField(INews.STATE, INews.class.getName());
        conditions.add(factory.createSearchCondition(field, SearchSpecifier.IS, EnumSet.of(INews.State.NEW)));
        break;
View Full Code Here


    searchScope.add(((FeedViewInput) fFeedView.getEditorInput()).getMark());
    ISearchField field = factory.createSearchField(INews.LOCATION, INews.class.getName());
    conditions.add(factory.createSearchCondition(field, SearchSpecifier.SCOPE, ModelUtils.toPrimitive(searchScope)));

    /* Create Condition from Filter */
    Type filterType = fFeedView.getFilter().getType();
    switch (filterType) {
      case SHOW_ALL:
        if (!withQuickSearch) {
          field = factory.createSearchField(IEntity.ALL_FIELDS, INews.class.getName());
          conditions.add(factory.createSearchCondition(field, SearchSpecifier.CONTAINS_ALL, "")); //$NON-NLS-1$
View Full Code Here

    /* Check if ContentProvider was already disposed or RSSOwl shutting down */
    if (canceled(monitor))
      return;

    /* Determine Set of News States based on the filter */
    Type filter = fFilter.getType();
    Set<State> states;
    if (filter == Type.SHOW_NEW)
      states = EnumSet.of(INews.State.NEW);
    else if (filter == Type.SHOW_UNREAD)
      states = EnumSet.of(INews.State.NEW, INews.State.UNREAD, INews.State.UPDATED);
View Full Code Here

    return true;
  }

  private Triple<Boolean /* Filtered */, Boolean /* Searched */, List<NewsReference>> getNewsRefsFromInput(INewsMark input, NewsFilter newsFilter, Set<State> states, IProgressMonitor monitor) {
    Type filter = newsFilter.getType();

    /*
     * Optimization: If input is a saved search or bin with many results and the news filter is set to any condition that
     * is not scoped by news state, we get the results from a search to potentially get less results and so need less memory.
     */
 
View Full Code Here

    searchScope.add(((FeedViewInput) fFeedView.getEditorInput()).getMark());
    ISearchField field = factory.createSearchField(INews.LOCATION, INews.class.getName());
    conditions.add(factory.createSearchCondition(field, SearchSpecifier.SCOPE, ModelUtils.toPrimitive(searchScope)));

    /* Create Condition from Filter */
    Type filterType = fFeedView.getFilter().getType();
    switch (filterType) {
      case SHOW_ALL:
        if (!withQuickSearch) {
          field = factory.createSearchField(IEntity.ALL_FIELDS, INews.class.getName());
          conditions.add(factory.createSearchCondition(field, SearchSpecifier.CONTAINS_ALL, "")); //$NON-NLS-1$
View Full Code Here

  void doFilter(final NewsFilter.Type type, boolean refresh, boolean saveSettings) {
    doFilter(type, refresh, saveSettings, null);
  }

  void doFilter(final NewsFilter.Type type, boolean refresh, boolean saveSettings, final Runnable browserRefreshRunnable) {
    Type oldType = fFeedView.getFilter().getType();
    boolean noChange = (oldType == type);

    /* Remember last filter type */
    if (type != Type.SHOW_ALL)
      fLastFilterType = type;
View Full Code Here

TOP

Related Classes of org.rssowl.ui.internal.editors.feed.NewsFilter.Type

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.