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

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


  /*
   * @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

  /*
   * @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

  /*
   * @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

    /* 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

    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

  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

  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

    }

    private boolean navigateOnActiveFeedView() {

      /* Get active FeedView if any */
      FeedView activeFeedView = OwlUI.getActiveFeedView();

      /* Run on active FeedView if any */
      if (activeFeedView != null) {
        boolean success = activeFeedView.navigate(true, false, fType.isNext(), fType.isUnread());

        /* For unread & next news, consider all news of the active feed */
        if (!success && fType.isNewsScoped() && fType.isUnread() && fType.isNext())
          success = activeFeedView.navigate(false, false, fType.isNext(), fType.isUnread());

        if (success) {
          IWorkbenchPage page = activeFeedView.getSite().getPage();
          page.activate(activeFeedView.getSite().getPart());
          page.activate(activeFeedView);

          return true;
        }
      }
View Full Code Here

    private boolean navigateOnModel() {
      List<IFolderChild> startingNodes = new ArrayList<IFolderChild>();

      /* Check Current Active FeedView */
      FeedView activeFeedView = OwlUI.getActiveFeedView();
      if (activeFeedView != null) {
        IEditorInput input = activeFeedView.getEditorInput();
        if (input != null && input instanceof FeedViewInput) {
          INewsMark mark = ((FeedViewInput) input).getMark();
          if (mark != null)
            startingNodes.add(mark instanceof FolderNewsMark ? ((FolderNewsMark) mark).getFolder() : mark);
        }
View Full Code Here

TOP

Related Classes of org.rssowl.ui.internal.editors.feed.FeedView

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.