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);