Package org.rssowl.ui.internal.actions

Examples of org.rssowl.ui.internal.actions.OpenNewsAction


        {

          /* Open in FeedView */
          manager.add(new Separator("internalopen")); //$NON-NLS-1$
          if (!selection.isEmpty())
            manager.appendToGroup("internalopen", new OpenNewsAction(selection, getShell())); //$NON-NLS-1$

          manager.add(new GroupMarker("open")); //$NON-NLS-1$

          /* Show only when internal browser is used */
          if (!selection.isEmpty() && !fPreferences.getBoolean(DefaultPreferences.USE_CUSTOM_EXTERNAL_BROWSER) && !fPreferences.getBoolean(DefaultPreferences.USE_DEFAULT_EXTERNAL_BROWSER))
View Full Code Here


          /* Open in FeedView */
          if (!fIsEmbedded) {
            manager.add(new Separator("internalopen")); //$NON-NLS-1$
            if (!fCurrentSelection.isEmpty()) {
              manager.appendToGroup("internalopen", new OpenNewsAction(fCurrentSelection, fBrowser.getControl().getShell())); //$NON-NLS-1$
              useSeparator = false;
            }
          }

          manager.add(useSeparator ? new Separator("open") : new GroupMarker("open")); //$NON-NLS-1$ //$NON-NLS-2$
View Full Code Here

        ScoredNews scoredNews = (ScoredNews) selectedElement;
        selectedNews.add(scoredNews.getNews());
      }

      /* Open News */
      new OpenNewsAction(new StructuredSelection(selectedNews), getShell()).run();
    }
  }
View Full Code Here

        {

          /* Open in FeedView */
          manager.add(new Separator("internalopen")); //$NON-NLS-1$
          if (!selection.isEmpty())
            manager.appendToGroup("internalopen", new OpenNewsAction(selection, getShell())); //$NON-NLS-1$

          manager.add(new GroupMarker("open")); //$NON-NLS-1$

          /* Show only when internal browser is used */
          if (!selection.isEmpty() && !OwlUI.useExternalBrowser())
View Full Code Here

        manager.add(new Separator(IWorkbenchActionConstants.MB_ADDITIONS));

        /* Show in Feed (only for searchmarks) */
        if (fViewer.getInput() instanceof SearchMarkReference && !selection.isEmpty() && !isEntityGroupSelected) {
          OpenNewsAction showInFeedAction = new OpenNewsAction(selection);
          showInFeedAction.setText(Messages.NewsTableControl_SHOW_IN_FEED);
          manager.appendToGroup("open", showInFeedAction); //$NON-NLS-1$
        }
      }
    });

View Full Code Here

    /* Open Link in Feed View */
    else {
      INews news = fNewsReference.resolve();
      if (news != null) {
        OpenNewsAction action = new OpenNewsAction(new StructuredSelection(news));
        action.setRestoreWindow(true);
        action.setPreferActiveFeedView();
        action.run();
      }
    }
  }
View Full Code Here

TOP

Related Classes of org.rssowl.ui.internal.actions.OpenNewsAction

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.