/* Go to Next News */
else if (NEXT_NEWS_HANDLER_ID.equals(id)) {
delayInUI(new Runnable() {
public void run() {
NavigationActionFactory factory = new NavigationActionFactory();
try {
factory.setInitializationData(null, null, NavigationActionFactory.NavigationActionType.NEXT_FEED.getId());
IWorkbenchWindowActionDelegate action = (IWorkbenchWindowActionDelegate) factory.create();
action.run(null);
} catch (CoreException e) {
/* Ignore */
}
}
});
}
/* Go to Next Unread News */
else if (NEXT_UNREAD_NEWS_HANDLER_ID.equals(id)) {
delayInUI(new Runnable() {
public void run() {
NavigationActionFactory factory = new NavigationActionFactory();
try {
factory.setInitializationData(null, null, NavigationActionFactory.NavigationActionType.NEXT_UNREAD_FEED.getId());
IWorkbenchWindowActionDelegate action = (IWorkbenchWindowActionDelegate) factory.create();
action.run(null);
} catch (CoreException e) {
/* Ignore */
}
}
});
}
/* Go to Previous News */
else if (PREVIOUS_NEWS_HANDLER_ID.equals(id)) {
delayInUI(new Runnable() {
public void run() {
NavigationActionFactory factory = new NavigationActionFactory();
try {
factory.setInitializationData(null, null, NavigationActionFactory.NavigationActionType.PREVIOUS_FEED.getId());
IWorkbenchWindowActionDelegate action = (IWorkbenchWindowActionDelegate) factory.create();
action.run(null);
} catch (CoreException e) {
/* Ignore */
}
}
});
}
/* Go to Previous Unread News */
else if (PREVIOUS_UNREAD_NEWS_HANDLER_ID.equals(id)) {
delayInUI(new Runnable() {
public void run() {
NavigationActionFactory factory = new NavigationActionFactory();
try {
factory.setInitializationData(null, null, NavigationActionFactory.NavigationActionType.PREVIOUS_UNREAD_FEED.getId());
IWorkbenchWindowActionDelegate action = (IWorkbenchWindowActionDelegate) factory.create();
action.run(null);
} catch (CoreException e) {
/* Ignore */
}
}