}
public static MenuItem addCheckUpdateMenuItem(final Menu menu) {
return addMenuItem(menu, MENU_ID_UPDATE_CHECK, new ListenerNeedingCoreRunning() {
public void handleEvent(AzureusCore core, Event e) {
UIFunctionsSWT uiFunctions = UIFunctionsManagerSWT.getUIFunctionsSWT();
if (uiFunctions != null) {
uiFunctions.bringToFront();
}
UpdateMonitor.getSingleton(core).performCheck(true, false, false,
new UpdateCheckInstanceListener() {
public void cancelled(UpdateCheckInstance instance) {
}