public static void rebuildBinaries() { if (Window.confirm(Constants.INSTANCE.SnapshotRebuildWarning())) { LoadingPopup.showMessage( Constants.INSTANCE.RebuildingSnapshotsPleaseWaitThisMayTakeSomeTime()); ModuleServiceAsync moduleService = GWT.create(ModuleService.class); moduleService.rebuildSnapshots( new GenericCallback<java.lang.Void>() { public void onSuccess(Void v) { LoadingPopup.close(); Window.alert(Constants.INSTANCE.SnapshotsWereRebuiltSuccessfully()); } }); } }