Examples of FeedView


Examples of org.rssowl.ui.internal.editors.feed.FeedView

   *
   * @return the selection from the first active <code>FeedView</code> from the
   * PlatformUI facade or <code>StructuredSelection.EMPTY</code> if none.
   */
  public static IStructuredSelection getActiveFeedViewSelection() {
    FeedView feedview = getActiveFeedView();
    if (feedview == null)
      return StructuredSelection.EMPTY;

    ISelectionProvider selectionProvider = feedview.getSite().getSelectionProvider();
    if (selectionProvider == null)
      return StructuredSelection.EMPTY;

    return (IStructuredSelection) selectionProvider.getSelection();
  }
View Full Code Here

Examples of org.rssowl.ui.internal.editors.feed.FeedView

            break;
          }

          /* Otherwise replace the input in the first active feed view */
          FeedView activeFeedView = OwlUI.getFirstActiveFeedView();
          if (activeFeedView != null) {
            activeFeedView.setInput(input);
            if (activateEditor)
              page.activate(activeFeedView);
            else
              page.bringToTop(activeFeedView);
            break;
View Full Code Here

Examples of org.rssowl.ui.internal.editors.feed.FeedView

  /*
   * @see org.eclipse.core.commands.IHandler#execute(org.eclipse.core.commands.ExecutionEvent)
   */
  public Object execute(ExecutionEvent event) {
    FeedView activeFeedView = OwlUI.getActiveFeedView();
    if (activeFeedView != null)
      activeFeedView.toggleNewspaperLayout();

    return null; //As per JavaDoc
  }
View Full Code Here

Examples of org.rssowl.ui.internal.editors.feed.FeedView

  /*
   * @see org.eclipse.core.commands.AbstractHandler#execute(org.eclipse.core.commands.ExecutionEvent)
   */
  public Object execute(ExecutionEvent event) {
    FeedView activeFeedView = OwlUI.getActiveFeedView();
    if (activeFeedView != null && activeFeedView.isBrowserShowingNews())
      OwlUI.zoomNewsText(true, false);

    return null; //As per JavaDoc
  }
View Full Code Here

Examples of org.rssowl.ui.internal.editors.feed.FeedView

  /*
   * @see org.eclipse.core.commands.AbstractHandler#execute(org.eclipse.core.commands.ExecutionEvent)
   */
  public Object execute(ExecutionEvent event) {
    FeedView activeFeedView = OwlUI.getActiveFeedView();
    if (activeFeedView != null && activeFeedView.isBrowserShowingNews())
      OwlUI.zoomNewsText(false, false);

    return null; //As per JavaDoc
  }
View Full Code Here

Examples of org.rssowl.ui.internal.editors.feed.FeedView

  /*
   * @see org.eclipse.core.commands.AbstractHandler#execute(org.eclipse.core.commands.ExecutionEvent)
   */
  public Object execute(ExecutionEvent event) {
    FeedView activeFeedView = OwlUI.getActiveFeedView();
    if (activeFeedView != null && activeFeedView.isBrowserShowingNews())
      OwlUI.zoomNewsText(false, true);

    return null; //As per JavaDoc
  }
View Full Code Here

Examples of org.rssowl.ui.internal.editors.feed.FeedView

    /* Handle case where active feed view is prefered for 1 news */
    if (fPreferActiveFeedView && newsToOpen.size() == 1) {
      INews news = newsToOpen.get(0);

      /* Active Feedview contains News */
      FeedView feedView = OwlUI.getActiveFeedView();
      if (feedView != null && feedView.contains(news)) {

        /* Activate and Select News */
        feedView.getSite().getPage().activate(feedView);
        feedView.setSelection(new StructuredSelection(news));

        /* Reveal in Bookmark Explorer */
        IFolderChild child = ((FeedViewInput) feedView.getEditorInput()).getMark();
        if (child instanceof FolderNewsMark)
          child = ((FolderNewsMark) child).getFolder();

        reveal(child);

View Full Code Here

Examples of org.rssowl.ui.internal.editors.feed.FeedView

    PerformAfterInputSet perform = PerformAfterInputSet.selectNews(new NewsReference(news.getId()));
    perform.setActivate(false);

    /* Open this Bookmark */
    FeedViewInput fvInput = new FeedViewInput(newsmark, perform);
    FeedView feedview = null;

    /* First check if input already shown */
    IEditorPart existingEditor = page.findEditor(fvInput);
    if (existingEditor != null && existingEditor instanceof FeedView) {
      feedview = (FeedView) existingEditor;

      /* Set Selection and bring to front */
      existingEditor.getSite().getPage().activate(existingEditor);
      feedview.setSelection(new StructuredSelection(news));
    }

    /* Otherwise open the Input in a new Editor */
    else
      OwlUI.openInFeedView(page, new StructuredSelection(newsmark), true, false, perform);
View Full Code Here

Examples of org.rssowl.ui.internal.editors.feed.FeedView

  private void onMinimize() {

    /* Mark displayed News as Read on Minimize if set in Preferences */
    IEditorPart activeEditor = OwlUI.getActiveEditor();
    if (activeEditor != null && activeEditor instanceof FeedView) {
      FeedView feedView = (FeedView) activeEditor;
      feedView.notifyUIEvent(FeedView.UIEvent.MINIMIZE);
    }

    /* Trigger synchronization as the user is leaving the RSSOwl window */
    Controller.getDefault().getSyncService().synchronize();
  }
View Full Code Here

Examples of org.rssowl.ui.internal.editors.feed.FeedView

  private void onClose() {

    /* Mark new News as Unread on Close */
    IEditorPart activeEditor = OwlUI.getActiveEditor();
    if (activeEditor != null && activeEditor instanceof FeedView) {
      FeedView feedView = (FeedView) activeEditor;
      feedView.notifyUIEvent(FeedView.UIEvent.CLOSE);
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.