/* Toggle State between Sticky / Not Sticky */
if (data instanceof INews) {
Runnable runnable = new Runnable() {
public void run() {
new MakeNewsStickyAction(new StructuredSelection(data)).run();
}
};
INews news = (INews) data;
if (news.getState() != INews.State.READ && isGroupingByStickyness()) //Workaround for Bug 1279
JobRunner.runInBackgroundThread(50, runnable);
else
runnable.run();
fLastColumnActionInvokedMillies = System.currentTimeMillis();
}
}
/* Mouse-Up over Attachments-Column */
else if (event.button == 1 && isInImageBounds(item, NewsColumn.ATTACHMENTS, p)) {
Object data = item.getData();
MenuManager contextMenu = new MenuManager();
ApplicationActionBarAdvisor.fillAttachmentsMenu(contextMenu, new StructuredSelection(data), fEditorSite, true);
if (fAttachmentsMenu != null)
fAttachmentsMenu.dispose();
fAttachmentsMenu = contextMenu.createContextMenu(fViewer.getControl());