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

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


        /* Select this News in the FeedView */
        PerformAfterInputSet perform = PerformAfterInputSet.selectNews(new NewsReference(news.getId()));
        perform.setActivate(false);

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

          /* First check if input already shown */
          IEditorPart existingEditor = page.findEditor(fvInput);
View Full Code Here


        /* Open in existing Feedview if set */
        if (reuseFeedView) {
          FeedView activeFeedView = OwlUI.getFirstActiveFeedView();
          if (activeFeedView != null) {
            activeFeedView.setInput(new FeedViewInput(mark));
            break;
          }
        }

        /* Otherwise simply open */
        try {
          fViewSite.getPage().openEditor(new FeedViewInput(mark), FeedView.ID, activateEditor);
          openedEditors++;
        } catch (PartInitException e) {
          Activator.getDefault().getLog().log(e.getStatus());
        }
      }
View Full Code Here

      return;

    /* Try to select and reveal editor input in the Explorer */
    IEditorInput editorInput = part.getEditorInput();
    if (editorInput instanceof FeedViewInput) {
      FeedViewInput feedViewInput = (FeedViewInput) editorInput;
      IMark mark = feedViewInput.getMark();

      /* Change Set if required */
      IFolderChild child = mark;
      while (child.getParent() != null)
        child = child.getParent();
View Full Code Here

      if (newsScoped && unread)
        perform = PerformAfterInputSet.SELECT_UNREAD_NEWS;
      else if (newsScoped)
        perform = PerformAfterInputSet.SELECT_FIRST_NEWS;

      IEditorPart feedview = fViewSite.getPage().openEditor(new FeedViewInput(mark, perform), FeedView.ID, true);
      feedview.getSite().getPage().activate(feedview.getSite().getPart());
    } catch (PartInitException e) {
      Activator.getDefault().getLog().log(e.getStatus());
    }
  }
View Full Code Here

    for (int i = 0; i < list.size() && openedEditors < maxOpenEditors; i++) {
      Object object = list.get(i);
      if (object instanceof IMark) {
        IMark mark = ((IMark) object);
        try {
          fViewSite.getPage().openEditor(new FeedViewInput(mark), FeedView.ID, activateEditor);
          openedEditors++;
        } catch (PartInitException e) {
          Activator.getDefault().getLog().log(e.getStatus());
        }
      }
View Full Code Here

      return;

    /* Try to select and reveal editor input in the Explorer */
    IEditorInput editorInput = part.getEditorInput();
    if (editorInput instanceof FeedViewInput) {
      FeedViewInput feedViewInput = (FeedViewInput) editorInput;
      fViewer.setSelection(new StructuredSelection(feedViewInput.getMark()), true);
    }
  }
View Full Code Here

      if (newsScoped && unread)
        perform = PerformAfterInputSet.SELECT_UNREAD_NEWS;
      else if (newsScoped)
        perform = PerformAfterInputSet.SELECT_FIRST_NEWS;

      IEditorPart feedview = fViewSite.getPage().openEditor(new FeedViewInput(mark, perform), FeedView.ID, true);
      feedview.getSite().getPage().activate(feedview.getSite().getPart());
    } catch (PartInitException e) {
      Activator.getDefault().getLog().log(e.getStatus());
    }
  }
View Full Code Here

   */
  @Override
  public void run() {
    FeedView activeFeedView = OwlUI.getActiveFeedView();
    if (activeFeedView != null) {
      FeedViewInput input = (FeedViewInput) activeFeedView.getEditorInput();
      new MarkTypesReadAction(new StructuredSelection(input.getMark())).run();
    }
  }
View Full Code Here

  public static IEditorReference findEditor(IEditorReference[] editorReferences, Object input) {
    for (IEditorReference reference : editorReferences) {
      try {
        IEditorInput editorInput = reference.getEditorInput();
        if (editorInput instanceof FeedViewInput) {
          FeedViewInput feedViewInput = (FeedViewInput) editorInput;
          if (feedViewInput.getMark().equals(input))
            return reference;
        }
      } catch (PartInitException e) {
        Activator.getDefault().getLog().log(e.getStatus());
      }
View Full Code Here

        /* Display selected Feed since its existing already */
        else {
          IWorkbenchPage page = OwlUI.getPage();
          if (page != null) {
            try {
              page.openEditor(new FeedViewInput(existingBookMark), FeedView.ID, OpenStrategy.activateOnOpen());
            } catch (PartInitException e) {
              Activator.getDefault().getLog().log(e.getStatus());
            }
          }
        }
View Full Code Here

TOP

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

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.