/* Open */
case OPEN: {
IStructuredSelection selection = OwlUI.getActiveFeedViewSelection();
FeedView feedView = OwlUI.getActiveFeedView();
if (selection != null && !selection.isEmpty() && feedView != null) {
OpenInBrowserAction action = new OpenInBrowserAction(selection, WebBrowserContext.createFrom(selection, feedView));
action.run();
}
break;
}
/* Save As */
case SAVE_AS: {
FeedView activeFeedView = OwlUI.getActiveFeedView();
if (activeFeedView != null)
activeFeedView.doSaveAs();
break;
}
/* Print */
case PRINT: {
FeedView activeFeedView = OwlUI.getActiveFeedView();
if (activeFeedView != null)
activeFeedView.print();
break;
}
/* Fullscreen */
case FULLSCREEN: {
OwlUI.toggleFullScreen();
wrappingAction.setChecked(fWindow.getShell().getFullScreen());
break;
}
/* Toggle Bookmarks View */
case BOOKMARK_VIEW: {
OwlUI.toggleBookmarks();
break;
}
/* Sticky */
case STICKY: {
IStructuredSelection selection = OwlUI.getActiveFeedViewSelection();
if (selection != null && !selection.isEmpty())
new MakeNewsStickyAction(selection).run();
break;
}
/* Find more Feeds */
case FIND_MORE_FEEDS: {
SearchFeedsAction action = new SearchFeedsAction();
action.init(fWindow);
action.run(null);
break;
}
/* Downloads & Activity */
case ACTIVITIES: {
ShowActivityAction action = new ShowActivityAction();
action.init(fWindow);
action.run(null);
break;
}
/* Preferences */
case PREFERENCES: {
IWorkbenchAction action = ActionFactory.PREFERENCES.create(fWindow);
action.run();
break;
}
/* History */
case HISTORY: {