/* Labels Menu */
else if (queryProvided && LABELS_MENU_HANDLER_ID.equals(id)) {
INews news = getNews(query);
if (news != null) {
setSelection(new StructuredSelection(news));
Point cursorLocation = fBrowser.getControl().getDisplay().getCursorLocation();
cursorLocation.y = cursorLocation.y + 16;
fLabelsContextMenu.setLocation(cursorLocation);
fLabelsContextMenu.setVisible(true);
}
}
/* Attachments Menu */
else if (queryProvided && ATTACHMENTS_MENU_HANDLER_ID.equals(id)) {
INews news = getNews(query);
if (news != null) {
setSelection(new StructuredSelection(news));
Point cursorLocation = fBrowser.getControl().getDisplay().getCursorLocation();
cursorLocation.y = cursorLocation.y + 16;
fAttachmentsContextMenu.setLocation(cursorLocation);
fAttachmentsContextMenu.setVisible(true);
}
}
/* News Context Menu */
else if (queryProvided && NEWS_MENU_HANDLER_ID.equals(id)) {
INews news = getNews(query);
if (news != null) {
setSelection(new StructuredSelection(news));
Point cursorLocation = fBrowser.getControl().getDisplay().getCursorLocation();
cursorLocation.y = cursorLocation.y + 16;
fNewsContextMenu.setLocation(cursorLocation);
fNewsContextMenu.setVisible(true);
}
}
/* Share News Context Menu */
else if (queryProvided && SHARE_NEWS_MENU_HANDLER_ID.equals(id)) {
INews news = getNews(query);
if (news != null) {
setSelection(new StructuredSelection(news));
Point cursorLocation = fBrowser.getControl().getDisplay().getCursorLocation();
cursorLocation.y = cursorLocation.y + 16;
fShareNewsContextMenu.setLocation(cursorLocation);
fShareNewsContextMenu.setVisible(true);
}