else if (perform.getType() == PerformAfterInputSet.Types.SELECT_UNREAD_NEWS)
navigate(false, true, true, true);
/* Select specific News */
else if (perform.getType() == PerformAfterInputSet.Types.SELECT_SPECIFIC_NEWS)
setSelection(new StructuredSelection(perform.getNewsToSelect()));
/* Make sure to activate this FeedView in case of an action */
if (perform.shouldActivate())
fEditorSite.getPage().activate(fEditorSite.getPart());
}
/* DB Roundtrips done in the background */
JobRunner.runInBackgroundThread(new Runnable() {
public void run() {
if (fInput == null)
return;
IMark mark = fInput.getMark();
/* Trigger a reload if this is the first time open */
if (mark instanceof IBookMark) {
IBookMark bookmark = (IBookMark) mark;
if ((bookmark.getLastVisitDate() == null && !fContentProvider.hasCachedNews()))
new ReloadTypesAction(new StructuredSelection(mark), getEditorSite().getShell()).run();
}
/* Update some fields due to displaying the mark */
if (mark instanceof ISearchMark) {
DynamicDAO.getDAO(ISearchMarkDAO.class).visited((ISearchMark) mark);