Package org.rssowl.ui.internal.views.explorer

Examples of org.rssowl.ui.internal.views.explorer.BookMarkExplorer


    }

    private boolean navigateOnOpenExplorer() {

      /* Try finding the open Explorer for BookMarks */
      BookMarkExplorer bookmarkExplorer = OwlUI.getOpenedBookMarkExplorer();
      if (bookmarkExplorer == null)
        return false;

      /* Navigate on Explorer */
      bookmarkExplorer.navigate(fType.isNewsScoped(), fType.isNext(), fType.isUnread());

      return true; //Avoid navigation on Model if Explorer is Opened
    }
View Full Code Here


    /* Ask for a restart if preferences have been imported */
    if (importPreferences && preferences != null && !preferences.isEmpty()) {
      boolean restart = MessageDialog.openQuestion(getShell(), Messages.ImportWizard_RESTART_RSSOWL, Messages.ImportWizard_RESTART_RSSOWL_INFO);
      if (restart) {
        BookMarkExplorer explorer = OwlUI.getOpenedBookMarkExplorer();
        if (explorer != null)
          explorer.saveStateOnDispose(false);

        Controller.getDefault().restart();
        return true;
      }
    }

    /* Reveal and Select Target Folder */
    if (target != null && target.getParent() != null) {
      BookMarkExplorer explorer = OwlUI.getOpenedBookMarkExplorer();
      if (explorer != null)
        explorer.reveal(target, true);
    }

    /* Reload Imported Elements */
    new ReloadTypesAction(new StructuredSelection(folderChilds), OwlUI.getPrimaryShell()).run();

View Full Code Here

    }

    private boolean navigateOnOpenExplorer() {

      /* Try finding the open Explorer for BookMarks */
      BookMarkExplorer bookmarkExplorer = OwlUI.getOpenBookMarkExplorer();
      if (bookmarkExplorer == null)
        return false;

      /* Navigate on Explorer */
      if (bookmarkExplorer.navigate(fType.isNewsScoped(), fType.isNext(), fType.isUnread()))
        return true;

      return false;
    }
View Full Code Here

        lastOpenedNewsMark = newsmark;
      }
    }

    /* Reveal Newsmark of last opened News */
    BookMarkExplorer explorer = OwlUI.getOpenedBookMarkExplorer();
    if (explorer != null && lastOpenedNewsMark != null && !explorer.isLinkingEnabled()) {
      explorer.reveal(lastOpenedNewsMark, false);
    }
  }
View Full Code Here

    /* Export to given File */
    if (string != null) {

      /* Enforce that Explorer Settings are up to date if necessary */
      if (fExportOptionsPage.getExportOptions() != null && fExportOptionsPage.getExportOptions().contains(Options.EXPORT_PREFERENCES)) {
        BookMarkExplorer explorer = OwlUI.getOpenedBookMarkExplorer();
        if (explorer != null)
          explorer.saveState();
      }

      /* Export */
      File file = new File(string);
      try {
View Full Code Here

    /* Ask for a restart if preferences have been imported */
    if (importPreferences && preferences != null && !preferences.isEmpty()) {
      boolean restart = MessageDialog.openQuestion(getShell(), Messages.ImportWizard_RESTART_RSSOWL, Messages.ImportWizard_RESTART_RSSOWL_INFO);
      if (restart) {
        BookMarkExplorer explorer = OwlUI.getOpenedBookMarkExplorer();
        if (explorer != null)
          explorer.saveStateOnDispose(false);

        Controller.getDefault().restart();
        return true;
      }
    }

    /* Reveal and Select Target Folder */
    if (target != null && target.getParent() != null) {
      BookMarkExplorer explorer = OwlUI.getOpenedBookMarkExplorer();
      if (explorer != null)
        explorer.reveal(target, true);
    }

    /* Reload Imported Elements */
    new ReloadTypesAction(new StructuredSelection(folderChilds), OwlUI.getPrimaryShell()).run();

View Full Code Here

  /*
   * @see org.eclipse.core.commands.IHandler#execute(org.eclipse.core.commands.ExecutionEvent)
   */
  public Object execute(ExecutionEvent event) {
    BookMarkExplorer bookMarkExplorer = OwlUI.getOpenedBookMarkExplorer();
    if (bookMarkExplorer != null) {
      IViewSite site = (IViewSite) bookMarkExplorer.getSite();
      ActionContributionItem item = (ActionContributionItem) site.getActionBars().getToolBarManager().find(BookMarkExplorer.NEXT_SET_ACTION);
      if (item != null && item.getAction().isEnabled())
        item.getAction().run();
    }

View Full Code Here

  /*
   * @see org.eclipse.core.commands.IHandler#execute(org.eclipse.core.commands.ExecutionEvent)
   */
  public Object execute(ExecutionEvent event) {
    BookMarkExplorer bookMarkExplorer = OwlUI.getOpenedBookMarkExplorer();
    if (bookMarkExplorer != null) {
      IViewSite site = (IViewSite) bookMarkExplorer.getSite();
      ActionContributionItem item = (ActionContributionItem) site.getActionBars().getToolBarManager().find(BookMarkExplorer.PREVIOUS_SET_ACTION);
      if (item != null && item.getAction().isEnabled())
        item.getAction().run();
    }

View Full Code Here

    /* Open Search and Reload Bookmarks that have never been reloaded before */
    if (locationSearch != null) {
      StructuredSelection selection = new StructuredSelection(locationSearch);

      /* Ensure Selected */
      BookMarkExplorer explorer = OwlUI.getOpenedBookMarkExplorer();
      if (explorer != null)
        explorer.getViewSite().getSelectionProvider().setSelection(selection);

      /* Open */
      OwlUI.openInFeedView(fTargetPart.getSite().getPage(), selection);

      /* Reload if necessary */
 
View Full Code Here

        if (dialog.open() == IDialogConstants.OK_ID) {
          if (dialog.entitiesUpdated() && selectedEntities.size() == 1) { // Name can only be changed on single entity
            IEntity entity = selectedEntities.get(0);
            if (entity instanceof IFolderChild && ((IFolderChild) entity).getParent() != null) {
              IFolder parent = ((IFolderChild) entity).getParent();
              BookMarkExplorer explorer = OwlUI.getOpenedBookMarkExplorer();
              if (explorer != null && explorer.isSortByNameEnabled())
                ((StructuredViewer) explorer.getViewSite().getSelectionProvider()).refresh(parent);
            }
          }
        }
      }
    }
View Full Code Here

TOP

Related Classes of org.rssowl.ui.internal.views.explorer.BookMarkExplorer

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.