OpenNewsAction
INews
FeedView
18681869187018711872187318741875187618771878
{ /* 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))
416417418419420421422423424425426
/* 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$
18601861186218631864186518661867
ScoredNews scoredNews = (ScoredNews) selectedElement; selectedNews.add(scoredNews.getNews()); } /* Open News */ new OpenNewsAction(new StructuredSelection(selectedNews), getShell()).run(); } }
18771878187918801881188218831884188518861887
{ /* 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())
101710181019102010211022102310241025102610271028
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$ } } });
200201202203204205206207208209210211
/* 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(); } } }